radiant-ray-extension 3.0.0.alpha → 3.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/Rakefile +2 -0
- data/doc/NilClass.html +178 -0
- data/doc/Ray/CLI.html +211 -197
- data/doc/Ray/Extension/Git.html +435 -0
- data/doc/Ray/Extension/RubyGem.html +858 -0
- data/doc/Ray/Extension/Zip.html +453 -0
- data/doc/Ray/Extension.html +755 -0
- data/doc/Ray/{Cache.html → Search/Cache.html} +108 -256
- data/doc/Ray/{GitHub.html → Search/GitHub.html} +167 -81
- data/doc/Ray/{RubyGems.html → Search/RubyGems.html} +118 -68
- data/doc/Ray/Search.html +822 -0
- data/doc/Ray.html +89 -34
- data/doc/String.html +99 -29
- data/doc/_index.html +1 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +2 -4
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +3 -3
- data/lib/ray/cli.rb +146 -193
- data/lib/ray/constants.rb +7 -12
- data/lib/ray/extension.rb +203 -89
- data/lib/ray/search.rb +198 -43
- data/lib/ray/utility.rb +31 -0
- data/lib/ray.rb +2 -7
- data/spec/fixtures/cache_single.yml +2 -1
- data/spec/fixtures/cassettes/combined_search_empty.yml +71 -0
- data/spec/fixtures/cassettes/combined_search_multiple.yml +264 -0
- data/spec/fixtures/cassettes/combined_search_single.yml +108 -0
- data/spec/fixtures/cassettes/github_reorder_children_zip_file.yml +487 -0
- data/spec/fixtures/cassettes/github_sitemap_xml_zip_file.yml +553 -0
- data/spec/fixtures/cassettes/{github_v2_api_no_matches.yml → github_v2_search_empty.yml} +3 -3
- data/spec/fixtures/cassettes/github_v2_search_multiple.yml +225 -0
- data/spec/fixtures/cassettes/github_v2_search_single.yml +76 -0
- data/spec/fixtures/cassettes/{zip_file.yml → github_zip_file.yml} +3 -3
- data/spec/fixtures/cassettes/{rubygems_v1_api_gem_info.yml → rubygems_v1_gem_info.yml} +5 -5
- data/spec/fixtures/cassettes/{rubygems_v1_api_no_matches.yml → rubygems_v1_search_empty.yml} +3 -3
- data/spec/fixtures/cassettes/rubygems_v1_search_multiple.yml +40 -0
- data/spec/fixtures/cassettes/{rubygems_v1_api_search_reorder_children.yml → rubygems_v1_search_single.yml} +6 -6
- data/spec/fixtures/dummy.zip +0 -0
- data/spec/ray/extension_spec.rb +172 -0
- data/spec/ray/search_spec.rb +300 -0
- data/spec/spec_helper.rb +36 -9
- metadata +50 -85
- data/doc/Extension.html +0 -1189
- data/doc/Ray/Gem.html +0 -760
- data/doc/Ray/Git.html +0 -278
- data/doc/Ray/Zip.html +0 -300
- data/doc/Search.html +0 -433
- data/lib/ray/extension/gem.rb +0 -96
- data/lib/ray/extension/git.rb +0 -30
- data/lib/ray/extension/zip.rb +0 -44
- data/lib/ray/search/cache.rb +0 -61
- data/lib/ray/search/github.rb +0 -40
- data/lib/ray/search/rubygems.rb +0 -36
- data/lib/ray/string.rb +0 -18
- data/spec/fixtures/Gemfile +0 -4
- data/spec/fixtures/cassettes/github_v2_api_search_no_matches.yml +0 -38
- data/spec/fixtures/cassettes/github_v2_api_search_reorder_children.yml +0 -75
- data/spec/fixtures/cassettes/github_v2_api_search_single.yml +0 -74
- data/spec/fixtures/cassettes/github_v3_api_owner_name.yml +0 -75
- data/spec/fixtures/cassettes/rubygems_v1_api_search_no_matches.yml +0 -34
- data/spec/fixtures/cassettes/rubygems_v1_api_search_reorder.yml +0 -36
- data/spec/fixtures/cassettes/rubygems_v1_api_search_single.yml +0 -41
- data/spec/fixtures/dummy/README +0 -1
- data/spec/fixtures/dummy/Rakefile +0 -109
- data/spec/fixtures/dummy/config/initializers/radiant_config.rb +0 -3
- data/spec/fixtures/dummy/config/locales/en.yml +0 -3
- data/spec/fixtures/dummy/config/routes.rb +0 -5
- data/spec/fixtures/dummy/dummy_extension.rb +0 -21
- data/spec/fixtures/dummy/lib/radiant-dummy-extension.rb +0 -8
- data/spec/fixtures/dummy/lib/tasks/dummy_extension_tasks.rake +0 -47
- data/spec/fixtures/dummy/public/stylesheets/extensions/dummy/dummy.css +0 -0
- data/spec/fixtures/dummy/radiant-dummy-extension.gemspec +0 -29
- data/spec/ray/extension/gem_spec.rb +0 -214
- data/spec/ray/extension/git_spec.rb +0 -216
- data/spec/ray/extension/zip_spec.rb +0 -239
- data/spec/ray/search/cache_spec.rb +0 -74
- data/spec/ray/search/github_spec.rb +0 -137
- data/spec/ray/search/rubygems_spec.rb +0 -127
- data/spec/ray/string_spec.rb +0 -30
@@ -0,0 +1,300 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "ray/search"
|
3
|
+
|
4
|
+
Ray::CACHE = File.expand_path "tmp/cache.yml"
|
5
|
+
|
6
|
+
describe Ray::Search do
|
7
|
+
|
8
|
+
describe "no query given" do
|
9
|
+
it "must complain when no query is given" do
|
10
|
+
Ray::Search.new().results.must_match /A\ search\ query\ is\ required/
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe "empty search results" do
|
15
|
+
it "must return an empty hash when no results were found" do
|
16
|
+
VCR.use_cassette("combined_search_empty") do
|
17
|
+
Ray::Search.new("zzz").results.must_equal({})
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe "single search result" do
|
23
|
+
before do
|
24
|
+
VCR.use_cassette("combined_search_single") do
|
25
|
+
@search = Ray::Search.new("sitemap_xml")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
it "must have a single result" do
|
30
|
+
@search.results.size.must_equal 1
|
31
|
+
end
|
32
|
+
|
33
|
+
it "must have the right extension information" do
|
34
|
+
@search.results.must_equal({
|
35
|
+
"sitemap_xml" => {
|
36
|
+
:author => "Aissac SRL",
|
37
|
+
:description => "Radiant Extension to automatically generate a sitemap.xml for your site.",
|
38
|
+
:uri => "https://github.com/Aissac/radiant-sitemap-xml-extension/zipball/master",
|
39
|
+
:homepage => "https://github.com/Aissac/radiant-sitemap-xml-extension",
|
40
|
+
:name => "sitemap_xml",
|
41
|
+
:repository => "https://github.com/Aissac/radiant-sitemap-xml-extension.git",
|
42
|
+
:version => "latest"
|
43
|
+
}
|
44
|
+
})
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe "printing" do
|
49
|
+
it "must complain when no query is given" do
|
50
|
+
search = Ray::Search.new
|
51
|
+
search.output.must_equal "A search query is required. Try: ray help search"
|
52
|
+
end
|
53
|
+
|
54
|
+
it "must complain when no results are found" do
|
55
|
+
VCR.use_cassette("combined_search_empty") do
|
56
|
+
search = Ray::Search.new "zzz"
|
57
|
+
search.output.must_equal "No extensions matched 'zzz'"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
it "must print extension information when a single result is found" do
|
62
|
+
VCR.use_cassette("combined_search_single") do
|
63
|
+
search = Ray::Search.new "sitemap_xml"
|
64
|
+
search.output.must_match /----.*sitemap_xml\n\n/m
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
it "must print extension information when multiple results are found" do
|
69
|
+
VCR.use_cassette("combined_search_multiple") do
|
70
|
+
search = Ray::Search.new "archive"
|
71
|
+
search.output.must_match /----.*archive_children\n\n/m
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe "caching" do
|
77
|
+
after { cleanup }
|
78
|
+
|
79
|
+
it "must cache the search results" do
|
80
|
+
VCR.use_cassette("combined_search_single") do
|
81
|
+
@search = Ray::Search.new "sitemap_xml"
|
82
|
+
@search.cache
|
83
|
+
end
|
84
|
+
cache = YAML.load_file Ray::CACHE
|
85
|
+
cache.must_equal @search.results
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe "searching for extensions" do
|
90
|
+
before do
|
91
|
+
FileUtils.mkdir_p Ray::RAY
|
92
|
+
FileUtils.cp "spec/fixtures/cache_single.yml", Ray::CACHE
|
93
|
+
end
|
94
|
+
|
95
|
+
after { cleanup }
|
96
|
+
|
97
|
+
it "must return results from the cache" do
|
98
|
+
# if the network gets hit vcr will complain
|
99
|
+
search = Ray::Search.new "reorder_children"
|
100
|
+
search.results.must_equal({
|
101
|
+
"reorder_children" => {
|
102
|
+
:author => "Benny Degezelle",
|
103
|
+
:description => "Makes Radiant better by adding reorder_children!",
|
104
|
+
:uri => "http://rubygems.org/gems/radiant-reorder_children-extension-1.0.5.gem",
|
105
|
+
:homepage => "http://github.com/jomz/radiant-reorder_children-extension",
|
106
|
+
:name => "reorder_children",
|
107
|
+
:repository => nil,
|
108
|
+
:version => "1.0.5"
|
109
|
+
}
|
110
|
+
})
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
describe "caching" do
|
115
|
+
after { cleanup }
|
116
|
+
|
117
|
+
it "must cache the search results" do
|
118
|
+
VCR.use_cassette("combined_search_single") do
|
119
|
+
@search = Ray::Search.new "sitemap_xml"
|
120
|
+
@search.cache
|
121
|
+
end
|
122
|
+
cache = YAML.load_file Ray::CACHE
|
123
|
+
cache.must_equal @search.results
|
124
|
+
end
|
125
|
+
|
126
|
+
end
|
127
|
+
|
128
|
+
end
|
129
|
+
|
130
|
+
describe Ray::Search::RubyGems do
|
131
|
+
|
132
|
+
describe "no query given" do
|
133
|
+
it "must complain when no query is given" do
|
134
|
+
Ray::Search::RubyGems.new().results.must_match /A\ search\ query\ is\ required/
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
describe "empty search results" do
|
139
|
+
it "must return an empty hash when no results were found" do
|
140
|
+
VCR.use_cassette("rubygems_v1_search_empty") do
|
141
|
+
Ray::Search::RubyGems.new("zzz").results.must_equal({})
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
describe "single search result" do
|
147
|
+
before do
|
148
|
+
VCR.use_cassette("rubygems_v1_search_single") do
|
149
|
+
@search = Ray::Search::RubyGems.new("reorder_children")
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
it "must have a single result" do
|
154
|
+
@search.results.size.must_equal 1
|
155
|
+
end
|
156
|
+
|
157
|
+
it "must have the right extension information" do
|
158
|
+
@search.results.must_equal({
|
159
|
+
"reorder_children" => {
|
160
|
+
:author => "Benny Degezelle",
|
161
|
+
:description => "Makes Radiant better by adding reorder_children!",
|
162
|
+
:uri => "http://rubygems.org/gems/radiant-reorder_children-extension-1.0.5.gem",
|
163
|
+
:homepage => "http://github.com/jomz/radiant-reorder_children-extension",
|
164
|
+
:name => "reorder_children",
|
165
|
+
:repository => nil,
|
166
|
+
:version => "1.0.5"
|
167
|
+
}
|
168
|
+
})
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
describe "printing" do
|
173
|
+
it "must complain when no query is given" do
|
174
|
+
search = Ray::Search::RubyGems.new
|
175
|
+
search.output.must_equal "A search query is required. Try: ray help search"
|
176
|
+
end
|
177
|
+
|
178
|
+
it "must complain when no results are found" do
|
179
|
+
VCR.use_cassette("rubygems_v1_search_empty") do
|
180
|
+
search = Ray::Search::RubyGems.new "zzz"
|
181
|
+
search.output.must_equal "No extensions matched 'zzz'"
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
it "must print extension information when a single result is found" do
|
186
|
+
VCR.use_cassette("rubygems_v1_search_single") do
|
187
|
+
search = Ray::Search::RubyGems.new "reorder_children"
|
188
|
+
search.output.must_match /----.*reorder_children\n\n/m
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
it "must print extension information when multiple results are found" do
|
193
|
+
VCR.use_cassette("rubygems_v1_search_multiple") do
|
194
|
+
search = Ray::Search::RubyGems.new "archive"
|
195
|
+
search.output.must_match /----.*archive_children\n\n/m
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
describe "caching" do
|
201
|
+
after { cleanup }
|
202
|
+
|
203
|
+
it "must cache the search results" do
|
204
|
+
VCR.use_cassette("rubygems_v1_search_single") do
|
205
|
+
@search = Ray::Search::RubyGems.new "reorder_children"
|
206
|
+
@search.cache
|
207
|
+
end
|
208
|
+
cache = YAML.load_file Ray::CACHE
|
209
|
+
cache.must_equal @search.results
|
210
|
+
end
|
211
|
+
|
212
|
+
end
|
213
|
+
|
214
|
+
end
|
215
|
+
|
216
|
+
describe Ray::Search::GitHub do
|
217
|
+
|
218
|
+
describe "no query given" do
|
219
|
+
it "must complain when no query is given" do
|
220
|
+
Ray::Search::GitHub.new().results.must_match /A\ search\ query\ is\ required/
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
describe "empty search results" do
|
225
|
+
it "must return an empty hash when no results were found" do
|
226
|
+
VCR.use_cassette("github_v2_search_empty") do
|
227
|
+
Ray::Search::GitHub.new("zzz").results.must_equal({})
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
describe "single search result" do
|
233
|
+
before do
|
234
|
+
VCR.use_cassette("github_v2_search_single") do
|
235
|
+
@search = Ray::Search::GitHub.new("reorder_children")
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
it "must have a single result" do
|
240
|
+
@search.results.size.must_equal 1
|
241
|
+
end
|
242
|
+
|
243
|
+
it "must have the right extension information" do
|
244
|
+
@search.results.must_equal({
|
245
|
+
"reorder_children" => {
|
246
|
+
:author => "Benny Degezelle",
|
247
|
+
:description => "Adds the ability to reorder the children of a certain page with drag and drop.",
|
248
|
+
:uri => "https://github.com/jomz/radiant-reorder_children-extension/zipball/master",
|
249
|
+
:homepage => "https://github.com/jomz/radiant-reorder_children-extension",
|
250
|
+
:name => "reorder_children",
|
251
|
+
:repository => "https://github.com/jomz/radiant-reorder_children-extension.git",
|
252
|
+
:version => "latest"
|
253
|
+
}
|
254
|
+
})
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
describe "printing" do
|
259
|
+
it "must complain when no query is given" do
|
260
|
+
search = Ray::Search::GitHub.new
|
261
|
+
search.output.must_equal "A search query is required. Try: ray help search"
|
262
|
+
end
|
263
|
+
|
264
|
+
it "must complain when no results are found" do
|
265
|
+
VCR.use_cassette("github_v2_search_empty") do
|
266
|
+
search = Ray::Search::GitHub.new "zzz"
|
267
|
+
search.output.must_equal "No extensions matched 'zzz'"
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
it "must print extension information when a single result is found" do
|
272
|
+
VCR.use_cassette("github_v2_search_single") do
|
273
|
+
search = Ray::Search::GitHub.new "reorder_children"
|
274
|
+
search.output.must_match /----.*reorder_children\n\n/m
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
it "must print extension information when multiple results are found" do
|
279
|
+
VCR.use_cassette("github_v2_search_multiple") do
|
280
|
+
search = Ray::Search::GitHub.new "archive"
|
281
|
+
search.output.must_match /----.*archive_children\n\n/m
|
282
|
+
end
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
describe "caching" do
|
287
|
+
after { cleanup }
|
288
|
+
|
289
|
+
it "must cache the search results" do
|
290
|
+
VCR.use_cassette("github_v2_search_single") do
|
291
|
+
@search = Ray::Search::GitHub.new "reorder_children"
|
292
|
+
@search.cache
|
293
|
+
end
|
294
|
+
cache = YAML.load_file Ray::CACHE
|
295
|
+
cache.must_equal @search.results
|
296
|
+
end
|
297
|
+
|
298
|
+
end
|
299
|
+
|
300
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
$:.push File.expand_path "../../lib", __FILE__
|
2
|
-
|
3
1
|
require "minitest/autorun"
|
4
2
|
require "minitest/pride" unless ENV['CI']
|
5
3
|
require "open-uri"
|
@@ -9,19 +7,48 @@ require "vcr"
|
|
9
7
|
$VERBOSE = nil
|
10
8
|
|
11
9
|
module Ray
|
12
|
-
|
13
|
-
RAY = "#{ROOT}/ray"
|
14
|
-
CACHE = "#{RAY}/cache.yml"
|
15
|
-
GEMFILE = "#{ROOT}/Gemfile"
|
16
|
-
EXT_DIR = "#{ROOT}/vendor/extensions"
|
17
|
-
TMP_DIR = "#{ROOT}/tmp/ray"
|
10
|
+
RAY = File.expand_path "tmp"
|
18
11
|
end
|
19
12
|
|
20
13
|
def cleanup
|
21
|
-
FileUtils.rm_rf Ray::
|
14
|
+
FileUtils.rm_rf Ray::RAY
|
22
15
|
end
|
23
16
|
|
24
17
|
VCR.config do |c|
|
25
18
|
c.cassette_library_dir = "spec/fixtures/cassettes"
|
26
19
|
c.stub_with :fakeweb
|
27
20
|
end
|
21
|
+
|
22
|
+
VCR.use_cassette("github_v2_search_single") do
|
23
|
+
open "http://github.com/api/v2/json/repos/search/radiant+reorder_children"
|
24
|
+
open "https://api.github.com/users/jomz"
|
25
|
+
end
|
26
|
+
|
27
|
+
VCR.use_cassette("github_v2_search_multiple") do
|
28
|
+
open "http://github.com/api/v2/json/repos/search/radiant+archive"
|
29
|
+
open "https://api.github.com/users/radiant"
|
30
|
+
open "https://api.github.com/users/tricycle"
|
31
|
+
open "https://api.github.com/users/alno"
|
32
|
+
open "https://api.github.com/users/jomz"
|
33
|
+
open "https://api.github.com/users/jsntv200"
|
34
|
+
end
|
35
|
+
|
36
|
+
VCR.use_cassette("combined_search_empty") do
|
37
|
+
open "http://github.com/api/v2/json/repos/search/radiant+zzz"
|
38
|
+
open "https://rubygems.org/api/v1/search.json?query=radiant-zzz"
|
39
|
+
end
|
40
|
+
|
41
|
+
VCR.use_cassette("combined_search_single") do
|
42
|
+
open "http://github.com/api/v2/json/repos/search/radiant+sitemap_xml"
|
43
|
+
open "https://rubygems.org/api/v1/search.json?query=radiant-sitemap_xml"
|
44
|
+
open "https://api.github.com/users/Aissac"
|
45
|
+
end
|
46
|
+
|
47
|
+
VCR.use_cassette("github_reorder_children_zip_file") do
|
48
|
+
open "https://github.com/jomz/radiant-reorder_children-extension/zipball/master"
|
49
|
+
end
|
50
|
+
|
51
|
+
VCR.use_cassette("github_sitemap_xml_zip_file") do
|
52
|
+
open "https://github.com/Aissac/radiant-sitemap-xml-extension/zipball/master"
|
53
|
+
end
|
54
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-ray-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.pre
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|
16
|
-
requirement: &
|
16
|
+
requirement: &70181338630060 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70181338630060
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70181338628700 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0.8'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70181338628700
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: thor
|
38
|
-
requirement: &
|
38
|
+
requirement: &70181338627880 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0.14'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70181338627880
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: zip
|
49
|
-
requirement: &
|
49
|
+
requirement: &70181338626400 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '2'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70181338626400
|
58
58
|
description: ! "Ray simplifies finding, installing, disabling, enabling and uninstalling
|
59
59
|
\nRadiant extensions. It uses RubyGems and GitHub to find (and cache) extension
|
60
60
|
\ninformation but you can install extensions from any location.\n\nRubyGems, Git
|
@@ -72,7 +72,6 @@ files:
|
|
72
72
|
- doc/css/common.css
|
73
73
|
- doc/css/full_list.css
|
74
74
|
- doc/css/style.css
|
75
|
-
- doc/Extension.html
|
76
75
|
- doc/file.LICENSE.html
|
77
76
|
- doc/file.README.html
|
78
77
|
- doc/file_list.html
|
@@ -82,66 +81,47 @@ files:
|
|
82
81
|
- doc/js/full_list.js
|
83
82
|
- doc/js/jquery.js
|
84
83
|
- doc/method_list.html
|
85
|
-
- doc/
|
84
|
+
- doc/NilClass.html
|
86
85
|
- doc/Ray/CLI.html
|
87
|
-
- doc/Ray/
|
88
|
-
- doc/Ray/
|
89
|
-
- doc/Ray/
|
90
|
-
- doc/Ray/
|
91
|
-
- doc/Ray/
|
86
|
+
- doc/Ray/Extension/Git.html
|
87
|
+
- doc/Ray/Extension/RubyGem.html
|
88
|
+
- doc/Ray/Extension/Zip.html
|
89
|
+
- doc/Ray/Extension.html
|
90
|
+
- doc/Ray/Search/Cache.html
|
91
|
+
- doc/Ray/Search/GitHub.html
|
92
|
+
- doc/Ray/Search/RubyGems.html
|
93
|
+
- doc/Ray/Search.html
|
92
94
|
- doc/Ray.html
|
93
|
-
- doc/Search.html
|
94
95
|
- doc/String.html
|
95
96
|
- doc/top-level-namespace.html
|
96
97
|
- lib/ray/cli.rb
|
97
98
|
- lib/ray/constants.rb
|
98
|
-
- lib/ray/extension/gem.rb
|
99
|
-
- lib/ray/extension/git.rb
|
100
|
-
- lib/ray/extension/zip.rb
|
101
99
|
- lib/ray/extension.rb
|
102
|
-
- lib/ray/search/cache.rb
|
103
|
-
- lib/ray/search/github.rb
|
104
|
-
- lib/ray/search/rubygems.rb
|
105
100
|
- lib/ray/search.rb
|
106
|
-
- lib/ray/
|
101
|
+
- lib/ray/utility.rb
|
107
102
|
- lib/ray.rb
|
108
103
|
- LICENSE
|
109
104
|
- Rakefile
|
110
105
|
- ray.gemspec
|
111
106
|
- README.markdown
|
112
107
|
- spec/fixtures/cache_single.yml
|
113
|
-
- spec/fixtures/cassettes/
|
114
|
-
- spec/fixtures/cassettes/
|
115
|
-
- spec/fixtures/cassettes/
|
116
|
-
- spec/fixtures/cassettes/
|
117
|
-
- spec/fixtures/cassettes/
|
118
|
-
- spec/fixtures/cassettes/
|
119
|
-
- spec/fixtures/cassettes/
|
120
|
-
- spec/fixtures/cassettes/
|
121
|
-
- spec/fixtures/cassettes/
|
122
|
-
- spec/fixtures/cassettes/
|
123
|
-
- spec/fixtures/cassettes/
|
124
|
-
- spec/fixtures/cassettes/
|
125
|
-
- spec/fixtures/
|
126
|
-
- spec/fixtures/dummy/config/locales/en.yml
|
127
|
-
- spec/fixtures/dummy/config/routes.rb
|
128
|
-
- spec/fixtures/dummy/dummy_extension.rb
|
129
|
-
- spec/fixtures/dummy/lib/radiant-dummy-extension.rb
|
130
|
-
- spec/fixtures/dummy/lib/tasks/dummy_extension_tasks.rake
|
131
|
-
- spec/fixtures/dummy/public/stylesheets/extensions/dummy/dummy.css
|
132
|
-
- spec/fixtures/dummy/radiant-dummy-extension.gemspec
|
133
|
-
- spec/fixtures/dummy/Rakefile
|
134
|
-
- spec/fixtures/dummy/README
|
108
|
+
- spec/fixtures/cassettes/combined_search_empty.yml
|
109
|
+
- spec/fixtures/cassettes/combined_search_multiple.yml
|
110
|
+
- spec/fixtures/cassettes/combined_search_single.yml
|
111
|
+
- spec/fixtures/cassettes/github_reorder_children_zip_file.yml
|
112
|
+
- spec/fixtures/cassettes/github_sitemap_xml_zip_file.yml
|
113
|
+
- spec/fixtures/cassettes/github_v2_search_empty.yml
|
114
|
+
- spec/fixtures/cassettes/github_v2_search_multiple.yml
|
115
|
+
- spec/fixtures/cassettes/github_v2_search_single.yml
|
116
|
+
- spec/fixtures/cassettes/github_zip_file.yml
|
117
|
+
- spec/fixtures/cassettes/rubygems_v1_gem_info.yml
|
118
|
+
- spec/fixtures/cassettes/rubygems_v1_search_empty.yml
|
119
|
+
- spec/fixtures/cassettes/rubygems_v1_search_multiple.yml
|
120
|
+
- spec/fixtures/cassettes/rubygems_v1_search_single.yml
|
135
121
|
- spec/fixtures/dummy.zip
|
136
|
-
- spec/fixtures/Gemfile
|
137
122
|
- spec/ray/cli_spec.rb
|
138
|
-
- spec/ray/
|
139
|
-
- spec/ray/
|
140
|
-
- spec/ray/extension/zip_spec.rb
|
141
|
-
- spec/ray/search/cache_spec.rb
|
142
|
-
- spec/ray/search/github_spec.rb
|
143
|
-
- spec/ray/search/rubygems_spec.rb
|
144
|
-
- spec/ray/string_spec.rb
|
123
|
+
- spec/ray/extension_spec.rb
|
124
|
+
- spec/ray/search_spec.rb
|
145
125
|
- spec/spec_helper.rb
|
146
126
|
homepage: http://johnmuhl.github.com/radiant-ray-extension/
|
147
127
|
licenses: []
|
@@ -169,37 +149,22 @@ specification_version: 3
|
|
169
149
|
summary: Friendly extension management for Radiant CMS
|
170
150
|
test_files:
|
171
151
|
- spec/fixtures/cache_single.yml
|
172
|
-
- spec/fixtures/cassettes/
|
173
|
-
- spec/fixtures/cassettes/
|
174
|
-
- spec/fixtures/cassettes/
|
175
|
-
- spec/fixtures/cassettes/
|
176
|
-
- spec/fixtures/cassettes/
|
177
|
-
- spec/fixtures/cassettes/
|
178
|
-
- spec/fixtures/cassettes/
|
179
|
-
- spec/fixtures/cassettes/
|
180
|
-
- spec/fixtures/cassettes/
|
181
|
-
- spec/fixtures/cassettes/
|
182
|
-
- spec/fixtures/cassettes/
|
183
|
-
- spec/fixtures/cassettes/
|
184
|
-
- spec/fixtures/
|
185
|
-
- spec/fixtures/dummy/config/locales/en.yml
|
186
|
-
- spec/fixtures/dummy/config/routes.rb
|
187
|
-
- spec/fixtures/dummy/dummy_extension.rb
|
188
|
-
- spec/fixtures/dummy/lib/radiant-dummy-extension.rb
|
189
|
-
- spec/fixtures/dummy/lib/tasks/dummy_extension_tasks.rake
|
190
|
-
- spec/fixtures/dummy/public/stylesheets/extensions/dummy/dummy.css
|
191
|
-
- spec/fixtures/dummy/radiant-dummy-extension.gemspec
|
192
|
-
- spec/fixtures/dummy/Rakefile
|
193
|
-
- spec/fixtures/dummy/README
|
152
|
+
- spec/fixtures/cassettes/combined_search_empty.yml
|
153
|
+
- spec/fixtures/cassettes/combined_search_multiple.yml
|
154
|
+
- spec/fixtures/cassettes/combined_search_single.yml
|
155
|
+
- spec/fixtures/cassettes/github_reorder_children_zip_file.yml
|
156
|
+
- spec/fixtures/cassettes/github_sitemap_xml_zip_file.yml
|
157
|
+
- spec/fixtures/cassettes/github_v2_search_empty.yml
|
158
|
+
- spec/fixtures/cassettes/github_v2_search_multiple.yml
|
159
|
+
- spec/fixtures/cassettes/github_v2_search_single.yml
|
160
|
+
- spec/fixtures/cassettes/github_zip_file.yml
|
161
|
+
- spec/fixtures/cassettes/rubygems_v1_gem_info.yml
|
162
|
+
- spec/fixtures/cassettes/rubygems_v1_search_empty.yml
|
163
|
+
- spec/fixtures/cassettes/rubygems_v1_search_multiple.yml
|
164
|
+
- spec/fixtures/cassettes/rubygems_v1_search_single.yml
|
194
165
|
- spec/fixtures/dummy.zip
|
195
|
-
- spec/fixtures/Gemfile
|
196
166
|
- spec/ray/cli_spec.rb
|
197
|
-
- spec/ray/
|
198
|
-
- spec/ray/
|
199
|
-
- spec/ray/extension/zip_spec.rb
|
200
|
-
- spec/ray/search/cache_spec.rb
|
201
|
-
- spec/ray/search/github_spec.rb
|
202
|
-
- spec/ray/search/rubygems_spec.rb
|
203
|
-
- spec/ray/string_spec.rb
|
167
|
+
- spec/ray/extension_spec.rb
|
168
|
+
- spec/ray/search_spec.rb
|
204
169
|
- spec/spec_helper.rb
|
205
170
|
has_rdoc:
|