jsus 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +1 -1
- data/.travis.yml +1 -1
- data/.yardopts +9 -0
- data/CHANGELOG +21 -0
- data/Gemfile +3 -2
- data/{README → README.md} +10 -4
- data/TODO +1 -3
- data/VERSION +1 -1
- data/bin/jsus +33 -10
- data/jsus.gemspec +12 -7
- data/lib/jsus.rb +31 -9
- data/lib/jsus/container.rb +96 -24
- data/lib/jsus/middleware.rb +160 -43
- data/lib/jsus/package.rb +65 -25
- data/lib/jsus/packager.rb +15 -10
- data/lib/jsus/pool.rb +54 -40
- data/lib/jsus/source_file.rb +105 -80
- data/lib/jsus/tag.rb +65 -39
- data/lib/jsus/util.rb +8 -6
- data/lib/jsus/util/code_generator.rb +21 -0
- data/lib/jsus/util/documenter.rb +34 -6
- data/lib/jsus/util/file_cache.rb +16 -5
- data/lib/jsus/util/inflection.rb +9 -2
- data/lib/jsus/util/tree.rb +54 -18
- data/lib/jsus/util/validator/base.rb +13 -5
- data/lib/jsus/util/validator/mooforge.rb +8 -2
- data/markup/stylesheet.css +84 -16
- data/spec/data/ChainDependencies/app/javascripts/Class/package.yml +2 -2
- data/spec/jsus/middleware_spec.rb +25 -0
- data/spec/jsus/pool_spec.rb +9 -4
- metadata +23 -7
data/spec/jsus/pool_spec.rb
CHANGED
@@ -10,7 +10,7 @@ describe Jsus::Pool do
|
|
10
10
|
}
|
11
11
|
|
12
12
|
let(:sources) {
|
13
|
-
packages.map {|p| p.source_files[0] }
|
13
|
+
packages.map {|p| p.source_files[0] }
|
14
14
|
}
|
15
15
|
|
16
16
|
subject { Jsus::Pool.new }
|
@@ -46,6 +46,11 @@ describe Jsus::Pool do
|
|
46
46
|
pool = Jsus::Pool.new("spec/data/JsonPackage")
|
47
47
|
pool.should have_exactly(1).packages
|
48
48
|
end
|
49
|
+
|
50
|
+
it "should accept array of directories" do
|
51
|
+
pool = Jsus::Pool.new(["spec/data/JsonPackage", "spec/data/Basic"])
|
52
|
+
pool.should have_exactly(2).packages
|
53
|
+
end
|
49
54
|
end
|
50
55
|
end
|
51
56
|
|
@@ -66,7 +71,7 @@ describe Jsus::Pool do
|
|
66
71
|
it "should allow tags" do
|
67
72
|
subject.lookup(Jsus::Tag["Class/Class"]).should == sources[1]
|
68
73
|
end
|
69
|
-
|
74
|
+
|
70
75
|
it "should return replacements whenever possible" do
|
71
76
|
pkg = Jsus::Package.new("spec/data/ClassReplacement", :pool => subject)
|
72
77
|
subject << pkg.source_files
|
@@ -163,10 +168,10 @@ describe Jsus::Pool do
|
|
163
168
|
it "should return a tree with all the source elements in it" do
|
164
169
|
subject.provides_tree.glob("/Core/Class")[0].should == Jsus::Tag["Core/Class"]
|
165
170
|
end
|
166
|
-
|
171
|
+
|
167
172
|
it "should allow wildcards" do
|
168
173
|
subject.provides_tree.glob("/Core/*")[0].should == Jsus::Tag["Core/Class"]
|
169
174
|
end
|
170
175
|
end
|
171
176
|
|
172
|
-
end
|
177
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mark Abramov
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-19 00:00:00 +04:00
|
19
19
|
default_executable: jsus
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -72,7 +72,7 @@ dependencies:
|
|
72
72
|
segments:
|
73
73
|
- 0
|
74
74
|
version: "0"
|
75
|
-
name:
|
75
|
+
name: rake
|
76
76
|
version_requirements: *id004
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
prerelease: false
|
@@ -216,6 +216,20 @@ dependencies:
|
|
216
216
|
version: "0"
|
217
217
|
name: rack-test
|
218
218
|
version_requirements: *id014
|
219
|
+
- !ruby/object:Gem::Dependency
|
220
|
+
prerelease: false
|
221
|
+
type: :development
|
222
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
223
|
+
none: false
|
224
|
+
requirements:
|
225
|
+
- - ">="
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
hash: 3
|
228
|
+
segments:
|
229
|
+
- 0
|
230
|
+
version: "0"
|
231
|
+
name: yard
|
232
|
+
version_requirements: *id015
|
219
233
|
description: Javascript packager and dependency resolver
|
220
234
|
email: markizko@gmail.com
|
221
235
|
executables:
|
@@ -223,16 +237,17 @@ executables:
|
|
223
237
|
extensions: []
|
224
238
|
|
225
239
|
extra_rdoc_files:
|
226
|
-
- README
|
240
|
+
- README.md
|
227
241
|
- TODO
|
228
242
|
files:
|
229
243
|
- .document
|
230
244
|
- .rspec
|
231
245
|
- .travis.yml
|
246
|
+
- .yardopts
|
232
247
|
- CHANGELOG
|
233
248
|
- Gemfile
|
234
249
|
- Manifest
|
235
|
-
- README
|
250
|
+
- README.md
|
236
251
|
- Rakefile
|
237
252
|
- TODO
|
238
253
|
- UNLICENSE
|
@@ -309,6 +324,7 @@ files:
|
|
309
324
|
- lib/jsus/source_file.rb
|
310
325
|
- lib/jsus/tag.rb
|
311
326
|
- lib/jsus/util.rb
|
327
|
+
- lib/jsus/util/code_generator.rb
|
312
328
|
- lib/jsus/util/documenter.rb
|
313
329
|
- lib/jsus/util/file_cache.rb
|
314
330
|
- lib/jsus/util/inflection.rb
|