unleashed 0.1.8 → 0.1.9

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
  SHA256:
3
- metadata.gz: 7ffacf8f04243fffe2099a80a56ea810d82fd60a70ae3cf343eab0be4ba4dee9
4
- data.tar.gz: f02cfd0bcf6664f8571360908557ba6286545c07b8936cf4e617d54303f9de82
3
+ metadata.gz: 1c62650fc04b7e843cc1459a5cb12ca9df0297d8686a31acb79c63b2f0ba9be1
4
+ data.tar.gz: 3668df7548905aa45fb7437ec06af4a5a629980c1bc4a8dc1afeb8e876657698
5
5
  SHA512:
6
- metadata.gz: 4144ef508cbca43006f4467616a44c008471c5585f87b837502538995f0920b95b7c284ad7eca2fa852c4020eb7c5de3181126b01711463fbd4fd1ad0d060228
7
- data.tar.gz: fafc99a815f14e471d82754ddd923fd8e9d03a6f6a5f62afe03ae267736a2a5b72e17b3a80e2ea5cef3acce92e873a50c1fdd805c8efbaafb30564b7c9777954
6
+ metadata.gz: 830e6c1a1e00f3be6dcf86e82375acb7a6ccd3c81ec7a9f6b8ce35229dc744d7993b17d53b585c296fa3ffe8eb1f32702186bb63eb958c13108618888b37562f
7
+ data.tar.gz: 05efbbff8f6a7400510f2e6444c24cd8b5b62602f61c25f93440b27194ee9212322ba0a928fa990c543f7b4e66f415e3faeacfb88c58bd527dde5b40e2f432f3
@@ -1,6 +1,8 @@
1
1
  module Unleashed
2
2
  # Base model for all the other models to inherit from
3
3
  class BaseModel
4
+ attr_reader :attributes
5
+
4
6
  def initialize(client, attributes = {})
5
7
  @client = client
6
8
  @attributes = stringify_keys(attributes)
@@ -1,6 +1,5 @@
1
1
  module Unleashed
2
2
  # Manage Customers
3
3
  class Customer < BaseModel
4
- attr_reader :attributes
5
4
  end
6
5
  end
@@ -1,6 +1,5 @@
1
1
  module Unleashed
2
2
  # Manage Invoices
3
3
  class Invoice < BaseModel
4
- attr_reader :attributes
5
4
  end
6
5
  end
@@ -2,7 +2,7 @@ module Unleashed
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 8
5
+ TINY = 9
6
6
 
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}".freeze
8
8
  end
data/unleashed.gemspec CHANGED
@@ -40,8 +40,8 @@ Gem::Specification.new do |spec|
40
40
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
41
41
  spec.require_paths = ['lib']
42
42
 
43
- spec.add_dependency 'faraday', '~> 0'
44
- spec.add_dependency 'json', '~> 0'
43
+ spec.add_dependency 'faraday', '>= 0'
44
+ spec.add_dependency 'json', '>= 0'
45
45
  spec.add_development_dependency 'bundler', '~> 1.16', '>= 1.16.1'
46
46
  spec.add_development_dependency 'rake', '~> 10.0'
47
47
  spec.add_development_dependency 'rspec', '~> 3.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unleashed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhan Nguyen
@@ -14,28 +14,28 @@ dependencies:
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
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
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency