rest-core 0.4.0 → 0.7.0
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/.travis.yml +2 -7
- data/CHANGES.md +13 -2
- data/Gemfile +0 -3
- data/README.md +30 -34
- data/Rakefile +5 -46
- data/lib/rest-core.rb +0 -6
- data/lib/rest-core/version.rb +1 -1
- data/rest-core.gemspec +5 -83
- metadata +11 -87
- data/example/rails2/Gemfile +0 -21
- data/example/rails2/README +0 -4
- data/example/rails2/Rakefile +0 -11
- data/example/rails2/app/controllers/application_controller.rb +0 -128
- data/example/rails2/app/views/application/helper.html.erb +0 -2
- data/example/rails2/config/boot.rb +0 -130
- data/example/rails2/config/environment.rb +0 -15
- data/example/rails2/config/environments/development.rb +0 -17
- data/example/rails2/config/environments/production.rb +0 -28
- data/example/rails2/config/environments/test.rb +0 -30
- data/example/rails2/config/initializers/cookie_verification_secret.rb +0 -7
- data/example/rails2/config/initializers/new_rails_defaults.rb +0 -21
- data/example/rails2/config/initializers/session_store.rb +0 -15
- data/example/rails2/config/preinitializer.rb +0 -23
- data/example/rails2/config/rest-core.yaml +0 -16
- data/example/rails2/config/routes.rb +0 -43
- data/example/rails2/log +0 -0
- data/example/rails2/test/functional/application_controller_test.rb +0 -197
- data/example/rails2/test/test_helper.rb +0 -18
- data/example/rails2/test/unit/rails_util_test.rb +0 -44
- data/example/rails3/Gemfile +0 -20
- data/example/rails3/README +0 -4
- data/example/rails3/Rakefile +0 -7
- data/example/rails3/app/controllers/application_controller.rb +0 -128
- data/example/rails3/app/views/application/helper.html.erb +0 -2
- data/example/rails3/config.ru +0 -4
- data/example/rails3/config/application.rb +0 -23
- data/example/rails3/config/environment.rb +0 -5
- data/example/rails3/config/environments/development.rb +0 -26
- data/example/rails3/config/environments/production.rb +0 -49
- data/example/rails3/config/environments/test.rb +0 -30
- data/example/rails3/config/initializers/secret_token.rb +0 -7
- data/example/rails3/config/initializers/session_store.rb +0 -8
- data/example/rails3/config/rest-core.yaml +0 -16
- data/example/rails3/config/routes.rb +0 -5
- data/example/rails3/test/functional/application_controller_test.rb +0 -197
- data/example/rails3/test/test_helper.rb +0 -18
- data/example/rails3/test/unit/rails_util_test.rb +0 -44
- data/example/sinatra/config.ru +0 -16
- data/lib/rest-core/client/facebook.rb +0 -251
- data/lib/rest-core/client/facebook/rails_util.rb +0 -333
- data/lib/rest-core/client/flurry.rb +0 -96
- data/lib/rest-core/client/flurry/rails_util.rb +0 -74
- data/lib/rest-core/client/github.rb +0 -18
- data/lib/rest-core/client/linkedin.rb +0 -59
- data/lib/rest-core/client/mixi.rb +0 -47
- data/lib/rest-core/client/twitter.rb +0 -101
- data/test/client/facebook/config/rest-core.yaml +0 -8
- data/test/client/facebook/test_api.rb +0 -97
- data/test/client/facebook/test_cache.rb +0 -58
- data/test/client/facebook/test_default.rb +0 -23
- data/test/client/facebook/test_error.rb +0 -65
- data/test/client/facebook/test_handler.rb +0 -84
- data/test/client/facebook/test_load_config.rb +0 -39
- data/test/client/facebook/test_misc.rb +0 -72
- data/test/client/facebook/test_oauth.rb +0 -38
- data/test/client/facebook/test_old.rb +0 -114
- data/test/client/facebook/test_page.rb +0 -106
- data/test/client/facebook/test_parse.rb +0 -128
- data/test/client/facebook/test_serialize.rb +0 -43
- data/test/client/facebook/test_timeout.rb +0 -22
- data/test/client/flurry/test_metrics.rb +0 -83
- data/test/client/twitter/test_api.rb +0 -37
data/.travis.yml
CHANGED
@@ -1,13 +1,8 @@
|
|
1
|
-
script: 'git submodule update --init; bundle exec rake test
|
2
|
-
|
3
|
-
env:
|
4
|
-
- 'RESTCORE=rest-core'
|
5
|
-
- 'RESTCORE=rails2'
|
6
|
-
- 'RESTCORE=rails3'
|
1
|
+
script: 'git submodule update --init; bundle exec rake test'
|
7
2
|
|
8
3
|
rvm:
|
9
4
|
- 1.8.7
|
10
5
|
- 1.9.2
|
11
6
|
- 1.9.3
|
12
|
-
- rbx
|
7
|
+
- rbx
|
13
8
|
- jruby
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
|
-
#
|
1
|
+
# CHANGES
|
2
2
|
|
3
|
-
## rest-core 0.
|
3
|
+
## rest-core 0.7.0 -- 2011-10-08
|
4
|
+
|
5
|
+
### IMPORTANT CHANGE!
|
6
|
+
|
7
|
+
From now on, prebuilt clients such as `RC::Facebook`, `RC::Twitter` and
|
8
|
+
others are moved to [rest-more][]. Since bundler didn't like cyclic
|
9
|
+
dependency, so rest-core is not depending on rest-more. Please install
|
10
|
+
_rest-more_ if you want to use them.
|
11
|
+
|
12
|
+
[rest-more]: https://github.com/cardinalblue/rest-more
|
13
|
+
|
14
|
+
## rest-core 0.4.0 -- 2011-09-26
|
4
15
|
|
5
16
|
### Incompatible changes:
|
6
17
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -11,16 +11,17 @@ by Cardinal Blue <http://cardinalblue.com>
|
|
11
11
|
|
12
12
|
## DESCRIPTION:
|
13
13
|
|
14
|
-
Modular Ruby clients for REST APIs
|
14
|
+
Modular Ruby clients interface for REST APIs
|
15
15
|
|
16
16
|
There has been an explosion in the number of REST APIs available today.
|
17
17
|
To address the need for a way to access these APIs easily and elegantly,
|
18
18
|
we have developed [rest-core][], which consists of composable middleware
|
19
19
|
that allows you to build a REST client for any REST API. Or in the case of
|
20
20
|
common APIs such as Facebook, Github, and Twitter, you can simply use the
|
21
|
-
|
21
|
+
dedicated clients provided by [rest-more][].
|
22
22
|
|
23
23
|
[rest-core]: http://github.com/cardinalblue/rest-core
|
24
|
+
[rest-more]: http://github.com/cardinalblue/rest-more
|
24
25
|
|
25
26
|
## REQUIREMENTS:
|
26
27
|
|
@@ -36,26 +37,12 @@ Or if you want development version, put this in Gemfile:
|
|
36
37
|
gem 'rest-core', :git => 'git://github.com/cardinalblue/rest-core.git',
|
37
38
|
:submodules => true
|
38
39
|
|
39
|
-
|
40
|
+
If you just want to use Facebook or Twitter clients, please take a look at
|
41
|
+
[rest-more][] which has a lot of clients built with rest-core.
|
40
42
|
|
41
|
-
|
42
|
-
|
43
|
-
RestCore::Twitter.new.statuses('_cardinalblue') # get user tweets
|
44
|
-
RestCore::Github.new.get('users/cardinalblue') # get user info
|
45
|
-
|
46
|
-
linkedin = RestCore::Linkedin.new(:consumer_key => '...',
|
47
|
-
:consumer_secret => '...')
|
48
|
-
linkedin.authorize_url! # copy and paste the URL in browser to authorize
|
49
|
-
linkedin.authorize!('..') # paste your code from browser
|
50
|
-
linkedin.me # get current user info
|
51
|
-
|
52
|
-
RestCore::Facebook.new.get('4') # get user info
|
43
|
+
[rest-more]: http://github.com/cardinalblue/rest-more
|
53
44
|
|
54
|
-
|
55
|
-
|
56
|
-
[example]: https://github.com/cardinalblue/rest-core/tree/master/example
|
57
|
-
|
58
|
-
## Build Your Own Clients Example:
|
45
|
+
## Build Your Own Clients:
|
59
46
|
|
60
47
|
require 'rest-core'
|
61
48
|
|
@@ -76,11 +63,14 @@ See [example][] for more complex examples.
|
|
76
63
|
client.get('cardinalblue') # cache miss
|
77
64
|
client.get('cardinalblue') # cache hit
|
78
65
|
|
79
|
-
|
66
|
+
Please see [rest-more][] for more complex examples,
|
67
|
+
and [slides][] from [rubyconf.tw/2011][rubyconf.tw] for concepts.
|
80
68
|
|
81
|
-
[
|
69
|
+
[rest-more]: https://github.com/cardinalblue/rest-more
|
70
|
+
[rubyconf.tw]: http://rubyconf.tw/2011/#6
|
71
|
+
[slides]: http://www.godfat.org/slide/2011-08-27-rest-core.html
|
82
72
|
|
83
|
-
## A simple interactive shell with [rib][]
|
73
|
+
## A simple interactive shell with [rib][]:
|
84
74
|
|
85
75
|
You need to install [rib][] in order to try this interactive shell:
|
86
76
|
|
@@ -95,6 +85,12 @@ Which is using `RestCore::Universal` for accessing arbitrary websites.
|
|
95
85
|
|
96
86
|
[rib]: https://github.com/godfat/rib
|
97
87
|
|
88
|
+
## rest-core users:
|
89
|
+
|
90
|
+
* [topcoder](https://github.com/miaout17/topcoder)
|
91
|
+
* [s2sync](https://github.com/brucehsu/s2sync)
|
92
|
+
* [s2sync_web](https://github.com/brucehsu/s2sync_web)
|
93
|
+
|
98
94
|
## GLOSSARY:
|
99
95
|
|
100
96
|
* A _client_ is a class which can new connections to make requests.
|
@@ -180,18 +176,18 @@ Which is using `RestCore::Universal` for accessing arbitrary websites.
|
|
180
176
|
|
181
177
|
## LICENSE:
|
182
178
|
|
183
|
-
|
179
|
+
Apache License 2.0
|
184
180
|
|
185
|
-
|
181
|
+
Copyright (c) 2011, Cardinal Blue
|
186
182
|
|
187
|
-
|
188
|
-
|
189
|
-
|
183
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
184
|
+
you may not use this file except in compliance with the License.
|
185
|
+
You may obtain a copy of the License at
|
190
186
|
|
191
|
-
|
187
|
+
<http://www.apache.org/licenses/LICENSE-2.0>
|
192
188
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
189
|
+
Unless required by applicable law or agreed to in writing, software
|
190
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
191
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
192
|
+
See the License for the specific language governing permissions and
|
193
|
+
limitations under the License.
|
data/Rakefile
CHANGED
@@ -9,56 +9,15 @@ desc 'Generate gemspec'
|
|
9
9
|
task 'gem:spec' do
|
10
10
|
Gemgem.spec = Gemgem.create do |s|
|
11
11
|
require 'rest-core/version'
|
12
|
-
s.name
|
13
|
-
s.version
|
14
|
-
s.homepage
|
15
|
-
# s.executables = [s.name]
|
12
|
+
s.name = 'rest-core'
|
13
|
+
s.version = RestCore::VERSION
|
14
|
+
s.homepage = 'https://github.com/cardinalblue/rest-core'
|
16
15
|
|
17
16
|
%w[rest-client].each{ |g| s.add_runtime_dependency(g) }
|
18
17
|
|
19
|
-
s.authors
|
20
|
-
s.email
|
18
|
+
s.authors = ['Cardinal Blue', 'Lin Jen-Shin (godfat)']
|
19
|
+
s.email = ['dev (XD) cardinalblue.com']
|
21
20
|
end
|
22
21
|
|
23
22
|
Gemgem.write
|
24
23
|
end
|
25
|
-
|
26
|
-
module Gemgem
|
27
|
-
module_function
|
28
|
-
def test_rails *rails
|
29
|
-
rails.each{ |framework|
|
30
|
-
opts = Rake.application.options
|
31
|
-
args = (opts.singleton_methods - [:rakelib, 'rakelib']).map{ |arg|
|
32
|
-
if arg.to_s !~ /=$/ && opts.send(arg)
|
33
|
-
"--#{arg}"
|
34
|
-
else
|
35
|
-
''
|
36
|
-
end
|
37
|
-
}.join(' ')
|
38
|
-
Rake.sh "cd example/#{framework}; #{Gem.ruby} -S rake test #{args}"
|
39
|
-
}
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
desc 'Run example tests'
|
44
|
-
task 'test:example' do
|
45
|
-
Gemgem.test_rails('rails3', 'rails2')
|
46
|
-
end
|
47
|
-
|
48
|
-
desc 'Run all tests'
|
49
|
-
task 'test:all' => ['test', 'test:example']
|
50
|
-
|
51
|
-
desc 'Run different json test'
|
52
|
-
task 'test:json' do
|
53
|
-
%w[yajl json].each{ |json|
|
54
|
-
Rake.sh "#{Gem.ruby} -S rake -r #{json} test"
|
55
|
-
}
|
56
|
-
end
|
57
|
-
|
58
|
-
task 'test:travis' do
|
59
|
-
case ENV['RESTCORE']
|
60
|
-
when 'rails3'; Gemgem.test_rails('rails3')
|
61
|
-
when 'rails2'; Gemgem.test_rails('rails2')
|
62
|
-
else ; Rake::Task['test'].invoke
|
63
|
-
end
|
64
|
-
end
|
data/lib/rest-core.rb
CHANGED
@@ -53,13 +53,7 @@ module RestCore
|
|
53
53
|
|
54
54
|
# clients
|
55
55
|
autoload :Simple , 'rest-core/client/simple'
|
56
|
-
autoload :Github , 'rest-core/client/github'
|
57
|
-
autoload :Twitter , 'rest-core/client/twitter'
|
58
|
-
autoload :Linkedin , 'rest-core/client/linkedin'
|
59
|
-
autoload :Facebook , 'rest-core/client/facebook'
|
60
|
-
autoload :Mixi , 'rest-core/client/mixi'
|
61
56
|
autoload :Universal , 'rest-core/client/universal'
|
62
|
-
autoload :Flurry , 'rest-core/client/flurry'
|
63
57
|
end
|
64
58
|
|
65
59
|
RC = RestCore unless Object.const_defined?(:RC)
|
data/lib/rest-core/version.rb
CHANGED
data/rest-core.gemspec
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "rest-core"
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.7.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = [
|
9
9
|
"Cardinal Blue",
|
10
10
|
"Lin Jen-Shin (godfat)"]
|
11
|
-
s.date = "2011-
|
12
|
-
s.description = "Modular Ruby clients for REST APIs\n\nThere has been an explosion in the number of REST APIs available today.\nTo address the need for a way to access these APIs easily and elegantly,\nwe have developed [rest-core][], which consists of composable middleware\nthat allows you to build a REST client for any REST API. Or in the case of\ncommon APIs such as Facebook, Github, and Twitter, you can simply use the\
|
11
|
+
s.date = "2011-10-08"
|
12
|
+
s.description = "Modular Ruby clients interface for REST APIs\n\nThere has been an explosion in the number of REST APIs available today.\nTo address the need for a way to access these APIs easily and elegantly,\nwe have developed [rest-core][], which consists of composable middleware\nthat allows you to build a REST client for any REST API. Or in the case of\ncommon APIs such as Facebook, Github, and Twitter, you can simply use the\ndedicated clients provided by [rest-more][].\n\n[rest-core]: http://github.com/cardinalblue/rest-core\n[rest-more]: http://github.com/cardinalblue/rest-more"
|
13
13
|
s.email = ["dev (XD) cardinalblue.com"]
|
14
14
|
s.executables = ["rib-rest-core"]
|
15
15
|
s.files = [
|
@@ -28,60 +28,13 @@ Gem::Specification.new do |s|
|
|
28
28
|
"example/facebook.rb",
|
29
29
|
"example/github.rb",
|
30
30
|
"example/linkedin.rb",
|
31
|
-
"example/rails2/Gemfile",
|
32
|
-
"example/rails2/README",
|
33
|
-
"example/rails2/Rakefile",
|
34
|
-
"example/rails2/app/controllers/application_controller.rb",
|
35
|
-
"example/rails2/app/views/application/helper.html.erb",
|
36
|
-
"example/rails2/config/boot.rb",
|
37
|
-
"example/rails2/config/environment.rb",
|
38
|
-
"example/rails2/config/environments/development.rb",
|
39
|
-
"example/rails2/config/environments/production.rb",
|
40
|
-
"example/rails2/config/environments/test.rb",
|
41
|
-
"example/rails2/config/initializers/cookie_verification_secret.rb",
|
42
|
-
"example/rails2/config/initializers/new_rails_defaults.rb",
|
43
|
-
"example/rails2/config/initializers/session_store.rb",
|
44
|
-
"example/rails2/config/preinitializer.rb",
|
45
|
-
"example/rails2/config/rest-core.yaml",
|
46
|
-
"example/rails2/config/routes.rb",
|
47
|
-
"example/rails2/log",
|
48
|
-
"example/rails2/test/functional/application_controller_test.rb",
|
49
|
-
"example/rails2/test/test_helper.rb",
|
50
|
-
"example/rails2/test/unit/rails_util_test.rb",
|
51
|
-
"example/rails3/Gemfile",
|
52
|
-
"example/rails3/README",
|
53
|
-
"example/rails3/Rakefile",
|
54
|
-
"example/rails3/app/controllers/application_controller.rb",
|
55
|
-
"example/rails3/app/views/application/helper.html.erb",
|
56
|
-
"example/rails3/config.ru",
|
57
|
-
"example/rails3/config/application.rb",
|
58
|
-
"example/rails3/config/environment.rb",
|
59
|
-
"example/rails3/config/environments/development.rb",
|
60
|
-
"example/rails3/config/environments/production.rb",
|
61
|
-
"example/rails3/config/environments/test.rb",
|
62
|
-
"example/rails3/config/initializers/secret_token.rb",
|
63
|
-
"example/rails3/config/initializers/session_store.rb",
|
64
|
-
"example/rails3/config/rest-core.yaml",
|
65
|
-
"example/rails3/config/routes.rb",
|
66
|
-
"example/rails3/test/functional/application_controller_test.rb",
|
67
|
-
"example/rails3/test/test_helper.rb",
|
68
|
-
"example/rails3/test/unit/rails_util_test.rb",
|
69
|
-
"example/sinatra/config.ru",
|
70
31
|
"example/twitter.rb",
|
71
32
|
"lib/rest-core.rb",
|
72
33
|
"lib/rest-core/app/dry.rb",
|
73
34
|
"lib/rest-core/app/rest-client.rb",
|
74
35
|
"lib/rest-core/builder.rb",
|
75
36
|
"lib/rest-core/client.rb",
|
76
|
-
"lib/rest-core/client/facebook.rb",
|
77
|
-
"lib/rest-core/client/facebook/rails_util.rb",
|
78
|
-
"lib/rest-core/client/flurry.rb",
|
79
|
-
"lib/rest-core/client/flurry/rails_util.rb",
|
80
|
-
"lib/rest-core/client/github.rb",
|
81
|
-
"lib/rest-core/client/linkedin.rb",
|
82
|
-
"lib/rest-core/client/mixi.rb",
|
83
37
|
"lib/rest-core/client/simple.rb",
|
84
|
-
"lib/rest-core/client/twitter.rb",
|
85
38
|
"lib/rest-core/client/universal.rb",
|
86
39
|
"lib/rest-core/client_oauth1.rb",
|
87
40
|
"lib/rest-core/error.rb",
|
@@ -115,46 +68,15 @@ Gem::Specification.new do |s|
|
|
115
68
|
"rest-core.gemspec",
|
116
69
|
"task/.gitignore",
|
117
70
|
"task/gemgem.rb",
|
118
|
-
"test/client/facebook/config/rest-core.yaml",
|
119
|
-
"test/client/facebook/test_api.rb",
|
120
|
-
"test/client/facebook/test_cache.rb",
|
121
|
-
"test/client/facebook/test_default.rb",
|
122
|
-
"test/client/facebook/test_error.rb",
|
123
|
-
"test/client/facebook/test_handler.rb",
|
124
|
-
"test/client/facebook/test_load_config.rb",
|
125
|
-
"test/client/facebook/test_misc.rb",
|
126
|
-
"test/client/facebook/test_oauth.rb",
|
127
|
-
"test/client/facebook/test_old.rb",
|
128
|
-
"test/client/facebook/test_page.rb",
|
129
|
-
"test/client/facebook/test_parse.rb",
|
130
|
-
"test/client/facebook/test_serialize.rb",
|
131
|
-
"test/client/facebook/test_timeout.rb",
|
132
|
-
"test/client/flurry/test_metrics.rb",
|
133
|
-
"test/client/twitter/test_api.rb",
|
134
71
|
"test/test_builder.rb",
|
135
72
|
"test/test_client.rb",
|
136
73
|
"test/test_oauth1_header.rb",
|
137
74
|
"test/test_wrapper.rb"]
|
138
75
|
s.homepage = "https://github.com/cardinalblue/rest-core"
|
139
76
|
s.require_paths = ["lib"]
|
140
|
-
s.rubygems_version = "1.8.
|
141
|
-
s.summary = "Modular Ruby clients for REST APIs"
|
77
|
+
s.rubygems_version = "1.8.11"
|
78
|
+
s.summary = "Modular Ruby clients interface for REST APIs"
|
142
79
|
s.test_files = [
|
143
|
-
"test/client/facebook/test_api.rb",
|
144
|
-
"test/client/facebook/test_cache.rb",
|
145
|
-
"test/client/facebook/test_default.rb",
|
146
|
-
"test/client/facebook/test_error.rb",
|
147
|
-
"test/client/facebook/test_handler.rb",
|
148
|
-
"test/client/facebook/test_load_config.rb",
|
149
|
-
"test/client/facebook/test_misc.rb",
|
150
|
-
"test/client/facebook/test_oauth.rb",
|
151
|
-
"test/client/facebook/test_old.rb",
|
152
|
-
"test/client/facebook/test_page.rb",
|
153
|
-
"test/client/facebook/test_parse.rb",
|
154
|
-
"test/client/facebook/test_serialize.rb",
|
155
|
-
"test/client/facebook/test_timeout.rb",
|
156
|
-
"test/client/flurry/test_metrics.rb",
|
157
|
-
"test/client/twitter/test_api.rb",
|
158
80
|
"test/test_builder.rb",
|
159
81
|
"test/test_client.rb",
|
160
82
|
"test/test_oauth1_header.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-10-08 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
17
|
-
requirement: &
|
17
|
+
requirement: &2156421740 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,8 +22,8 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
26
|
-
description: ! 'Modular Ruby clients for REST APIs
|
25
|
+
version_requirements: *2156421740
|
26
|
+
description: ! 'Modular Ruby clients interface for REST APIs
|
27
27
|
|
28
28
|
|
29
29
|
There has been an explosion in the number of REST APIs available today.
|
@@ -36,10 +36,12 @@ description: ! 'Modular Ruby clients for REST APIs
|
|
36
36
|
|
37
37
|
common APIs such as Facebook, Github, and Twitter, you can simply use the
|
38
38
|
|
39
|
-
|
39
|
+
dedicated clients provided by [rest-more][].
|
40
40
|
|
41
41
|
|
42
|
-
[rest-core]: http://github.com/cardinalblue/rest-core
|
42
|
+
[rest-core]: http://github.com/cardinalblue/rest-core
|
43
|
+
|
44
|
+
[rest-more]: http://github.com/cardinalblue/rest-more'
|
43
45
|
email:
|
44
46
|
- dev (XD) cardinalblue.com
|
45
47
|
executables:
|
@@ -62,60 +64,13 @@ files:
|
|
62
64
|
- example/facebook.rb
|
63
65
|
- example/github.rb
|
64
66
|
- example/linkedin.rb
|
65
|
-
- example/rails2/Gemfile
|
66
|
-
- example/rails2/README
|
67
|
-
- example/rails2/Rakefile
|
68
|
-
- example/rails2/app/controllers/application_controller.rb
|
69
|
-
- example/rails2/app/views/application/helper.html.erb
|
70
|
-
- example/rails2/config/boot.rb
|
71
|
-
- example/rails2/config/environment.rb
|
72
|
-
- example/rails2/config/environments/development.rb
|
73
|
-
- example/rails2/config/environments/production.rb
|
74
|
-
- example/rails2/config/environments/test.rb
|
75
|
-
- example/rails2/config/initializers/cookie_verification_secret.rb
|
76
|
-
- example/rails2/config/initializers/new_rails_defaults.rb
|
77
|
-
- example/rails2/config/initializers/session_store.rb
|
78
|
-
- example/rails2/config/preinitializer.rb
|
79
|
-
- example/rails2/config/rest-core.yaml
|
80
|
-
- example/rails2/config/routes.rb
|
81
|
-
- example/rails2/log
|
82
|
-
- example/rails2/test/functional/application_controller_test.rb
|
83
|
-
- example/rails2/test/test_helper.rb
|
84
|
-
- example/rails2/test/unit/rails_util_test.rb
|
85
|
-
- example/rails3/Gemfile
|
86
|
-
- example/rails3/README
|
87
|
-
- example/rails3/Rakefile
|
88
|
-
- example/rails3/app/controllers/application_controller.rb
|
89
|
-
- example/rails3/app/views/application/helper.html.erb
|
90
|
-
- example/rails3/config.ru
|
91
|
-
- example/rails3/config/application.rb
|
92
|
-
- example/rails3/config/environment.rb
|
93
|
-
- example/rails3/config/environments/development.rb
|
94
|
-
- example/rails3/config/environments/production.rb
|
95
|
-
- example/rails3/config/environments/test.rb
|
96
|
-
- example/rails3/config/initializers/secret_token.rb
|
97
|
-
- example/rails3/config/initializers/session_store.rb
|
98
|
-
- example/rails3/config/rest-core.yaml
|
99
|
-
- example/rails3/config/routes.rb
|
100
|
-
- example/rails3/test/functional/application_controller_test.rb
|
101
|
-
- example/rails3/test/test_helper.rb
|
102
|
-
- example/rails3/test/unit/rails_util_test.rb
|
103
|
-
- example/sinatra/config.ru
|
104
67
|
- example/twitter.rb
|
105
68
|
- lib/rest-core.rb
|
106
69
|
- lib/rest-core/app/dry.rb
|
107
70
|
- lib/rest-core/app/rest-client.rb
|
108
71
|
- lib/rest-core/builder.rb
|
109
72
|
- lib/rest-core/client.rb
|
110
|
-
- lib/rest-core/client/facebook.rb
|
111
|
-
- lib/rest-core/client/facebook/rails_util.rb
|
112
|
-
- lib/rest-core/client/flurry.rb
|
113
|
-
- lib/rest-core/client/flurry/rails_util.rb
|
114
|
-
- lib/rest-core/client/github.rb
|
115
|
-
- lib/rest-core/client/linkedin.rb
|
116
|
-
- lib/rest-core/client/mixi.rb
|
117
73
|
- lib/rest-core/client/simple.rb
|
118
|
-
- lib/rest-core/client/twitter.rb
|
119
74
|
- lib/rest-core/client/universal.rb
|
120
75
|
- lib/rest-core/client_oauth1.rb
|
121
76
|
- lib/rest-core/error.rb
|
@@ -149,22 +104,6 @@ files:
|
|
149
104
|
- rest-core.gemspec
|
150
105
|
- task/.gitignore
|
151
106
|
- task/gemgem.rb
|
152
|
-
- test/client/facebook/config/rest-core.yaml
|
153
|
-
- test/client/facebook/test_api.rb
|
154
|
-
- test/client/facebook/test_cache.rb
|
155
|
-
- test/client/facebook/test_default.rb
|
156
|
-
- test/client/facebook/test_error.rb
|
157
|
-
- test/client/facebook/test_handler.rb
|
158
|
-
- test/client/facebook/test_load_config.rb
|
159
|
-
- test/client/facebook/test_misc.rb
|
160
|
-
- test/client/facebook/test_oauth.rb
|
161
|
-
- test/client/facebook/test_old.rb
|
162
|
-
- test/client/facebook/test_page.rb
|
163
|
-
- test/client/facebook/test_parse.rb
|
164
|
-
- test/client/facebook/test_serialize.rb
|
165
|
-
- test/client/facebook/test_timeout.rb
|
166
|
-
- test/client/flurry/test_metrics.rb
|
167
|
-
- test/client/twitter/test_api.rb
|
168
107
|
- test/test_builder.rb
|
169
108
|
- test/test_client.rb
|
170
109
|
- test/test_oauth1_header.rb
|
@@ -189,26 +128,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
128
|
version: '0'
|
190
129
|
requirements: []
|
191
130
|
rubyforge_project:
|
192
|
-
rubygems_version: 1.8.
|
131
|
+
rubygems_version: 1.8.11
|
193
132
|
signing_key:
|
194
133
|
specification_version: 3
|
195
|
-
summary: Modular Ruby clients for REST APIs
|
134
|
+
summary: Modular Ruby clients interface for REST APIs
|
196
135
|
test_files:
|
197
|
-
- test/client/facebook/test_api.rb
|
198
|
-
- test/client/facebook/test_cache.rb
|
199
|
-
- test/client/facebook/test_default.rb
|
200
|
-
- test/client/facebook/test_error.rb
|
201
|
-
- test/client/facebook/test_handler.rb
|
202
|
-
- test/client/facebook/test_load_config.rb
|
203
|
-
- test/client/facebook/test_misc.rb
|
204
|
-
- test/client/facebook/test_oauth.rb
|
205
|
-
- test/client/facebook/test_old.rb
|
206
|
-
- test/client/facebook/test_page.rb
|
207
|
-
- test/client/facebook/test_parse.rb
|
208
|
-
- test/client/facebook/test_serialize.rb
|
209
|
-
- test/client/facebook/test_timeout.rb
|
210
|
-
- test/client/flurry/test_metrics.rb
|
211
|
-
- test/client/twitter/test_api.rb
|
212
136
|
- test/test_builder.rb
|
213
137
|
- test/test_client.rb
|
214
138
|
- test/test_oauth1_header.rb
|