sprite 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -94,7 +94,7 @@ All image and style paths should be set relative to the public folder (which is
94
94
 
95
95
  config:
96
96
  style: css
97
- style_output_path: sass/mixins/sprites.sass
97
+ style_output_path: stylesheets/sprites
98
98
  image_output_path: images/sprites/
99
99
  image_source_path: images/
100
100
  public_path: public/
@@ -150,8 +150,10 @@ By default, it will use with `style: css` and generate the file at `public/style
150
150
  height: 75px;
151
151
  }
152
152
 
153
- We also support mixin syntax via `style: sass_mixin`. If set, sprite will only generate a yml with your specific sprite configurations. It then provides a SASS mixin which you can use in order to mix in these sprites anywhere within your SASS stylesheets.
154
-
153
+ We also support mixin syntax via `style: sass_mixin`. If set, it will generate a SASS mixin which you can use in order to mix in these sprites anywhere within your SASS stylesheets. For this option, set `style_output_path:` to `stylesheets/sass/_sprites` in order to generate the sass mixin file at `stylesheets/sass/_sprites.sass`
154
+
155
+ @import "sass/mixins/sprites.sass"
156
+
155
157
  // you can then use your sprite like this
156
158
  .largebluestar
157
159
  +sprite("blue-stars", "large")
@@ -159,6 +161,7 @@ We also support mixin syntax via `style: sass_mixin`. If set, sprite will only g
159
161
  .mysmallbluestar
160
162
  +sprite("blue-stars", "small")
161
163
 
164
+ Additional style generators are very easy to add. We have one for `style: sass` and `style: sass_ext`. The `sass_ext` style is a work in progress, as it's attempting to write the sprite data to yml and use a dynamic sass extension to provide the mixin. Eventually, if it works, this will be the default for `sass_mixin`
162
165
 
163
166
  ## Framework Integration?? ##
164
167
 
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ Jeweler::Tasks.new do |gemspec|
16
16
  gemspec.description = "sprite is a rails/merb plugin that generates sprites for css, sass"
17
17
  gemspec.email = "merbjedi@gmail.com"
18
18
  gemspec.homepage = "http://github.com/merbjedi/sprite"
19
- gemspec.authors = ["Jacques Crocker", "Richard Huang"]
19
+ gemspec.authors = ["Jacques Crocker"]
20
20
  gemspec.files.exclude '.gitignore'
21
21
 
22
22
  # removing test files and specs from the gem to save space
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -74,7 +74,7 @@ module Sprite
74
74
  x = 0
75
75
  y = dest_image.rows + spaced_by
76
76
  end
77
- results << combiner.image_properties(source_image).merge(:x => x, :y => y, :group => name)
77
+ results << combiner.image_properties(source_image).merge(:x => -x, :y => -y, :group => name)
78
78
  dest_image = combiner.composite_images(dest_image, source_image, x, y)
79
79
  end
80
80
 
data/sprite.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sprite}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Jacques Crocker", "Richard Huang"]
12
- s.date = %q{2009-11-18}
11
+ s.authors = ["Jacques Crocker"]
12
+ s.date = %q{2009-11-19}
13
13
  s.default_executable = %q{sprite}
14
14
  s.description = %q{sprite is a rails/merb plugin that generates sprites for css, sass}
15
15
  s.email = %q{merbjedi@gmail.com}
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacques Crocker
8
- - Richard Huang
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
11
 
13
- date: 2009-11-18 00:00:00 -08:00
12
+ date: 2009-11-19 00:00:00 -08:00
14
13
  default_executable: sprite
15
14
  dependencies: []
16
15