mootools-plus-rails 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +61 -0
- data/LICENSE.md +7 -0
- data/README.md +27 -0
- data/lib/mootools-plus-rails.rb +1 -0
- data/lib/mootools-plus-rails/rails.rb +6 -0
- data/lib/mootools-plus-rails/rails/engine.rb +6 -0
- data/lib/mootools-plus-rails/rails/version.rb +5 -0
- data/mootools-plus-rails.gemspec +17 -0
- data/vendor/assets/javascripts/mootools-plus.js +1 -0
- metadata +76 -0
data/.gitignore
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
*.rbc
|
2
|
+
*.sassc
|
3
|
+
.sass-cache
|
4
|
+
capybara-*.html
|
5
|
+
.rspec
|
6
|
+
.rvmrc
|
7
|
+
.DS_Store
|
8
|
+
/.bundle
|
9
|
+
/vendor/bundle
|
10
|
+
/log/*
|
11
|
+
/tmp/*
|
12
|
+
/db/*.sqlite3
|
13
|
+
/public/system/*
|
14
|
+
/coverage/
|
15
|
+
/spec/tmp/*
|
16
|
+
**.orig
|
17
|
+
rerun.txt
|
18
|
+
pickle-email-*.html
|
19
|
+
*.gem
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mootools-plus-rails (0.3.0)
|
5
|
+
railties (>= 3.1.0, < 5.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionpack (3.2.7)
|
11
|
+
activemodel (= 3.2.7)
|
12
|
+
activesupport (= 3.2.7)
|
13
|
+
builder (~> 3.0.0)
|
14
|
+
erubis (~> 2.7.0)
|
15
|
+
journey (~> 1.0.4)
|
16
|
+
rack (~> 1.4.0)
|
17
|
+
rack-cache (~> 1.2)
|
18
|
+
rack-test (~> 0.6.1)
|
19
|
+
sprockets (~> 2.1.3)
|
20
|
+
activemodel (3.2.7)
|
21
|
+
activesupport (= 3.2.7)
|
22
|
+
builder (~> 3.0.0)
|
23
|
+
activesupport (3.2.7)
|
24
|
+
i18n (~> 0.6)
|
25
|
+
multi_json (~> 1.0)
|
26
|
+
builder (3.0.0)
|
27
|
+
erubis (2.7.0)
|
28
|
+
hike (1.2.1)
|
29
|
+
i18n (0.6.1)
|
30
|
+
journey (1.0.4)
|
31
|
+
json (1.7.4)
|
32
|
+
multi_json (1.3.6)
|
33
|
+
rack (1.4.1)
|
34
|
+
rack-cache (1.2)
|
35
|
+
rack (>= 0.4)
|
36
|
+
rack-ssl (1.3.2)
|
37
|
+
rack
|
38
|
+
rack-test (0.6.1)
|
39
|
+
rack (>= 1.0)
|
40
|
+
railties (3.2.7)
|
41
|
+
actionpack (= 3.2.7)
|
42
|
+
activesupport (= 3.2.7)
|
43
|
+
rack-ssl (~> 1.3.2)
|
44
|
+
rake (>= 0.8.7)
|
45
|
+
rdoc (~> 3.4)
|
46
|
+
thor (>= 0.14.6, < 2.0)
|
47
|
+
rake (0.9.2.2)
|
48
|
+
rdoc (3.12)
|
49
|
+
json (~> 1.4)
|
50
|
+
sprockets (2.1.3)
|
51
|
+
hike (~> 1.2)
|
52
|
+
rack (~> 1.0)
|
53
|
+
tilt (~> 1.1, != 1.3.0)
|
54
|
+
thor (0.16.0)
|
55
|
+
tilt (1.3.3)
|
56
|
+
|
57
|
+
PLATFORMS
|
58
|
+
ruby
|
59
|
+
|
60
|
+
DEPENDENCIES
|
61
|
+
mootools-plus-rails!
|
data/LICENSE.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
**© Copyright 2012 caedes**
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# mootools-plus-rails
|
2
|
+
|
3
|
+
*A gem to automate using mootools-plus with Rails 3 Asset Pipeline*
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add the gem in your `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
group :assets do
|
11
|
+
gem 'mootools-plus-rails', '~> 0.1.0'
|
12
|
+
end
|
13
|
+
```
|
14
|
+
|
15
|
+
Then `bundle install` it.
|
16
|
+
|
17
|
+
Add mootools-plus to the asset pipeline:
|
18
|
+
|
19
|
+
```javascript
|
20
|
+
//= require mootools-plus
|
21
|
+
```
|
22
|
+
|
23
|
+
Enjoy!
|
24
|
+
|
25
|
+
## Licence
|
26
|
+
|
27
|
+
Released under the MIT License. See the [LICENSE](https://github.com/caedes/mootools-plus-rails/blob/master/LICENSE.md) file for further details.
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'mootools-plus-rails/rails'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require File.expand_path('../lib/mootools-plus-rails/rails/version', __FILE__)
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = 'mootools-plus-rails'
|
5
|
+
s.version = MootoolsPlusRails::Rails::VERSION
|
6
|
+
s.authors = ['caedes']
|
7
|
+
s.email = ['laurentromain@gmail.com']
|
8
|
+
s.homepage = 'https://github.com/caedes/mootools-plus-rails'
|
9
|
+
s.summary = 'A gem to automate using mootools-plus with Rails 3 Asset Pipeline'
|
10
|
+
s.description = s.summary
|
11
|
+
|
12
|
+
s.files = `git ls-files`.split("\n")
|
13
|
+
|
14
|
+
s.add_dependency 'railties', '>= 3.1.0', '< 5.0'
|
15
|
+
|
16
|
+
s.require_path = 'lib'
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Array.implement({getFirst:function(e){return e||e===0?this.slice(0,e):this[0]},getLast:function(e){return e>=this.length?this:e||e===0?this.slice(this.length-e,this.length):this[this.length-1]},deleteIf:function(e){for(var t=0,n=this.length;t<n;t++){var r=this.shift();e.call(r)||this.push(r)}return this},filterOne:function(e,t){return this.filter(e,t).getFirst()},isBlank:function(){return this.length==0},hasAny:function(){return!this.isBlank()}}),Array.alias("first","getFirst"),Array.alias("last","getLast"),Array.alias("select","filter"),Array.alias("selectOne","filterOne"),Array.alias("compact","clean"),Array.alias("isEmpty","isBlank"),Element.implement({hasElement:function(e){return e==undefined?this.getChildren().length>0:this.getElement(e)!=null},hasElements:function(e){return e==undefined?this.getChildren().length>0:this.getElements(e).length>1},hasEvent:function(e,t){var n=this.retrieve("events");return n&&n[e]&&(t==undefined||n[e].keys.contains(t))},hasParent:function(e){return e==undefined?this.getParent().length>0:this.getParent(e)!=null},disable:function(){return this.set("disabled",!0),this},enable:function(){return this.set("disabled",!1),this}});
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mootools-plus-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- caedes
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-09-11 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: railties
|
16
|
+
requirement: &2153053540 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.0
|
22
|
+
- - <
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '5.0'
|
25
|
+
type: :runtime
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: *2153053540
|
28
|
+
description: A gem to automate using mootools-plus with Rails 3 Asset Pipeline
|
29
|
+
email:
|
30
|
+
- laurentromain@gmail.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- .gitignore
|
36
|
+
- Gemfile
|
37
|
+
- Gemfile.lock
|
38
|
+
- LICENSE.md
|
39
|
+
- README.md
|
40
|
+
- lib/mootools-plus-rails.rb
|
41
|
+
- lib/mootools-plus-rails/rails.rb
|
42
|
+
- lib/mootools-plus-rails/rails/engine.rb
|
43
|
+
- lib/mootools-plus-rails/rails/version.rb
|
44
|
+
- mootools-plus-rails.gemspec
|
45
|
+
- vendor/assets/javascripts/mootools-plus.js
|
46
|
+
homepage: https://github.com/caedes/mootools-plus-rails
|
47
|
+
licenses: []
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
hash: 1342143186907483790
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
hash: 1342143186907483790
|
70
|
+
requirements: []
|
71
|
+
rubyforge_project:
|
72
|
+
rubygems_version: 1.8.6
|
73
|
+
signing_key:
|
74
|
+
specification_version: 3
|
75
|
+
summary: A gem to automate using mootools-plus with Rails 3 Asset Pipeline
|
76
|
+
test_files: []
|