Skip to content

Commit

Permalink
rename jammit_debug to debug_assets ,bumping version for later.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Jan 20, 2011
1 parent 2ba4592 commit 211d74e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions index.html
Expand Up @@ -93,7 +93,7 @@
</p>

<p>
<b>Current Version:</b> <a href="http://rubygems.org/gems/jammit/">0.5.4</a>
<b>Current Version:</b> <a href="http://rubygems.org/gems/jammit/">0.6.0</a>
</p>

<p>
Expand Down Expand Up @@ -256,7 +256,7 @@ <h2 id="configuration">Configuration</h2>
<td><tt>on&nbsp;|&nbsp;off</tt></td>
<td class="definition">
Defaults to <b>on</b>. Leaving it on allows you to pass
<tt>jammit_debug=true</tt> as a query parameter, in order to load the
<tt>debug_assets=true</tt> as a query parameter, in order to load the
page with uncompressed, unpackaged assets in production.
</td>
</tr>
Expand Down Expand Up @@ -361,7 +361,7 @@ <h2 id="usage">Usage</h2>

<p>
If <b>allow_debugging</b> is left on, you'll be able to request the development
version of the assets for any given page, by passing <tt>jammit_debug=true</tt>
version of the assets for any given page, by passing <tt>debug_assets=true</tt>
as a query parameter.
</p>

Expand Down
2 changes: 1 addition & 1 deletion jammit.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'jammit'
s.version = '0.5.4' # Keep version in sync with jammit.rb
s.version = '0.6.0' # Keep version in sync with jammit.rb
s.date = '2010-11-8'

s.homepage = "http://documentcloud.github.com/jammit/"
Expand Down
2 changes: 1 addition & 1 deletion lib/jammit.rb
Expand Up @@ -4,7 +4,7 @@
# to all of the configuration options.
module Jammit

VERSION = "0.5.4"
VERSION = "0.6.0"

ROOT = File.expand_path(File.dirname(__FILE__) + '/..')

Expand Down
2 changes: 1 addition & 1 deletion lib/jammit/helper.rb
Expand Up @@ -41,7 +41,7 @@ def include_templates(*packages)
private

def should_package?
Jammit.package_assets && !(Jammit.allow_debugging && params[:jammit_debug])
Jammit.package_assets && !(Jammit.allow_debugging && params[:debug_assets])
end

def html_safe(string)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_jammit_helpers.rb
Expand Up @@ -28,7 +28,7 @@ def initialize(*args)
end

def params
@debug ? {:jammit_debug => true} : {}
@debug ? {:debug_assets => true} : {}
end

def test_include_stylesheets
Expand Down

0 comments on commit 211d74e

Please sign in to comment.