zuora-ruby 0.1.0 → 0.2.0

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.
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'zuora/version'
@@ -11,7 +10,7 @@ Gem::Specification.new do |spec|
11
10
 
12
11
  spec.summary = 'A Ruby wrapper for Zuora API.'
13
12
  spec.description = 'A Ruby wrapper for Zuora API.'
14
- spec.homepage = 'https://github.com'
13
+ spec.homepage = 'https://github.com/contactually/zuora-ruby'
15
14
  spec.license = 'MIT'
16
15
 
17
16
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
@@ -31,7 +30,7 @@ Gem::Specification.new do |spec|
31
30
 
32
31
  # Runtime
33
32
  spec.add_runtime_dependency 'faraday'
34
- spec.add_runtime_dependency 'faraday_middleware', '~> 0.10'
33
+ spec.add_runtime_dependency 'faraday_middleware'
35
34
  spec.add_runtime_dependency 'activemodel', '~> 4.2'
36
35
 
37
36
  spec.add_runtime_dependency 'active_model_serializers', '~> 0.8'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contactually Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.10'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0.10'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activemodel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -287,13 +287,14 @@ files:
287
287
  - lib/zuora/models/account.rb
288
288
  - lib/zuora/models/card_holder.rb
289
289
  - lib/zuora/models/contact.rb
290
+ - lib/zuora/models/dirty.rb
290
291
  - lib/zuora/models/payment_method.rb
291
292
  - lib/zuora/models/payment_methods/credit_card.rb
292
293
  - lib/zuora/models/rate_plan.rb
293
294
  - lib/zuora/models/rate_plan_charge.rb
294
295
  - lib/zuora/models/subscription.rb
295
296
  - lib/zuora/models/tier.rb
296
- - lib/zuora/models/utils.rb
297
+ - lib/zuora/models/validation_predicates.rb
297
298
  - lib/zuora/resources.rb
298
299
  - lib/zuora/resources/accounts.rb
299
300
  - lib/zuora/resources/payment_methods.rb
@@ -303,8 +304,12 @@ files:
303
304
  - lib/zuora/serializers/attribute.rb
304
305
  - lib/zuora/serializers/noop.rb
305
306
  - lib/zuora/version.rb
307
+ - zuora/fixtures/vcr_cassettes/account_create_.yml
308
+ - zuora/fixtures/vcr_cassettes/account_update_.yml
309
+ - zuora/fixtures/vcr_cassettes/subscription_create_.yml
310
+ - zuora/fixtures/vcr_cassettes/subscription_update_.yml
306
311
  - zuora_ruby.gemspec
307
- homepage: https://github.com
312
+ homepage: https://github.com/contactually/zuora-ruby
308
313
  licenses:
309
314
  - MIT
310
315
  metadata:
@@ -1,23 +0,0 @@
1
- module Zuora
2
- module Models
3
- module Utils
4
- # Calls `validate_each` on for each provided attribute.
5
- # Attaches error generated via message fragment.
6
- # e.g. 'invalid widget'
7
- #
8
- # @param [Object] sender;
9
- # @param [String] message
10
- # @param [Array<Symbol>] fields
11
- # @return [Nil]
12
- def self.validate_children(sender, message, *fields)
13
- sender.validates_each fields do |record, attr, value|
14
- if !value.respond_to?(:valid?) || !value.respond_to?(:errors)
15
- record.errors.add attr, "invalid #{message}"
16
- elsif value.invalid?
17
- record.errors.add attr, value.errors.join(',')
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end