recurly 2.4.8 → 2.4.9

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 660fc143363dbebd51bf09c75aaddd74aeb43dda
4
- data.tar.gz: f9fb32d3c6540d8fde7c6cc2b3eb6616a8ee2da6
3
+ metadata.gz: 943c4e504f2072cb4a6c55ca21595dec92c1dc41
4
+ data.tar.gz: fd52ef67b6eb268843d2e39e4f51ae61d64c099b
5
5
  SHA512:
6
- metadata.gz: 1f93dcf67ee8a172a8a646f153601fb867652eab00d4bb32eb5ebe1fd04b1ead5855907dd767aaf2c12e0434fa70a308ca57b996acb96e41933402944f8a29f4
7
- data.tar.gz: ed29811ad7fbc2b0adcaedeaf06a105a52a11f1809704a4412e125e9f55114cfbd0884d2ca2441b772d0f3025eb814dd3e69ce846ce9b6cdc056ce02ebc4b18e
6
+ metadata.gz: 0d5f59a05dc2d8de819345e8273fea982a5e477776efdc72142579e5b7505f11a80c55214669e7ed82009781e745d7b4df2c237ffae1e1272be35c5fdff86116
7
+ data.tar.gz: 9c980c2b23526ccf4863ec5a4e212ed798021345ec90253e624b6dc629cc16e2d63a4cbac866c61ca1f09c598504564476efb85fcb2878e5b1362b6be9febd1d
data/README.md CHANGED
@@ -12,7 +12,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
12
12
  [Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
13
13
 
14
14
  ``` ruby
15
- gem 'recurly', '~> 2.4.8'
15
+ gem 'recurly', '~> 2.4.9'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -478,7 +478,11 @@ module Recurly
478
478
  associations << Association.new(:has_many, collection_name.to_s, options)
479
479
  associations_helper.module_eval do
480
480
  define_method collection_name do
481
- self[collection_name] ||= []
481
+ if self[collection_name]
482
+ self[collection_name]
483
+ else
484
+ attributes[collection_name] = []
485
+ end
482
486
  end
483
487
  if options.key?(:readonly) && options[:readonly] == false
484
488
  define_method "#{collection_name}=" do |collection|
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 4
5
- PATCH = 8
5
+ PATCH = 9
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.8
4
+ version: 2.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake