rloading 0.0.3 → 0.0.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 393919230acab39172840251c2f1a91b18ffed96
|
4
|
+
data.tar.gz: 60c918787a5d7dd6605afe0d06ff0721c1284cc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd40045d6fab4319232c8e779d7b53bcfc3023583b1fd4c317d8b5ef971b0fdc2e8e002b57fd0db7991dab2231a65d36c47b5f34ed5f8ba6a877df589e94624
|
7
|
+
data.tar.gz: 2e06a17fb0a5be904326879d621a5581dab2649a6a3e03311c2259ef7b2c5a1679a75c81d6aaf4d40ee5e7b140ad581e5ce9fc78c0ab5f0f59f9af81acac9816
|
data/CHANGELOG
ADDED
data/README.md
CHANGED
@@ -1,39 +1,48 @@
|
|
1
1
|
# Rloading
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rloading`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
3
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
|
7
|
+
on Gemfile
|
10
8
|
|
11
9
|
```ruby
|
12
10
|
gem 'rloading'
|
13
11
|
```
|
14
12
|
|
15
|
-
|
13
|
+
on terminal
|
16
14
|
|
17
|
-
|
15
|
+
````bash
|
16
|
+
bundle install
|
17
|
+
````
|
18
18
|
|
19
|
-
|
19
|
+
application.js
|
20
20
|
|
21
|
-
|
21
|
+
````javascript
|
22
|
+
//= require rloading
|
23
|
+
````
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
25
|
+
application.css
|
26
26
|
|
27
|
-
|
27
|
+
````css
|
28
|
+
*= require rloading
|
29
|
+
````
|
30
|
+
## Usage
|
28
31
|
|
29
|
-
|
32
|
+
Start loading
|
30
33
|
|
31
|
-
|
34
|
+
````javascript
|
35
|
+
lon();
|
36
|
+
````
|
32
37
|
|
33
|
-
|
38
|
+
Finish loading
|
34
39
|
|
35
|
-
|
40
|
+
````javascript
|
41
|
+
loff();
|
42
|
+
````
|
36
43
|
|
44
|
+
## Thanks
|
45
|
+
[patrikhjelm](http://codepen.io/patrikhjelm/pen/hItqn)
|
37
46
|
|
38
47
|
## License
|
39
48
|
|
data/lib/rloading/version.rb
CHANGED
@@ -1,19 +1,14 @@
|
|
1
|
-
|
2
1
|
function install(){
|
3
|
-
/*
|
4
|
-
<div id='blackout' class='ncolor'></div><div class='loading'><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div></div>
|
5
|
-
*/
|
6
2
|
if ($('#blackout').length==0){
|
7
3
|
$("body").prepend("<div id='blackout' class='ncolor'></div><div class='loading'><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div><div class='ball ncolor'></div></div>");
|
8
4
|
}
|
9
5
|
}
|
10
6
|
|
11
|
-
|
12
7
|
$( document ).ready(function() {
|
13
8
|
install();
|
14
9
|
});
|
15
10
|
|
16
|
-
$(document).on('ready page:load', function(){
|
11
|
+
$(document).on('ready page:load turbolinks:load', function(){
|
17
12
|
install();
|
18
13
|
});
|
19
14
|
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rloading
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thiago feitosa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
63
|
- ".travis.yml"
|
64
|
+
- CHANGELOG
|
64
65
|
- CODE_OF_CONDUCT.md
|
65
66
|
- Gemfile
|
66
67
|
- LICENSE.txt
|
@@ -71,8 +72,8 @@ files:
|
|
71
72
|
- lib/rloading.rb
|
72
73
|
- lib/rloading/version.rb
|
73
74
|
- rloading.gemspec
|
74
|
-
- vendor/assets/javascripts/rloading
|
75
|
-
- vendor/assets/stylesheets/rloading
|
75
|
+
- vendor/assets/javascripts/rloading.js
|
76
|
+
- vendor/assets/stylesheets/rloading.css
|
76
77
|
homepage: http://rubygems.org/gems/rloading
|
77
78
|
licenses:
|
78
79
|
- MIT
|
@@ -93,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
94
|
version: '0'
|
94
95
|
requirements: []
|
95
96
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.6.
|
97
|
+
rubygems_version: 2.6.6
|
97
98
|
signing_key:
|
98
99
|
specification_version: 4
|
99
100
|
summary: Rloading plugin
|