chriseppstein-compass 0.8.9 → 0.8.10

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/CHANGELOG.markdown CHANGED
@@ -1,14 +1,23 @@
1
1
  COMPASS CHANGELOG
2
2
  =================
3
+ 0.8.10 (August 16, 2009)
4
+ ------------------------
5
+ Bug Fix Release:
6
+
7
+ * Write files in binary mode to avoid data corruption when installing images on windows.
8
+ Fixes [Issue #39](http://github.com/chriseppstein/compass/issues/#issue/39)
9
+
3
10
  0.8.9 (August 9, 2009)
4
11
  ----------------------
5
12
  Bug Fix Release:
13
+
6
14
  * [Blueprint] The default screen.sass generated invalid selectors due to improper nesting. A better fix is coming in the next release.
7
15
 
8
16
  0.8.8 (July 21, 2009)
9
17
  ---------------------
10
18
 
11
19
  Bug Fix Release:
20
+
12
21
  * [Compass Core] Fixed a bug in alternating_rows_and_columns. Improper nesting caused some styles to be improperly rendered.
13
22
  [Commit](http://github.com/chriseppstein/compass/commit/e277ed2cd3fded0b98ddaa87fc4d3b9d37cb7354)
14
23
  * [YUI] Fixed a bug in yui grids where the .first div wouldn't get the right styles in some rare cases due to incorrect nesting.
@@ -19,6 +28,7 @@ Bug Fix Release:
19
28
  ---------------------
20
29
 
21
30
  Bug Fix Release:
31
+
22
32
  * Load haml-edge only if it's all new and shiny. Closes GH-26.
23
33
  [Commit](http://github.com/chriseppstein/compass/commit/59a6067b3a67a79bfd9a5ce325fc1be4bb6c9e78)
24
34
  * [Blueprint] Added more descriptive comments to the Blueprint IE template.
data/REVISION CHANGED
@@ -1 +1 @@
1
- b502fcafaf78ce24f13a4b93f28ef984c5b57cae
1
+ 0492fc99695bf8ec64cb64ca41b7451db9e01fcb
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 9
2
+ :patch: 10
3
3
  :major: 0
4
4
  :minor: 8
@@ -8,10 +8,10 @@ module Compass
8
8
  end
9
9
 
10
10
  # copy/process a template in the compass template directory to the project directory.
11
- def copy(from, to, options = nil)
11
+ def copy(from, to, options = nil, binary = false)
12
12
  options ||= self.options if self.respond_to?(:options)
13
13
  contents = File.new(from).read
14
- write_file to, contents, options
14
+ write_file to, contents, options, binary
15
15
  end
16
16
 
17
17
  # create a directory and all the directories necessary to reach it.
@@ -29,7 +29,7 @@ module Compass
29
29
  end
30
30
 
31
31
  # Write a file given the file contents as a string
32
- def write_file(file_name, contents, options = nil)
32
+ def write_file(file_name, contents, options = nil, binary = false)
33
33
  options ||= self.options if self.respond_to?(:options)
34
34
  skip_write = options[:dry_run]
35
35
  if File.exists?(file_name)
@@ -49,7 +49,9 @@ module Compass
49
49
  if skip_write
50
50
  FileUtils.touch file_name
51
51
  else
52
- open(file_name,'w') do |file|
52
+ mode = "w"
53
+ mode << "b" if binary
54
+ open(file_name, mode) do |file|
53
55
  file.write(contents)
54
56
  end
55
57
  end
@@ -87,7 +87,7 @@ module Compass
87
87
  "#{options[:pattern_name]}/" if options[:pattern_name]
88
88
  end
89
89
 
90
- def self.installer(type, &locator)
90
+ def self.installer(type, installer_opts = {}, &locator)
91
91
  locator ||= lambda{|to| to}
92
92
  loc_method = "install_location_for_#{type}".to_sym
93
93
  define_method("simple_#{loc_method}", locator)
@@ -99,7 +99,9 @@ module Compass
99
99
  end
100
100
  end
101
101
  define_method "install_#{type}" do |from, to, options|
102
- copy templatize(from), targetize(send(loc_method, to, options))
102
+ from = templatize(from)
103
+ to = targetize(send(loc_method, to, options))
104
+ copy from, to, nil, (installer_opts[:binary] || options[:binary])
103
105
  end
104
106
  end
105
107
 
@@ -111,7 +113,7 @@ module Compass
111
113
  "#{css_dir}/#{to}"
112
114
  end
113
115
 
114
- installer :image do |to|
116
+ installer :image, :binary => true do |to|
115
117
  "#{images_dir}/#{to}"
116
118
  end
117
119
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chriseppstein-compass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.9
4
+ version: 0.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Eppstein
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-09 00:00:00 -07:00
12
+ date: 2009-08-16 00:00:00 -07:00
13
13
  default_executable: compass
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency