cobrato-client 0.14.0 → 0.15.0

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: 6439b5995e1fcbb2159145eecc9274583ab93000
4
- data.tar.gz: 04248a7b3da70c7090aba0ce9a1283a4d41da848
3
+ metadata.gz: 75f70f86ff08ef06b9956041eec56f85997b082a
4
+ data.tar.gz: 26c318a0d022dd9b7bfbed747a21b09633f47e44
5
5
  SHA512:
6
- metadata.gz: 256920c3d60594856e5241c879192115a8fee2115c009facac6d8ec6886a9ad300d91fa3403a5efabde0a46df80edcacf7942dee1de8edc82ddbc653ef845da2
7
- data.tar.gz: f0e87d16ede1d2e48cacbaec66d48c4795591d5ee7be1651ee51b2f0879a07c7af465fb32cf826ac637bc570cf57937c67fca2820c76a2bccb74ccfbcab508c8
6
+ metadata.gz: aaf4450a379a10b96f0a45ab134f336ace76ad1c9373556e16f62155225ce91233bf7f8dbce63853f1db066bd984ef8f8a2b61af893ece6e4827881d6f5acab1
7
+ data.tar.gz: 8f639cfeb780a83cf6445fa99568b9df11cc4f78b11d7a54fecd6cca171233005a71964f9e29d03a5feb3823fc7c599c53f4e3629d24893a46c2557850df57ec
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v.15.0
6
+
7
+ - Add `url` method to Entities.
8
+
5
9
  ## v0.14.0
6
10
 
7
11
  - Remove `charge_template_id` from `Charge`. It is a parameter only used on `Charge` create API.
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (0.14.0)
5
- multi_json (~> 1.11.1)
6
- typhoeus (~> 0.7.2)
4
+ cobrato-client (0.15.0)
5
+ multi_json (~> 1.11.2)
6
+ typhoeus (~> 0.8.0)
7
7
  virtus (~> 1.0.5)
8
- wisper (~> 1.6)
8
+ wisper (~> 1.6.1)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
@@ -14,56 +14,54 @@ GEM
14
14
  descendants_tracker (~> 0.0.4)
15
15
  ice_nine (~> 0.11.0)
16
16
  thread_safe (~> 0.3, >= 0.3.1)
17
- byebug (5.0.0)
18
- columnize (= 0.9.0)
19
- codeclimate-test-reporter (0.4.8)
17
+ byebug (9.0.6)
18
+ codeclimate-test-reporter (0.6.0)
20
19
  simplecov (>= 0.7.1, < 1.0.0)
21
- coderay (1.1.0)
20
+ coderay (1.1.1)
22
21
  coercible (1.0.0)
23
22
  descendants_tracker (~> 0.0.1)
24
- columnize (0.9.0)
25
23
  descendants_tracker (0.0.4)
26
24
  thread_safe (~> 0.3, >= 0.3.1)
27
25
  diff-lcs (1.2.5)
28
26
  docile (1.1.5)
29
27
  equalizer (0.0.11)
30
- ethon (0.9.0)
28
+ ethon (0.10.1)
31
29
  ffi (>= 1.3.0)
32
30
  ffi (1.9.14)
33
31
  ice_nine (0.11.2)
34
- json (1.8.3)
32
+ json (2.0.2)
35
33
  method_source (0.8.2)
36
34
  multi_json (1.11.3)
37
- pry (0.10.3)
35
+ pry (0.10.4)
38
36
  coderay (~> 1.1.0)
39
37
  method_source (~> 0.8.1)
40
38
  slop (~> 3.4)
41
- pry-byebug (3.2.0)
42
- byebug (~> 5.0)
39
+ pry-byebug (3.4.2)
40
+ byebug (~> 9.0)
43
41
  pry (~> 0.10)
44
- rake (10.4.2)
45
- rspec (3.4.0)
46
- rspec-core (~> 3.4.0)
47
- rspec-expectations (~> 3.4.0)
48
- rspec-mocks (~> 3.4.0)
49
- rspec-core (3.4.1)
50
- rspec-support (~> 3.4.0)
51
- rspec-expectations (3.4.0)
42
+ rake (10.5.0)
43
+ rspec (3.5.0)
44
+ rspec-core (~> 3.5.0)
45
+ rspec-expectations (~> 3.5.0)
46
+ rspec-mocks (~> 3.5.0)
47
+ rspec-core (3.5.4)
48
+ rspec-support (~> 3.5.0)
49
+ rspec-expectations (3.5.0)
52
50
  diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.4.0)
54
- rspec-mocks (3.4.1)
51
+ rspec-support (~> 3.5.0)
52
+ rspec-mocks (3.5.0)
55
53
  diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.4.0)
57
- rspec-support (3.4.1)
58
- simplecov (0.10.0)
54
+ rspec-support (~> 3.5.0)
55
+ rspec-support (3.5.0)
56
+ simplecov (0.12.0)
59
57
  docile (~> 1.1.0)
60
- json (~> 1.8)
58
+ json (>= 1.8, < 3)
61
59
  simplecov-html (~> 0.10.0)
62
60
  simplecov-html (0.10.0)
63
61
  slop (3.6.0)
64
62
  thread_safe (0.3.5)
65
- typhoeus (0.7.3)
66
- ethon (>= 0.7.4)
63
+ typhoeus (0.8.0)
64
+ ethon (>= 0.8.0)
67
65
  vcr (2.9.3)
68
66
  virtus (1.0.5)
69
67
  axiom-types (~> 0.1)
@@ -86,4 +84,4 @@ DEPENDENCIES
86
84
  vcr (~> 2.9)
87
85
 
88
86
  BUNDLED WITH
89
- 1.12.5
87
+ 1.13.6
@@ -26,10 +26,10 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency "typhoeus", "~> 0.7.2"
30
- spec.add_dependency "multi_json", "~> 1.11.1"
29
+ spec.add_dependency "typhoeus", "~> 0.8.0"
30
+ spec.add_dependency "multi_json", "~> 1.11.2"
31
31
  spec.add_dependency "virtus", "~> 1.0.5"
32
- spec.add_dependency "wisper", "~> 1.6"
32
+ spec.add_dependency "wisper", "~> 1.6.1"
33
33
 
34
34
  spec.add_development_dependency "bundler", "~> 1.9"
35
35
  spec.add_development_dependency "rake", "~> 10.4"
@@ -4,6 +4,13 @@ module Cobrato
4
4
  module Entities
5
5
  class Base
6
6
  include Virtus.model
7
+
8
+ attribute :_links, Array
9
+
10
+ def url(action)
11
+ link = _links.detect { |l| l["rel"].to_s == action.to_s } || {}
12
+ link.fetch("href", "")
13
+ end
7
14
  end
8
15
  end
9
- end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '0.14.0'
2
+ VERSION = '0.15.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobrato-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcio Ricardo Santos
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2016-12-01 00:00:00.000000000 Z
13
+ date: 2016-12-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.7.2
21
+ version: 0.8.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.7.2
28
+ version: 0.8.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: multi_json
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 1.11.1
35
+ version: 1.11.2
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 1.11.1
42
+ version: 1.11.2
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: virtus
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -60,14 +60,14 @@ dependencies:
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '1.6'
63
+ version: 1.6.1
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: '1.6'
70
+ version: 1.6.1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: bundler
73
73
  requirement: !ruby/object:Gem::Requirement
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  version: '0'
246
246
  requirements: []
247
247
  rubyforge_project:
248
- rubygems_version: 2.5.1
248
+ rubygems_version: 2.5.2
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: This is the official Ruby client for the Cobrato API.