radiant-asset_pipeline-extension 2.0.0 → 2.0.1

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Asset Pipeline
2
2
 
3
- Radiant is _so_ freaking awesome, but I made it better through this extension.
3
+ Radiant is _so_ freaking awesome, but it's better with an Asset Pipeline.
4
4
 
5
- Created by Your Name.
5
+ Created by Melissa Choy.
@@ -1,5 +1,9 @@
1
1
  require "radiant-asset_pipeline-extension"
2
- require 'asset_pipeline'
2
+
3
+ require 'sprockets'
4
+ require 'asset_pipeline/helpers'
5
+ require 'asset_pipeline/asset_tags'
6
+ require 'asset_pipeline/middleware'
3
7
 
4
8
  ActionController::Dispatcher.middleware.use AssetPipeline::Middleware
5
9
 
@@ -12,3 +16,36 @@ class AssetPipelineExtension < Radiant::Extension
12
16
  Page.send :include, AssetPipeline::AssetTags
13
17
  end
14
18
  end
19
+
20
+
21
+ module Rails
22
+
23
+ class << self
24
+ def asset_pipeline
25
+ @asset_pipeline ||= initialize_pipeline
26
+ end
27
+
28
+ def initialize_pipeline
29
+ sprockets = Sprockets::Environment.new
30
+ sprockets.cache = ActiveSupport::Cache::FileStore.new(File.join(Rails.root, "tmp", "cache", Radiant::config["asset_pipeline.path"]))
31
+
32
+ dir = File.join(Rails.root, "design/assets")
33
+ sprockets.append_path(dir) if File.exists?(dir)
34
+
35
+ (Radiant::Extension.descendants.map(&:root)).each do |ext_path|
36
+ dir = File.join(ext_path, "public")
37
+ sprockets.append_path(dir) if File.exists?(dir)
38
+ end
39
+
40
+ dir = File.join(RADIANT_ROOT, "public")
41
+ sprockets.append_path(dir) if File.exists?(dir)
42
+
43
+ sprockets.context_class.instance_eval do
44
+ include ActionView::Helpers
45
+ end
46
+
47
+ sprockets
48
+ end
49
+ end
50
+ end
51
+
@@ -1,36 +1,2 @@
1
- require 'sprockets'
2
- require 'asset_pipeline/helpers'
3
- require 'asset_pipeline/asset_tags'
4
- require 'asset_pipeline/middleware'
5
-
6
- module Rails
7
-
8
- class << self
9
- def asset_pipeline
10
- @asset_pipeline ||= initialize_pipeline
11
- end
12
-
13
- def initialize_pipeline
14
- sprockets = Sprockets::Environment.new
15
- sprockets.cache = ActiveSupport::Cache::FileStore.new(File.join(Rails.root, "tmp", "cache", Radiant::config["asset_pipeline.path"]))
16
-
17
- dir = File.join(Rails.root, "design/assets")
18
- sprockets.append_path(dir) if File.exists?(dir)
19
-
20
- (Radiant::Extension.descendants.map(&:root)).each do |ext_path|
21
- dir = File.join(ext_path, "public")
22
- sprockets.append_path(dir) if File.exists?(dir)
23
- end
24
-
25
- dir = File.join(RADIANT_ROOT, "public")
26
- sprockets.append_path(dir) if File.exists?(dir)
27
-
28
- sprockets.context_class.instance_eval do
29
- include ActionView::Helpers
30
- end
31
-
32
- sprockets
33
- end
34
- end
1
+ module AssetPipeline
35
2
  end
36
-
@@ -1,5 +1,5 @@
1
1
  module RadiantAssetPipelineExtension
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  SUMMARY = "Asset Pipeline for Radiant CMS"
4
4
  DESCRIPTION = "Makes Radiant better by adding asset_pipeline!"
5
5
  URL = "http://www.otilas.com.au"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-asset_pipeline-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-15 00:00:00.000000000 Z
12
+ date: 2012-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sprockets