cliskip2 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cliskip2 (0.0.1)
4
+ cliskip2 (0.0.3)
5
5
  faraday_middleware (~> 0.8.7)
6
6
  json (~> 1.7.3)
7
7
  oauth (~> 0.4)
data/cliskip2.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Cliskip2::VERSION
8
8
  s.authors = ["Naoki Maeda"]
9
9
  s.email = ["maeda.na@gmail.com"]
10
- s.homepage = "http://wiki.github.com/maedana/cliskip2"
10
+ s.homepage = "https://github.com/SonicGarden/cliskip2"
11
11
  s.summary = %q{A Ruby wrapper for the SKIP2 REST APIs}
12
12
  s.description = %q{A Ruby wrapper for the SKIP2 REST APIs}
13
13
 
@@ -27,6 +27,9 @@ module Cliskip2
27
27
  # The value sent in the 'User-Agent' header if none is set
28
28
  DEFAULT_USER_AGENT = "Cliskip2 Ruby Gem #{Cliskip2::VERSION}"
29
29
 
30
+ # The proxy server if none is set
31
+ DEFAULT_PROXY = nil
32
+
30
33
  # An array of valid keys in the options hash when configuring a {Twitter::Client}
31
34
  VALID_OPTIONS_KEYS = [
32
35
  :adapter,
@@ -36,6 +39,7 @@ module Cliskip2
36
39
  :endpoint,
37
40
  :xauth_username,
38
41
  :xauth_password,
42
+ :proxy,
39
43
  :user_agent
40
44
  ]
41
45
 
@@ -68,6 +72,7 @@ module Cliskip2
68
72
  self.endpoint = DEFAULT_ENDPOINT
69
73
  self.xauth_username = DEFAULT_XAUTH_USERNAME
70
74
  self.xauth_password = DEFAULT_XAUTH_PASSWORD
75
+ self.proxy = DEFAULT_PROXY
71
76
  self.user_agent = DEFAULT_USER_AGENT
72
77
  self
73
78
  end
@@ -27,7 +27,8 @@ module Cliskip2
27
27
  :consumer_key => consumer.key,
28
28
  :consumer_secret => consumer.secret,
29
29
  :token => access_token.token,
30
- :token_secret => access_token.secret
30
+ :token_secret => access_token.secret,
31
+ :proxy => proxy
31
32
  }
32
33
  @connection ||= Faraday.new(connection_options) do |builder|
33
34
  builder.response :raise_error
@@ -41,7 +42,8 @@ module Cliskip2
41
42
  def consumer
42
43
  default_options = {
43
44
  :site => endpoint,
44
- :access_token_path => '/api/oauth/access_token'
45
+ :access_token_path => '/api/oauth/access_token',
46
+ :proxy => proxy
45
47
  }
46
48
  @consumer ||= ::OAuth::Consumer.new(consumer_key, consumer_secret, default_options)
47
49
  end
@@ -1,3 +1,3 @@
1
1
  module Cliskip2
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cliskip2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Naoki Maeda
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-19 00:00:00 +01:00
18
+ date: 2012-06-20 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -153,7 +153,7 @@ files:
153
153
  - spec/cliskip2_spec.rb
154
154
  - spec/spec_helper.rb
155
155
  has_rdoc: true
156
- homepage: http://wiki.github.com/maedana/cliskip2
156
+ homepage: https://github.com/SonicGarden/cliskip2
157
157
  licenses: []
158
158
 
159
159
  post_install_message: