spin_loader 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +38 -5
- data/lib/spin_loader/version.rb +1 -1
- data/spin_loader.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b43b7b043e789cc8ab3e8c671c24a9c40b0c4c34
|
4
|
+
data.tar.gz: 608db5a1c5c8f6a0345ba2b0ca39e024e952e523
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0195fb8b10e17dfd7afc3434b8f9624b8dde291ad52d84a003404548a65698fd87f3ec730f4c06d6a52f79ce6614c611c355be23775b64f000c7a16030ab6dfc
|
7
|
+
data.tar.gz: 30ba9de728a003004ccccc4d852a54205d7471eb54ac79d758db60456bc862bb98f6ca713ae5a4118c0b2e43022c1f280a1cbbaac750cd9afe9dfb80cf634d5f
|
data/README.md
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# Spin Loader
|
2
2
|
|
3
|
-
|
3
|
+
This is a Gem based on [Spin.js](http://fgnass.github.io/spin.js/) to create a big semi-transparent full screen loader with a spinner in the center.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
|
9
|
+
```ruby
|
10
|
+
gem 'spin_loader'
|
11
|
+
```
|
10
12
|
|
11
13
|
And then execute:
|
12
14
|
|
@@ -18,11 +20,42 @@ Or install it yourself as:
|
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
21
|
-
|
23
|
+
|
24
|
+
### Importing the files
|
25
|
+
|
26
|
+
In your app/assets/javascripts/application.js file, add the following line:
|
27
|
+
|
28
|
+
```javascript
|
29
|
+
//= require spin_loader
|
30
|
+
```
|
31
|
+
|
32
|
+
In your app/assets/stylesheets/application.css file, add the following line:
|
33
|
+
|
34
|
+
```css
|
35
|
+
*= require spin_loader
|
36
|
+
```
|
37
|
+
|
38
|
+
### Start and Stop the loader
|
39
|
+
|
40
|
+
In your coffeescript files, add the following:
|
41
|
+
|
42
|
+
```coffeescript
|
43
|
+
root = exports ? this
|
44
|
+
```
|
45
|
+
|
46
|
+
Now, you have 2 commands, one to start the loader e other to stop the loader.
|
47
|
+
|
48
|
+
```coffeescript
|
49
|
+
// This starts the loader
|
50
|
+
root.start_loading()
|
51
|
+
|
52
|
+
//This stops the loader
|
53
|
+
root.stop_loading()
|
54
|
+
```
|
22
55
|
|
23
56
|
## Contributing
|
24
57
|
|
25
|
-
1. Fork it ( http://github.com
|
58
|
+
1. Fork it ( http://github.com/arielschvartz/spin_loader/fork )
|
26
59
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
60
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
61
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/spin_loader/version.rb
CHANGED
data/spin_loader.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spin_loader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariel Schvartz
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: coffee-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Creates a full screen loader with a background mask based on spin.js
|
42
56
|
library. Creates coffeescript helpers.
|
43
57
|
email:
|