cdn_fu 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,20 +1,16 @@
1
- ## cdn fu
2
- cdn fu is a fun domain specific language for deployment of assets to content
3
- deliver network. There are 4 pluggable steps in the chain:
4
-
5
- 1. Preprocessing
6
- 2. Listing
7
- 3. Minification
8
- 4. Uploading
1
+ ## CDN Fu
2
+ CDN Fu is a fun domain specific language for deployment of assets to content
3
+ deliver networks.
9
4
 
10
5
  ## Installation
6
+ Currently the gem is on gemcutter.org, so you need to add that to your sources
11
7
 
12
- ruby script/plugin install git://github.com/jubos/cdn_fu.git
13
-
14
-
15
- ## Example
16
- For example, you can first run a Sass/Sprockets/AssetPacker during
17
- preprocessing, then minify all of the resulting .js and .css assets, and
18
- finally upload to a third party CDN.
8
+ $ gem install --source=http://www.gemcutter.org cdn_fu
19
9
 
10
+ ## Rails Installation
11
+ First install the gem, then do the following
12
+ $ cd your_rails_dir
13
+ $ cdnfu --rails .
14
+ $ rake cdn:init
20
15
 
16
+ Check out the [CDN Fu Homepage](http://www.sevenforge.com/cdn_fu) for more details and examples
@@ -74,7 +74,7 @@ module CdnFu
74
74
  end
75
75
 
76
76
  File.open(File.join(tasks_dir,'cdn_fu.rake'),'w') do |file|
77
- file << File.read(File.dirname(__FILE__) + "/../../tasks/cdn_fu.rake")
77
+ file << "require 'cdn_fu/tasks'"
78
78
  end
79
79
 
80
80
  puts "CDN Fu plugin added to #{rails_dir}"
File without changes
@@ -0,0 +1,4 @@
1
+ # Load CDN Fu rakefile extensions
2
+ Dir["#{File.join(File.dirname(__FILE__),'tasks')}/*.rake"].each { |rake|
3
+ load rake
4
+ }
data/lib/cdn_fu.rb CHANGED
@@ -2,7 +2,7 @@ dir = File.dirname(__FILE__)
2
2
  $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
3
3
 
4
4
  module CdnFu
5
- VERSION = 0.5
5
+ VERSION = 0.6
6
6
  # Do some sensible defaults for rails
7
7
  def self.init_rails(binding)
8
8
  cfg = CdnFu::Config.config
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdn_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.5"
4
+ version: "0.6"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Curtis Spencer
@@ -56,12 +56,13 @@ files:
56
56
  - lib/cdn_fu/lister.rb
57
57
  - lib/cdn_fu/minifier.rb
58
58
  - lib/cdn_fu/minifiers/yui_minifier.rb
59
+ - lib/cdn_fu/tasks/cdn_fu.rake
60
+ - lib/cdn_fu/tasks.rb
59
61
  - lib/cdn_fu/uploader.rb
60
62
  - lib/cdn_fu/uploaders/cloudfront_uploader.rb
61
63
  - lib/cdn_fu/uploaders/local_uploader.rb
62
64
  - lib/cdn_fu.rb
63
65
  - rails/init.rb
64
- - tasks/cdn_fu.rake
65
66
  has_rdoc: true
66
67
  homepage: http://www.sevenforge.com/cdn_fu
67
68
  licenses: []