diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..2ac8271f --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg/* +*.gem +.bundle +.DS_Store +Gemfile.lock diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f6efc37a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: ruby +rvm: + - 1.9.2 + - 1.9.3 + - 2.0.0 diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..fa75df15 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gemspec diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..e20246b8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2013 Mindaugas Mozūras + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 00000000..de06cbd8 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# pronto diff --git a/Rakefile b/Rakefile new file mode 100644 index 00000000..e56071ea --- /dev/null +++ b/Rakefile @@ -0,0 +1,17 @@ +#!/usr/bin/env rake +require 'bundler' +require 'rspec/core/rake_task' + +Bundler::GemHelper.install_tasks +RSpec::Core::RakeTask.new(:spec) + +desc "Bundle the gem" +task :bundle do + sh 'bundle install' + sh 'gem build *.gemspec' + sh 'gem install *.gem' + sh 'rm *.gem' +end + +task(:default).clear +task default: [:bundle, :spec] diff --git a/lib/pronto.rb b/lib/pronto.rb new file mode 100644 index 00000000..e69de29b diff --git a/lib/pronto/version.rb b/lib/pronto/version.rb new file mode 100644 index 00000000..da0b2fe7 --- /dev/null +++ b/lib/pronto/version.rb @@ -0,0 +1,3 @@ +module Pronto + VERSION = '0.0.1' +end diff --git a/pronto.gemspec b/pronto.gemspec new file mode 100644 index 00000000..0dccad72 --- /dev/null +++ b/pronto.gemspec @@ -0,0 +1,26 @@ +# -*- encoding: utf-8 -*- +$:.push File.expand_path('../lib', __FILE__) + +require 'pronto/version' + +Gem::Specification.new do |s| + s.name = 'pronto' + s.version = Pronto::VERSION + s.platform = Gem::Platform::RUBY + s.authors = ['Mindaugas Mozūras'] + s.email = ['mindaugas.mozuras@gmail.com'] + s.homepage = 'http://github.org/mmozuras/pronto' + s.summary = 'pronto' + s.description = 'pronto' + + s.required_rubygems_version = '>= 1.3.6' + s.rubyforge_project = 'pronto' + + s.files = Dir.glob('{lib}/**/*') + %w[LICENSE README.md] + s.test_files = `git ls-files -- {spec}/*`.split("\n") + s.require_paths = ['lib'] + + s.add_dependency 'grit-ext', '~> 0.0.3' + s.add_development_dependency 'rake', '~> 10.1.0' + s.add_development_dependency 'rspec', '~> 2.13.0' +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 00000000..f334de2e --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,13 @@ +require 'rspec' +require 'pronto' + +RSpec.configure do |config| + config.color_enabled = true + config.filter_run(focus: true) + config.run_all_when_everything_filtered = true + config.treat_symbols_as_metadata_keys_with_true_values = true + + config.before(:each) do + @lib_path = Pathname.new(File.expand_path('../../lib/', __FILE__)) + end +end