diff --git a/.gitignore b/.gitignore index 0196d6d..d4cc7e5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .env +Gemfile.lock +/rubill-*.gem test.rb diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index ecf1232..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,37 +0,0 @@ -PATH - remote: . - specs: - rubill (0.2.1) - json (~> 0) - rest-client (~> 0) - -GEM - remote: https://rubygems.org/ - specs: - diff-lcs (1.2.5) - json (0.4.3) - rake (10.3.1) - rest-client (0.9.2) - rspec (3.1.0) - rspec-core (~> 3.1.0) - rspec-expectations (~> 3.1.0) - rspec-mocks (~> 3.1.0) - rspec-core (3.1.5) - rspec-support (~> 3.1.0) - rspec-expectations (3.1.2) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.1.0) - rspec-mocks (3.1.2) - rspec-support (~> 3.1.0) - rspec-support (3.1.1) - -PLATFORMS - ruby - -DEPENDENCIES - rake (~> 10.3) - rspec (~> 3.1) - rubill! - -BUNDLED WITH - 1.14.6 diff --git a/lib/rubill.rb b/lib/rubill.rb index f2dcd24..aa45d6b 100644 --- a/lib/rubill.rb +++ b/lib/rubill.rb @@ -1,3 +1,8 @@ +require "rest-client" +require "json" +require "singleton" +require "tempfile" + module Rubill attr_writer :configuration diff --git a/lib/rubill/session.rb b/lib/rubill/session.rb index 5a99733..cbb8b4c 100644 --- a/lib/rubill/session.rb +++ b/lib/rubill/session.rb @@ -1,8 +1,3 @@ -require "rest-client" -require "json" -require "singleton" -require "tempfile" - module Rubill class APIError < StandardError; end diff --git a/rubill-0.2.1.gem b/rubill-0.2.1.gem deleted file mode 100644 index 04f686a..0000000 Binary files a/rubill-0.2.1.gem and /dev/null differ diff --git a/rubill.gemspec b/rubill.gemspec index 7a6394e..2848725 100644 --- a/rubill.gemspec +++ b/rubill.gemspec @@ -9,11 +9,12 @@ Gem::Specification.new do |spec| spec.homepage = 'http://rubygems.org/gems/rubill' spec.license = 'MIT' - spec.files = Dir['lib/*.rb'] + spec.files = Dir['lib/**/*.rb'] + spec.require_paths = ["lib"] - spec.add_runtime_dependency "rest-client", '~> 0' - spec.add_runtime_dependency "json", '~> 0' + spec.add_runtime_dependency "rest-client" + spec.add_runtime_dependency "json" spec.add_development_dependency "rspec", "~> 3.1" spec.add_development_dependency "rake", "~> 10.3"