flexirest 1.6.9 → 1.7.0

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: 97942021a18075e99ef0ec8b44ddcfc65666ccf2
4
- data.tar.gz: 0e65b5b0d7cc7ce9248118eb2d87bde8a4cb51d0
3
+ metadata.gz: 0f6e4ecaa1f891e1bb1a98368b8dbdf39024d31f
4
+ data.tar.gz: deb3c6a4cbf8af73c9cb2c513866162f7e440071
5
5
  SHA512:
6
- metadata.gz: 83f1b98ee42cc11c26edb512b85e30c050affd2d9efed3d3ccaa9a497c342aa5690f5f0ea16be3c18a99a5edb5657d97c2fc4ef0a8ffbdfe3edda590e174c6d2
7
- data.tar.gz: d61bd29b62610ad7e852d843391f83c6f19d0fa5ab427c9993264c875e76d7b97442fc5ad60a3f3666de2f204e67321d0e2a2833a9e4067f4bdaa23cffa1d69d
6
+ metadata.gz: beff9dd048c839bcdadda6c49aadd44e2bcc833ff436edfdb917dc6c9efff64afbc249502909aee8bc200ca06aac9587be41b33f595b316c2dbbab2e675b5b55
7
+ data.tar.gz: 90054f73fb70d72ba4cef6d87a6dc87683c55e731f47d38839a70b2ad5c98c6fae6486be4ff56c19829bd1234f82094d5eb4d9ebac2ecbe5a1ac282132b0457b
data/.travis.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.5.0
3
4
  - 2.4.0
4
5
  - 2.3.0
5
6
  - 2.2.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.0
4
+
5
+ Feature:
6
+
7
+ - Allows using a Flexirest instance as a hash key (thanks to René from Crete Media Design for the PR)
8
+
3
9
  ## 1.6.9
4
10
 
5
11
  Feature:
@@ -13,7 +13,7 @@ module Flexirest
13
13
  attr_accessor :_headers
14
14
 
15
15
  instance_methods.each do |m|
16
- next unless %w{display presence load require hash untrust trust freeze method enable_warnings with_warnings suppress capture silence quietly debugger breakpoint}.map(&:to_sym).include? m
16
+ next unless %w{display presence load require untrust trust freeze method enable_warnings with_warnings suppress capture silence quietly debugger breakpoint}.map(&:to_sym).include? m
17
17
  undef_method m
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.6.9"
2
+ VERSION = "1.7.0"
3
3
  end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ class EmptyExample < Flexirest::BaseWithoutValidation
4
+ whiny_missing true
5
+ end
6
+
7
+ describe Flexirest::BaseWithoutValidation do
8
+ it 'should support hash resolving' do
9
+ h = {}
10
+ expect{ h[EmptyExample.new] = 'not important' }.to_not raise_error
11
+ end
12
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.9
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-24 00:00:00.000000000 Z
11
+ date: 2018-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -323,6 +323,7 @@ files:
323
323
  - spec/lib/recording_spec.rb
324
324
  - spec/lib/request_spec.rb
325
325
  - spec/lib/result_iterator_spec.rb
326
+ - spec/lib/ruby_core_spec.rb
326
327
  - spec/lib/validation_spec.rb
327
328
  - spec/lib/xml_spec.rb
328
329
  - spec/spec_helper.rb
@@ -377,6 +378,7 @@ test_files:
377
378
  - spec/lib/recording_spec.rb
378
379
  - spec/lib/request_spec.rb
379
380
  - spec/lib/result_iterator_spec.rb
381
+ - spec/lib/ruby_core_spec.rb
380
382
  - spec/lib/validation_spec.rb
381
383
  - spec/lib/xml_spec.rb
382
384
  - spec/spec_helper.rb