finix 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.gitignore +1 -1
- data/.ruby-version +1 -1
- data/Gemfile +7 -10
- data/Rakefile +2 -1
- data/circle.yml +1 -1
- data/finix.gemspec +5 -7
- data/lib/finix/hal_resource.rb +0 -14
- data/lib/finix/version.rb +1 -1
- metadata +29 -67
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
N2NkZTQzZmQ4NWQ5MjlkMDdmZDhhZmEwMzhjOTM2OTk4YTUwNTA4OA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YzMyYTVjOTNmODk3NTg2M2U2ZjRjNjFjOGNmYTkxZDQ2NDFkNTcwMg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ODAzNjdhYWQzZTJmMjc0NmZjYmI1NWQ1ZTU4YjU2MjdhYWZhNmU0NjBmYTQ4
|
10
|
+
Mzc3OTA3OGI4MGE5MjM0YjBmNTg1MzFmNjVlMzYxNzE0NTY5ZTU3OTgyNWMw
|
11
|
+
ZGUyMDJmZDJkNGI4NGNiZGM0ZDI4ZTIxNTczMWE3NjFiYThmNjA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
Njg3MTc5YWI2MmQ0MDI0ODYyYThmMzBjMDQyOWYyNWZiYmFkMTQ2YTIxNjBm
|
14
|
+
MmYyMmEwMmU5YWFhMDE2ZWY2NzhlNDUyYWUwNzE1ZjQ2ZDA1YWNlM2I1OGFh
|
15
|
+
YjdlZjc0ZTY1YTg2Y2RiMDljNDVkNDcxZGRhM2FmZGZhMzUxMDI=
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-
|
1
|
+
ruby-1.9.3
|
data/Gemfile
CHANGED
@@ -1,14 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
gem 'faraday'
|
7
|
-
gem 'faraday_middleware'
|
8
|
-
gem 'addressable'
|
9
|
-
gem 'json'
|
3
|
+
gem 'rake', '~> 10.4.2'
|
4
|
+
gem 'public_suffix', '~> 1.4.6'
|
10
5
|
|
11
6
|
group :test do
|
12
|
-
gem 'minitest'
|
13
|
-
gem 'minitest-reporters'
|
14
|
-
end
|
7
|
+
gem 'minitest', '~> 5.10.1'
|
8
|
+
gem 'minitest-reporters', '~> 1.1.13'
|
9
|
+
end
|
10
|
+
|
11
|
+
gemspec
|
data/Rakefile
CHANGED
data/circle.yml
CHANGED
data/finix.gemspec
CHANGED
@@ -5,6 +5,7 @@ require 'finix/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'finix'
|
8
|
+
spec.required_ruby_version = '>= 1.9'
|
8
9
|
spec.version = Finix::VERSION
|
9
10
|
spec.authors = ['finix-payments']
|
10
11
|
spec.email = ['support@finixpayments.com']
|
@@ -21,11 +22,8 @@ Gem::Specification.new do |spec|
|
|
21
22
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
23
|
spec.require_paths = ['lib']
|
23
24
|
|
24
|
-
spec.
|
25
|
-
spec.
|
26
|
-
spec.
|
27
|
-
|
28
|
-
spec.add_dependency('faraday', ['>= 0.8.6', '<= 0.9.0'])
|
29
|
-
spec.add_dependency('faraday_middleware', '~> 0.9.0')
|
30
|
-
spec.add_dependency('addressable', '~> 2.3.5')
|
25
|
+
spec.add_dependency('faraday', '~> 0.9.2')
|
26
|
+
spec.add_dependency('faraday_middleware', '~> 0.10.1')
|
27
|
+
spec.add_dependency('addressable', '~> 2.3')
|
28
|
+
spec.add_dependency('json', '~> 1.8')
|
31
29
|
end
|
data/lib/finix/hal_resource.rb
CHANGED
@@ -21,19 +21,5 @@ module Finix
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
-
|
25
|
-
if RUBY_VERSION < '1.9'
|
26
|
-
def respond_to?(method_name, include_private=false)
|
27
|
-
does_resource_respond_to?(method_name) || super
|
28
|
-
end
|
29
|
-
else
|
30
|
-
def respond_to_missing?(method_name, include_private=false)
|
31
|
-
does_resource_respond_to?(method_name) || super
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
def does_resource_respond_to?(method_name)
|
36
|
-
@attributes.has_key?(method_name.to_s) or @hyperlinks.has_key?(method_name.to_s)
|
37
|
-
end
|
38
24
|
end
|
39
25
|
end
|
data/lib/finix/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- finix-payments
|
@@ -11,113 +11,75 @@ cert_chain: []
|
|
11
11
|
date: 2016-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.13'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.13'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '10.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '10.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
14
|
+
name: faraday
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
44
16
|
requirements:
|
45
|
-
- -
|
17
|
+
- - ~>
|
46
18
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
type: :
|
19
|
+
version: 0.9.2
|
20
|
+
type: :runtime
|
49
21
|
prerelease: false
|
50
22
|
version_requirements: !ruby/object:Gem::Requirement
|
51
23
|
requirements:
|
52
|
-
- -
|
24
|
+
- - ~>
|
53
25
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
26
|
+
version: 0.9.2
|
55
27
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
28
|
+
name: faraday_middleware
|
57
29
|
requirement: !ruby/object:Gem::Requirement
|
58
30
|
requirements:
|
59
|
-
- -
|
31
|
+
- - ~>
|
60
32
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
62
|
-
- - "<="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 0.9.0
|
33
|
+
version: 0.10.1
|
65
34
|
type: :runtime
|
66
35
|
prerelease: false
|
67
36
|
version_requirements: !ruby/object:Gem::Requirement
|
68
37
|
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: 0.8.6
|
72
|
-
- - "<="
|
38
|
+
- - ~>
|
73
39
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
40
|
+
version: 0.10.1
|
75
41
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
42
|
+
name: addressable
|
77
43
|
requirement: !ruby/object:Gem::Requirement
|
78
44
|
requirements:
|
79
|
-
- -
|
45
|
+
- - ~>
|
80
46
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
47
|
+
version: '2.3'
|
82
48
|
type: :runtime
|
83
49
|
prerelease: false
|
84
50
|
version_requirements: !ruby/object:Gem::Requirement
|
85
51
|
requirements:
|
86
|
-
- -
|
52
|
+
- - ~>
|
87
53
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
54
|
+
version: '2.3'
|
89
55
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
56
|
+
name: json
|
91
57
|
requirement: !ruby/object:Gem::Requirement
|
92
58
|
requirements:
|
93
|
-
- -
|
59
|
+
- - ~>
|
94
60
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
61
|
+
version: '1.8'
|
96
62
|
type: :runtime
|
97
63
|
prerelease: false
|
98
64
|
version_requirements: !ruby/object:Gem::Requirement
|
99
65
|
requirements:
|
100
|
-
- -
|
66
|
+
- - ~>
|
101
67
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
68
|
+
version: '1.8'
|
103
69
|
description: Finix Ruby Client
|
104
70
|
email:
|
105
71
|
- support@finixpayments.com
|
106
|
-
executables:
|
107
|
-
- console
|
108
|
-
- setup
|
72
|
+
executables: []
|
109
73
|
extensions: []
|
110
74
|
extra_rdoc_files: []
|
111
75
|
files:
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
76
|
+
- .gitignore
|
77
|
+
- .ruby-gemset
|
78
|
+
- .ruby-version
|
115
79
|
- Gemfile
|
116
80
|
- LICENSE.txt
|
117
81
|
- README.md
|
118
82
|
- Rakefile
|
119
|
-
- bin/console
|
120
|
-
- bin/setup
|
121
83
|
- circle.yml
|
122
84
|
- finix.gemspec
|
123
85
|
- lib/finix.rb
|
@@ -160,12 +122,12 @@ require_paths:
|
|
160
122
|
- lib
|
161
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
162
124
|
requirements:
|
163
|
-
- -
|
125
|
+
- - ! '>='
|
164
126
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
127
|
+
version: '1.9'
|
166
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
129
|
requirements:
|
168
|
-
- -
|
130
|
+
- - ! '>='
|
169
131
|
- !ruby/object:Gem::Version
|
170
132
|
version: '0'
|
171
133
|
requirements: []
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
require 'finix'
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require 'irb'
|
14
|
-
IRB.start
|