underscore-inflections-rails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +20 -0
- data/Rakefile +1 -0
- data/lib/underscore-inflections-rails/version.rb +7 -0
- data/lib/underscore-inflections-rails.rb +13 -0
- data/underscore-inflections-rails.gemspec +22 -0
- data/vendor/assets/javascripts/underscore-inflections.js +673 -0
- data/vendor/assets/javascripts/underscore-string.js +673 -0
- metadata +82 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8460fbb659c42d3a202edad123a3baa4ff8f7c50
|
4
|
+
data.tar.gz: 0868b31bef4c9f0ae7629cfde753a470009b2b50
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8dc5f6e055baa189b2c0908dd3991a899621c2029859e6d36f458bbd6ef96a887523c8b021f3c2cb84d9c7f5b3f2fba84fbad99af727ff4819ceef6e3558ae96
|
7
|
+
data.tar.gz: 785031163ab07de61b4ebb5eeb9009c2b8a929d1430c1f1ca0fad00066af6d45e2e87f235bb28466075f3fc0d9f3d6a81ce913395f5fe042fb36db597ea83e44
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Paul Vonderscher
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
## Usage
|
2
|
+
|
3
|
+
In your Gemfile :
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
gem 'underscore-inflections-rails'
|
7
|
+
```
|
8
|
+
|
9
|
+
In your javascript manifest :
|
10
|
+
|
11
|
+
```javascript
|
12
|
+
//= require underscore-string
|
13
|
+
//= require underscore-inflections
|
14
|
+
```
|
15
|
+
|
16
|
+
## Licence
|
17
|
+
|
18
|
+
The underscore.inflections.js library can be found here : https://github.com/geetarista/underscore.inflections
|
19
|
+
|
20
|
+
It depends on the underscore.string.js library : http://epeli.github.io/underscore.string/
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "underscore-inflections-rails/version"
|
2
|
+
|
3
|
+
module Underscore
|
4
|
+
module Inflections
|
5
|
+
module Rails
|
6
|
+
if defined?(::Rails) && Gem::Requirement.new('>= 3.1').satisfied_by?(Gem::Version.new ::Rails.version)
|
7
|
+
class Rails::Engine < ::Rails::Engine
|
8
|
+
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'underscore-inflections-rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "underscore-inflections-rails"
|
8
|
+
spec.version = Underscore::Inflections::Rails::VERSION
|
9
|
+
spec.authors = ["Paul Vonderscher"]
|
10
|
+
spec.email = ["paul.vonderscher@gmail.com"]
|
11
|
+
spec.summary = %q{Makes underscore.inflections.js available to the asset pipeline}
|
12
|
+
spec.homepage = "https://github.com/VonD/underscore-rails"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
end
|