jim 0.2.3 → 0.3.0.pre
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/Gemfile +2 -1
- data/Gemfile.lock +2 -0
- data/HISTORY +13 -0
- data/README.md +148 -0
- data/Rakefile +6 -3
- data/bin/jim +1 -2
- data/default +0 -0
- data/jim.gemspec +142 -105
- data/lib/jim.rb +1 -1
- data/lib/jim/bundler.rb +168 -73
- data/lib/jim/cli.rb +200 -151
- data/lib/jim/index.rb +20 -9
- data/lib/jim/installer.rb +46 -46
- data/lib/jim/rack.rb +57 -20
- data/lib/jim/templates/jimfile +11 -5
- data/lib/jim/version_parser.rb +3 -3
- data/test/fixtures/infoincomments.js +1 -1
- data/test/fixtures/jimfile +14 -7
- data/test/fixtures/jquery-1.4.1.js +3 -6057
- data/test/fixtures/jquery.color.js +1 -1
- data/test/fixtures/localfile.js +1 -1
- data/test/fixtures/mustache.js/package.json +1 -1
- data/test/fixtures/noversion.js +1 -1
- data/test/fixtures/old_jimfile +7 -0
- data/test/fixtures/sammy-0.5.0/examples/backend/app.rb +4 -4
- data/test/fixtures/sammy-0.5.0/examples/backend/public/javascripts/app.js +18 -18
- data/test/fixtures/sammy-0.5.0/examples/backend/public/javascripts/jquery.cloudkit.js +1 -1
- data/test/fixtures/sammy-0.5.0/examples/backend/public/javascripts/jquery.js +1 -1
- data/test/fixtures/sammy-0.5.0/examples/backend/public/javascripts/sammy.js +161 -161
- data/test/fixtures/sammy-0.5.0/examples/backend/public/templates/task.html.erb +1 -1
- data/test/fixtures/sammy-0.5.0/examples/backend/public/templates/task_details.html.erb +1 -1
- data/test/fixtures/sammy-0.5.0/examples/backend/views/app.sass +6 -6
- data/test/fixtures/sammy-0.5.0/examples/backend/views/index.haml +5 -5
- data/test/fixtures/sammy-0.5.0/examples/form_handling/index.html +16 -16
- data/test/fixtures/sammy-0.5.0/examples/hello_world/index.html +13 -13
- data/test/fixtures/sammy-0.5.0/examples/location_override/data.html +28 -28
- data/test/fixtures/sammy-0.5.0/examples/location_override/index.html +18 -18
- data/test/fixtures/sammy-0.5.0/examples/location_override/test.html +36 -36
- data/test/fixtures/sammy-0.5.0/lib/min/sammy-0.5.0.min.js +1 -1
- data/test/fixtures/sammy-0.5.0/lib/min/sammy-lastest.min.js +1 -1
- data/test/fixtures/sammy-0.5.0/lib/plugins/sammy.cache.js +13 -13
- data/test/fixtures/sammy-0.5.0/lib/plugins/sammy.haml.js +2 -2
- data/test/fixtures/sammy-0.5.0/lib/plugins/sammy.json.js +15 -15
- data/test/fixtures/sammy-0.5.0/lib/plugins/sammy.mustache.js +46 -46
- data/test/fixtures/sammy-0.5.0/lib/plugins/sammy.nested_params.js +29 -29
- data/test/fixtures/sammy-0.5.0/lib/plugins/sammy.storage.js +54 -54
- data/test/fixtures/sammy-0.5.0/lib/plugins/sammy.template.js +17 -17
- data/test/fixtures/sammy-0.5.0/lib/sammy.js +220 -220
- data/test/fixtures/sammy-0.5.0/test/fixtures/partial.html +1 -1
- data/test/fixtures/sammy-0.5.0/test/index.html +26 -26
- data/test/fixtures/sammy-0.5.0/test/test_sammy_application.js +60 -60
- data/test/fixtures/sammy-0.5.0/test/test_sammy_event_context.js +21 -21
- data/test/fixtures/sammy-0.5.0/test/test_sammy_location_proxy.js +3 -3
- data/test/fixtures/sammy-0.5.0/test/test_sammy_plugins.js +17 -17
- data/test/fixtures/sammy-0.5.0/test/test_sammy_storage.js +4 -4
- data/test/helper.rb +15 -0
- data/test/test_jim_bundler.rb +114 -74
- data/test/test_jim_cli.rb +34 -18
- data/test/test_jim_index.rb +19 -19
- data/test/test_jim_installer.rb +13 -13
- data/test/test_jim_rack.rb +41 -0
- data/test/test_jim_version_parser.rb +4 -4
- metadata +204 -41
- data/.gitignore +0 -24
- data/README.rdoc +0 -105
- data/lib/jim/templates/commands +0 -58
data/test/test_jim_cli.rb
CHANGED
@@ -5,7 +5,7 @@ class TestJimCLI < Test::Unit::TestCase
|
|
5
5
|
context "Jim::CLI" do
|
6
6
|
setup do
|
7
7
|
FileUtils.rm_rf(tmp_path) if File.directory?(tmp_path)
|
8
|
-
other_tmp_path = File.join(File.dirname(__FILE__), '..', '..' 'tmp')
|
8
|
+
other_tmp_path = File.expand_path(File.join(File.dirname(__FILE__), '..', '..' 'tmp'))
|
9
9
|
FileUtils.rm_rf(other_tmp_path) if File.directory?(other_tmp_path)
|
10
10
|
Jim::Installer.new(fixture_path('infoincomments.js'), tmp_path).install
|
11
11
|
Jim::Installer.new(fixture_path('jquery-1.4.1.js'), tmp_path).install
|
@@ -20,25 +20,32 @@ class TestJimCLI < Test::Unit::TestCase
|
|
20
20
|
|
21
21
|
context "pack" do
|
22
22
|
should "run vendor, bundle, compress" do
|
23
|
-
Jim::
|
24
|
-
Jim::Bundler.any_instance.stubs(:compress_js).returns("compressed.js")
|
23
|
+
Jim::Bundler.any_instance.expects(:compress_js).twice.returns("compressed.js")
|
25
24
|
run_cli("pack", "-j", fixture_path('Jimfile'), "--jimhome", tmp_path)
|
26
25
|
assert_readable tmp_path, 'public', 'javascripts', 'vendor', 'jquery-1.4.1.js'
|
27
26
|
assert_readable tmp_path, 'public', 'javascripts', 'vendor', 'myproject-1.2.2.js'
|
28
|
-
assert_readable tmp_path, '
|
29
|
-
|
27
|
+
assert_readable tmp_path, 'base.js'
|
28
|
+
assert_readable tmp_path, 'base.min.js'
|
30
29
|
end
|
31
30
|
end
|
32
31
|
|
33
32
|
context "bundle" do
|
34
|
-
should "write
|
35
|
-
run_cli("bundle",
|
36
|
-
assert_readable tmp_path + '
|
33
|
+
should "write all bundles to bundle_dir" do
|
34
|
+
run_cli("bundle", "-j", fixture_path('Jimfile'), "--jimhome", tmp_path)
|
35
|
+
assert_readable tmp_path + 'default.js'
|
36
|
+
assert_readable tmp_path + 'base.js'
|
37
37
|
end
|
38
38
|
|
39
|
-
should "write
|
40
|
-
run_cli("bundle", "-j", fixture_path('Jimfile'), "--jimhome", tmp_path)
|
41
|
-
assert_readable tmp_path
|
39
|
+
should "write specific bundle to bundle dir" do
|
40
|
+
run_cli("bundle", "base", "-j", fixture_path('Jimfile'), "--jimhome", tmp_path)
|
41
|
+
assert_readable tmp_path + 'base.js'
|
42
|
+
end
|
43
|
+
|
44
|
+
should "write bundle to provided bundle dir" do
|
45
|
+
specific_dir = tmp_path + 'specific/'
|
46
|
+
run_cli("bundle", '--bundle_dir', specific_dir.to_s, "-j", fixture_path('Jimfile'), "--jimhome", tmp_path)
|
47
|
+
assert_readable specific_dir + 'default.js'
|
48
|
+
assert_readable specific_dir + 'base.js'
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|
@@ -47,14 +54,15 @@ class TestJimCLI < Test::Unit::TestCase
|
|
47
54
|
Jim::Bundler.any_instance.stubs(:compress_js).returns("compressed.js")
|
48
55
|
end
|
49
56
|
|
50
|
-
should "compress
|
51
|
-
run_cli("compress",
|
52
|
-
assert_readable tmp_path + '
|
57
|
+
should "compress all bundles to bundle dir" do
|
58
|
+
run_cli("compress", "-j", fixture_path('Jimfile'), "--jimhome", tmp_path)
|
59
|
+
assert_readable tmp_path + 'base.min.js'
|
60
|
+
assert_readable tmp_path + 'default.min.js'
|
53
61
|
end
|
54
62
|
|
55
|
-
should "compress
|
56
|
-
run_cli("compress", "-j", fixture_path('Jimfile'), "--jimhome", tmp_path)
|
57
|
-
assert_readable tmp_path
|
63
|
+
should "compress specific bundle specified" do
|
64
|
+
run_cli("compress", "base", "-j", fixture_path('Jimfile'), "--jimhome", tmp_path)
|
65
|
+
assert_readable tmp_path + 'base.min.js'
|
58
66
|
end
|
59
67
|
end
|
60
68
|
|
@@ -76,10 +84,18 @@ class TestJimCLI < Test::Unit::TestCase
|
|
76
84
|
end
|
77
85
|
end
|
78
86
|
|
87
|
+
context "watch" do
|
88
|
+
should_eventually "watch changed js files then run bundle" do
|
89
|
+
#not sure how this should be tested... ideas?
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
79
93
|
end
|
80
94
|
|
81
95
|
def run_cli(*args)
|
82
|
-
|
96
|
+
@stdout = capture(:stdout) do
|
97
|
+
Jim::CLI.start(args.collect(&:to_s))
|
98
|
+
end
|
83
99
|
end
|
84
100
|
|
85
101
|
end
|
data/test/test_jim_index.rb
CHANGED
@@ -10,26 +10,26 @@ class TestJimIndex < Test::Unit::TestCase
|
|
10
10
|
@directories = [File.join(root, 'fixtures'), File.join(root, 'tmp', 'lib')]
|
11
11
|
@index = Jim::Index.new(*@directories)
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
context "initializing" do
|
15
|
-
|
15
|
+
|
16
16
|
should "set an array of directories" do
|
17
17
|
assert_equal @directories, @index.directories
|
18
18
|
end
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
context "list" do
|
22
22
|
setup do
|
23
23
|
Jim::Installer.new(fixture_path('jquery-1.4.1.js'), tmp_path, :version => '1.5pre').install
|
24
24
|
@list = @index.list
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
should "return list of files" do
|
28
28
|
names = @list.collect {|l| l[0] }
|
29
29
|
assert names.include?('jquery'), "should include jquery"
|
30
30
|
assert names.include?('infoincomments')
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
should "only return one of each name" do
|
34
34
|
jquery = @list.find {|l| l[0] == 'jquery' }
|
35
35
|
assert jquery, "should include jquery"
|
@@ -39,7 +39,7 @@ class TestJimIndex < Test::Unit::TestCase
|
|
39
39
|
assert jquery[1][0][0].is_a?(String), "should have version"
|
40
40
|
assert jquery[1][0][1].is_a?(Pathname), "should include pathname"
|
41
41
|
end
|
42
|
-
|
42
|
+
|
43
43
|
should "only return files matching search" do
|
44
44
|
@list = @index.list('jquery')
|
45
45
|
names = @list.collect {|l| l[0] }
|
@@ -47,30 +47,30 @@ class TestJimIndex < Test::Unit::TestCase
|
|
47
47
|
assert !names.include?('infoincomments')
|
48
48
|
end
|
49
49
|
end
|
50
|
-
|
50
|
+
|
51
51
|
context "find" do
|
52
|
-
|
52
|
+
|
53
53
|
should "find by name and version in local files" do
|
54
54
|
path = @index.find('jquery', '1.4.1')
|
55
55
|
assert path
|
56
56
|
assert path.is_a?(Pathname)
|
57
57
|
assert_equal Pathname.new(fixture_path('jquery-1.4.1.js')), path
|
58
58
|
end
|
59
|
-
|
59
|
+
|
60
60
|
should "find by name alone in local files" do
|
61
61
|
path = @index.find('jquery')
|
62
62
|
assert path
|
63
63
|
assert path.is_a?(Pathname)
|
64
64
|
assert_equal Pathname.new(fixture_path('jquery-1.4.1.js')), path
|
65
65
|
end
|
66
|
-
|
66
|
+
|
67
67
|
should "find by path and version in local files" do
|
68
68
|
path = @index.find('fixtures/jquery')
|
69
69
|
assert path
|
70
70
|
assert path.is_a?(Pathname)
|
71
71
|
assert_equal Pathname.new(fixture_path('jquery-1.4.1.js')), path
|
72
72
|
end
|
73
|
-
|
73
|
+
|
74
74
|
should "find by name and version in jim dirs" do
|
75
75
|
installer = Jim::Installer.new(fixture_path('jquery-1.4.1.js'), tmp_path, :version => '1.5pre')
|
76
76
|
jim_path = installer.install
|
@@ -78,7 +78,7 @@ class TestJimIndex < Test::Unit::TestCase
|
|
78
78
|
path = @index.find('jquery', '1.5pre')
|
79
79
|
assert_equal jim_path.expand_path, path.expand_path
|
80
80
|
end
|
81
|
-
|
81
|
+
|
82
82
|
should "find by name with dot and version 0 in jim dirs" do
|
83
83
|
installer = Jim::Installer.new(fixture_path('jquery.color.js'), tmp_path)
|
84
84
|
jim_path = installer.install
|
@@ -86,7 +86,7 @@ class TestJimIndex < Test::Unit::TestCase
|
|
86
86
|
path = @index.find('jquery.color', '0')
|
87
87
|
assert_equal jim_path.expand_path, path.expand_path
|
88
88
|
end
|
89
|
-
|
89
|
+
|
90
90
|
should "find by name in jim dirs" do
|
91
91
|
installer = Jim::Installer.new(fixture_path('infoincomments.js'), tmp_path)
|
92
92
|
jim_path = installer.install
|
@@ -94,29 +94,29 @@ class TestJimIndex < Test::Unit::TestCase
|
|
94
94
|
path = @index.find('myproject')
|
95
95
|
assert_equal jim_path.expand_path, path.expand_path
|
96
96
|
end
|
97
|
-
|
97
|
+
|
98
98
|
should "return false if file can not be found" do
|
99
99
|
assert !@index.find('jquery', '1.8')
|
100
100
|
end
|
101
101
|
|
102
102
|
end
|
103
|
-
|
103
|
+
|
104
104
|
context "find_all" do
|
105
105
|
setup do
|
106
106
|
Jim::Installer.new(fixture_path('jquery-1.4.1.js'), tmp_path, :version => '1.5pre').install
|
107
107
|
@all = @index.find_all("jquery")
|
108
108
|
end
|
109
|
-
|
109
|
+
|
110
110
|
should "return array" do
|
111
111
|
assert @all.is_a?(Array)
|
112
112
|
end
|
113
|
-
|
113
|
+
|
114
114
|
should "find all files that match the search" do
|
115
115
|
assert @all[0].is_a?(Pathname)
|
116
116
|
assert @all.all? {|p| p.to_s.match /jquery/ }
|
117
117
|
end
|
118
|
-
|
118
|
+
|
119
119
|
end
|
120
|
-
|
120
|
+
|
121
121
|
end
|
122
122
|
end
|
data/test/test_jim_installer.rb
CHANGED
@@ -80,7 +80,7 @@ class TestJimInstaller < Test::Unit::TestCase
|
|
80
80
|
assert installer.determine_name_and_version
|
81
81
|
assert_equal 'myproject', installer.name
|
82
82
|
assert_equal '1.1.1', installer.version
|
83
|
-
end
|
83
|
+
end
|
84
84
|
|
85
85
|
should "have default version if version can not be determined" do
|
86
86
|
installer = Jim::Installer.new(fixture_path('noversion.js'), tmp_path)
|
@@ -95,24 +95,24 @@ class TestJimInstaller < Test::Unit::TestCase
|
|
95
95
|
context "install" do
|
96
96
|
|
97
97
|
context "with a single file" do
|
98
|
-
setup do
|
98
|
+
setup do
|
99
99
|
@installer = Jim::Installer.new(fixture_path('jquery-1.4.1.js'), tmp_path)
|
100
100
|
assert @installer.install
|
101
101
|
@install_path = File.join(tmp_path, 'lib', 'jquery-1.4.1')
|
102
102
|
end
|
103
|
-
|
103
|
+
|
104
104
|
should "install a package.json" do
|
105
105
|
assert_readable @install_path, 'package.json'
|
106
106
|
assert_file_contents(/\"name\"\:\s*\"jquery\"/, @install_path, 'package.json')
|
107
107
|
end
|
108
|
-
|
108
|
+
|
109
109
|
should "move file into install path at name/version" do
|
110
110
|
assert_dir @install_path
|
111
111
|
assert_readable @install_path, 'jquery.js'
|
112
112
|
assert_equal fixture('jquery-1.4.1.js'), File.read(File.join(@install_path, 'jquery.js'))
|
113
113
|
end
|
114
114
|
end
|
115
|
-
|
115
|
+
|
116
116
|
context "with a file that seems to be installed already" do
|
117
117
|
should "raise error" do
|
118
118
|
@installer = Jim::Installer.new(fixture_path('jquery-1.4.1.js'), tmp_path)
|
@@ -125,7 +125,7 @@ class TestJimInstaller < Test::Unit::TestCase
|
|
125
125
|
}
|
126
126
|
end
|
127
127
|
end
|
128
|
-
|
128
|
+
|
129
129
|
context "with a duplicate file" do
|
130
130
|
should "skip install but not raise error" do
|
131
131
|
@installer = Jim::Installer.new(fixture_path('jquery-1.4.1.js'), tmp_path)
|
@@ -163,7 +163,7 @@ class TestJimInstaller < Test::Unit::TestCase
|
|
163
163
|
assert_not_readable tmp_path, 'lib', 'test-2.0', 'test.js'
|
164
164
|
assert_not_readable tmp_path, 'lib', 'test-0', 'test.js'
|
165
165
|
end
|
166
|
-
|
166
|
+
|
167
167
|
should "install a package.json" do
|
168
168
|
json_path = @install_path + 'jquery.metadata-2.0' + 'package.json'
|
169
169
|
assert_readable json_path
|
@@ -197,21 +197,21 @@ class TestJimInstaller < Test::Unit::TestCase
|
|
197
197
|
assert_not_readable tmp_path, 'lib', 'test_sammy_application-0.5.0', 'test_sammy_application.js'
|
198
198
|
assert_not_readable tmp_path, 'lib', 'test_sammy_application-0', 'test_sammy_application.js'
|
199
199
|
end
|
200
|
-
|
200
|
+
|
201
201
|
should "install a package.json" do
|
202
202
|
json_path = @install_path + 'sammy-0.5.0' + 'package.json'
|
203
203
|
assert_readable json_path
|
204
204
|
assert_file_contents(/\"name\"\:\s*\"sammy\"/, json_path)
|
205
|
-
end
|
205
|
+
end
|
206
206
|
end
|
207
|
-
|
207
|
+
|
208
208
|
context "with an existing package.json" do
|
209
209
|
setup do
|
210
210
|
@installer = Jim::Installer.new(fixture_path('mustache.js'), tmp_path)
|
211
211
|
@paths = @installer.install
|
212
212
|
@install_path = tmp_path + 'lib'
|
213
213
|
end
|
214
|
-
|
214
|
+
|
215
215
|
should "return an array of paths" do
|
216
216
|
assert @paths.is_a?(Array)
|
217
217
|
assert @paths.all? {|p| p.is_a?(Pathname) }
|
@@ -221,7 +221,7 @@ class TestJimInstaller < Test::Unit::TestCase
|
|
221
221
|
assert_dir tmp_path, 'lib', 'mustache-0.2.2'
|
222
222
|
assert_readable tmp_path, 'lib', 'mustache-0.2.2', 'mustache.js'
|
223
223
|
end
|
224
|
-
|
224
|
+
|
225
225
|
should "merge initial package.json values" do
|
226
226
|
json_path = @install_path + 'mustache-0.2.2' + 'package.json'
|
227
227
|
assert_readable json_path
|
@@ -229,7 +229,7 @@ class TestJimInstaller < Test::Unit::TestCase
|
|
229
229
|
assert_file_contents(/\"author\"\:\s*\"Jan Lehnardt\"/, json_path)
|
230
230
|
end
|
231
231
|
end
|
232
|
-
|
232
|
+
|
233
233
|
end
|
234
234
|
|
235
235
|
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'helper'
|
2
|
+
require 'rack/test'
|
3
|
+
require 'jim/rack'
|
4
|
+
|
5
|
+
class TestJimRack < Test::Unit::TestCase
|
6
|
+
include Rack::Test::Methods
|
7
|
+
|
8
|
+
def setup
|
9
|
+
@bundle_uri = '/javascripts/'
|
10
|
+
end
|
11
|
+
|
12
|
+
def app
|
13
|
+
jimfile = fixture_path('jimfile')
|
14
|
+
Rack::Builder.new {
|
15
|
+
use Jim::Rack, :bundle_uri => @bundle_uri,
|
16
|
+
:jimfile => jimfile,
|
17
|
+
:jimhome => File.join(File.dirname(__FILE__), 'tmp')
|
18
|
+
run lambda { |env| [200, {'Content-Type' => 'text/plain'}, ['okay']] }
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
context "Jim::Rack" do
|
23
|
+
|
24
|
+
should "get individual bundle" do
|
25
|
+
Jim::Bundler.any_instance.expects(:bundle!).with('default').once.returns('jQuery')
|
26
|
+
get "#{@bundle_uri}default.js"
|
27
|
+
assert last_response
|
28
|
+
assert_equal 'jQuery', last_response.body
|
29
|
+
assert_equal 'text/javascript', last_response.headers['Content-Type']
|
30
|
+
end
|
31
|
+
|
32
|
+
should "get individual compressed bundle" do
|
33
|
+
Jim::Bundler.any_instance.expects(:compress!).with('default').once.returns('jQuery')
|
34
|
+
get "#{@bundle_uri}default.min.js"
|
35
|
+
assert last_response
|
36
|
+
assert_equal 'jQuery', last_response.body
|
37
|
+
assert_equal 'text/javascript', last_response.headers['Content-Type']
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
@@ -40,14 +40,14 @@ class TestJimVersionParser < Test::Unit::TestCase
|
|
40
40
|
end
|
41
41
|
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
context ".parse_package_json" do
|
45
|
-
|
45
|
+
|
46
46
|
should "parse version and name from file" do
|
47
47
|
assert_equal ["mustache", "0.2.2"], Jim::VersionParser.parse_package_json(fixture('mustache.js/package.json'))
|
48
48
|
end
|
49
|
-
|
49
|
+
|
50
50
|
end
|
51
51
|
|
52
52
|
end
|
53
|
-
end
|
53
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
4
|
+
prerelease: true
|
6
5
|
segments:
|
7
6
|
- 0
|
8
|
-
- 2
|
9
7
|
- 3
|
10
|
-
|
8
|
+
- 0
|
9
|
+
- pre
|
10
|
+
version: 0.3.0.pre
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Quint
|
@@ -15,113 +15,274 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-11-21 00:00:00 -08:00
|
19
19
|
default_executable: jim
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: downlow
|
23
|
-
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
27
|
-
- -
|
26
|
+
- - ~>
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 29
|
30
28
|
segments:
|
31
29
|
- 0
|
32
30
|
- 1
|
33
31
|
- 3
|
34
32
|
version: 0.1.3
|
35
33
|
type: :runtime
|
34
|
+
prerelease: false
|
36
35
|
version_requirements: *id001
|
37
36
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
39
|
-
prerelease: false
|
37
|
+
name: thor
|
40
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
40
|
requirements:
|
43
41
|
- - ">="
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
43
|
segments:
|
47
44
|
- 0
|
48
45
|
version: "0"
|
49
46
|
type: :runtime
|
47
|
+
prerelease: false
|
50
48
|
version_requirements: *id002
|
51
49
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
53
|
-
prerelease: false
|
50
|
+
name: fssm
|
54
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
52
|
none: false
|
56
53
|
requirements:
|
57
54
|
- - ">="
|
58
55
|
- !ruby/object:Gem::Version
|
59
|
-
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
59
|
+
type: :runtime
|
60
|
+
prerelease: false
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: yajl-ruby
|
64
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
version: "0"
|
72
|
+
type: :runtime
|
73
|
+
prerelease: false
|
74
|
+
version_requirements: *id004
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: version_sorter
|
77
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
60
82
|
segments:
|
61
83
|
- 1
|
62
84
|
- 1
|
63
85
|
- 0
|
64
86
|
version: 1.1.0
|
65
87
|
type: :runtime
|
66
|
-
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: *id005
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: leftright
|
92
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
segments:
|
98
|
+
- 0
|
99
|
+
version: "0"
|
100
|
+
type: :runtime
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *id006
|
67
103
|
- !ruby/object:Gem::Dependency
|
68
104
|
name: shoulda
|
105
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
segments:
|
111
|
+
- 0
|
112
|
+
version: "0"
|
113
|
+
type: :runtime
|
69
114
|
prerelease: false
|
70
|
-
|
115
|
+
version_requirements: *id007
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
name: fakeweb
|
118
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
segments:
|
124
|
+
- 1
|
125
|
+
- 2
|
126
|
+
- 8
|
127
|
+
version: 1.2.8
|
128
|
+
type: :runtime
|
129
|
+
prerelease: false
|
130
|
+
version_requirements: *id008
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: mocha
|
133
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
segments:
|
139
|
+
- 0
|
140
|
+
version: "0"
|
141
|
+
type: :runtime
|
142
|
+
prerelease: false
|
143
|
+
version_requirements: *id009
|
144
|
+
- !ruby/object:Gem::Dependency
|
145
|
+
name: downlow
|
146
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
147
|
+
none: false
|
148
|
+
requirements:
|
149
|
+
- - ~>
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
segments:
|
152
|
+
- 0
|
153
|
+
- 1
|
154
|
+
- 4
|
155
|
+
version: 0.1.4
|
156
|
+
type: :runtime
|
157
|
+
prerelease: false
|
158
|
+
version_requirements: *id010
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: thor
|
161
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
segments:
|
167
|
+
- 0
|
168
|
+
- 14
|
169
|
+
- 4
|
170
|
+
version: 0.14.4
|
171
|
+
type: :runtime
|
172
|
+
prerelease: false
|
173
|
+
version_requirements: *id011
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: yajl-ruby
|
176
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
segments:
|
182
|
+
- 0
|
183
|
+
version: "0"
|
184
|
+
type: :runtime
|
185
|
+
prerelease: false
|
186
|
+
version_requirements: *id012
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: version_sorter
|
189
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
190
|
+
none: false
|
191
|
+
requirements:
|
192
|
+
- - ~>
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
segments:
|
195
|
+
- 1
|
196
|
+
- 1
|
197
|
+
- 0
|
198
|
+
version: 1.1.0
|
199
|
+
type: :runtime
|
200
|
+
prerelease: false
|
201
|
+
version_requirements: *id013
|
202
|
+
- !ruby/object:Gem::Dependency
|
203
|
+
name: fssm
|
204
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
205
|
+
none: false
|
206
|
+
requirements:
|
207
|
+
- - ~>
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
segments:
|
210
|
+
- 0
|
211
|
+
- 2
|
212
|
+
- 0
|
213
|
+
version: 0.2.0
|
214
|
+
type: :runtime
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: *id014
|
217
|
+
- !ruby/object:Gem::Dependency
|
218
|
+
name: shoulda
|
219
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
71
220
|
none: false
|
72
221
|
requirements:
|
73
222
|
- - ">="
|
74
223
|
- !ruby/object:Gem::Version
|
75
|
-
hash: 3
|
76
224
|
segments:
|
77
225
|
- 0
|
78
226
|
version: "0"
|
79
227
|
type: :development
|
80
|
-
|
228
|
+
prerelease: false
|
229
|
+
version_requirements: *id015
|
81
230
|
- !ruby/object:Gem::Dependency
|
82
231
|
name: fakeweb
|
83
|
-
|
84
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
232
|
+
requirement: &id016 !ruby/object:Gem::Requirement
|
85
233
|
none: false
|
86
234
|
requirements:
|
87
235
|
- - ">="
|
88
236
|
- !ruby/object:Gem::Version
|
89
|
-
hash: 15
|
90
237
|
segments:
|
91
238
|
- 1
|
92
239
|
- 2
|
93
240
|
- 8
|
94
241
|
version: 1.2.8
|
95
242
|
type: :development
|
96
|
-
|
243
|
+
prerelease: false
|
244
|
+
version_requirements: *id016
|
97
245
|
- !ruby/object:Gem::Dependency
|
98
246
|
name: mocha
|
99
|
-
|
100
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
247
|
+
requirement: &id017 !ruby/object:Gem::Requirement
|
101
248
|
none: false
|
102
249
|
requirements:
|
103
250
|
- - ">="
|
104
251
|
- !ruby/object:Gem::Version
|
105
|
-
hash: 3
|
106
252
|
segments:
|
107
253
|
- 0
|
108
254
|
version: "0"
|
109
255
|
type: :development
|
110
|
-
|
256
|
+
prerelease: false
|
257
|
+
version_requirements: *id017
|
111
258
|
- !ruby/object:Gem::Dependency
|
112
259
|
name: leftright
|
113
|
-
|
114
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
260
|
+
requirement: &id018 !ruby/object:Gem::Requirement
|
115
261
|
none: false
|
116
262
|
requirements:
|
117
263
|
- - ">="
|
118
264
|
- !ruby/object:Gem::Version
|
119
|
-
hash: 3
|
120
265
|
segments:
|
121
266
|
- 0
|
122
267
|
version: "0"
|
123
268
|
type: :development
|
124
|
-
|
269
|
+
prerelease: false
|
270
|
+
version_requirements: *id018
|
271
|
+
- !ruby/object:Gem::Dependency
|
272
|
+
name: rack-test
|
273
|
+
requirement: &id019 !ruby/object:Gem::Requirement
|
274
|
+
none: false
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
segments:
|
279
|
+
- 0
|
280
|
+
- 5
|
281
|
+
- 4
|
282
|
+
version: 0.5.4
|
283
|
+
type: :development
|
284
|
+
prerelease: false
|
285
|
+
version_requirements: *id019
|
125
286
|
description: jim is your friendly javascript library manager. He downloads, stores, bundles, vendors and compresses.
|
126
287
|
email: aaron@quirkey.com
|
127
288
|
executables:
|
@@ -130,16 +291,16 @@ extensions: []
|
|
130
291
|
|
131
292
|
extra_rdoc_files:
|
132
293
|
- LICENSE
|
133
|
-
- README.
|
294
|
+
- README.md
|
134
295
|
files:
|
135
|
-
- .gitignore
|
136
296
|
- Gemfile
|
137
297
|
- Gemfile.lock
|
138
298
|
- HISTORY
|
139
299
|
- LICENSE
|
140
|
-
- README.
|
300
|
+
- README.md
|
141
301
|
- Rakefile
|
142
302
|
- bin/jim
|
303
|
+
- default
|
143
304
|
- jim.gemspec
|
144
305
|
- lib/jim.rb
|
145
306
|
- lib/jim/bundler.rb
|
@@ -147,7 +308,6 @@ files:
|
|
147
308
|
- lib/jim/index.rb
|
148
309
|
- lib/jim/installer.rb
|
149
310
|
- lib/jim/rack.rb
|
150
|
-
- lib/jim/templates/commands
|
151
311
|
- lib/jim/templates/jimfile
|
152
312
|
- lib/jim/version_parser.rb
|
153
313
|
- test/fixtures/infoincomments.js
|
@@ -159,6 +319,7 @@ files:
|
|
159
319
|
- test/fixtures/mustache.js/mustache.js
|
160
320
|
- test/fixtures/mustache.js/package.json
|
161
321
|
- test/fixtures/noversion.js
|
322
|
+
- test/fixtures/old_jimfile
|
162
323
|
- test/fixtures/sammy-0.5.0/HISTORY.md
|
163
324
|
- test/fixtures/sammy-0.5.0/LICENSE
|
164
325
|
- test/fixtures/sammy-0.5.0/README.md
|
@@ -217,14 +378,15 @@ files:
|
|
217
378
|
- test/test_jim_cli.rb
|
218
379
|
- test/test_jim_index.rb
|
219
380
|
- test/test_jim_installer.rb
|
381
|
+
- test/test_jim_rack.rb
|
220
382
|
- test/test_jim_version_parser.rb
|
221
383
|
has_rdoc: true
|
222
384
|
homepage: http://github.com/quirkey/jim
|
223
385
|
licenses: []
|
224
386
|
|
225
387
|
post_install_message:
|
226
|
-
rdoc_options:
|
227
|
-
|
388
|
+
rdoc_options: []
|
389
|
+
|
228
390
|
require_paths:
|
229
391
|
- lib
|
230
392
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -232,19 +394,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
394
|
requirements:
|
233
395
|
- - ">="
|
234
396
|
- !ruby/object:Gem::Version
|
235
|
-
hash: 3
|
236
397
|
segments:
|
237
398
|
- 0
|
238
399
|
version: "0"
|
239
400
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
401
|
none: false
|
241
402
|
requirements:
|
242
|
-
- - "
|
403
|
+
- - ">"
|
243
404
|
- !ruby/object:Gem::Version
|
244
|
-
hash: 3
|
245
405
|
segments:
|
246
|
-
-
|
247
|
-
|
406
|
+
- 1
|
407
|
+
- 3
|
408
|
+
- 1
|
409
|
+
version: 1.3.1
|
248
410
|
requirements: []
|
249
411
|
|
250
412
|
rubyforge_project:
|
@@ -260,4 +422,5 @@ test_files:
|
|
260
422
|
- test/test_jim_cli.rb
|
261
423
|
- test/test_jim_index.rb
|
262
424
|
- test/test_jim_installer.rb
|
425
|
+
- test/test_jim_rack.rb
|
263
426
|
- test/test_jim_version_parser.rb
|