nimbu-api 0.1.3 → 0.1.4

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: 7fe69fea88b50f988c783136e7c5be19e292f47d
4
- data.tar.gz: ef2bf03366e0a6fe07b83cf5425d57b93786e0ae
3
+ metadata.gz: 6d46ecce9138da70fc38f67968885f09c69fba87
4
+ data.tar.gz: 3a0d1d29f5e9633f40dd563bbc119050199b1731
5
5
  SHA512:
6
- metadata.gz: 4f90a9016cabb405549fd2772d589d41c8d49083bb454ad78884feace8782586e62f3f2b35bd155c55f16c8e925600b919c34c56a05f02b85eb7d0b6d04507a0
7
- data.tar.gz: 3346bb86971830621b67428e2b124c0799e0d0a150c3b6d012b58c4c5e06be2336fa37dfb8cec91d10db5cb4429c0a2dbe7b051c3872d19ade36bcb68350e40e
6
+ metadata.gz: ef4921d54f7b18f9e08cbf1272ef2bfe995c8251bd390ef1871a25c0eced1bae05ed1996ff102943e75cd6ce46bbe6fd67b1d94e6695ef25d7c44e8b5739dedc
7
+ data.tar.gz: 3920ceaa8eb93294690550ad64f486f397a80ecc05ed75fd831e107192eb05b0cd00c893b3dafda2d176cceda34749d452786cea187105af31cb547c3bd4467c
@@ -49,7 +49,7 @@ module Nimbu
49
49
  DEFAULT_SITE = 'https://www.nimbu.io'.freeze
50
50
 
51
51
  # The default SSL configuration
52
- DEFAULT_SSL = {}
52
+ DEFAULT_SSL = { :ca_file => File.expand_path("../../../vendor/cacert.pem", __FILE__) }
53
53
 
54
54
  # The value sent in the http header for 'User-Agent' if none is set
55
55
  DEFAULT_USER_AGENT = "nimbu-api/#{Nimbu::API::VERSION} (#{RUBY_PLATFORM}) ruby/#{RUBY_VERSION}".freeze
@@ -74,7 +74,7 @@ module Nimbu
74
74
  # Returns a Fraday::Connection object
75
75
  #
76
76
  def connection(options={})
77
- conn_options = default_options({ :ssl => { :ca_file => File.expand_path("../../../vendor/cacert.pem", __FILE__) } }.merge(options))
77
+ conn_options = default_options(options)
78
78
  clear_cache unless options.empty?
79
79
  puts "OPTIONS:#{conn_options.inspect}" if ENV['DEBUG']
80
80
 
@@ -1,5 +1,5 @@
1
1
  module Nimbu
2
2
  module API
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimbu-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Dedene