spin_loader 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 022f225b16c1eb0328b1da77158038ebc5044e9d
4
- data.tar.gz: 7a8a2e6be9ca5a5173cd707acbcd41000d17ffb7
3
+ metadata.gz: b43b7b043e789cc8ab3e8c671c24a9c40b0c4c34
4
+ data.tar.gz: 608db5a1c5c8f6a0345ba2b0ca39e024e952e523
5
5
  SHA512:
6
- metadata.gz: df579de0ef123a8169b7a4875de497d58637c130e9dd0cadf945ca2c29d37b96eaa21a3c08dc2282e7d6a2e39ff07daf4c4cf0eaf2ccf68292d0b1e0c350a93f
7
- data.tar.gz: 50c0ea03eac03549e7524b704ac89143cf1518da0900a6d5ed305dad67d5630dc1f0ac61b0fb83296fbca64a8b54fc813f8d17fa7418e4187a6cce893b522784
6
+ metadata.gz: 0195fb8b10e17dfd7afc3434b8f9624b8dde291ad52d84a003404548a65698fd87f3ec730f4c06d6a52f79ce6614c611c355be23775b64f000c7a16030ab6dfc
7
+ data.tar.gz: 30ba9de728a003004ccccc4d852a54205d7471eb54ac79d758db60456bc862bb98f6ca713ae5a4118c0b2e43022c1f280a1cbbaac750cd9afe9dfb80cf634d5f
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
- # SpinLoader
1
+ # Spin Loader
2
2
 
3
- TODO: Write a gem description
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
- gem 'spin_loader'
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
- TODO: Write usage instructions here
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/<my-github-username>/spin_loader/fork )
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`)
@@ -1,3 +1,3 @@
1
1
  module SpinLoader
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/spin_loader.gemspec CHANGED
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_dependency 'coffee-rails'
23
24
  end
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.1
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: