stairs-steps-balanced 0.0.5 → 0.0.6

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: 83f4ae6c89679b0d80a7eb5338c39e94e6ba5aed
4
- data.tar.gz: 486c2e16ccebb3ae44eca9b1efef3514e7a2eb43
3
+ metadata.gz: 4cb97c1bb87f961907c5478c5c835c5bc80faa5e
4
+ data.tar.gz: 79f08843a2d3e7f85cac9266304549c0915fd47b
5
5
  SHA512:
6
- metadata.gz: 9eee379221ec86f76ccb7cb1a9cd228ae30278057352d52c3958ad403099ac74b6dba81428f24fcb20524f89e8475fabc9bb609f9758b8cda78874cb949c8562
7
- data.tar.gz: 15b6c0f06f589b596937ef6c0bfe9e8e2ae71b67410a2e4934002ca14775a9a36e3379eda8ec1012ca7e798b1bc16a93b72446bd5333e87f8d778da4a8ab233d
6
+ metadata.gz: b0a0d584daf8645ae4046deb8a085cebbb61ad8548cfa3d07f9cd71dc0affc22a8f07130c2da446060a8a7c2d69d012143f9e7afcc3acfe16eef29febfcf45df
7
+ data.tar.gz: 1f86d774547149816f508a9e6d1980894632d6ed28ec5af332b5a4914b16dacbac408a51cd2bbe0bedc8743af09137e2e1fbff0bcd6d4729e432246f21592898
@@ -10,12 +10,20 @@ module Stairs
10
10
  def run
11
11
  ::Balanced.configure(api_key.secret)
12
12
 
13
- env "BALANCED_URI", marketplace.uri
14
- env "BALANCED_KEY", api_key.secret
13
+ env marketplace_uri_name, marketplace.uri
14
+ env key_name, api_key.secret
15
15
  end
16
16
 
17
17
  private
18
18
 
19
+ def marketplace_uri_name
20
+ options[:marketplace_uri] || "BALANCED_URI"
21
+ end
22
+
23
+ def key_name
24
+ options[:key] || "BALANCED_KEY"
25
+ end
26
+
19
27
  def api_key
20
28
  @api_key ||= ::Balanced::ApiKey.new.save
21
29
  end
@@ -25,4 +33,4 @@ module Stairs
25
33
  end
26
34
  end
27
35
  end
28
- end
36
+ end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "stairs-steps-balanced"
7
- spec.version = "0.0.5"
7
+ spec.version = "0.0.6"
8
8
  spec.authors = ["patbenatar"]
9
9
  spec.email = ["nick@gophilosophie.com"]
10
10
  spec.description = "Stairs plugin for setting up Balanced Payments"
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.add_development_dependency "bundler", "~> 1.3"
21
21
  spec.add_development_dependency "rake"
22
22
 
23
- spec.add_dependency "stairs", "~> 0.4.0"
23
+ spec.add_dependency "stairs", "~> 0.5.0"
24
24
  spec.add_dependency "balanced", "~> 0.7.0"
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stairs-steps-balanced
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - patbenatar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-02 00:00:00.000000000 Z
11
+ date: 2013-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 0.4.0
47
+ version: 0.5.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.4.0
54
+ version: 0.5.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: balanced
57
57
  requirement: !ruby/object:Gem::Requirement