active_assets 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  Active Assets
2
2
  =============
3
3
 
4
+ If you are looking to use Active Assets with rails 2.3.x, click [here](https://github.com/shwoodard/active_assets/tree/0-3).
5
+
4
6
  A Railtie that provides an asset management system for css, javascript, and sprites in your Rails applications and engines. ActiveAssets includes two libraries, ActiveExpansions and ActiveSprites. ActiveSprites generates sprites defined by a dsl similar to a route definition. Similarly, ActiveExpansions' dsl creates `ActionView::Helpers::AssetTagHelper` javascript and stylesheet expansions, and adds additional features:
5
7
 
6
8
  * Concatenation of included assets for expansions at boot or deploy time.
@@ -46,8 +48,9 @@ Instead of the above,
46
48
  require 'active_assets/active_sprites/railtie'
47
49
  ...
48
50
 
49
- ## The DSLs
50
- ### Introduction to Active Sprites
51
+ The DSLs
52
+ ========
53
+ ## Introduction to Active Sprites
51
54
 
52
55
  ActiveSprites allows you to generate sprites within your Rails apps with `rake sprites`! All you need is `rmagick`, `chunky_png`, or `mini_magick` and you are on your way. Store the images that make up your sprites within your Rails project, use the dsl below to inform ActiveSprites of which images to include in your sprites as well as the css selector corresponding to each image, the location to write the sprite, and the location to write the stylesheet.
53
56
 
@@ -97,9 +100,9 @@ Rmagick is used by default and is by far the fastest. You can use one of two me
97
100
  ...
98
101
 
99
102
 
100
- ### Introduction to Active Expansions
103
+ ## Introduction to Active Expansions
101
104
 
102
- ActiveExpansions allow you to register Rails javascript and stylesheet expansions via a simple dsl. Addionally, the assets in the expansion are concatenated when appropriate and the expansion delivers the concatenated (or 'cached') assets' path in the appropriate environments. Also, files can be specified as deploy only or only for a specific environment. For example, you may wish to include jQuery or Prototype src files in development and use minified libraries from cdn sources in production. This is supported.
105
+ ActiveExpansions allow you to register Rails javascript and stylesheet expansions via a simple dsl. Additionally, the assets in the expansion are concatenated when appropriate and the expansion delivers the concatenated (or 'cached') assets' path in the appropriate environments. Also, files can be specified as deploy only or only for a specific environment. For example, you may wish to include jQuery or Prototype src files in development and use minified libraries from cdn sources in production. This is supported.
103
106
 
104
107
  * Below demonstration shows several variations on how to declare expansions. Note that these declaration are redundant to demonstrate how to accomplish the same thing in different ways.
105
108
  * Alternatively you can also register your assets in multiple files. Simply omit `config/asets.rb` and add as many .rb files as you like inside a directory `config/assets`
@@ -202,3 +205,7 @@ To enable your application to cache assets when the application is initialized,
202
205
  ...
203
206
  config.active_expansions.precache_assets = true
204
207
  ...
208
+
209
+ Contributing
210
+ ============
211
+ Fork and stuff...you know the drill!
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "active_assets"
4
- s.version = '1.0.0'
4
+ s.version = '1.0.1'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ["Sam Woodard"]
7
7
  s.email = ["sam@wildfireapp.com"]
@@ -85,7 +85,7 @@ module ActiveAssets
85
85
 
86
86
  def cleanse_paths!(paths)
87
87
  paths.map! do |path|
88
- if path =~ %r{^https?}
88
+ if path =~ %r{://}
89
89
  path
90
90
  else
91
91
  dirname = File.dirname(path)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_assets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Woodard
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-24 00:00:00 -08:00
18
+ date: 2011-03-15 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -28,10 +28,10 @@ dependencies:
28
28
  segments:
29
29
  - 0
30
30
  version: "0"
31
- type: :development
32
- requirement: *id001
33
31
  name: oily_png
34
32
  prerelease: false
33
+ type: :development
34
+ requirement: *id001
35
35
  - !ruby/object:Gem::Dependency
36
36
  version_requirements: &id002 !ruby/object:Gem::Requirement
37
37
  none: false
@@ -42,10 +42,10 @@ dependencies:
42
42
  segments:
43
43
  - 0
44
44
  version: "0"
45
- type: :development
46
- requirement: *id002
47
45
  name: chunky_png
48
46
  prerelease: false
47
+ type: :development
48
+ requirement: *id002
49
49
  - !ruby/object:Gem::Dependency
50
50
  version_requirements: &id003 !ruby/object:Gem::Requirement
51
51
  none: false
@@ -56,10 +56,10 @@ dependencies:
56
56
  segments:
57
57
  - 0
58
58
  version: "0"
59
- type: :development
60
- requirement: *id003
61
59
  name: rmagick
62
60
  prerelease: false
61
+ type: :development
62
+ requirement: *id003
63
63
  - !ruby/object:Gem::Dependency
64
64
  version_requirements: &id004 !ruby/object:Gem::Requirement
65
65
  none: false
@@ -70,10 +70,10 @@ dependencies:
70
70
  segments:
71
71
  - 0
72
72
  version: "0"
73
- type: :development
74
- requirement: *id004
75
73
  name: mini_magick
76
74
  prerelease: false
75
+ type: :development
76
+ requirement: *id004
77
77
  - !ruby/object:Gem::Dependency
78
78
  version_requirements: &id005 !ruby/object:Gem::Requirement
79
79
  none: false
@@ -86,10 +86,10 @@ dependencies:
86
86
  - 1
87
87
  - 5
88
88
  version: 1.1.5
89
- type: :development
90
- requirement: *id005
91
89
  name: css_parser
92
90
  prerelease: false
91
+ type: :development
92
+ requirement: *id005
93
93
  - !ruby/object:Gem::Dependency
94
94
  version_requirements: &id006 !ruby/object:Gem::Requirement
95
95
  none: false
@@ -102,10 +102,10 @@ dependencies:
102
102
  - 0
103
103
  - 3
104
104
  version: 3.0.3
105
- type: :development
106
- requirement: *id006
107
105
  name: rails
108
106
  prerelease: false
107
+ type: :development
108
+ requirement: *id006
109
109
  - !ruby/object:Gem::Dependency
110
110
  version_requirements: &id007 !ruby/object:Gem::Requirement
111
111
  none: false
@@ -117,10 +117,10 @@ dependencies:
117
117
  - 2
118
118
  - 0
119
119
  version: "2.0"
120
- type: :development
121
- requirement: *id007
122
120
  name: test-unit
123
121
  prerelease: false
122
+ type: :development
123
+ requirement: *id007
124
124
  - !ruby/object:Gem::Dependency
125
125
  version_requirements: &id008 !ruby/object:Gem::Requirement
126
126
  none: false
@@ -133,10 +133,10 @@ dependencies:
133
133
  - 4
134
134
  - 2
135
135
  version: 4.4.2
136
- type: :development
137
- requirement: *id008
138
136
  name: ZenTest
139
137
  prerelease: false
138
+ type: :development
139
+ requirement: *id008
140
140
  description: A Railtie that provides an asset management system for css, javascript, and sprites in your Rails applications and engines. ActiveAssets includes two libraries, ActiveExpansions and ActiveSprites. ActiveSprites generates sprites defined by a dsl similar to a route definition. Similarly, ActiveExpansions' dsl creates ActionView::Helpers::AssetTagHelper javascript and stylesheet expansions, and adds additional features
141
141
  email:
142
142
  - sam@wildfireapp.com
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  requirements: []
287
287
 
288
288
  rubyforge_project: activeassets
289
- rubygems_version: 1.4.2
289
+ rubygems_version: 1.6.2
290
290
  signing_key:
291
291
  specification_version: 3
292
292
  summary: A Railtie that provides an asset management system for css, javascript, and sprites in your Rails applications and engines.