rails_asset_packager 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +29 -0
- data/Rakefile +23 -0
- data/lib/rails_asset_packager/version.rb +1 -1
- data/lib/tasks/asset_packager_tasks.rake +5 -4
- data/rails_asset_packager.gemspec +3 -0
- metadata +33 -4
data/Gemfile.lock
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rails_asset_packager (0.1.0)
|
5
|
+
aws-s3 (~> 0.6.2)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
aws-s3 (0.6.2)
|
11
|
+
builder
|
12
|
+
mime-types
|
13
|
+
xml-simple
|
14
|
+
builder (3.0.0)
|
15
|
+
mime-types (1.16)
|
16
|
+
mocha (0.9.10)
|
17
|
+
rake
|
18
|
+
rake (0.8.7)
|
19
|
+
test-unit (2.1.2)
|
20
|
+
xml-simple (1.0.12)
|
21
|
+
|
22
|
+
PLATFORMS
|
23
|
+
ruby
|
24
|
+
|
25
|
+
DEPENDENCIES
|
26
|
+
aws-s3 (~> 0.6.2)
|
27
|
+
mocha
|
28
|
+
rails_asset_packager!
|
29
|
+
test-unit
|
data/Rakefile
CHANGED
@@ -1,2 +1,25 @@
|
|
1
1
|
require 'bundler'
|
2
2
|
Bundler::GemHelper.install_tasks
|
3
|
+
|
4
|
+
require 'rake'
|
5
|
+
require 'rake/testtask'
|
6
|
+
require 'rake/rdoctask'
|
7
|
+
|
8
|
+
desc 'Default: run unit tests.'
|
9
|
+
task :default => :test
|
10
|
+
|
11
|
+
desc 'Test the asset_packager plugin.'
|
12
|
+
Rake::TestTask.new(:test) do |t|
|
13
|
+
t.libs << 'lib'
|
14
|
+
t.pattern = 'test/**/*_test.rb'
|
15
|
+
t.verbose = true
|
16
|
+
end
|
17
|
+
|
18
|
+
desc 'Generate documentation for the asset_packager plugin.'
|
19
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
20
|
+
rdoc.rdoc_dir = 'rdoc'
|
21
|
+
rdoc.title = 'AssetPackager'
|
22
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
23
|
+
rdoc.rdoc_files.include('README')
|
24
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
25
|
+
end
|
@@ -22,11 +22,13 @@ namespace :asset do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
namespace :cache do
|
25
|
-
|
26
|
-
|
25
|
+
task :config do
|
26
|
+
S3_CONFIG = YAML.load_file(File.join(Rails.root, "config/s3.yml"))[Rails.env] rescue nil || {}
|
27
|
+
ASSET_PKG_CONFIG = YAML.load_file(File.join(Rails.root, "config/asset_packages.yml")) rescue nil || {}
|
28
|
+
end
|
27
29
|
|
28
30
|
desc "start aws"
|
29
|
-
task :aws do
|
31
|
+
task :aws => :config do
|
30
32
|
require 'aws/s3'
|
31
33
|
|
32
34
|
AWS::S3::Base.establish_connection!(
|
@@ -84,7 +86,6 @@ namespace :asset do
|
|
84
86
|
Rake::Task['asset:packager:delete_all'].invoke
|
85
87
|
Rake::Task['asset:packager:build_all'].invoke
|
86
88
|
Rake::Task['asset:cache:s3'].invoke
|
87
|
-
|
88
89
|
end
|
89
90
|
end
|
90
91
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_asset_packager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Becker
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-01-
|
20
|
+
date: 2011-01-18 00:00:00 -06:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -36,6 +36,34 @@ dependencies:
|
|
36
36
|
version: 0.6.2
|
37
37
|
type: :runtime
|
38
38
|
version_requirements: *id001
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: test-unit
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
hash: 3
|
48
|
+
segments:
|
49
|
+
- 0
|
50
|
+
version: "0"
|
51
|
+
type: :development
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: mocha
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 3
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
version: "0"
|
65
|
+
type: :development
|
66
|
+
version_requirements: *id003
|
39
67
|
description: A tool to compress Javascript and CSS assets for production Rals applications.
|
40
68
|
email:
|
41
69
|
- ""
|
@@ -51,6 +79,7 @@ files:
|
|
51
79
|
- .gitignore
|
52
80
|
- CHANGELOG
|
53
81
|
- Gemfile
|
82
|
+
- Gemfile.lock
|
54
83
|
- README
|
55
84
|
- Rakefile
|
56
85
|
- lib/jsmin.rb
|