jquery-modaal-rails 0.4.4
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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +71 -0
- data/Rakefile +28 -0
- data/lib/jquery/modaal/rails.rb +9 -0
- data/lib/jquery/modaal/rails/engine.rb +9 -0
- data/lib/jquery/modaal/rails/version.rb +7 -0
- data/lib/tasks/jquery/modaal/rails_tasks.rake +4 -0
- metadata +79 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: efd9f642ba01ff275e2c176dfc4d0c67dff828a7dd60aa200df275ab7c6e6825
|
4
|
+
data.tar.gz: e447574ad5d54b50ddd33446ae3aa4a32e62eb6d42f1b6a043a4cd0d0ec09268
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 55c6debe7083895c563cc8cdc61251da3ddd47eb99988634cc37b4a24f79d0a7e1b08d8995c8253237ae0c9dfce3a39199a88429239063098096bd4c0e264132
|
7
|
+
data.tar.gz: d8e6df2a14ac7acd891128facf68dfbae4cfa055abf50928916ba3fb4e6de71e62ae819153439bc70d393a728f14103109724c9eeae809cf5e36ce889591c3ec
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2019 Yasuhiko Machino
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# jquery-modaal-rails
|
2
|
+
A ruby gem that uses the Rails asset pipeline to include the jQuery Modaal plugin by humaan
|
3
|
+
(http://www.humaan.com/modaal/).
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'jquery-modaal-rails'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
```bash
|
15
|
+
$ bundle
|
16
|
+
```
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
```bash
|
20
|
+
$ gem install jquery-modaal-rails
|
21
|
+
```
|
22
|
+
|
23
|
+
NOTE: this is a jQuery plugin so you will also need the `jquery-rails` gem (it is not added by default starting from Rails 5.1):
|
24
|
+
|
25
|
+
* https://github.com/rails/jquery-rails
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
You will need to add this line into your `application.js`:
|
29
|
+
|
30
|
+
```javascript
|
31
|
+
//= require modaal
|
32
|
+
```
|
33
|
+
|
34
|
+
Then into `application.scss`:
|
35
|
+
|
36
|
+
```scss
|
37
|
+
@import 'modaal';
|
38
|
+
```
|
39
|
+
|
40
|
+
or into `application.css`:
|
41
|
+
|
42
|
+
```css
|
43
|
+
/*
|
44
|
+
*= require modaal
|
45
|
+
*/
|
46
|
+
```
|
47
|
+
|
48
|
+
## Testing
|
49
|
+
|
50
|
+
Run
|
51
|
+
|
52
|
+
```console
|
53
|
+
$ bundle install
|
54
|
+
```
|
55
|
+
|
56
|
+
and then
|
57
|
+
|
58
|
+
```console
|
59
|
+
$ rake spec
|
60
|
+
```
|
61
|
+
|
62
|
+
## Contributing
|
63
|
+
1. Fork it
|
64
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
65
|
+
3. Make sure tests are passing
|
66
|
+
4. Commit your changes (`git commit -am 'Added some feature'`)
|
67
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
68
|
+
6. Create new Pull Request.
|
69
|
+
|
70
|
+
## License
|
71
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'Jquery::Modaal::Rails'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
load 'rails/tasks/statistics.rake'
|
21
|
+
|
22
|
+
require 'bundler/gem_tasks'
|
23
|
+
|
24
|
+
require 'rspec/core/rake_task'
|
25
|
+
|
26
|
+
RSpec::Core::RakeTask.new(:spec)
|
27
|
+
|
28
|
+
task :default => :spec
|
metadata
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jquery-modaal-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Yasuhiko Machino
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-02-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Integrates Modaal, a jQuery plugin by Humaan, into your Rails app.
|
42
|
+
email:
|
43
|
+
- yasuhikomachino@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- MIT-LICENSE
|
49
|
+
- README.md
|
50
|
+
- Rakefile
|
51
|
+
- lib/jquery/modaal/rails.rb
|
52
|
+
- lib/jquery/modaal/rails/engine.rb
|
53
|
+
- lib/jquery/modaal/rails/version.rb
|
54
|
+
- lib/tasks/jquery/modaal/rails_tasks.rake
|
55
|
+
homepage: https://github.com/yasuhikomachino/jquery-modaal-rails
|
56
|
+
licenses:
|
57
|
+
- MIT
|
58
|
+
metadata: {}
|
59
|
+
post_install_message:
|
60
|
+
rdoc_options: []
|
61
|
+
require_paths:
|
62
|
+
- lib
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
requirements: []
|
74
|
+
rubyforge_project:
|
75
|
+
rubygems_version: 2.7.6
|
76
|
+
signing_key:
|
77
|
+
specification_version: 4
|
78
|
+
summary: Integrates Modaal into Rails app.
|
79
|
+
test_files: []
|