regaliator 4.0.0 → 4.0.1

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: efcf64f576bc7a9431e43534c2f9198c77fbb485
4
- data.tar.gz: bc6e231c1cba489c8eeef2dbd7fc3a829a867463
3
+ metadata.gz: 8b96102324580ba12eaa982adc82aeea117ba34f
4
+ data.tar.gz: 75a2286386781698f45bf68f0322b67089d9a138
5
5
  SHA512:
6
- metadata.gz: c3275c4f56fb2a72c00d5d0574c7143cd98a3409d34b264ea6ea2d6b60c1ec8eea002dc4c298f9cce0e9c755fd3b39b754a450b282d02fa654fc3b0a151add50
7
- data.tar.gz: b5b4a82649400cc05219c00152d89e5d23d07c20d3318afe1f218318148dfd1bd5bb97fb9081efc4f70652a33e68b6a268c5603325a8bde676922d8b245d83d2
6
+ metadata.gz: 4aa05b51498ac128d52f1b1c233520859c665b3430b05d826e9e4ddb004f1e3668cd1d2fed1756fedb4d59ad238b2834ee81210c396a0a55f024b7939863aa91
7
+ data.tar.gz: d303177028e62f780f0f902a486d42f27fae580ebd862620d870e6a7154073a85dc4f88d4623f57527af1c3838f44026b067335bcd510b604489458d0ff6b988
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Regaliator
2
+
3
+ ## Version 4.0.1 (23/01/2017)
4
+
5
+ * Fix the version constraints of JSON.
6
+
7
+ ## Version 4.0.0 (20/01/2017)
8
+
9
+ * Add the support of the API v3.1.
data/README.md CHANGED
@@ -35,7 +35,7 @@ Regaliator.configure do |config|
35
35
  # API host settings
36
36
  config.host = 'api.casiregalii.com'
37
37
  config.open_timeout = 5
38
- config.read_timeout = 10
38
+ config.read_timeout = 60
39
39
  config.use_ssl = true
40
40
 
41
41
  # Proxy settings
@@ -67,7 +67,7 @@ The available versions are: `1.5`, `3.0` and `3.1` (recommended).
67
67
  **Success:**
68
68
 
69
69
  ```ruby
70
- > response = Regaliator.new.bill.show(1)
70
+ > response = Regaliator.bill.show(1)
71
71
  > response.success?
72
72
  => true
73
73
  > response.data
@@ -75,7 +75,7 @@ The available versions are: `1.5`, `3.0` and `3.1` (recommended).
75
75
  ```
76
76
 
77
77
  ```ruby
78
- > response = Regaliator.new.bill.pay(1, amount: 13.0, currency: 'MXN')
78
+ > response = Regaliator.bill.pay(1, amount: 13.0, currency: 'MXN')
79
79
  > response.success?
80
80
  => true
81
81
  > response.data
@@ -85,7 +85,7 @@ The available versions are: `1.5`, `3.0` and `3.1` (recommended).
85
85
  **Failure:**
86
86
 
87
87
  ```ruby
88
- > response = Regaliator.new.bill.pay(biller_id: 1, account_number: '12345', amount: 0.0, currency: 'MXN')
88
+ > response = Regaliator.bill.pay(biller_id: 1, account_number: '12345', amount: 0.0, currency: 'MXN')
89
89
  > response.success?
90
90
  => false
91
91
  > response.data
@@ -99,7 +99,7 @@ The following examples will show how to use the Regaliator gem to connect to the
99
99
  ### Billers List
100
100
  https://www.regalii.com/billers
101
101
  ```ruby
102
- response = Regaliator.new.biller.utilities
102
+ response = Regaliator.biller.utilities
103
103
  ```
104
104
 
105
105
  ## Tests
@@ -1,3 +1,3 @@
1
1
  module Regaliator
2
- VERSION = '4.0.0'
2
+ VERSION = '4.0.1'
3
3
  end
data/regaliator.gemspec CHANGED
@@ -20,12 +20,9 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = ['>= 2.1.0', '<= 2.4']
22
22
 
23
- spec.add_dependency 'json', '~> 2.0', '>= 2.0.3'
23
+ spec.add_dependency 'json'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.7'
26
- # Old version of Guard to support Ruby 2.1.5.
27
- spec.add_development_dependency 'guard', '~> 2.11', '>= 2.11.0'
28
- spec.add_development_dependency 'guard-minitest', '~> 2.4', '>= 2.4.6'
29
26
  spec.add_development_dependency 'minitest-reporters', '~> 1.1', '>= 1.1.13'
30
27
  spec.add_development_dependency 'minitest', '~> 5.8', '>= 5.8.4'
31
28
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regaliator
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hesham El-Nahhas
@@ -10,28 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-01-20 00:00:00.000000000 Z
13
+ date: 2017-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
20
- - !ruby/object:Gem::Version
21
- version: '2.0'
22
19
  - - ">="
23
20
  - !ruby/object:Gem::Version
24
- version: 2.0.3
21
+ version: '0'
25
22
  type: :runtime
26
23
  prerelease: false
27
24
  version_requirements: !ruby/object:Gem::Requirement
28
25
  requirements:
29
- - - "~>"
30
- - !ruby/object:Gem::Version
31
- version: '2.0'
32
26
  - - ">="
33
27
  - !ruby/object:Gem::Version
34
- version: 2.0.3
28
+ version: '0'
35
29
  - !ruby/object:Gem::Dependency
36
30
  name: bundler
37
31
  requirement: !ruby/object:Gem::Requirement
@@ -46,46 +40,6 @@ dependencies:
46
40
  - - "~>"
47
41
  - !ruby/object:Gem::Version
48
42
  version: '1.7'
49
- - !ruby/object:Gem::Dependency
50
- name: guard
51
- requirement: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '2.11'
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: 2.11.0
59
- type: :development
60
- prerelease: false
61
- version_requirements: !ruby/object:Gem::Requirement
62
- requirements:
63
- - - "~>"
64
- - !ruby/object:Gem::Version
65
- version: '2.11'
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: 2.11.0
69
- - !ruby/object:Gem::Dependency
70
- name: guard-minitest
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '2.4'
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: 2.4.6
79
- type: :development
80
- prerelease: false
81
- version_requirements: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - "~>"
84
- - !ruby/object:Gem::Version
85
- version: '2.4'
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: 2.4.6
89
43
  - !ruby/object:Gem::Dependency
90
44
  name: minitest-reporters
91
45
  requirement: !ruby/object:Gem::Requirement
@@ -185,8 +139,8 @@ extra_rdoc_files: []
185
139
  files:
186
140
  - ".gitignore"
187
141
  - ".ruby-version"
142
+ - CHANGELOG.md
188
143
  - Gemfile
189
- - Guardfile
190
144
  - LICENSE.txt
191
145
  - README.md
192
146
  - Rakefile
data/Guardfile DELETED
@@ -1,36 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- ## Uncomment and set this to only include directories you want to watch
5
- directories %w(lib test)
6
-
7
- ## Uncomment to clear the screen before every task
8
- clearing :on
9
-
10
- ## Guard internally checks for changes in the Guardfile and exits.
11
- ## If you want Guard to automatically start up again, run guard in a
12
- ## shell loop, e.g.:
13
- ##
14
- ## $ while bundle exec guard; do echo "Restarting Guard..."; done
15
- ##
16
- ## Note: if you are using the `directories` clause above and you are not
17
- ## watching the project directory ('.'), the you will want to move the Guardfile
18
- ## to a watched dir and symlink it back, e.g.
19
- #
20
- # $ mkdir config
21
- # $ mv Guardfile config/
22
- # $ ln -s config/Guardfile .
23
- #
24
- # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
25
-
26
- guard :minitest do
27
- # with Minitest::Unit
28
- watch(%r{^test/(.*)\/?(.*)_test\.rb$})
29
- watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}#{m[2]}_test.rb" }
30
- watch(%r{^test/test_helper\.rb$}) { 'test' }
31
-
32
- # with Minitest::Spec
33
- # watch(%r{^spec/(.*)_spec\.rb$})
34
- # watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
35
- # watch(%r{^spec/spec_helper\.rb$}) { 'spec' }
36
- end