jim 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/HISTORY +4 -0
  2. data/bin/jim +1 -1
  3. data/jim.gemspec +2 -2
  4. data/lib/jim.rb +1 -1
  5. data/lib/jim/bundler.rb +5 -2
  6. metadata +13 -3
data/HISTORY CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.3 [09-26-10]
2
+
3
+ * Fixed logging issues
4
+
1
5
  == 0.2.2 [09-10-10]
2
6
 
3
7
  * Fixed issue where io's passed to bundle not closed properly before returning
data/bin/jim CHANGED
@@ -3,4 +3,4 @@
3
3
  require 'jim'
4
4
 
5
5
  cli = Jim::CLI.new(ARGV)
6
- puts cli.run
6
+ cli.run
data/jim.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jim}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.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 = %q{2010-09-10}
12
+ s.date = %q{2010-09-26}
13
13
  s.default_executable = %q{jim}
14
14
  s.description = %q{jim is your friendly javascript library manager. He downloads, stores, bundles, vendors and compresses.}
15
15
  s.email = %q{aaron@quirkey.com}
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.2.2'
8
+ VERSION = '0.2.3'
9
9
 
10
10
  class Error < RuntimeError; end
11
11
  class InstallError < Error; end
data/lib/jim/bundler.rb CHANGED
@@ -55,7 +55,7 @@ module Jim
55
55
  # path specified in the :bundled_path option
56
56
  def bundle!(to = nil)
57
57
  resolve! if paths.empty?
58
- to = options[:bundled_path] if to.nil? && to != false && options[:bundled_path]
58
+ to = options[:bundled_path] if to.nil? && options[:bundled_path]
59
59
  io_for_path(to) do |io|
60
60
  logger.info "Bundling to #{to}" if to
61
61
  paths.each do |path, name, version|
@@ -123,7 +123,10 @@ module Jim
123
123
  to
124
124
  when Pathname
125
125
  to.dirname.mkpath
126
- io = to.open('w') {|f| yield f }
126
+ io = to.open('w')
127
+ yield io
128
+ io.close
129
+ io
127
130
  when String
128
131
  to = Pathname.new(to)
129
132
  io_for_path(to, &block)
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jim
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 17
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 2
9
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - Aaron Quint
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-09-10 00:00:00 -07:00
18
+ date: 2010-09-26 00:00:00 +02:00
18
19
  default_executable: jim
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 29
28
30
  segments:
29
31
  - 0
30
32
  - 1
@@ -40,6 +42,7 @@ dependencies:
40
42
  requirements:
41
43
  - - ">="
42
44
  - !ruby/object:Gem::Version
45
+ hash: 3
43
46
  segments:
44
47
  - 0
45
48
  version: "0"
@@ -53,6 +56,7 @@ dependencies:
53
56
  requirements:
54
57
  - - ">="
55
58
  - !ruby/object:Gem::Version
59
+ hash: 19
56
60
  segments:
57
61
  - 1
58
62
  - 1
@@ -68,6 +72,7 @@ dependencies:
68
72
  requirements:
69
73
  - - ">="
70
74
  - !ruby/object:Gem::Version
75
+ hash: 3
71
76
  segments:
72
77
  - 0
73
78
  version: "0"
@@ -81,6 +86,7 @@ dependencies:
81
86
  requirements:
82
87
  - - ">="
83
88
  - !ruby/object:Gem::Version
89
+ hash: 15
84
90
  segments:
85
91
  - 1
86
92
  - 2
@@ -96,6 +102,7 @@ dependencies:
96
102
  requirements:
97
103
  - - ">="
98
104
  - !ruby/object:Gem::Version
105
+ hash: 3
99
106
  segments:
100
107
  - 0
101
108
  version: "0"
@@ -109,6 +116,7 @@ dependencies:
109
116
  requirements:
110
117
  - - ">="
111
118
  - !ruby/object:Gem::Version
119
+ hash: 3
112
120
  segments:
113
121
  - 0
114
122
  version: "0"
@@ -224,6 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
224
232
  requirements:
225
233
  - - ">="
226
234
  - !ruby/object:Gem::Version
235
+ hash: 3
227
236
  segments:
228
237
  - 0
229
238
  version: "0"
@@ -232,6 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
241
  requirements:
233
242
  - - ">="
234
243
  - !ruby/object:Gem::Version
244
+ hash: 3
235
245
  segments:
236
246
  - 0
237
247
  version: "0"