streamio 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.6 2012-12-03
2
+
3
+ * Add configuration option for skipping ssl verification (might be useful for newbies on Windows getting OpenSSL errors).
4
+
1
5
  # 1.0.4 2012-12-03
2
6
 
3
7
  * Add proper handling of authorization by raising Streamio::Errors::Unauthorized when using wrong username/password.
data/README.md CHANGED
@@ -26,6 +26,7 @@ Configure it.
26
26
  Streamio.configure do |config|
27
27
  config.username = "your_account_name"
28
28
  config.password = "your_api_private_key"
29
+ # config.skip_ssl_verification = true # can be used if you can't escape OpenSSL::SSL::SSLError
29
30
  end
30
31
  ```
31
32
 
data/lib/streamio.rb CHANGED
@@ -21,6 +21,7 @@ module Streamio
21
21
  attr_accessor :username
22
22
  attr_accessor :password
23
23
  attr_accessor :use_ssl
24
+ attr_accessor :skip_ssl_verification
24
25
  attr_accessor :host
25
26
 
26
27
  # The idiomatic configure block for the Streamio gem. Basically a shortcut
@@ -9,6 +9,7 @@ module Streamio
9
9
  uri = URI.parse(Streamio.protocol+Streamio.host)
10
10
  @net = Net::HTTP.new(uri.host, uri.port)
11
11
  @net.use_ssl = Streamio.use_ssl
12
+ @net.verify_mode = OpenSSL::SSL::VERIFY_NONE if Streamio.skip_ssl_verification
12
13
  end
13
14
 
14
15
  def get(path, parameters = {})
@@ -1,3 +1,3 @@
1
1
  module Streamio
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  segments:
146
146
  - 0
147
- hash: 3096267224614195611
147
+ hash: 1565331807691931760
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  segments:
155
155
  - 0
156
- hash: 3096267224614195611
156
+ hash: 1565331807691931760
157
157
  requirements: []
158
158
  rubyforge_project:
159
159
  rubygems_version: 1.8.24