motion-blitz 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -14
  3. data/lib/project/motion-blitz.rb +2 -2
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6a6f2e055ebb4f68066a297279f2b936c4d1b80
4
- data.tar.gz: 6135b116f7ae2bbb5df7165685b6cb5c678ff451
3
+ metadata.gz: 509d7feec870f4905ba4cc42d13d1ae40d0bcc0f
4
+ data.tar.gz: dfb4cf15a8dba30252f8f802036201b130df82cb
5
5
  SHA512:
6
- metadata.gz: 302b71533e398c760eb271d360575966801172d94b768d955c3b4832fd98b5f541dd8afe68be7aa53878c828bf658110d2141d91e14c6dca296bca42225eaf53
7
- data.tar.gz: e1e71ff8f355468c74832e756d03da33bb2649b7b1cf26dfbdc6bca6dacb53b995b349e64894c06f0414145aa4e4363ee433312d7e274dd225a81f5f9b598bf8
6
+ metadata.gz: 2003beceec1080be423c36869034e0af33134224ddbbbcd2f3a9bbec5b5587eacd2562a756c1b37cbb2de82b17e24601e00212a9ff6617f83bfd05780d0164a1
7
+ data.tar.gz: 443f475e0ef4ff655a36e84c7605ac997b71c9511ca86ccde0839edbe7acadd863645b5590a4c89cb669a51cfc143a634f14eae3057cbd50e71a9e6c881222ea
data/README.md CHANGED
@@ -1,10 +1,14 @@
1
- # motion-blitz
1
+ # motion-blitz [![Gem Version](https://badge.fury.io/rb/motion-blitz.png)](http://badge.fury.io/rb/motion-blitz) [![Code Climate](https://codeclimate.com/github/dblandin/motion-blitz.png)](https://codeclimate.com/github/dblandin/motion-blitz) ![Analytics](https://d2weczhvl823v0.cloudfront.net/dblandin/motion-blitz/trend.png)
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
+ ![Success](https://github.com/dblandin/motion-blitz/blob/master/img/success.png?raw=true)
11
+
8
12
  ## Usage
9
13
 
10
14
  ``` ruby
@@ -33,29 +37,47 @@ Notifier.error('Whoops!')
33
37
 
34
38
  ### Masks
35
39
 
36
- :none # allow user interactions, don't dim background UI (default)
37
- :clear # disable user interactions, don't dim background UI
38
- :black # disable user interactions, dim background UI with 50% translucent black
39
- :gradient # disable user interactions, dim background UI with translucent radial gradient (a-la-alertView)
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
- gem 'motion-blitz'
51
+ ```ruby
52
+ gem 'motion-blitz'
53
+ ```
46
54
 
47
55
  and then run:
48
56
 
49
- $ bundle install
57
+ ```
58
+ $ bundle install
59
+ ```
50
60
 
51
61
  Or install it yourself with:
52
62
 
53
- $ gem install motion-blitz
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
- and require motion-blitz in your Rakefile
76
+ motion-blitz depends on the SVProgressHUD CocoaPod.
56
77
 
57
- require 'rubygems'
58
- require 'motion-blitz'
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 to
69
- [Sam Vermette](https://github.com/samvermette) for [SVProgressHUD](https://github.com/samvermette/SVProgressHUD)
90
+ ## Thanks
70
91
 
71
- [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)
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
@@ -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.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-06-13 00:00:00.000000000 Z
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.3.2
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.3.2
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.0.0
70
+ rubygems_version: 2.1.1
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: RubyMotion wrapper for SVProgressHUD