recurly 2.0.6 → 2.0.8

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.

data/README.markdown 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.0.6'
15
+ gem 'recurly', '~> 2.0.8'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -62,7 +62,7 @@ Instructions and examples are available on
62
62
  [Recurly's documentation site](http://docs.recurly.com/api/basics).
63
63
 
64
64
  Recurly's gem API is available
65
- [here](http://rubydoc.info/gems/recurly/2.0.6/frames).
65
+ [here](http://rubydoc.info/gems/recurly/2.0.8/frames).
66
66
 
67
67
 
68
68
  ## Contributing
data/lib/recurly/js.rb CHANGED
@@ -45,7 +45,7 @@ module Recurly
45
45
  # @return [true]
46
46
  # @raise [RequestForgery] If verification fails.
47
47
  def verify_transaction! params
48
- verify! 'subscriptioncreated', params
48
+ verify! 'transactioncreated', params
49
49
  end
50
50
 
51
51
  # @return [true]
@@ -5,9 +5,17 @@ module Recurly
5
5
  # @macro [attach] scope
6
6
  # @scope class
7
7
  # @return [Pager<Subscription>] A pager that yields +$1+ subscriptions.
8
- scope :active, :state => :active
9
- scope :in_trial, :state => :in_trial
10
- scope :non_renewing, :state => :non_renewing
8
+ scope :active, :state => :active
9
+ scope :canceled, :state => :canceled
10
+ scope :expired, :state => :expired
11
+ scope :future, :state => :future
12
+ # @return [Pager<Subscription>] A pager that yields subscriptions in
13
+ # trials.
14
+ scope :in_trial, :state => :in_trial
15
+ # @return [Pager<Subscription>] A pager that yields active, canceled, and
16
+ # future subscriptions.
17
+ scope :live, :state => :live
18
+ scope :past_due, :state => :past_due
11
19
 
12
20
  # @return [Account]
13
21
  belongs_to :account
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 6
5
+ PATCH = 8
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-10 00:00:00.000000000 Z
12
+ date: 2011-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70254031391940 !ruby/object:Gem::Requirement
16
+ requirement: &70258497739360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.2
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70254031391940
24
+ version_requirements: *70258497739360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70254031391420 !ruby/object:Gem::Requirement
27
+ requirement: &70258497738600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.pre.10
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70254031391420
35
+ version_requirements: *70258497738600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &70254031390960 !ruby/object:Gem::Requirement
38
+ requirement: &70258497736800 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.6.1
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70254031390960
46
+ version_requirements: *70258497736800
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: webmock
49
- requirement: &70254031390500 !ruby/object:Gem::Requirement
49
+ requirement: &70258497735780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.7.6
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70254031390500
57
+ version_requirements: *70258497735780
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: guard-minitest
60
- requirement: &70254031390040 !ruby/object:Gem::Requirement
60
+ requirement: &70258497734540 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.4.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70254031390040
68
+ version_requirements: *70258497734540
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rb-fsevent
71
- requirement: &70254031389580 !ruby/object:Gem::Requirement
71
+ requirement: &70258497733840 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.4.3.1
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70254031389580
79
+ version_requirements: *70258497733840
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: growl_notify
82
- requirement: &70254031389120 !ruby/object:Gem::Requirement
82
+ requirement: &70258497732920 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: 0.0.1
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70254031389120
90
+ version_requirements: *70258497732920
91
91
  description: ! 'An API client library for Recurly: http://recurly.com'
92
92
  email: support@recurly.com
93
93
  executables: