afterpay-ruby 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +4 -2
- data/lib/afterpay.rb +2 -2
- data/lib/afterpay/config.rb +2 -1
- data/lib/afterpay/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fa2bc92ce7a75fb21568aa4abcb9aec0499f883e9dfb59dc0f28a3adb28ad20
|
|
4
|
+
data.tar.gz: b24cd5e4543bbab75744d3afd68416540b435f76b6374114bcdcc8bce6bd4914
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f793e82f19ed0f6a4d3db5703136f3487e364e93b52b057c653ee3595e25443cc7adada7560dd1badd058d235b18399e92ed83f1c317128d4d649f735d58dc6a
|
|
7
|
+
data.tar.gz: fad49a4e48eb394e0aa5820349499382a18e825f8524f454d7881d144608980fd5a81351de5be762a2e179dc697cb7c6b0feffa7df057261c3726314d0097655
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
afterpay-ruby (0.1.
|
|
4
|
+
afterpay-ruby (0.1.5)
|
|
5
5
|
faraday (>= 0.8, < 1.0)
|
|
6
6
|
faraday_middleware (~> 0.13.1)
|
|
7
7
|
money (>= 6.7.1, < 7.0.0)
|
|
@@ -33,9 +33,9 @@ GEM
|
|
|
33
33
|
concurrent-ruby (~> 1.0)
|
|
34
34
|
json (2.2.0)
|
|
35
35
|
method_source (0.9.2)
|
|
36
|
-
money (6.13.
|
|
36
|
+
money (6.13.4)
|
|
37
37
|
i18n (>= 0.6.4, <= 2)
|
|
38
|
-
multipart-post (2.1.
|
|
38
|
+
multipart-post (2.1.1)
|
|
39
39
|
pry (0.12.2)
|
|
40
40
|
coderay (~> 1.1.0)
|
|
41
41
|
method_source (~> 0.9.0)
|
data/README.md
CHANGED
|
@@ -173,7 +173,9 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
173
173
|
|
|
174
174
|
## Contributing
|
|
175
175
|
|
|
176
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
176
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/bluethumbart/afterpay-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
177
|
+
|
|
178
|
+
You will need to copy `.env.sample` to `.env` for running Afterpay console. This will not be checked into git.
|
|
177
179
|
|
|
178
180
|
## License
|
|
179
181
|
|
|
@@ -181,4 +183,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
181
183
|
|
|
182
184
|
## Code of Conduct
|
|
183
185
|
|
|
184
|
-
Everyone interacting in the Afterpay
|
|
186
|
+
Everyone interacting in the Afterpay project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/afterpay-ruby/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/afterpay.rb
CHANGED
|
@@ -35,8 +35,8 @@ module Afterpay
|
|
|
35
35
|
def self.configure
|
|
36
36
|
self.config ||= Config.new
|
|
37
37
|
yield(config) if block_given?
|
|
38
|
-
config.fetch_remote_config
|
|
39
|
-
config
|
|
38
|
+
config.fetch_remote_config unless config.skip_remote_config
|
|
39
|
+
config
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def self.env
|
data/lib/afterpay/config.rb
CHANGED
|
@@ -4,11 +4,12 @@ module Afterpay
|
|
|
4
4
|
class Config
|
|
5
5
|
attr_accessor :app_id, :secret, :env, :raise_errors,
|
|
6
6
|
:type, :maximum_amount, :minimum_amount,
|
|
7
|
-
:description, :currency
|
|
7
|
+
:description, :currency, :skip_remote_config
|
|
8
8
|
|
|
9
9
|
def initialize
|
|
10
10
|
@env = "sandbox"
|
|
11
11
|
@raise_errors = true
|
|
12
|
+
@skip_remote_config = false
|
|
12
13
|
end
|
|
13
14
|
|
|
14
15
|
# Called only after app_id and secred is set
|
data/lib/afterpay/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: afterpay-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|