jake 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ === 1.1.1 / 2012-04-11
2
+
3
+ * Fix building of packages without headers
4
+ * Print generated source map files in bin/packr output
5
+
6
+
1
7
  === 1.1.0 / 2012-04-07
2
8
 
3
9
  * Add support for source maps from Packr 3.2
@@ -46,6 +46,7 @@ module Jake
46
46
  Jake.read(Jake.path( directory, @config[:header])) :
47
47
  (parent ? parent.header : @build.header)
48
48
 
49
+ return nil unless content
49
50
  header = Jake.erb(content).result(@build.helper.scope)
50
51
  return nil if header == ''
51
52
  header
@@ -75,13 +76,13 @@ module Jake
75
76
  source_map = output_code.source_map if output_code.respond_to?(:source_map)
76
77
 
77
78
  File.open(path, 'w') { |f| f.write(output_code) }
79
+ @build.fire(:file_created, self, name, path)
78
80
 
79
81
  if source_map and source_map.enabled?
80
82
  File.open(source_map.filename, 'w') { |f| f.write(source_map.to_s) }
83
+ @build.fire(:file_created, self, name, source_map.filename)
81
84
  end
82
85
 
83
- @build.fire(:file_created, self, name, path)
84
-
85
86
  size = (File.size(path)/1024.0).ceil
86
87
  path = path.sub(@build.build_directory, '')
87
88
  end
@@ -21,7 +21,7 @@ module Jake
21
21
  packer = packer_settings(build_name)
22
22
 
23
23
  head = header
24
- head = head.strip unless packer[:minify] == false
24
+ head = head && head.strip unless packer[:minify] == false
25
25
 
26
26
  packer = packer.merge(:header => head)
27
27
  code = code_for_packer(packer, build_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventful
16
- requirement: &10784480 !ruby/object:Gem::Requirement
16
+ requirement: &15964720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10784480
24
+ version_requirements: *15964720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: packr
27
- requirement: &10783700 !ruby/object:Gem::Requirement
27
+ requirement: &15963660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.2.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *10783700
35
+ version_requirements: *15963660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: oyster
38
- requirement: &10869700 !ruby/object:Gem::Requirement
38
+ requirement: &15963020 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.9.5
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *10869700
46
+ version_requirements: *15963020
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: test-unit
49
- requirement: &10868800 !ruby/object:Gem::Requirement
49
+ requirement: &15962640 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *10868800
57
+ version_requirements: *15962640
58
58
  description:
59
59
  email: jcoglan@gmail.com
60
60
  executables: