wealthforge-ruby 1.1.0 → 1.1.1

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
  SHA1:
3
- metadata.gz: 49b96fe67525418cfc8629bc7e52343506af1a0e
4
- data.tar.gz: 7e0d2176f323cf5e49de0977930e3f5ad0e0ccdf
3
+ metadata.gz: c2452b6b4e56ac9d499e475bd59da219bda1facd
4
+ data.tar.gz: e31f990a5358a09b6e272ad17a1f21ba04092437
5
5
  SHA512:
6
- metadata.gz: 2c54a68fab1a47f70de0a384106261ccbba19f76f1f051b80a7bf2e9b72ae6868dffb9ef1afba70f74d44e4d7216909a44f7e607c259da1ff3e5e2f5615443ad
7
- data.tar.gz: 72bf3f4b73f01e2267976bf977d47ab061a556d56a3b1c598069c336915bf214a4f396110286db0e27f423539ba11ddd66978c19ad73eb53b0471d2cd6be9fda
6
+ metadata.gz: 8a81f4b7d3620bcd391995241565b52c1840dbc3abce0be353e78087d0eb632c9809d0700a179f91af2a6fb6b18972937b8b3a6aa0687e024fd1cac82ad10e2d
7
+ data.tar.gz: cbfad38a5a97bf3fb1b4a8e77da92df2192e30a03fd79ede344c247aaae0e28c593620ea2c591f2ce555a88c187e7f75d924217355ec2166b6a9ce71ac07644d
data/README.md CHANGED
@@ -80,7 +80,8 @@ Please refer to the official WealthForge API [documentation](https://api.wealthf
80
80
  #### Offering
81
81
 
82
82
  WealthForge::Offering.create params
83
-
83
+ WealthForge::Offering.all
84
+ WealthForge::Offering.get id
84
85
 
85
86
 
86
87
  ## Contributing
@@ -80,10 +80,14 @@ class WealthForge::Connection
80
80
  ssl_options = {
81
81
  :version => :TLSv1,
82
82
  :client_cert => OpenSSL::X509::Certificate.new(wf_cert),
83
- :client_key => OpenSSL::PKey::RSA.new(wf_key),
84
- :ca_path => '/usr/lib/ssl/certs'
83
+ :client_key => OpenSSL::PKey::RSA.new(wf_key)
85
84
  }
86
- ssl_options
85
+ if WealthForge.configuration.environment.eql? 'production'
86
+ ssl_options[:ca_file] = ENV['CA_FILE']
87
+ else
88
+ ssl_options[:ca_path] = '/usr/lib/ssl/certs'
89
+ end
90
+ ssl_options
87
91
  end
88
92
 
89
93
  end
@@ -1,3 +1,3 @@
1
1
  module WealthForge
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wealthforge-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dino Simone
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-13 00:00:00.000000000 Z
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday