selectivizr-rails 1.0.2 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Jeremy Baker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,7 +1,9 @@
1
1
  module Selectivizr
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
- # auto wire
4
+ initializer 'Selectivizr precompile hook', :group => :all do |app|
5
+ app.config.assets.precompile += ['modernizr.js']
6
+ end
5
7
  end
6
8
  end
7
9
  end
@@ -1,5 +1,5 @@
1
1
  module Selectivizr
2
2
  module Rails
3
- VERSION = "1.0.2"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
data/readme.md CHANGED
@@ -1,9 +1,9 @@
1
- About
2
- ======
1
+ ## About
2
+
3
3
  The selectivizr-rails gem will include the [selectivizr.js](http://selectivizr.com/) library into your Rails app via the asset pipeline.
4
4
 
5
- How to Use
6
- ===========
5
+ ## How to Use
6
+
7
7
  Add the following to your Gemfile and run `bundle install`:
8
8
 
9
9
  gem 'selectivizr-rails'
@@ -14,16 +14,19 @@ Add the following to the `head` tag in your layout:
14
14
  = javascript_include_tag 'selectivizr'
15
15
  <![endif]-->
16
16
 
17
- Requirements
18
- ============
17
+ ## Requirements
18
+
19
19
  * Rails 3.1+
20
20
  * The main JavaScript library (JQuery, Prototype, etc.) must be included prior to the selectivizr include tag.
21
21
 
22
- License
23
- =======
22
+ ## Contributing
23
+
24
+ There shouldn't be much to do with this repo, but if you would like to improve the code or do a version bump, just fork the code and submit a pull request. I try to deal with all pull requests quickly.
25
+
26
+ ## License
27
+
24
28
  This gem code is free to use, modify, distribute or use in any way you would like. The selectivizr.js library is released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
25
29
 
30
+ ## Thanks
26
31
 
27
- Thanks
28
- ======
29
32
  A large portion of this gem was assembled based on the source code for the [modernizer-rails gem](https://github.com/russfrisch/modernizr-rails) by [Russ Frisch](https://github.com/russfrisch).
@@ -9,12 +9,13 @@ Gem::Specification.new do |s|
9
9
  s.email = ["jhubert@gmail.com"]
10
10
  s.homepage = "https://github.com/jhubert/selectivizr-rails"
11
11
  s.summary = %q{Gem wrapper to include the selectivizr.js library via the asset pipeline.}
12
- s.description = %q{This selectivizr.js was built using the download at http://www.selectivizr.com}
12
+ s.description = %q{This selectivizr.js was built using the latest version at https://github.com/keithclark/selectivizr}
13
13
 
14
14
  s.rubyforge_project = "selectivizr-rails"
15
15
 
16
16
  s.add_development_dependency "rails", ">= 3.1.0.rc4"
17
17
 
18
+ s.license = 'MIT'
18
19
  s.files = `git ls-files`.split("\n")
19
20
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
21
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selectivizr-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-13 00:00:00.000000000 Z
12
+ date: 2013-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -27,7 +27,7 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.1.0.rc4
30
- description: This selectivizr.js was built using the download at http://www.selectivizr.com
30
+ description: This selectivizr.js was built using the latest version at https://github.com/keithclark/selectivizr
31
31
  email:
32
32
  - jhubert@gmail.com
33
33
  executables: []
@@ -36,6 +36,7 @@ extra_rdoc_files: []
36
36
  files:
37
37
  - .gitignore
38
38
  - Gemfile
39
+ - LICENSE
39
40
  - Rakefile
40
41
  - lib/selectivizr-rails.rb
41
42
  - lib/selectivizr/rails/engine.rb
@@ -44,7 +45,8 @@ files:
44
45
  - selectivizr-rails.gemspec
45
46
  - vendor/assets/javascripts/selectivizr.js
46
47
  homepage: https://github.com/jhubert/selectivizr-rails
47
- licenses: []
48
+ licenses:
49
+ - MIT
48
50
  post_install_message:
49
51
  rdoc_options: []
50
52
  require_paths:
@@ -68,3 +70,4 @@ signing_key:
68
70
  specification_version: 3
69
71
  summary: Gem wrapper to include the selectivizr.js library via the asset pipeline.
70
72
  test_files: []
73
+ has_rdoc: