chargify_api_ares 1.4.11 → 1.4.13

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: 77d53cc4ef9430fb907b3dfd83dc0de647bacfe5
4
- data.tar.gz: e328ecfcf84ddcac2bae42a2b43378168586ef9f
3
+ metadata.gz: d402f3d0f5291f1c0e72180aee716fb1555ce8cd
4
+ data.tar.gz: 670c20c39aea7bcff92391cbafff2b11be7df30b
5
5
  SHA512:
6
- metadata.gz: 42b701c11e5a39066db949d953728b1a8e7fc2322b52657e7aa809dd17e8287279bd8fd5f5168426a590971b0b6a79343f2be01493eaa17930af7b1db77a1fb7
7
- data.tar.gz: f48e1a1249ba3b8dd630ec700594e4b87777aadd2f0c2056868cc7273a1c4490d04da7b0c5fa3b151cded5c58aab0acd8ff25fa5e7847972415ec6e668e2a10d
6
+ metadata.gz: 54edbc80a59b7767d31d79a12442f719ddf34a5b8c5082b06da622eb5693ec7cfcccfcee1dabc23f66d25c2466c7a09baf3b5e58028ebeabd880af43b167f173
7
+ data.tar.gz: 5edbb32b7ba8b80e052f5bbd8ead0a66bd5274102b33ef9fa4b23262cfd2253cc6bdf0285d635d8eaae297120df3bef6835713fd7307e77284d39f7c918d2b20
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargify_api_ares (1.4.11)
4
+ chargify_api_ares (1.4.13)
5
5
  activeresource (>= 3.2.16)
6
6
 
7
7
  GEM
@@ -67,4 +67,4 @@ DEPENDENCIES
67
67
  vcr
68
68
 
69
69
  BUNDLED WITH
70
- 1.14.3
70
+ 1.14.6
data/HISTORY.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 1.4.13 / July 21, 2017
2
+
3
+ * Note: No changes from 1.4.12, previous release was not officially published
4
+ * Adds ability to get ReasonCodes [PR 154](https://github.com/chargify/chargify_api_ares/pull/154)
5
+
6
+ ## 1.4.12 / July 18, 2017
7
+
8
+ * Adds ability to get ReasonCodes [PR 154](https://github.com/chargify/chargify_api_ares/pull/154)
9
+
1
10
  ## 1.4.11 / May 12, 2017
2
11
 
3
12
  * Add Subscription Retry [PR 155](https://github.com/chargify/chargify_api_ares/pull/155) and [PR 145](https://github.com/chargify/chargify_api_ares/pull/145) by @gotchahn
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.7'
5
5
 
6
6
  s.name = 'chargify_api_ares'
7
- s.version = '1.4.11'
8
- s.date = '2017-05-12'
7
+ s.version = '1.4.13'
8
+ s.date = '2017-07-21'
9
9
  s.summary = 'A Chargify API wrapper for Ruby using ActiveResource'
10
10
  s.description = ''
11
11
  s.authors = ["Chargify Development Team"]
@@ -0,0 +1,15 @@
1
+ $: << File.expand_path(File.dirname(__FILE__) + '/../lib')
2
+
3
+ require 'chargify_api_ares'
4
+
5
+ # You could load your credentials from a file...
6
+ chargify_config = YAML::load_file(File.join(File.dirname(__FILE__), '..', 'chargify.yml'))
7
+
8
+ Chargify.configure do |c|
9
+ c.subdomain = chargify_config['subdomain']
10
+ c.api_key = chargify_config['api_key']
11
+ end
12
+
13
+ # Retrieve a list of all your site's reason_codes
14
+ reason_codes = Chargify::ReasonCode.find(:all)
15
+ #[#<Chargify::ReasonCode:0x007fb67da028d8 @attributes={"id"=>673, "site_id"=>11532, "code"=>"one", "description"=>"One for the money", "position"=>1, "created_at"=>"2017-04-10T04:17:21.000Z", "updated_at"=>"2017-04-10T04:19:30.000Z"}, @prefix_options={}, @persisted=true>, #<Chargify::ReasonCode:0x007fb67da02158 @attributes={"id"=>674, "site_id"=>11532, "code"=>"two", "description"=>"Two for the show", "position"=>2, "created_at"=>"2017-04-10T04:17:27.000Z", "updated_at"=>"2017-04-10T04:19:37.000Z"}, @prefix_options={}, @persisted=true>, #<Chargify::ReasonCode:0x007fb67da01a28 @attributes={"id"=>675, "site_id"=>11532, "code"=>"three", "description"=>"Three to get ready", "position"=>3, "created_at"=>"2017-04-10T04:17:38.000Z", "updated_at"=>"2017-04-10T04:19:43.000Z"}, @prefix_options={}, @persisted=true>, #<Chargify::ReasonCode:0x007fb67da012f8 @attributes={"id"=>681, "site_id"=>11532, "code"=>"four", "description"=>"Four to go", "position"=>4, "created_at"=>"2017-04-10T04:19:50.000Z", "updated_at"=>"2017-04-10T04:19:50.000Z"}, @prefix_options={}, @persisted=true>]
@@ -17,6 +17,7 @@ require 'chargify_api_ares/resources/payment'
17
17
  require 'chargify_api_ares/resources/payment_profile'
18
18
  require 'chargify_api_ares/resources/product'
19
19
  require 'chargify_api_ares/resources/product_family'
20
+ require 'chargify_api_ares/resources/reason_code'
20
21
  require 'chargify_api_ares/resources/renewal_preview'
21
22
  require 'chargify_api_ares/resources/site'
22
23
  require 'chargify_api_ares/resources/statement'
@@ -0,0 +1,5 @@
1
+ module Chargify
2
+ class ReasonCode < Base
3
+ include ResponseHelper
4
+ end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargify_api_ares
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.11
4
+ version: 1.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chargify Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource
@@ -178,6 +178,7 @@ files:
178
178
  - examples/migrations.rb
179
179
  - examples/payments.rb
180
180
  - examples/products.rb
181
+ - examples/reason_codes.rb
181
182
  - examples/renewal_preview.rb
182
183
  - examples/subscriptions.rb
183
184
  - examples/transactions.rb
@@ -208,6 +209,7 @@ files:
208
209
  - lib/chargify_api_ares/resources/payment_profile.rb
209
210
  - lib/chargify_api_ares/resources/product.rb
210
211
  - lib/chargify_api_ares/resources/product_family.rb
212
+ - lib/chargify_api_ares/resources/reason_code.rb
211
213
  - lib/chargify_api_ares/resources/renewal_preview.rb
212
214
  - lib/chargify_api_ares/resources/site.rb
213
215
  - lib/chargify_api_ares/resources/statement.rb
@@ -268,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
270
  version: '0'
269
271
  requirements: []
270
272
  rubyforge_project:
271
- rubygems_version: 2.2.3
273
+ rubygems_version: 2.6.10
272
274
  signing_key:
273
275
  specification_version: 3
274
276
  summary: A Chargify API wrapper for Ruby using ActiveResource