motion-egg 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: 5a755311e092feb9bf84952946cd0f3ab3f4d657
4
- data.tar.gz: 9e055ea10c7e4e60e77c7e67cc629a0eb18b9206
3
+ metadata.gz: 654a052bf3b193832af853757bad0ae8ab589be9
4
+ data.tar.gz: 01eb1fca02ec8d168137f061cd660bd65f4ace19
5
5
  SHA512:
6
- metadata.gz: 05f01b628880ad4f2632c75e152e8088163a7a300d30974066b269aadaee9fdb602c97fde787a11772a0b12e5d4add934397648c067e98810b3ce7404ce75464
7
- data.tar.gz: ee96ec7fee541c74da4b5741aefccfba40ed4d24eefe352bf1ea667599f647e4b79ddea83bbe9b99cc122a9e3a5f249d56518838643d085547819b660499694a
6
+ metadata.gz: 9eb09618490543229198dad9aa596cab7e29b170f641d0f394b3a92e6cb6e358bb80b67c895117c9169bfc4661011aff299bd6be5634bd9dc363a75a59059c51
7
+ data.tar.gz: 5107e18877b15e6fe2304bc7c95df6d9963b27dc57725e71f39c2eaca910b277d2abba81aa5992cbf2e525d89652b3731540f46c9134c1fcebbf219200970e56
@@ -0,0 +1,57 @@
1
+ ![motion-egg-explain](./_art/motion-egg-explain.png)
2
+
3
+ ## Wat?
4
+
5
+ This gem allows you hide a small bit of fun in any of your serious apps.
6
+ * Have a girl to impress?
7
+ * Want to feature some of your good friends in apps that they have no business being in?
8
+ * Need to add your flair to a product?
9
+
10
+ **Have all the fun, without writing any of the code.**
11
+
12
+ ![screen-demo](./_art/motion-egg-screen.gif)
13
+
14
+ ## Usage
15
+
16
+ Once the gem is included, call `add_egg` on the `UIWindow` created in `app_delegate.rb`
17
+
18
+ ```ruby
19
+ # This will add the an easter egg with all defaults
20
+ @window.add_egg
21
+
22
+ # This will add an easter egg with options
23
+ @window.add_egg(number_touches: 2, image_file: "taco.png")
24
+ ```
25
+
26
+ The customizable options and defaults are:
27
+ * **secret_code:** An array of UISwipeGestureRecognizer constants.
28
+ * Default value `[
29
+ UISwipeGestureRecognizerDirectionUp, UISwipeGestureRecognizerDirectionUp,
30
+ UISwipeGestureRecognizerDirectionDown, UISwipeGestureRecognizerDirectionDown,
31
+ UISwipeGestureRecognizerDirectionLeft, UISwipeGestureRecognizerDirectionRight,
32
+ UISwipeGestureRecognizerDirectionLeft, UISwipeGestureRecognizerDirectionRight
33
+ ]`
34
+ * **number_touches** Integer of how many touches are required when entering the code.
35
+ * Default value `1`
36
+ * **image_file** The string array of the image resource for the Easter egg.
37
+ * Default value `toasty.png`
38
+
39
+
40
+ ## Installation
41
+
42
+ > 1. `gem install motion-egg`
43
+
44
+ OR
45
+
46
+ > 2. Add `gem 'motion-egg'` to your `Gemfile` and then bundle
47
+
48
+ ## Pull Requests
49
+
50
+ It would be really cool if you can think of ways to improve this gem, but keep it small and unintrusive!
51
+
52
+ ## Roadmap/Features - PRs welcome
53
+
54
+ * Hoping to eventually add sound
55
+ * Hoping to add alternate animations
56
+ * Hoping to make the egg more configurable
57
+ * Hoping to possibly show an interactive view, and not just an image
@@ -1,12 +1,9 @@
1
- require "motion_egg/version"
2
-
3
1
  unless defined?(Motion::Project::Config)
4
2
  raise "This file must be required within a RubyMotion project Rakefile."
5
3
  end
6
4
 
5
+ lib_dir_path = File.dirname(File.expand_path(__FILE__))
7
6
  Motion::Project::App.setup do |app|
8
- Dir.glob(File.join(File.dirname(__FILE__), 'motion_egg/*.rb')).each do |file|
9
- app.files.unshift(file)
10
- end
7
+ app.files.unshift(Dir.glob(File.join(lib_dir_path, "motion-egg/**/*.rb")))
11
8
  #app.frameworks += ["Twitter", "Accounts"]
12
9
  end
File without changes
@@ -0,0 +1,3 @@
1
+ module MotionEgg
2
+ VERSION = "0.0.2"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-egg
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
  - Gant Laborde
@@ -31,10 +31,11 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - lib/motion_egg/egg.rb
35
- - lib/motion_egg/uiwindow.rb
36
- - lib/motion_egg/version.rb
37
- - lib/motion_egg.rb
34
+ - README.md
35
+ - lib/motion-egg/egg.rb
36
+ - lib/motion-egg/uiwindow.rb
37
+ - lib/motion-egg/version.rb
38
+ - lib/motion-egg.rb
38
39
  homepage: https://github.com/GantMan/motion-egg
39
40
  licenses:
40
41
  - MIT
@@ -1,3 +0,0 @@
1
- module MotionEgg
2
- VERSION = "0.0.1"
3
- end