monetra 0.1.13 → 0.1.14

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.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'psych'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
  YAML::ENGINE.yamler = 'syck'
6
- Echoe.new('monetra', '0.1.13') do |p|
6
+ Echoe.new('monetra', '0.1.14') do |p|
7
7
  p.description = "A gem that uses the Monetra API to perform actions"
8
8
  p.url = "http://github.com/winelibrary/monetra"
9
9
  p.author = ["Dan Ahern", "John Kassimatis", "Brian Woolley"]
@@ -8,14 +8,7 @@ module Monetra
8
8
  when "Hash"
9
9
  options_or_path_to.stringify_keys!
10
10
  when "NilClass"
11
- case
12
- when defined?(Rails)
13
- YAML::load_file(File.join(Rails.root, 'config', 'monetra.yml'))[Rails.env].stringify_keys!
14
- when ENV['RACK_ENV']
15
- YAML::load_file(File.join('.', 'config', 'monetra.yml'))[ENV['RACK_ENV']].stringify_keys!
16
- when ENV['RAILS_ENV']
17
- YAML::load_file(File.join('.', 'config', 'monetra.yml'))[ENV['RAILS_ENV']].stringify_keys!
18
- end
11
+ YAML::load_file(File.join(Rails.root, 'config', 'monetra.yml'))[Rails.env].stringify_keys! if defined?(Rails)
19
12
  end
20
13
  end
21
14
 
@@ -7,11 +7,13 @@ module Monetra
7
7
 
8
8
  def post(data)
9
9
  base.use_ssl = Monetra::Configuration.use_ssl?
10
- if RUBY_VERSION.to_f == 1.9
11
- base.verify_mode = OpenSSL::SSL::VERIFY_PEER
12
- base.ca_file = '/usr/lib/ssl/certs/ca-certificates.crt' if File.exists?('/usr/lib/ssl/certs/ca-certificates.crt') # Ubuntu
13
- base.ca_path = '/etc/ssl/certs' if File.exists?('/etc/ssl/certs') # Ubuntu
14
- base.ca_file = '/opt/local/share/curl/curl-ca-bundle.crt' if File.exists?('/opt/local/share/curl/curl-ca-bundle.crt') # Mac OS X
10
+ if Monetra::Configuration.use_ssl?
11
+ if RUBY_VERSION.to_f == 1.9
12
+ # base.verify_mode = OpenSSL::SSL::VERIFY_PEER
13
+ base.ca_file = '/usr/lib/ssl/certs/ca-certificates.crt' if File.exists?('/usr/lib/ssl/certs/ca-certificates.crt') # Ubuntu
14
+ base.ca_path = '/etc/ssl/certs' if File.exists?('/etc/ssl/certs') # Ubuntu
15
+ base.ca_file = '/opt/local/share/curl/curl-ca-bundle.crt' if File.exists?('/opt/local/share/curl/curl-ca-bundle.crt') # Mac OS X
16
+ end
15
17
  end
16
18
  request = base.post("/", data)
17
19
  request.body
data/monetra.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "monetra"
5
- s.version = "0.1.13"
5
+ s.version = "0.1.14"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Dan Ahern, John Kassimatis, Brian Woolley"]
9
- s.date = "2012-01-31"
9
+ s.date = "2012-02-01"
10
10
  s.description = "A gem that uses the Monetra API to perform actions"
11
11
  s.email = ["gems@danahern.com", "yonnage@gmail.com", "bwoolley@gmail.com"]
12
12
  s.extra_rdoc_files = ["lib/monetra.rb", "lib/monetra/configuration.rb", "lib/monetra/connection.rb", "lib/monetra/parse.rb", "lib/monetra/transaction.rb", "lib/monetra/transaction/admin.rb", "lib/monetra/transaction/engine.rb", "lib/monetra/transaction/token.rb", "lib/monetra/transaction/user.rb"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: monetra
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.13
5
+ version: 0.1.14
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dan Ahern, John Kassimatis, Brian Woolley
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-01-31 00:00:00 Z
13
+ date: 2012-02-01 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: A gem that uses the Monetra API to perform actions