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: ef17f0ff475ab4419c4329547bd27e8d639fe28b
4
- data.tar.gz: 91f70f5b9bb8714a9cc86d6241cd81e217176b7a
3
+ metadata.gz: 393919230acab39172840251c2f1a91b18ffed96
4
+ data.tar.gz: 60c918787a5d7dd6605afe0d06ff0721c1284cc2
5
5
  SHA512:
6
- metadata.gz: 94efe16b0e907969f2485303349d73c7edac6b9c6ea422dce719d59bdd713914ed4284ed0c6d2b0dcd35cb4c874c37d2fb270d77807e61a6406f96ee91aecb0e
7
- data.tar.gz: 754e27b36392906faa39434855bdbc675b33c91c904e1ef92a1428be157e6e6faa06e57e15707d7351daedc6051ab26aad33b58d82f32c6d7af76e2ef7475724
6
+ metadata.gz: 5fd40045d6fab4319232c8e779d7b53bcfc3023583b1fd4c317d8b5ef971b0fdc2e8e002b57fd0db7991dab2231a65d36c47b5f34ed5f8ba6a877df589e94624
7
+ data.tar.gz: 2e06a17fb0a5be904326879d621a5581dab2649a6a3e03311c2259ef7b2c5a1679a75c81d6aaf4d40ee5e7b140ad581e5ce9fc78c0ab5f0f59f9af81acac9816
data/CHANGELOG ADDED
@@ -0,0 +1,5 @@
1
+ v0.0.4
2
+ - rails 5 support
3
+ - change require rloading/rloading to just roloading
4
+ v0.0.3
5
+ - works with turbolinks
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
- Add this line to your application's Gemfile:
7
+ on Gemfile
10
8
 
11
9
  ```ruby
12
10
  gem 'rloading'
13
11
  ```
14
12
 
15
- And then execute:
13
+ on terminal
16
14
 
17
- $ bundle
15
+ ````bash
16
+ bundle install
17
+ ````
18
18
 
19
- Or install it yourself as:
19
+ application.js
20
20
 
21
- $ gem install rloading
21
+ ````javascript
22
+ //= require rloading
23
+ ````
22
24
 
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
25
+ application.css
26
26
 
27
- ## Development
27
+ ````css
28
+ *= require rloading
29
+ ````
30
+ ## Usage
28
31
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+ Start loading
30
33
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+ ````javascript
35
+ lon();
36
+ ````
32
37
 
33
- ## Contributing
38
+ Finish loading
34
39
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rloading. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
40
+ ````javascript
41
+ loff();
42
+ ````
36
43
 
44
+ ## Thanks
45
+ [patrikhjelm](http://codepen.io/patrikhjelm/pen/hItqn)
37
46
 
38
47
  ## License
39
48
 
@@ -1,3 +1,3 @@
1
1
  module RLoading
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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
 
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.3
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-05-03 00:00:00.000000000 Z
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/rloading.js
75
- - vendor/assets/stylesheets/rloading/rloading.css
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.3
97
+ rubygems_version: 2.6.6
97
98
  signing_key:
98
99
  specification_version: 4
99
100
  summary: Rloading plugin