tumblr_client 0.6.1 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tumblr/connection.rb +2 -2
- data/lib/tumblr/request.rb +2 -2
- data/tumblr.gemspec +2 -2
- metadata +100 -106
data/lib/tumblr/connection.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'faraday'
|
2
|
-
require '
|
2
|
+
require 'faraday_middleware'
|
3
3
|
require 'tumblr/request/oauth'
|
4
4
|
|
5
5
|
module Tumblr
|
@@ -13,9 +13,9 @@ module Tumblr
|
|
13
13
|
:url => "http://api.tumblr.com/"
|
14
14
|
}
|
15
15
|
Faraday.new("http://api.tumblr.com/", default_options.merge(options)) do |builder|
|
16
|
-
builder.use FaradayStack::ResponseJSON, content_type: "application/json"
|
17
16
|
builder.use Tumblr::Request::TumblrOAuth, Tumblr::credentials if not Tumblr::credentials.empty?
|
18
17
|
builder.use Faraday::Request::UrlEncoded
|
18
|
+
builder.use FaradayMiddleware::ParseJson, :content_type => "application/json"
|
19
19
|
builder.use Faraday::Adapter::NetHttp
|
20
20
|
end
|
21
21
|
end
|
data/lib/tumblr/request.rb
CHANGED
@@ -10,7 +10,7 @@ module Tumblr
|
|
10
10
|
req.params = params
|
11
11
|
end
|
12
12
|
#check for errors and encapsulate
|
13
|
-
|
13
|
+
response.body['response']
|
14
14
|
end
|
15
15
|
|
16
16
|
#Performs post request
|
@@ -20,7 +20,7 @@ module Tumblr
|
|
20
20
|
req.body = params unless params.empty?
|
21
21
|
end
|
22
22
|
#Check for errors and encapsulate
|
23
|
-
|
23
|
+
response.body['response']
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
data/tumblr.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.add_dependency 'faraday', '~> 0.7'
|
5
|
-
gem.add_dependency '
|
5
|
+
gem.add_dependency 'faraday_middleware'
|
6
6
|
gem.add_dependency 'json'
|
7
7
|
gem.add_development_dependency 'rake'
|
8
8
|
gem.add_development_dependency 'rspec'
|
@@ -18,5 +18,5 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
|
19
19
|
gem.summary = %q{Tumblr API wrapper}
|
20
20
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
-
gem.version = "0.6.
|
21
|
+
gem.version = "0.6.5"
|
22
22
|
end
|
metadata
CHANGED
@@ -1,120 +1,105 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tumblr_client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 6
|
8
|
+
- 5
|
9
|
+
version: 0.6.5
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- John Bunting
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
|
17
|
+
date: 2012-04-16 00:00:00 -04:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: faraday
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0.7'
|
22
|
-
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
requirements:
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
27
25
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 7
|
30
|
+
version: "0.7"
|
38
31
|
type: :runtime
|
32
|
+
version_requirements: *id001
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: faraday_middleware
|
39
35
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
name: json
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 0
|
42
|
+
version: "0"
|
54
43
|
type: :runtime
|
44
|
+
version_requirements: *id002
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: json
|
55
47
|
prerelease: false
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
48
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
segments:
|
53
|
+
- 0
|
54
|
+
version: "0"
|
55
|
+
type: :runtime
|
56
|
+
version_requirements: *id003
|
57
|
+
- !ruby/object:Gem::Dependency
|
63
58
|
name: rake
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :development
|
71
59
|
prerelease: false
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
name: rspec
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
60
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
segments:
|
65
|
+
- 0
|
66
|
+
version: "0"
|
86
67
|
type: :development
|
68
|
+
version_requirements: *id004
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
87
71
|
prerelease: false
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
name: webmock
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
72
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
segments:
|
77
|
+
- 0
|
78
|
+
version: "0"
|
102
79
|
type: :development
|
80
|
+
version_requirements: *id005
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: webmock
|
103
83
|
prerelease: false
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
84
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
|
+
type: :development
|
92
|
+
version_requirements: *id006
|
110
93
|
description: A Ruby wrapper for the Tumblr v2 API
|
111
|
-
email:
|
94
|
+
email:
|
112
95
|
- codingjester@gmail.com
|
113
|
-
executables:
|
96
|
+
executables:
|
114
97
|
- tumblr
|
115
98
|
extensions: []
|
99
|
+
|
116
100
|
extra_rdoc_files: []
|
117
|
-
|
101
|
+
|
102
|
+
files:
|
118
103
|
- Gemfile
|
119
104
|
- LICENSE.md
|
120
105
|
- README.md
|
@@ -131,28 +116,37 @@ files:
|
|
131
116
|
- lib/tumblr/user.rb
|
132
117
|
- lib/tumblr_client.rb
|
133
118
|
- tumblr.gemspec
|
119
|
+
has_rdoc: true
|
134
120
|
homepage: http://github.com/codingjester/tumblr
|
135
121
|
licenses: []
|
122
|
+
|
136
123
|
post_install_message:
|
137
124
|
rdoc_options: []
|
138
|
-
|
125
|
+
|
126
|
+
require_paths:
|
139
127
|
- lib
|
140
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
requirements:
|
149
|
-
- -
|
150
|
-
- !ruby/object:Gem::Version
|
128
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
version: "0"
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
segments:
|
140
|
+
- 1
|
141
|
+
- 3
|
142
|
+
- 6
|
151
143
|
version: 1.3.6
|
152
144
|
requirements: []
|
145
|
+
|
153
146
|
rubyforge_project:
|
154
|
-
rubygems_version: 1.
|
147
|
+
rubygems_version: 1.3.6
|
155
148
|
signing_key:
|
156
149
|
specification_version: 3
|
157
150
|
summary: Tumblr API wrapper
|
158
151
|
test_files: []
|
152
|
+
|