motion-blitz 1.0.0 → 1.0.1
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 +37 -14
- data/lib/project/motion-blitz.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 509d7feec870f4905ba4cc42d13d1ae40d0bcc0f
|
4
|
+
data.tar.gz: dfb4cf15a8dba30252f8f802036201b130df82cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2003beceec1080be423c36869034e0af33134224ddbbbcd2f3a9bbec5b5587eacd2562a756c1b37cbb2de82b17e24601e00212a9ff6617f83bfd05780d0164a1
|
7
|
+
data.tar.gz: 443f475e0ef4ff655a36e84c7605ac997b71c9511ca86ccde0839edbe7acadd863645b5590a4c89cb669a51cfc143a634f14eae3057cbd50e71a9e6c881222ea
|
data/README.md
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
-
# motion-blitz
|
1
|
+
# motion-blitz [](http://badge.fury.io/rb/motion-blitz) [](https://codeclimate.com/github/dblandin/motion-blitz) 
|
2
2
|
|
3
3
|
### blitz (fl•ash), verb
|
4
4
|
|
5
5
|
1. Shine in a bright but brief, sudden, or intermittent way
|
6
6
|
2. Control the display of temporary messages via SVProgressHUD
|
7
7
|
|
8
|
+
__motion-blitz__'s initial development was sponsored by [dscout](https://dscout.com). Many thanks to them!
|
9
|
+
|
10
|
+

|
11
|
+
|
8
12
|
## Usage
|
9
13
|
|
10
14
|
``` ruby
|
@@ -33,29 +37,47 @@ Notifier.error('Whoops!')
|
|
33
37
|
|
34
38
|
### Masks
|
35
39
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
+
``` ruby
|
41
|
+
:none # allow user interactions, don't dim background UI (default)
|
42
|
+
:clear # disable user interactions, don't dim background UI
|
43
|
+
:black # disable user interactions, dim background UI with 50% translucent black
|
44
|
+
:gradient # disable user interactions, dim background UI with translucent radial gradient (a-la-alertView)
|
45
|
+
```
|
40
46
|
|
41
47
|
## Setup
|
42
48
|
|
43
49
|
If you're using Bundler, add this line to your app's Gemfile:
|
44
50
|
|
45
|
-
|
51
|
+
```ruby
|
52
|
+
gem 'motion-blitz'
|
53
|
+
```
|
46
54
|
|
47
55
|
and then run:
|
48
56
|
|
49
|
-
|
57
|
+
```
|
58
|
+
$ bundle install
|
59
|
+
```
|
50
60
|
|
51
61
|
Or install it yourself with:
|
52
62
|
|
53
|
-
|
63
|
+
```
|
64
|
+
$ gem install motion-blitz
|
65
|
+
```
|
66
|
+
|
67
|
+
and require motion-blitz in your Rakefile:
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
require 'rubygems'
|
71
|
+
require 'motion-blitz'
|
72
|
+
```
|
73
|
+
|
74
|
+
## Dependencies
|
54
75
|
|
55
|
-
|
76
|
+
motion-blitz depends on the SVProgressHUD CocoaPod.
|
56
77
|
|
57
|
-
|
58
|
-
|
78
|
+
You don't have to add SVProgressHUD to your Rakefile (motion-blitz handles that
|
79
|
+
dependency for you) but you need to run `$ rake pod:install` to download and
|
80
|
+
install it.
|
59
81
|
|
60
82
|
## Contributing
|
61
83
|
|
@@ -65,7 +87,8 @@ and require motion-blitz in your Rakefile
|
|
65
87
|
4. Push to the branch (`git push origin my-new-feature`)
|
66
88
|
5. Create new Pull Request
|
67
89
|
|
68
|
-
## Thanks
|
69
|
-
[Sam Vermette](https://github.com/samvermette) for [SVProgressHUD](https://github.com/samvermette/SVProgressHUD)
|
90
|
+
## Thanks
|
70
91
|
|
71
|
-
[
|
92
|
+
* [Sam Vermette](https://github.com/samvermette) for [SVProgressHUD](https://github.com/samvermette/SVProgressHUD)
|
93
|
+
* [Parker Selbert](https://github.com/sorentwo) for the [Norweigan-inspired name](https://github.com/dblandin/motion-blitz/blob/master/lib/project/motion-blitz.rb#L2)
|
94
|
+
* [dscout](https://dscout.com) - for their sponsorship
|
data/lib/project/motion-blitz.rb
CHANGED
@@ -52,12 +52,12 @@ module Motion
|
|
52
52
|
hud_class.showErrorWithStatus(message)
|
53
53
|
end
|
54
54
|
|
55
|
+
private
|
56
|
+
|
55
57
|
def hud_class
|
56
58
|
SVProgressHUD
|
57
59
|
end
|
58
60
|
|
59
|
-
private
|
60
|
-
|
61
61
|
def check_mask(mask)
|
62
62
|
raise ArgumentError, "mask must be one of #{MASKS.keys}" unless MASKS.keys.include?(mask)
|
63
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-blitz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Devon Blandin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: motion-cocoapods
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
69
|
rubyforge_project:
|
70
|
-
rubygems_version: 2.
|
70
|
+
rubygems_version: 2.1.1
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: RubyMotion wrapper for SVProgressHUD
|