radiant-asset_pipeline-extension 1.0.1 → 2.0.0
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 +2 -2
- data/Rakefile +105 -7
- data/asset_pipeline_extension.rb +5 -3
- data/config/initializers/radiant_config.rb +3 -0
- data/config/routes.rb +5 -0
- data/cucumber.yml +1 -0
- data/features/support/env.rb +11 -0
- data/features/support/paths.rb +22 -0
- data/lib/asset_pipeline.rb +36 -0
- data/lib/{sprockets/rails2/asset_helpers.rb → asset_pipeline/helpers.rb} +4 -4
- data/lib/asset_pipeline/middleware.rb +15 -0
- data/lib/radiant-asset_pipeline-extension.rb +5 -6
- data/lib/tasks/asset_pipeline_extension_tasks.rake +47 -0
- data/lib/tasks/tasks.rb +47 -0
- data/radiant-asset_pipeline-extension.gemspec +2 -2
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +36 -0
- metadata +54 -159
- data/Gemfile +0 -10
- data/lib/sprockets-rails2.rb +0 -5
- data/lib/sprockets/rails2/asset_pipeline.rb +0 -23
- data/lib/sprockets/rails2/middleware.rb +0 -18
- data/lib/sprockets/rails2/version.rb +0 -5
- data/test/dummy/README +0 -243
- data/test/dummy/Rakefile +0 -10
- data/test/dummy/app/controllers/application_controller.rb +0 -10
- data/test/dummy/app/controllers/test_controller.rb +0 -2
- data/test/dummy/app/helpers/application_helper.rb +0 -3
- data/test/dummy/app/helpers/test_helper.rb +0 -2
- data/test/dummy/app/views/test/index.html.erb +0 -15
- data/test/dummy/config/boot.rb +0 -114
- data/test/dummy/config/environment.rb +0 -43
- data/test/dummy/config/environments/development.rb +0 -17
- data/test/dummy/config/environments/production.rb +0 -28
- data/test/dummy/config/environments/test.rb +0 -28
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookie_verification_secret.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -10
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/new_rails_defaults.rb +0 -21
- data/test/dummy/config/initializers/session_store.rb +0 -15
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -43
- data/test/dummy/doc/README_FOR_APP +0 -2
- data/test/dummy/public/404.html +0 -30
- data/test/dummy/public/422.html +0 -30
- data/test/dummy/public/500.html +0 -30
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/images/rails.png +0 -0
- data/test/dummy/public/index.html +0 -275
- data/test/dummy/public/javascripts/application.js +0 -4
- data/test/dummy/public/javascripts/controls.js +0 -963
- data/test/dummy/public/javascripts/dragdrop.js +0 -973
- data/test/dummy/public/javascripts/effects.js +0 -1128
- data/test/dummy/public/javascripts/prototype.js +0 -4320
- data/test/dummy/public/robots.txt +0 -5
- data/test/dummy/public/stylesheets/test.css +0 -3
- data/test/dummy/script/about +0 -4
- data/test/dummy/script/console +0 -3
- data/test/dummy/script/dbconsole +0 -3
- data/test/dummy/script/destroy +0 -3
- data/test/dummy/script/generate +0 -3
- data/test/dummy/script/performance/benchmarker +0 -3
- data/test/dummy/script/performance/profiler +0 -3
- data/test/dummy/script/plugin +0 -3
- data/test/dummy/script/runner +0 -3
- data/test/dummy/script/server +0 -3
- data/test/sprockets_rails2_test.rb +0 -37
- data/test/test_helper.rb +0 -9
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Asset Pipeline
|
2
2
|
|
3
|
-
|
3
|
+
Radiant is _so_ freaking awesome, but I made it better through this extension.
|
4
4
|
|
5
|
-
Created by
|
5
|
+
Created by Your Name.
|
data/Rakefile
CHANGED
@@ -1,11 +1,109 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# Determine where the RSpec plugin is by loading the boot
|
2
|
+
unless defined? RADIANT_ROOT
|
3
|
+
ENV["RAILS_ENV"] = "test"
|
4
|
+
case
|
5
|
+
when ENV["RADIANT_ENV_FILE"]
|
6
|
+
require File.dirname(ENV["RADIANT_ENV_FILE"]) + "/boot"
|
7
|
+
when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
|
8
|
+
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
|
9
|
+
else
|
10
|
+
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
require 'rake'
|
15
|
+
require 'rdoc/task'
|
3
16
|
require 'rake/testtask'
|
4
17
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
18
|
+
rspec_base = File.expand_path(RADIANT_ROOT + '/vendor/plugins/rspec/lib')
|
19
|
+
$LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
|
20
|
+
require 'spec/rake/spectask'
|
21
|
+
require 'cucumber'
|
22
|
+
require 'cucumber/rake/task'
|
23
|
+
|
24
|
+
# Cleanup the RADIANT_ROOT constant so specs will load the environment
|
25
|
+
Object.send(:remove_const, :RADIANT_ROOT)
|
26
|
+
|
27
|
+
extension_root = File.expand_path(File.dirname(__FILE__))
|
28
|
+
|
29
|
+
task :default => [:spec, :features]
|
30
|
+
task :stats => "spec:statsetup"
|
31
|
+
|
32
|
+
desc "Run all specs in spec directory"
|
33
|
+
Spec::Rake::SpecTask.new(:spec) do |t|
|
34
|
+
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
35
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
36
|
+
end
|
37
|
+
|
38
|
+
task :features => 'spec:integration'
|
39
|
+
|
40
|
+
namespace :spec do
|
41
|
+
desc "Run all specs in spec directory with RCov"
|
42
|
+
Spec::Rake::SpecTask.new(:rcov) do |t|
|
43
|
+
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
44
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
45
|
+
t.rcov = true
|
46
|
+
t.rcov_opts = ['--exclude', 'spec', '--rails']
|
47
|
+
end
|
48
|
+
|
49
|
+
desc "Print Specdoc for all specs"
|
50
|
+
Spec::Rake::SpecTask.new(:doc) do |t|
|
51
|
+
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
52
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
53
|
+
end
|
54
|
+
|
55
|
+
[:models, :controllers, :views, :helpers].each do |sub|
|
56
|
+
desc "Run the specs under spec/#{sub}"
|
57
|
+
Spec::Rake::SpecTask.new(sub) do |t|
|
58
|
+
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
59
|
+
t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
desc "Run the Cucumber features"
|
64
|
+
Cucumber::Rake::Task.new(:integration) do |t|
|
65
|
+
t.fork = true
|
66
|
+
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
|
67
|
+
# t.feature_pattern = "#{extension_root}/features/**/*.feature"
|
68
|
+
t.profile = "default"
|
69
|
+
end
|
70
|
+
|
71
|
+
# Setup specs for stats
|
72
|
+
task :statsetup do
|
73
|
+
require 'code_statistics'
|
74
|
+
::STATS_DIRECTORIES << %w(Model\ specs spec/models)
|
75
|
+
::STATS_DIRECTORIES << %w(View\ specs spec/views)
|
76
|
+
::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers)
|
77
|
+
::STATS_DIRECTORIES << %w(Helper\ specs spec/views)
|
78
|
+
::CodeStatistics::TEST_TYPES << "Model specs"
|
79
|
+
::CodeStatistics::TEST_TYPES << "View specs"
|
80
|
+
::CodeStatistics::TEST_TYPES << "Controller specs"
|
81
|
+
::CodeStatistics::TEST_TYPES << "Helper specs"
|
82
|
+
::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
|
83
|
+
end
|
84
|
+
|
85
|
+
namespace :db do
|
86
|
+
namespace :fixtures do
|
87
|
+
desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y"
|
88
|
+
task :load => :environment do
|
89
|
+
require 'active_record/fixtures'
|
90
|
+
ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
|
91
|
+
(ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(RAILS_ROOT, 'spec', 'fixtures', '*.{yml,csv}'))).each do |fixture_file|
|
92
|
+
Fixtures.create_fixtures('spec/fixtures', File.basename(fixture_file, '.*'))
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
desc 'Generate documentation for the asset_pipeline extension.'
|
100
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
101
|
+
rdoc.rdoc_dir = 'rdoc'
|
102
|
+
rdoc.title = 'AssetPipelineExtension'
|
103
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
104
|
+
rdoc.rdoc_files.include('README')
|
105
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
9
106
|
end
|
10
107
|
|
11
|
-
|
108
|
+
# Load any custom rakefiles for extension
|
109
|
+
Dir[File.dirname(__FILE__) + '/tasks/*.rake'].sort.each { |f| require f }
|
data/asset_pipeline_extension.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
require "radiant-asset_pipeline-extension"
|
2
|
-
require
|
2
|
+
require 'asset_pipeline'
|
3
|
+
|
4
|
+
ActionController::Dispatcher.middleware.use AssetPipeline::Middleware
|
3
5
|
|
4
6
|
class AssetPipelineExtension < Radiant::Extension
|
5
7
|
version RadiantAssetPipelineExtension::VERSION
|
6
8
|
description RadiantAssetPipelineExtension::DESCRIPTION
|
7
9
|
url RadiantAssetPipelineExtension::URL
|
8
|
-
|
10
|
+
|
9
11
|
def activate
|
10
|
-
Page.send :include, AssetPipeline::AssetTags
|
12
|
+
Page.send :include, AssetPipeline::AssetTags
|
11
13
|
end
|
12
14
|
end
|
data/config/routes.rb
ADDED
data/cucumber.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
default: --format progress features --tags ~@proposed,~@in_progress
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Sets up the Rails environment for Cucumber
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
# Extension root
|
4
|
+
extension_env = File.expand_path(File.dirname(__FILE__) + '/../../../../../config/environment')
|
5
|
+
require extension_env+'.rb'
|
6
|
+
|
7
|
+
Dir.glob(File.join(RADIANT_ROOT, "features", "**", "*.rb")).each {|step| require step unless step =~ /datasets_loader\.rb$/}
|
8
|
+
|
9
|
+
Cucumber::Rails::World.class_eval do
|
10
|
+
dataset :asset_pipeline
|
11
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module NavigationHelpers
|
2
|
+
|
3
|
+
# Extend the standard PathMatchers with your own paths
|
4
|
+
# to be used in your features.
|
5
|
+
#
|
6
|
+
# The keys and values here may be used in your standard web steps
|
7
|
+
# Using:
|
8
|
+
#
|
9
|
+
# When I go to the "asset_pipeline" admin page
|
10
|
+
#
|
11
|
+
# would direct the request to the path you provide in the value:
|
12
|
+
#
|
13
|
+
# admin_asset_pipeline_path
|
14
|
+
#
|
15
|
+
PathMatchers = {} unless defined?(PathMatchers)
|
16
|
+
PathMatchers.merge!({
|
17
|
+
# /asset_pipeline/i => 'admin_asset_pipeline_path'
|
18
|
+
})
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
World(NavigationHelpers)
|
@@ -0,0 +1,36 @@
|
|
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
|
35
|
+
end
|
36
|
+
|
@@ -1,14 +1,14 @@
|
|
1
1
|
module ActionView
|
2
|
-
module Helpers
|
2
|
+
module Helpers
|
3
3
|
def rewrite_asset_path(source)
|
4
4
|
asset_path = source.gsub(%r{^/}, "") # remove the leading /
|
5
5
|
if asset = Rails.asset_pipeline[asset_path]
|
6
|
-
"/
|
6
|
+
"/#{Radiant::config["asset_pipeline.path"]}/" + asset.digest_path
|
7
7
|
else
|
8
|
-
source
|
8
|
+
asset_id = rails_asset_id(source)
|
9
|
+
asset_id.blank? ? source : source + "?#{asset_id}"
|
9
10
|
end
|
10
11
|
end
|
11
|
-
|
12
12
|
alias :asset_path :rewrite_asset_path
|
13
13
|
end
|
14
14
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module AssetPipeline
|
2
|
+
class Middleware
|
3
|
+
def initialize(app)
|
4
|
+
@app = app
|
5
|
+
end
|
6
|
+
|
7
|
+
def call(env)
|
8
|
+
return @app.call(env) unless env['PATH_INFO'] =~ /^\/#{Radiant::config["asset_pipeline.path"]}/
|
9
|
+
env['PATH_INFO'] = env['PATH_INFO'].gsub(/^\/#{Radiant::config["asset_pipeline.path"]}/, "")
|
10
|
+
env['SCRIPT_INFO'] = "" if env['SCRIPT_INFO'].nil?
|
11
|
+
env['SCRIPT_INFO'] = env['SCRIPT_INFO'] + "#{Radiant::config["asset_pipeline.path"]}"
|
12
|
+
Rails.asset_pipeline.call(env)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,9 +1,8 @@
|
|
1
1
|
module RadiantAssetPipelineExtension
|
2
|
-
VERSION = "
|
3
|
-
SUMMARY = "
|
4
|
-
DESCRIPTION = "
|
5
|
-
|
6
|
-
|
7
|
-
AUTHORS = ["Melissa Choy", "Andrew Willis"]
|
2
|
+
VERSION = "2.0.0"
|
3
|
+
SUMMARY = "Asset Pipeline for Radiant CMS"
|
4
|
+
DESCRIPTION = "Makes Radiant better by adding asset_pipeline!"
|
5
|
+
URL = "http://www.otilas.com.au"
|
6
|
+
AUTHORS = ["Melissa Choy"]
|
8
7
|
EMAIL = ["mel@otilas.com.au"]
|
9
8
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
namespace :radiant do
|
2
|
+
namespace :extensions do
|
3
|
+
namespace :asset_pipeline do
|
4
|
+
|
5
|
+
desc "Runs the migration of the Asset Pipeline extension"
|
6
|
+
task :migrate => :environment do
|
7
|
+
require 'radiant/extension_migrator'
|
8
|
+
if ENV["VERSION"]
|
9
|
+
AssetPipelineExtension.migrator.migrate(ENV["VERSION"].to_i)
|
10
|
+
Rake::Task['db:schema:dump'].invoke
|
11
|
+
else
|
12
|
+
AssetPipelineExtension.migrator.migrate
|
13
|
+
Rake::Task['db:schema:dump'].invoke
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "Copies public assets of the Asset Pipeline to the instance public/ directory."
|
18
|
+
task :update => :environment do
|
19
|
+
is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
|
20
|
+
puts "Copying assets from AssetPipelineExtension"
|
21
|
+
Dir[AssetPipelineExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
|
22
|
+
path = file.sub(AssetPipelineExtension.root, '')
|
23
|
+
directory = File.dirname(path)
|
24
|
+
mkdir_p RAILS_ROOT + directory, :verbose => false
|
25
|
+
cp file, RAILS_ROOT + path, :verbose => false
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
desc "Syncs all available translations for this ext to the English ext master"
|
30
|
+
task :sync => :environment do
|
31
|
+
# The main translation root, basically where English is kept
|
32
|
+
language_root = AssetPipelineExtension.root + "/config/locales"
|
33
|
+
words = TranslationSupport.get_translation_keys(language_root)
|
34
|
+
|
35
|
+
Dir["#{language_root}/*.yml"].each do |filename|
|
36
|
+
next if filename.match('_available_tags')
|
37
|
+
basename = File.basename(filename, '.yml')
|
38
|
+
puts "Syncing #{basename}"
|
39
|
+
(comments, other) = TranslationSupport.read_file(filename, basename)
|
40
|
+
words.each { |k,v| other[k] ||= words[k] } # Initializing hash variable as empty if it does not exist
|
41
|
+
other.delete_if { |k,v| !words[k] } # Remove if not defined in en.yml
|
42
|
+
TranslationSupport.write_file(filename, basename, comments, other)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/lib/tasks/tasks.rb
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
#require 'rails2_asset_pipeline'
|
3
|
+
#require 'rake/sprocketstask'
|
4
|
+
#
|
5
|
+
#namespace :assets do
|
6
|
+
# load_tasks = lambda do
|
7
|
+
# namespace :r2ap do
|
8
|
+
# Rake::SprocketsTask.new do |t|
|
9
|
+
# t.environment = Rails2AssetPipeline.env
|
10
|
+
# t.output = "./public/assets"
|
11
|
+
# t.assets = t.environment.paths.map{|p| Dir["#{p.sub(Rails.root.to_s,"")}/**/*"] }.flatten
|
12
|
+
# t.log_level = Logger::ERROR
|
13
|
+
# t.keep = 2
|
14
|
+
# end
|
15
|
+
# end
|
16
|
+
# end
|
17
|
+
#
|
18
|
+
# task :config do
|
19
|
+
# initializer = Rails.root.join("config/initializers/rails2_asset_pipeline.rb")
|
20
|
+
# load initializer if File.exist?(initializer)
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# desc "Compile all the assets"
|
24
|
+
# task :precompile => "assets:config" do
|
25
|
+
# load_tasks.call
|
26
|
+
# Rake::Task["r2ap:assets"].invoke
|
27
|
+
# end
|
28
|
+
#
|
29
|
+
# desc "Remove compiled assets"
|
30
|
+
# task :clean => "assets:config" do
|
31
|
+
# load_tasks.call
|
32
|
+
# Rake::Task["r2ap:clobber"].invoke
|
33
|
+
# end
|
34
|
+
#
|
35
|
+
# desc "Remove old assets"
|
36
|
+
# task :remove_old => "assets:config" do
|
37
|
+
# load_tasks.call
|
38
|
+
# Rake::Task["r2ap:clean"].invoke
|
39
|
+
# end
|
40
|
+
#
|
41
|
+
# desc "converts project from jammit based assets.yml"
|
42
|
+
# task :convert_jammit do
|
43
|
+
# require 'rails2_asset_pipeline/jammit_converter'
|
44
|
+
# Rails2AssetPipeline::JammitConverter.convert
|
45
|
+
# end
|
46
|
+
#end
|
47
|
+
#
|
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
|
|
16
16
|
# Don't include a dependency on radiant itself: it causes problems when radiant is in vendor/radiant.
|
17
17
|
# s.add_dependency "something", "~> 1.0.0"
|
18
18
|
# s.add_dependency "radiant-some-extension", "~> 1.0.0"
|
19
|
-
|
20
|
-
|
19
|
+
s.add_dependency "sprockets", "~> 2.0"
|
20
|
+
|
21
21
|
ignores = if File.exist?('.gitignore')
|
22
22
|
File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
|
23
23
|
else
|
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
unless defined? RADIANT_ROOT
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
case
|
4
|
+
when ENV["RADIANT_ENV_FILE"]
|
5
|
+
require ENV["RADIANT_ENV_FILE"]
|
6
|
+
when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
|
7
|
+
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
|
8
|
+
else
|
9
|
+
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
require "#{RADIANT_ROOT}/spec/spec_helper"
|
13
|
+
|
14
|
+
Dataset::Resolver.default << (File.dirname(__FILE__) + "/datasets")
|
15
|
+
|
16
|
+
if File.directory?(File.dirname(__FILE__) + "/matchers")
|
17
|
+
Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file }
|
18
|
+
end
|
19
|
+
|
20
|
+
Spec::Runner.configure do |config|
|
21
|
+
# config.use_transactional_fixtures = true
|
22
|
+
# config.use_instantiated_fixtures = false
|
23
|
+
# config.fixture_path = RAILS_ROOT + '/spec/fixtures'
|
24
|
+
|
25
|
+
# You can declare fixtures for each behaviour like this:
|
26
|
+
# describe "...." do
|
27
|
+
# fixtures :table_a, :table_b
|
28
|
+
#
|
29
|
+
# Alternatively, if you prefer to declare them only once, you can
|
30
|
+
# do so here, like so ...
|
31
|
+
#
|
32
|
+
# config.global_fixtures = :table_a, :table_b
|
33
|
+
#
|
34
|
+
# If you declare global fixtures, be aware that they will be declared
|
35
|
+
# for all of your examples, even those that don't use them.
|
36
|
+
end
|
metadata
CHANGED
@@ -1,188 +1,83 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-asset_pipeline-extension
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 1.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Melissa Choy
|
14
|
-
- Andrew Willis
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-06-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
23
15
|
name: sprockets
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
26
17
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 2
|
33
|
-
- 0
|
34
|
-
- 0
|
35
|
-
version: 2.0.0
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.0'
|
36
22
|
type: :runtime
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.0'
|
30
|
+
description: Makes Radiant better by adding asset_pipeline!
|
31
|
+
email:
|
42
32
|
- mel@otilas.com.au
|
43
33
|
executables: []
|
44
|
-
|
45
34
|
extensions: []
|
46
|
-
|
47
35
|
extra_rdoc_files: []
|
48
|
-
|
49
|
-
files:
|
36
|
+
files:
|
50
37
|
- asset_pipeline_extension.rb
|
51
|
-
-
|
38
|
+
- config/initializers/radiant_config.rb
|
39
|
+
- config/routes.rb
|
40
|
+
- cucumber.yml
|
41
|
+
- features/support/env.rb
|
42
|
+
- features/support/paths.rb
|
52
43
|
- lib/asset_pipeline/asset_tags.rb
|
44
|
+
- lib/asset_pipeline/helpers.rb
|
45
|
+
- lib/asset_pipeline/middleware.rb
|
46
|
+
- lib/asset_pipeline.rb
|
53
47
|
- lib/radiant-asset_pipeline-extension.rb
|
54
|
-
- lib/
|
55
|
-
- lib/
|
56
|
-
- lib/sprockets/rails2/middleware.rb
|
57
|
-
- lib/sprockets/rails2/version.rb
|
58
|
-
- lib/sprockets-rails2.rb
|
48
|
+
- lib/tasks/asset_pipeline_extension_tasks.rake
|
49
|
+
- lib/tasks/tasks.rb
|
59
50
|
- radiant-asset_pipeline-extension.gemspec
|
60
51
|
- Rakefile
|
61
52
|
- README.md
|
62
|
-
-
|
63
|
-
-
|
64
|
-
|
65
|
-
- test/dummy/app/helpers/test_helper.rb
|
66
|
-
- test/dummy/app/views/test/index.html.erb
|
67
|
-
- test/dummy/config/boot.rb
|
68
|
-
- test/dummy/config/environment.rb
|
69
|
-
- test/dummy/config/environments/development.rb
|
70
|
-
- test/dummy/config/environments/production.rb
|
71
|
-
- test/dummy/config/environments/test.rb
|
72
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
73
|
-
- test/dummy/config/initializers/cookie_verification_secret.rb
|
74
|
-
- test/dummy/config/initializers/inflections.rb
|
75
|
-
- test/dummy/config/initializers/mime_types.rb
|
76
|
-
- test/dummy/config/initializers/new_rails_defaults.rb
|
77
|
-
- test/dummy/config/initializers/session_store.rb
|
78
|
-
- test/dummy/config/locales/en.yml
|
79
|
-
- test/dummy/config/routes.rb
|
80
|
-
- test/dummy/doc/README_FOR_APP
|
81
|
-
- test/dummy/public/404.html
|
82
|
-
- test/dummy/public/422.html
|
83
|
-
- test/dummy/public/500.html
|
84
|
-
- test/dummy/public/favicon.ico
|
85
|
-
- test/dummy/public/images/rails.png
|
86
|
-
- test/dummy/public/index.html
|
87
|
-
- test/dummy/public/javascripts/application.js
|
88
|
-
- test/dummy/public/javascripts/controls.js
|
89
|
-
- test/dummy/public/javascripts/dragdrop.js
|
90
|
-
- test/dummy/public/javascripts/effects.js
|
91
|
-
- test/dummy/public/javascripts/prototype.js
|
92
|
-
- test/dummy/public/robots.txt
|
93
|
-
- test/dummy/public/stylesheets/test.css
|
94
|
-
- test/dummy/Rakefile
|
95
|
-
- test/dummy/README
|
96
|
-
- test/dummy/script/about
|
97
|
-
- test/dummy/script/console
|
98
|
-
- test/dummy/script/dbconsole
|
99
|
-
- test/dummy/script/destroy
|
100
|
-
- test/dummy/script/generate
|
101
|
-
- test/dummy/script/performance/benchmarker
|
102
|
-
- test/dummy/script/performance/profiler
|
103
|
-
- test/dummy/script/plugin
|
104
|
-
- test/dummy/script/runner
|
105
|
-
- test/dummy/script/server
|
106
|
-
- test/sprockets_rails2_test.rb
|
107
|
-
- test/test_helper.rb
|
108
|
-
has_rdoc: true
|
109
|
-
homepage: http://github.com/melzz/radiant-asset_pipeline-extension
|
53
|
+
- spec/spec.opts
|
54
|
+
- spec/spec_helper.rb
|
55
|
+
homepage: http://www.otilas.com.au
|
110
56
|
licenses: []
|
111
|
-
|
112
57
|
post_install_message:
|
113
58
|
rdoc_options: []
|
114
|
-
|
115
|
-
require_paths:
|
59
|
+
require_paths:
|
116
60
|
- lib
|
117
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
118
62
|
none: false
|
119
|
-
requirements:
|
120
|
-
- -
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
|
123
|
-
|
124
|
-
- 0
|
125
|
-
version: "0"
|
126
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
68
|
none: false
|
128
|
-
requirements:
|
129
|
-
- -
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
|
132
|
-
segments:
|
133
|
-
- 0
|
134
|
-
version: "0"
|
69
|
+
requirements:
|
70
|
+
- - ! '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
135
73
|
requirements: []
|
136
|
-
|
137
74
|
rubyforge_project:
|
138
|
-
rubygems_version: 1.
|
75
|
+
rubygems_version: 1.8.23
|
139
76
|
signing_key:
|
140
77
|
specification_version: 3
|
141
|
-
summary:
|
142
|
-
test_files:
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
- test/dummy/app/views/test/index.html.erb
|
148
|
-
- test/dummy/config/boot.rb
|
149
|
-
- test/dummy/config/environment.rb
|
150
|
-
- test/dummy/config/environments/development.rb
|
151
|
-
- test/dummy/config/environments/production.rb
|
152
|
-
- test/dummy/config/environments/test.rb
|
153
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
154
|
-
- test/dummy/config/initializers/cookie_verification_secret.rb
|
155
|
-
- test/dummy/config/initializers/inflections.rb
|
156
|
-
- test/dummy/config/initializers/mime_types.rb
|
157
|
-
- test/dummy/config/initializers/new_rails_defaults.rb
|
158
|
-
- test/dummy/config/initializers/session_store.rb
|
159
|
-
- test/dummy/config/locales/en.yml
|
160
|
-
- test/dummy/config/routes.rb
|
161
|
-
- test/dummy/doc/README_FOR_APP
|
162
|
-
- test/dummy/public/404.html
|
163
|
-
- test/dummy/public/422.html
|
164
|
-
- test/dummy/public/500.html
|
165
|
-
- test/dummy/public/favicon.ico
|
166
|
-
- test/dummy/public/images/rails.png
|
167
|
-
- test/dummy/public/index.html
|
168
|
-
- test/dummy/public/javascripts/application.js
|
169
|
-
- test/dummy/public/javascripts/controls.js
|
170
|
-
- test/dummy/public/javascripts/dragdrop.js
|
171
|
-
- test/dummy/public/javascripts/effects.js
|
172
|
-
- test/dummy/public/javascripts/prototype.js
|
173
|
-
- test/dummy/public/robots.txt
|
174
|
-
- test/dummy/public/stylesheets/test.css
|
175
|
-
- test/dummy/Rakefile
|
176
|
-
- test/dummy/README
|
177
|
-
- test/dummy/script/about
|
178
|
-
- test/dummy/script/console
|
179
|
-
- test/dummy/script/dbconsole
|
180
|
-
- test/dummy/script/destroy
|
181
|
-
- test/dummy/script/generate
|
182
|
-
- test/dummy/script/performance/benchmarker
|
183
|
-
- test/dummy/script/performance/profiler
|
184
|
-
- test/dummy/script/plugin
|
185
|
-
- test/dummy/script/runner
|
186
|
-
- test/dummy/script/server
|
187
|
-
- test/sprockets_rails2_test.rb
|
188
|
-
- test/test_helper.rb
|
78
|
+
summary: Asset Pipeline for Radiant CMS
|
79
|
+
test_files:
|
80
|
+
- spec/spec.opts
|
81
|
+
- spec/spec_helper.rb
|
82
|
+
- features/support/env.rb
|
83
|
+
- features/support/paths.rb
|