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 +1 -1
- data/cliskip2.gemspec +1 -1
- data/lib/cliskip2/config.rb +5 -0
- data/lib/cliskip2/connection.rb +4 -2
- data/lib/cliskip2/version.rb +1 -1
- metadata +5 -5
data/Gemfile.lock
CHANGED
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 = "
|
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
|
|
data/lib/cliskip2/config.rb
CHANGED
@@ -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
|
data/lib/cliskip2/connection.rb
CHANGED
@@ -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
|
data/lib/cliskip2/version.rb
CHANGED
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
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:
|
156
|
+
homepage: https://github.com/SonicGarden/cliskip2
|
157
157
|
licenses: []
|
158
158
|
|
159
159
|
post_install_message:
|