jim 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -2
- data/Gemfile.lock +33 -15
- data/HISTORY +5 -0
- data/jim.gemspec +9 -20
- data/lib/jim.rb +1 -1
- data/lib/jim/cli.rb +7 -6
- metadata +18 -27
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,28 +2,46 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
archive-tar-minitar (0.5.2)
|
5
|
-
downlow (0.1.
|
5
|
+
downlow (0.1.4)
|
6
6
|
archive-tar-minitar (>= 0.5.2)
|
7
7
|
rubyzip (>= 0.9.4)
|
8
8
|
fakeweb (1.3.0)
|
9
|
-
|
9
|
+
ffi (1.0.11)
|
10
10
|
git (1.2.5)
|
11
|
-
jeweler (1.
|
12
|
-
bundler (~> 1.0
|
11
|
+
jeweler (1.8.3)
|
12
|
+
bundler (~> 1.0)
|
13
13
|
git (>= 1.2.5)
|
14
14
|
rake
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
rdoc
|
16
|
+
json (1.7.3)
|
17
|
+
listen (0.4.2)
|
18
|
+
rb-fchange (~> 0.0.5)
|
19
|
+
rb-fsevent (~> 0.9.1)
|
20
|
+
rb-inotify (~> 0.8.8)
|
21
|
+
metaclass (0.0.1)
|
22
|
+
mocha (0.11.4)
|
23
|
+
metaclass (~> 0.0.1)
|
24
|
+
rack (1.4.1)
|
25
|
+
rack-test (0.6.1)
|
19
26
|
rack (>= 1.0)
|
20
27
|
rake (0.9.2.2)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
28
|
+
rb-fchange (0.0.5)
|
29
|
+
ffi
|
30
|
+
rb-fsevent (0.9.1)
|
31
|
+
rb-inotify (0.8.8)
|
32
|
+
ffi (>= 0.5.0)
|
33
|
+
rdoc (3.12)
|
34
|
+
json (~> 1.4)
|
35
|
+
rubyzip (0.9.8)
|
36
|
+
shoulda (3.0.1)
|
37
|
+
shoulda-context (~> 1.0.0)
|
38
|
+
shoulda-matchers (~> 1.0.0)
|
39
|
+
shoulda-context (1.0.0)
|
40
|
+
shoulda-matchers (1.0.0)
|
41
|
+
test-unit (2.4.8)
|
42
|
+
thor (0.15.2)
|
25
43
|
version_sorter (1.1.0)
|
26
|
-
yajl-ruby (
|
44
|
+
yajl-ruby (1.1.0)
|
27
45
|
|
28
46
|
PLATFORMS
|
29
47
|
ruby
|
@@ -31,13 +49,13 @@ PLATFORMS
|
|
31
49
|
DEPENDENCIES
|
32
50
|
downlow (~> 0.1.3)
|
33
51
|
fakeweb (>= 1.2.8)
|
34
|
-
fssm
|
35
52
|
jeweler
|
53
|
+
listen
|
36
54
|
mocha
|
37
55
|
rack-test
|
38
56
|
rake
|
39
57
|
shoulda
|
40
58
|
test-unit
|
41
|
-
thor
|
59
|
+
thor (~> 0.15)
|
42
60
|
version_sorter (~> 1.1.0)
|
43
61
|
yajl-ruby
|
data/HISTORY
CHANGED
data/jim.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "jim"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aaron Quint"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2012-05-30"
|
13
13
|
s.description = "jim is your friendly javascript library manager. He downloads, stores, bundles, vendors and compresses."
|
14
14
|
s.email = "aaron@quirkey.com"
|
15
15
|
s.executables = ["jim"]
|
@@ -108,40 +108,29 @@ Gem::Specification.new do |s|
|
|
108
108
|
]
|
109
109
|
s.homepage = "http://github.com/quirkey/jim"
|
110
110
|
s.require_paths = ["lib"]
|
111
|
-
s.rubygems_version = "1.8.
|
111
|
+
s.rubygems_version = "1.8.17"
|
112
112
|
s.summary = "jim is your friendly javascript library manager"
|
113
|
-
s.test_files = [
|
114
|
-
"test/fixtures/sammy-0.5.0/examples/backend/app.rb",
|
115
|
-
"test/fixtures/sammy-0.5.0/vendor/jsdoc/jsdoc.rb",
|
116
|
-
"test/helper.rb",
|
117
|
-
"test/test_jim_bundler.rb",
|
118
|
-
"test/test_jim_cli.rb",
|
119
|
-
"test/test_jim_index.rb",
|
120
|
-
"test/test_jim_installer.rb",
|
121
|
-
"test/test_jim_rack.rb",
|
122
|
-
"test/test_jim_version_parser.rb"
|
123
|
-
]
|
124
113
|
|
125
114
|
if s.respond_to? :specification_version then
|
126
115
|
s.specification_version = 3
|
127
116
|
|
128
117
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
129
118
|
s.add_runtime_dependency(%q<downlow>, ["~> 0.1.3"])
|
130
|
-
s.add_runtime_dependency(%q<thor>, ["
|
131
|
-
s.add_runtime_dependency(%q<
|
119
|
+
s.add_runtime_dependency(%q<thor>, ["~> 0.15"])
|
120
|
+
s.add_runtime_dependency(%q<listen>, [">= 0"])
|
132
121
|
s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
|
133
122
|
s.add_runtime_dependency(%q<version_sorter>, ["~> 1.1.0"])
|
134
123
|
else
|
135
124
|
s.add_dependency(%q<downlow>, ["~> 0.1.3"])
|
136
|
-
s.add_dependency(%q<thor>, ["
|
137
|
-
s.add_dependency(%q<
|
125
|
+
s.add_dependency(%q<thor>, ["~> 0.15"])
|
126
|
+
s.add_dependency(%q<listen>, [">= 0"])
|
138
127
|
s.add_dependency(%q<yajl-ruby>, [">= 0"])
|
139
128
|
s.add_dependency(%q<version_sorter>, ["~> 1.1.0"])
|
140
129
|
end
|
141
130
|
else
|
142
131
|
s.add_dependency(%q<downlow>, ["~> 0.1.3"])
|
143
|
-
s.add_dependency(%q<thor>, ["
|
144
|
-
s.add_dependency(%q<
|
132
|
+
s.add_dependency(%q<thor>, ["~> 0.15"])
|
133
|
+
s.add_dependency(%q<listen>, [">= 0"])
|
145
134
|
s.add_dependency(%q<yajl-ruby>, [">= 0"])
|
146
135
|
s.add_dependency(%q<version_sorter>, ["~> 1.1.0"])
|
147
136
|
end
|
data/lib/jim.rb
CHANGED
data/lib/jim/cli.rb
CHANGED
@@ -46,7 +46,7 @@ module Jim
|
|
46
46
|
# parse the options
|
47
47
|
self.jimfile = Pathname.new(options[:jimfile] || 'Jimfile').expand_path
|
48
48
|
self.force = options[:force]
|
49
|
-
self.debug = self.class.debugging
|
49
|
+
self.debug = self.class.respond_to?(:debugging) ? self.class.debugging : options[:debug]
|
50
50
|
logger.level = Logger::DEBUG if self.debug
|
51
51
|
end
|
52
52
|
|
@@ -211,7 +211,7 @@ module Jim
|
|
211
211
|
"Watches your Jimfile and JS files and triggers `bundle` if something " +
|
212
212
|
"changes. Handy for development."
|
213
213
|
def watch(dir = nil)
|
214
|
-
require '
|
214
|
+
require 'listen'
|
215
215
|
run_update = lambda {|type, path|
|
216
216
|
unless bundler.bundle_paths.any? {|p| path.include?(p) }
|
217
217
|
say("--> #{path} #{type}")
|
@@ -220,16 +220,17 @@ module Jim
|
|
220
220
|
}
|
221
221
|
say "Now watching JS files..."
|
222
222
|
run_update["started", 'Jimfile']
|
223
|
-
|
224
|
-
|
223
|
+
dir ||= Dir.pwd
|
224
|
+
Listen.to(File.expand_path(dir), :filter => /(\.js$|Jimfile)/) do |modified, added, removed|
|
225
|
+
modified.each do |relative|
|
225
226
|
run_update["changed", relative]
|
226
227
|
end
|
227
228
|
|
228
|
-
|
229
|
+
added.each do |relative|
|
229
230
|
run_update["created", relative]
|
230
231
|
end
|
231
232
|
|
232
|
-
|
233
|
+
removed.each do |relative|
|
233
234
|
run_update["deleted", relative]
|
234
235
|
end
|
235
236
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
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:
|
12
|
+
date: 2012-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: downlow
|
16
|
-
requirement: &
|
16
|
+
requirement: &70298301634360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,21 +21,21 @@ dependencies:
|
|
21
21
|
version: 0.1.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70298301634360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &70298301633680 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
32
|
+
version: '0.15'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70298301633680
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
requirement: &
|
37
|
+
name: listen
|
38
|
+
requirement: &70298301632000 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70298301632000
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: yajl-ruby
|
49
|
-
requirement: &
|
49
|
+
requirement: &70298301630680 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70298301630680
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: version_sorter
|
60
|
-
requirement: &
|
60
|
+
requirement: &70298301629900 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: 1.1.0
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70298301629900
|
69
69
|
description: jim is your friendly javascript library manager. He downloads, stores,
|
70
70
|
bundles, vendors and compresses.
|
71
71
|
email: aaron@quirkey.com
|
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
177
|
version: '0'
|
178
178
|
segments:
|
179
179
|
- 0
|
180
|
-
hash: -
|
180
|
+
hash: -1073938094813439287
|
181
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
@@ -186,17 +186,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
188
|
rubyforge_project:
|
189
|
-
rubygems_version: 1.8.
|
189
|
+
rubygems_version: 1.8.17
|
190
190
|
signing_key:
|
191
191
|
specification_version: 3
|
192
192
|
summary: jim is your friendly javascript library manager
|
193
|
-
test_files:
|
194
|
-
- test/fixtures/sammy-0.5.0/examples/backend/app.rb
|
195
|
-
- test/fixtures/sammy-0.5.0/vendor/jsdoc/jsdoc.rb
|
196
|
-
- test/helper.rb
|
197
|
-
- test/test_jim_bundler.rb
|
198
|
-
- test/test_jim_cli.rb
|
199
|
-
- test/test_jim_index.rb
|
200
|
-
- test/test_jim_installer.rb
|
201
|
-
- test/test_jim_rack.rb
|
202
|
-
- test/test_jim_version_parser.rb
|
193
|
+
test_files: []
|