tropo-provisioning 0.0.25 → 0.0.26

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tropo-provisioning (0.0.25)
4
+ tropo-provisioning (0.0.26)
5
5
  activesupport
6
6
  hashie (>= 0.2.1)
7
7
  i18n
data/changelog.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.26
4
+ * Bug fix ( Pull request #7 verify_certificate should be false when set to false)
5
+
3
6
  ## 0.0.25
4
7
  * Optional SSL validation `TropoProvisioning.new('foo', 'bar', {:verify_certificate => false })`
@@ -35,7 +35,7 @@ class TropoProvisioning
35
35
  def initialize(username, password, params={})
36
36
  @base_uri = (params[:base_uri] || "https://api.tropo.com/v1/").sub(/(\/)+$/,'/')
37
37
  proxy = params[:proxy] || nil
38
- @verify_certificate = params[:verify_certificate] || true
38
+ @verify_certificate = params.has_key?(:verify_certificate) ? params[:verify_certificate] : true
39
39
  @tropo_client = TropoClient.new(username, password, @base_uri, { 'Content-Type' => 'application/json' }, proxy, @verify_certificate)
40
40
  user(username)
41
41
  end
@@ -1,5 +1,5 @@
1
1
 
2
2
  class TropoProvisioning
3
3
  # Current gem version
4
- VERSION = "0.0.25"
4
+ VERSION = "0.0.26"
5
5
  end
@@ -639,7 +639,7 @@ describe "TropoProvisioning" do
639
639
 
640
640
  it "should not validate SSL when told to" do
641
641
  tp = TropoProvisioning.new('foo', 'bar', {:verify_certificate => false })
642
- tp.verify_certificate.should == true
642
+ tp.verify_certificate.should == false
643
643
  end
644
644
 
645
645
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tropo-provisioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -204,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
204
204
  version: '0'
205
205
  segments:
206
206
  - 0
207
- hash: 4140171583782304435
207
+ hash: 2809798012060433868
208
208
  required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  none: false
210
210
  requirements:
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  segments:
215
215
  - 0
216
- hash: 4140171583782304435
216
+ hash: 2809798012060433868
217
217
  requirements: []
218
218
  rubyforge_project: tropo-provisioning
219
219
  rubygems_version: 1.8.23