motion-hybrid 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +4 -4
- data/lib/motion-hybrid/version.rb +1 -1
- data/motion-hybrid.gemspec +2 -2
- metadata +4 -5
- data/Gemfile.lock +0 -76
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a5debbc27413f3816739686e3725174437fb193
|
4
|
+
data.tar.gz: c39c42c2fc5cf0a45e7e434e7760c7307d9984bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8a7379aa14f3b508daa08db838c0034af3608ee8ad4f2f4a2c2ebcd0122b61081a8a457f20ae8557e8d3e554c601ef6119901832460e13e68521f151811565f
|
7
|
+
data.tar.gz: b50b94de5d4897d29b46b5e34e7bdf9d07f8d56488d80bfc9e20862baf9a4ebe37a4a262b4dc36ef17c29849bc00c5f644c8ba530cb95df67208a5e414c6f07e
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -20,7 +20,7 @@ $ rake pod:install
|
|
20
20
|
|
21
21
|
## Basic Usage
|
22
22
|
|
23
|
-
Create a screen that inherits from `MotionHybrid::Screen` and set the base url of your web app:
|
23
|
+
Create a screen class that inherits from `MotionHybrid::Screen` and set the base url of your web app:
|
24
24
|
|
25
25
|
```ruby
|
26
26
|
# app/screens/base_screen.rb
|
@@ -29,7 +29,7 @@ class BaseScreen < MotionHybrid::Screen
|
|
29
29
|
end
|
30
30
|
```
|
31
31
|
|
32
|
-
|
32
|
+
Instantiate one or more screens and set their paths:
|
33
33
|
|
34
34
|
```ruby
|
35
35
|
# app/app_delegate.rb
|
@@ -113,12 +113,12 @@ TBA
|
|
113
113
|
|
114
114
|
## Custom routes
|
115
115
|
|
116
|
-
Sometimes you will want to trigger native iOS functionality from the web views, this is done by intercepting URLs that you can
|
116
|
+
Sometimes you will want to trigger native iOS functionality from the web views, this is done by intercepting URLs that you can handle using the routing api, so you can do things like:
|
117
117
|
|
118
118
|
```ruby
|
119
119
|
class BaseScreen < MotionHybrid::Screen
|
120
120
|
# pops up in-app email composer when clicking mailto: links
|
121
|
-
route /^mailto:/ do
|
121
|
+
route /^mailto:/ do
|
122
122
|
BW::Mail.compose(to: 'bob@example.com', subject: 'In app emailing', message: 'Hi!', animated: true)
|
123
123
|
end
|
124
124
|
|
data/motion-hybrid.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = MotionHybrid::VERSION
|
9
9
|
spec.authors = ["Jens Balvig"]
|
10
10
|
spec.email = ["jens@balvig.com"]
|
11
|
-
spec.summary = %q{
|
12
|
-
spec.description = %q{
|
11
|
+
spec.summary = %q{RubyMotion framework for easily making hybrid webview-centric iOS apps}
|
12
|
+
spec.description = %q{RubyMotion framework for easily making hybrid webview-centric iOS apps}
|
13
13
|
spec.homepage = "https://github.com/balvig/motion-hybrid"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-hybrid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Balvig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bubble-wrap
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
-
description:
|
167
|
+
description: RubyMotion framework for easily making hybrid webview-centric iOS apps
|
168
168
|
email:
|
169
169
|
- jens@balvig.com
|
170
170
|
executables: []
|
@@ -173,7 +173,6 @@ extra_rdoc_files: []
|
|
173
173
|
files:
|
174
174
|
- ".gitignore"
|
175
175
|
- Gemfile
|
176
|
-
- Gemfile.lock
|
177
176
|
- LICENSE.txt
|
178
177
|
- README.md
|
179
178
|
- Rakefile
|
@@ -237,6 +236,6 @@ rubyforge_project:
|
|
237
236
|
rubygems_version: 2.1.0
|
238
237
|
signing_key:
|
239
238
|
specification_version: 4
|
240
|
-
summary:
|
239
|
+
summary: RubyMotion framework for easily making hybrid webview-centric iOS apps
|
241
240
|
test_files:
|
242
241
|
- spec/basic_routes_spec.rb
|
data/Gemfile.lock
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
motion-hybrid (0.0.1)
|
5
|
-
ProMotion
|
6
|
-
bubble-wrap
|
7
|
-
dish
|
8
|
-
motion-cocoapods
|
9
|
-
motion-require
|
10
|
-
motion-support
|
11
|
-
sugarcube
|
12
|
-
|
13
|
-
GEM
|
14
|
-
remote: https://rubygems.org/
|
15
|
-
specs:
|
16
|
-
ProMotion (1.2.0)
|
17
|
-
methadone (~> 1.3)
|
18
|
-
motion-require (~> 0.2)
|
19
|
-
activesupport (3.2.17)
|
20
|
-
i18n (~> 0.6, >= 0.6.4)
|
21
|
-
multi_json (~> 1.0)
|
22
|
-
bubble-wrap (1.5.0)
|
23
|
-
claide (0.4.0)
|
24
|
-
cocoapods (0.29.0)
|
25
|
-
activesupport (>= 3.2.15, < 4)
|
26
|
-
claide (~> 0.4.0)
|
27
|
-
cocoapods-core (= 0.29.0)
|
28
|
-
cocoapods-downloader (~> 0.3.0)
|
29
|
-
cocoapods-try-release-fix (~> 0.1.1)
|
30
|
-
colored (~> 1.2)
|
31
|
-
escape (~> 0.0.4)
|
32
|
-
json_pure (~> 1.8)
|
33
|
-
nap (~> 0.5)
|
34
|
-
open4 (~> 1.3)
|
35
|
-
xcodeproj (~> 0.14.1)
|
36
|
-
cocoapods-core (0.29.0)
|
37
|
-
activesupport (>= 3.2.15, < 4)
|
38
|
-
fuzzy_match (~> 2.0.4)
|
39
|
-
json_pure (~> 1.8)
|
40
|
-
nap (~> 0.5)
|
41
|
-
cocoapods-downloader (0.3.0)
|
42
|
-
cocoapods-try-release-fix (0.1.2)
|
43
|
-
colored (1.2)
|
44
|
-
dish (0.0.3)
|
45
|
-
escape (0.0.4)
|
46
|
-
fuzzy_match (2.0.4)
|
47
|
-
i18n (0.6.9)
|
48
|
-
json_pure (1.8.1)
|
49
|
-
methadone (1.3.2)
|
50
|
-
bundler
|
51
|
-
motion-cocoapods (1.4.0)
|
52
|
-
cocoapods (>= 0.26.2)
|
53
|
-
motion-redgreen (0.1.0)
|
54
|
-
motion-require (0.2.0)
|
55
|
-
motion-support (0.2.6)
|
56
|
-
motion-require (>= 0.0.6)
|
57
|
-
multi_json (1.9.2)
|
58
|
-
nap (0.6.0)
|
59
|
-
open4 (1.3.3)
|
60
|
-
rake (10.1.1)
|
61
|
-
sugarcube (1.5.5)
|
62
|
-
webstub (1.0.1)
|
63
|
-
xcodeproj (0.14.1)
|
64
|
-
activesupport (~> 3.0)
|
65
|
-
colored (~> 1.2)
|
66
|
-
rake
|
67
|
-
|
68
|
-
PLATFORMS
|
69
|
-
ruby
|
70
|
-
|
71
|
-
DEPENDENCIES
|
72
|
-
bundler (~> 1.5)
|
73
|
-
motion-hybrid!
|
74
|
-
motion-redgreen
|
75
|
-
rake
|
76
|
-
webstub
|