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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee47c1b29a922674e59599ea8f81338c88eeea755720f7d96f576d8552639069
4
- data.tar.gz: 2205ddca07946fa9cfacf565ef7e91dc968b173ff7e091910f1ddd09f5fd2641
3
+ metadata.gz: 0fa2bc92ce7a75fb21568aa4abcb9aec0499f883e9dfb59dc0f28a3adb28ad20
4
+ data.tar.gz: b24cd5e4543bbab75744d3afd68416540b435f76b6374114bcdcc8bce6bd4914
5
5
  SHA512:
6
- metadata.gz: fe4162c069ad19bfca5b1a914c8321ad1fe67e2a7a9c67f0b897d38760c96fef8b1785748a937bc6158a82a7f720503061c13304645eb4f1a7527c0ae6a266ea
7
- data.tar.gz: a82bcd5ef816ca4bc48a0dae7e864a219d10b7ad397b2e097294b85e44f3351530172ee6d1727905cca1ae8b145be6c630c8ae87a9687ddd9e4a175548779bed
6
+ metadata.gz: f793e82f19ed0f6a4d3db5703136f3487e364e93b52b057c653ee3595e25443cc7adada7560dd1badd058d235b18399e92ed83f1c317128d4d649f735d58dc6a
7
+ data.tar.gz: fad49a4e48eb394e0aa5820349499382a18e825f8524f454d7881d144608980fd5a81351de5be762a2e179dc697cb7c6b0feffa7df057261c3726314d0097655
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- afterpay-ruby (0.1.4)
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.3)
36
+ money (6.13.4)
37
37
  i18n (>= 0.6.4, <= 2)
38
- multipart-post (2.1.0)
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/[USERNAME]/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.
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::Ruby 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).
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).
@@ -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.freeze if config.env == "live"
38
+ config.fetch_remote_config unless config.skip_remote_config
39
+ config
40
40
  end
41
41
 
42
42
  def self.env
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Afterpay
4
- VERSION = "0.1.4".freeze
4
+ VERSION = "0.1.5".freeze
5
5
  end
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
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-05-13 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler