bill_forward 2.2016.227 → 2.2016.241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c71eedbc249e5f08c2f386bec6c8ac5cbc1fa7f
4
- data.tar.gz: 6caedacc6b265ace4c8440db488fb99e4a0136bf
3
+ metadata.gz: 752e6974690183a9b72454f7dec99a61d27f2748
4
+ data.tar.gz: 19050e3844fdc11901de2c75f76ec4bd7ad05324
5
5
  SHA512:
6
- metadata.gz: 15d236119ac5d46e9976de270256be96e4935b5d974d1fb1407d6824f94dd9e61c0f196ffaa3e5cf7660203a71c289e445bfd6df40cff8373e66c38ef9ba225f
7
- data.tar.gz: b2f67465d2fb756095c6d35aec04ac7f9e95d4fc5978566c4404c25057a09d5d0940509f5374b3db30962c0d2f871af7982cb5253a795124e991e37398936d25
6
+ metadata.gz: 3e75189a5d2a6c0f033738a1868fa18fabbc495e842990e366e5edd5fd221f7228cd8dff9ab7e7ca72a6f296e2cdca9c5982aeb40375aa1961355c9805f09423
7
+ data.tar.gz: a09348ad90fcd5b7d716f5bd0b78883a73db46d56038f57eba36952e329c731d38b532a82c5ccf62d21fa1be91e5e4611e215d270c2361ea71b50ad95b5b1b6d
data/README.md CHANGED
@@ -27,7 +27,7 @@ gem install bill_forward
27
27
 
28
28
  ### From RubyGems mirror
29
29
 
30
- Add the `bill_forward` gem to your application's Gemfile and run `bundle`:
30
+ Add the [`bill_forward` gem](https://rubygems.org/gems/bill_forward) to your application's Gemfile and run `bundle`:
31
31
  ```bash
32
32
  source 'https://rubygems.org'
33
33
  gem 'bill_forward'
@@ -209,6 +209,8 @@ module BillForward
209
209
  serialize_field self
210
210
  end
211
211
 
212
+ alias as_json to_ordered_hash
213
+
212
214
  def to_json(*a)
213
215
  to_ordered_hash.to_json
214
216
  end
@@ -1,4 +1,4 @@
1
1
  module BillForward
2
2
  # in an rspec run, the gemspec and bill_forward.rb loader will both visit this
3
- VERSION = "2.2016.227" unless const_defined?(:VERSION)
3
+ VERSION = "2.2016.241" unless const_defined?(:VERSION)
4
4
  end
@@ -67,6 +67,11 @@ describe BillForward::Subscription do
67
67
  end
68
68
  end
69
69
  end
70
+
71
+ describe '.as_json' do
72
+ specify { expect(subscription.as_json).to eq(subscription.to_ordered_hash) }
73
+ end
74
+
70
75
  # NOTE: ideally no anonymous entity would exist, because we would register all known nested entities.
71
76
  # they're sort of a 'last resort' for when the API has more fields than we realized (ie version change, or lack of parity).
72
77
  # this test will soon self-deprecate, because we aim to register all entities that we support anyway.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bill_forward
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2016.227
4
+ version: 2.2016.241
5
5
  platform: ruby
6
6
  authors:
7
7
  - BillForward
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-15 00:00:00.000000000 Z
11
+ date: 2016-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client