webshims-rails 0.4 → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  module Webshims
2
2
  module Rails
3
- VERSION = "0.4"
3
+ VERSION = "0.4.1"
4
4
  WEBSHIMS_VERSION = "1.9.1"
5
5
  end
6
6
  end
@@ -6,7 +6,7 @@ module Webshims
6
6
  # Everything in the webshims directory should be precompiled, since
7
7
  # it all needs to be accessed dynamically depending on the browser
8
8
  initializer :append_webshims_assets_path, :group => :all do |app|
9
- app.config.assets.precompile << /webshims\/dev/
9
+ app.config.assets.precompile << /webshims\/minified/
10
10
  end
11
11
  end
12
12
  end
data/readme.textile CHANGED
@@ -7,18 +7,18 @@ h2. Usage
7
7
  1. Add webshims-rails to your Gemfile for bundler: @gem 'webshims-rails'@
8
8
  2. Require modernizr and the webshims polyfiller, eg, in your application.js:
9
9
 
10
- *Update note:* Previous webshims-rails included only the minified versions; this was incorrect, since the dev (unminified) versions should be required by Sprockets and then the Rails asset pipeline will compress as necessary in production. Users of previous webshims-rails versions should update their sprockets requires and webshims options as below (though I'll leave the minified assets in there to prevent errors).
10
+ Note: For debugging, you may want to switch to dev versions of the webshims assets; these are packaged here too, so you can just switch out 'dev' for 'minified'.
11
11
 
12
12
  <pre>
13
- //= require webshims/dev/extras/modernizr-custom
14
- //= require webshims/dev/polyfiller
13
+ //= require webshims/minified/extras/modernizr-custom
14
+ //= require webshims/minified/polyfiller
15
15
  </pre>
16
16
 
17
17
  3. In your javascript, after the polyfiller has been required, set the basePath for webshims as shown below, and then call $.webshims.polyfill(); see webshims docs for more options.
18
18
  (Note that this should be run directly, not in a dom-ready block.)
19
19
 
20
20
  <pre>
21
- $.webshims.setOptions('basePath', '/assets/webshims/dev/shims/')
21
+ $.webshims.setOptions('basePath', '/assets/webshims/minified/shims/')
22
22
  $.webshims.polyfill()
23
23
  </pre>
24
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webshims-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-09-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70226767851100 !ruby/object:Gem::Requirement
16
+ requirement: &70272343098100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>'
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70226767851100
24
+ version_requirements: *70272343098100
25
25
  description: Makes it simple to include the webshims js library (by Alexander Farkas)
26
26
  in the Rails asset pipeline.
27
27
  email: