lhc 6.7.1 → 6.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c5c5f4816c33b9c078b34e24a1cbb7edc2941dd
4
- data.tar.gz: 823f2393fc6fab6069fa21273f14466a4e8eb180
3
+ metadata.gz: 8e6b09ef7b4e0f1b03515fa76038d15d26b20362
4
+ data.tar.gz: 8963d07d786b7636b3d4366b4dec2767aa965f93
5
5
  SHA512:
6
- metadata.gz: b5355a16e937c1db85d35032252706246f88c1e5bad1b196b74d0bfde3d208c7b2d13c0572f234116b1d38609e1df7a43c523e335069cd87f811400999393a02
7
- data.tar.gz: 6037c6cff800bf67b522410a79b73f3d50bb1333f250f36e185584245a475ff1479848a76887e4d086a20b535e1dfa0db7eb1e3fbe658de13860e3c13c8764e4
6
+ metadata.gz: b06fd0687be3c9f1664fd0b432f47f56c4ed626ef8ee7a03cd19942d441de0f33a8e3028005b53b12bf324df1a18d5b2fc18813ff8917d4a7d1b941f5e1a2f95
7
+ data.tar.gz: 0b97fa787029486bb7c728013382781e011857d1b72ed9338b0000e7518678eb2d1190bd5edd24a2116a63abb6c6f63a9be6607b91edccde57e594d602849886
data/lib/lhc.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'typhoeus'
2
+ require 'active_support/core_ext/object/blank'
2
3
 
3
4
  module LHC
4
5
  autoload :BasicMethodsConcern,
data/lib/lhc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LHC
2
- VERSION ||= '6.7.1'
2
+ VERSION ||= '6.7.2'
3
3
  end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe LHC do
4
+ context 'request' do
5
+ it "is able to call .request without LHC raising NoMethodError: undefined method `blank?' for nil:NilClass when calling it outside of the rails context" do
6
+ expect { LHC.request(url: "http://datastore/v2/feedbacks", method: :get) }.not_to raise_error(NoMethodError)
7
+ end
8
+ end
9
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'pry'
2
2
  require 'webmock/rspec'
3
+ require 'lhc'
3
4
 
4
5
  Dir[File.join(__dir__, "support/**/*.rb")].each { |f| require f }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhc
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.7.1
4
+ version: 6.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://github.com/local-ch/lhc/contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-20 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -224,6 +224,7 @@ files:
224
224
  - spec/basic_methods/post_spec.rb
225
225
  - spec/basic_methods/put_spec.rb
226
226
  - spec/basic_methods/request_spec.rb
227
+ - spec/basic_methods/request_without_rails_spec.rb
227
228
  - spec/config/endpoints_spec.rb
228
229
  - spec/config/placeholders_spec.rb
229
230
  - spec/dummy/README.rdoc
@@ -354,6 +355,7 @@ test_files:
354
355
  - spec/basic_methods/post_spec.rb
355
356
  - spec/basic_methods/put_spec.rb
356
357
  - spec/basic_methods/request_spec.rb
358
+ - spec/basic_methods/request_without_rails_spec.rb
357
359
  - spec/config/endpoints_spec.rb
358
360
  - spec/config/placeholders_spec.rb
359
361
  - spec/dummy/README.rdoc