jim 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/Gemfile +2 -2
  2. data/Gemfile.lock +33 -15
  3. data/HISTORY +5 -0
  4. data/jim.gemspec +9 -20
  5. data/lib/jim.rb +1 -1
  6. data/lib/jim/cli.rb +7 -6
  7. metadata +18 -27
data/Gemfile CHANGED
@@ -1,8 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem "downlow", "~> 0.1.3"
4
- gem "thor"
5
- gem "fssm"
4
+ gem "thor", "~>0.15"
5
+ gem "listen"
6
6
  gem "yajl-ruby"
7
7
  gem "version_sorter", "~> 1.1.0"
8
8
 
@@ -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.3)
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
- fssm (0.2.5)
9
+ ffi (1.0.11)
10
10
  git (1.2.5)
11
- jeweler (1.5.2)
12
- bundler (~> 1.0.0)
11
+ jeweler (1.8.3)
12
+ bundler (~> 1.0)
13
13
  git (>= 1.2.5)
14
14
  rake
15
- mocha (0.9.8)
16
- rake
17
- rack (1.2.1)
18
- rack-test (0.5.7)
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
- rubyzip (0.9.4)
22
- shoulda (2.11.3)
23
- test-unit (2.1.2)
24
- thor (0.14.4)
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 (0.7.7)
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
@@ -1,3 +1,8 @@
1
+ == 0.3.3 [05-29-12]
2
+
3
+ * Update dependencies (Thor, etc)
4
+ * Move to listen gem (replaces FSSM)
5
+
1
6
  == 0.3.2 [11-09-11]
2
7
 
3
8
  * Dont raise error on install anymore, just return false (better for the CLI)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "jim"
8
- s.version = "0.3.2"
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 = "2011-11-09"
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.10"
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>, [">= 0"])
131
- s.add_runtime_dependency(%q<fssm>, [">= 0"])
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>, [">= 0"])
137
- s.add_dependency(%q<fssm>, [">= 0"])
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>, [">= 0"])
144
- s.add_dependency(%q<fssm>, [">= 0"])
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
@@ -5,7 +5,7 @@ require 'version_sorter'
5
5
  require 'digest/md5'
6
6
 
7
7
  module Jim
8
- VERSION = '0.3.2'
8
+ VERSION = '0.3.3'
9
9
 
10
10
  class Error < RuntimeError; end
11
11
  class InstallError < Error; end
@@ -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 || options[:debug]
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 'fssm'
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
- FSSM.monitor(Dir.pwd, [File.join('**','*.js'), 'Jimfile']) do
224
- update do |base, relative|
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
- create do |base, relative|
229
+ added.each do |relative|
229
230
  run_update["created", relative]
230
231
  end
231
232
 
232
- delete do |base, relative|
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.2
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: 2011-11-09 00:00:00.000000000Z
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: &70276442138720 !ruby/object:Gem::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: *70276442138720
24
+ version_requirements: *70298301634360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &70276442138020 !ruby/object:Gem::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: *70276442138020
35
+ version_requirements: *70298301633680
36
36
  - !ruby/object:Gem::Dependency
37
- name: fssm
38
- requirement: &70276442136880 !ruby/object:Gem::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: *70276442136880
46
+ version_requirements: *70298301632000
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: yajl-ruby
49
- requirement: &70276442135100 !ruby/object:Gem::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: *70276442135100
57
+ version_requirements: *70298301630680
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: version_sorter
60
- requirement: &70276442131480 !ruby/object:Gem::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: *70276442131480
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: -565656827092416792
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.10
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: []