rapper 0.5.0 → 0.5.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Static asset packager and compressor with versioning and built-in view helpers. Easy to configure, easy to use, and easy to ignore when you want to. No crazy JavaScript comment DSLs, either.
4
4
 
5
- Merb and Sinatra view helpers are coming soon, as well as pluggable compression backends (YUI Compressor, Google Closure Compiler, etc.) `rapper` currently only includes Google Closure Compiler.
5
+ Merb and Sinatra view helpers are coming soon, as well as pluggable compression backends (YUI Compressor, Google Closure Compiler, etc.) `rapper` currently only includes YUI Compressor.
6
6
 
7
7
  ## Packaging assets without wanting to claw your eyes out
8
8
 
@@ -38,7 +38,7 @@ Rapper is configured using a YAML file that defines the settings to be used in v
38
38
  bundle: true
39
39
  compress: true
40
40
  version: true
41
- # optional, passed to Google Closure Compiler
41
+ # optional, passed to YUI Compressor
42
42
  yui_compressor:
43
43
  line_break: 2000 # default: 2000
44
44
  munge: false # default: false
@@ -150,6 +150,7 @@ Rapper's got a Gemfile. You know what to do.
150
150
 
151
151
  ## Version history
152
152
 
153
+ * **0.5.1** - Remove rake DSL deprecation warnings.
153
154
  * **0.5.0** - Added ability to nest bundles.
154
155
  * **0.4.0** - Switching to YUI Compressor for JavaScript compression due to its better handling of local variable compressing in scopes with eval() usage (I'm looking at you, ExtJS). Adding `component_tag_root` and `asset_tag_root` options to allow better control over URLs.
155
156
  * **0.3.0** - Remove hard Closure Compiler dependency (it will still need to be installed to compress JS), shorter view helper method names.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -1,8 +1,16 @@
1
+ require 'rubygems'
2
+ begin
3
+ require 'rake/dsl_definition'
4
+ rescue LoadError
5
+ end
6
+
1
7
  module Rapper
2
8
 
3
9
  # Rake tasks for building / refreshing packages
4
10
  class Tasks
5
11
 
12
+ include Rake::DSL rescue nil
13
+
6
14
  # Set up rapper asset packaging Rake tasks.
7
15
  #
8
16
  # @param [Symbol] namespace The Rake namespace to put the generated
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rapper}
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyson Tate"]
12
- s.date = %q{2011-09-02}
12
+ s.date = %q{2011-12-02}
13
13
  s.description = %q{Static asset packager and compressor with versioning and built-in view helpers. Compresses files only when they need compressing.}
14
14
  s.email = %q{tyson@tysontate.com}
15
15
  s.extra_rdoc_files = [
@@ -5,6 +5,10 @@ require 'rapper'
5
5
  require 'fileutils'
6
6
 
7
7
  Spec::Runner.configure do |config|
8
+ config.before :suite do
9
+ `mkdir tmp/` unless FileTest::directory?( "tmp" )
10
+ end
11
+
8
12
  # Tear down test case assets folders
9
13
  config.after :each do
10
14
  FileUtils.rm_r( Dir[ "tmp/*" ] )
@@ -2,8 +2,8 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe YUI::JavaScriptCompressor do
4
4
  it "shoud be available" do
5
- closure = YUI::JavaScriptCompressor.new
6
- closure.compress( "var x = 1; var y = 2;" ).should == "var x=1;var y=2;"
5
+ yui = YUI::JavaScriptCompressor.new
6
+ yui.compress( "var x = 1; var y = 2;" ).should == "var x=1;var y=2;"
7
7
  end
8
8
  end
9
9
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyson Tate
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-02 00:00:00 -07:00
18
+ date: 2011-12-02 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency