active_assets 0.2.0.rc3 → 0.2.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -93,7 +93,7 @@ ActiveExpansions allow you to register Rails javascript and stylesheet expansion
93
93
 
94
94
  ### Introduction to Active Sprites
95
95
 
96
- ActiveSprites allows you to generate sprites within your Rails apps with `rake sprites`! All you need is rmagick (in development) and you are on your way. Store the images that make up your sprites in your rails project, use the dsl below to tell ActiveSprites which images to include in your sprites, the css selector the corresponds to each image in the sprite, the location to write the sprite, and the location to write the stylesheet.
96
+ ActiveSprites allows you to generate sprites within your Rails apps with `rake sprites`! All you need is rmagick and you are on your way. If you don't have rmagick installed, ActiveSprites will just fail silently when you try to generate the sprites. Store the images that make up your sprites in your rails project, use the dsl below to tell ActiveSprites which images to include in your sprites, the css selector the corresponds to each image in the sprite, the location to write the sprite, and the location to write the stylesheet.
97
97
 
98
98
  #### config/sprites.rb
99
99
  Rails.application.sprites do
@@ -44,7 +44,11 @@ module ActiveAssets
44
44
  end
45
45
 
46
46
  def generate!
47
- Runner.new(@sprites).generate!
47
+ begin
48
+ require 'rmagick'
49
+ Runner.new(@sprites).generate!
50
+ rescue LoadError
51
+ end
48
52
  end
49
53
  end
50
54
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_assets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424051
4
+ hash: 15424061
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 0
10
10
  - rc
11
- - 3
12
- version: 0.2.0.rc3
11
+ - 4
12
+ version: 0.2.0.rc4
13
13
  platform: ruby
14
14
  authors:
15
15
  - Sam Woodard
@@ -31,7 +31,7 @@ dependencies:
31
31
  segments:
32
32
  - 0
33
33
  version: "0"
34
- type: :runtime
34
+ type: :development
35
35
  name: rmagick
36
36
  requirement: *id001
37
37
  - !ruby/object:Gem::Dependency