gateway_signup 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gateway_signup'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.date = '2014-01-29'
5
5
  s.summary = "Spreedly Gateway Registration Field Lookup"
6
6
  s.description = "Small library for reading a config and returning the fields required to register a specific gateway with Spreedly"
@@ -11,4 +11,4 @@ Gem::Specification.new do |s|
11
11
  s.homepage = "https://github.com/atpay/gateway_signup"
12
12
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
13
13
  s.add_runtime_dependency 'sqlite3'
14
- end
14
+ end
@@ -10,7 +10,6 @@ module GatewaySignup
10
10
 
11
11
  def fields_for(gateway)
12
12
  @list = @gw_data[gateway.to_sym][:fields]
13
- @list.each { |x| x << x[1].split("_").map(&:capitalize).join(" ") }
14
13
  @list
15
14
  end
16
15
 
@@ -35,6 +34,7 @@ module GatewaySignup
35
34
  @gw_data.each do |k, v|
36
35
  @list[k]["display"] = v[:display_name]
37
36
  @list[k]["countries"] = v[:countries]
37
+ @list[k]["notes"] = v[:notes]
38
38
  end
39
39
  @list.to_json.html_safe
40
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gateway_signup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: