motion-hybrid 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: 64d08d319ac85d30d54245b42d93a0e0ea25341e
4
- data.tar.gz: 9dd02ccbb10a99e80fd98f22d6aca8262e54ee51
3
+ metadata.gz: e3d561a820a3a93f3fca349ac0154b7a51fdc3e9
4
+ data.tar.gz: 522b386cfaeeb0c888cf6cd45e88023e2c7f9f6d
5
5
  SHA512:
6
- metadata.gz: 366a07d182912214a43f2a3013aa599f8ceaf78324a68bc4f3d644845cdeee49bcddb3a646632cbce1dba66a4b53b76815ad87dcf0b041b2754e53acafc4ed08
7
- data.tar.gz: a1ca81a7731b41e6a4c32fefbe591c352d20b51c884673f694d7c5d6c769219f641a153475688c6ee7edea11305fcba2cc9330636d30584e9deb0971a020995a
6
+ metadata.gz: faa2d8df3a6fb7bf32b8dfa5b6c06f7db955f6a9319cdc94255d758825ed14bb8da261a3f733d7b45d876c45708b1ef0e7a588e5d752cf3bfa3d2d4882fbc189
7
+ data.tar.gz: 4a40311ee599c13d0409090d624085856c9454be53291c8279f5bd067a3a76a2797c8b2f9d786c775bcb1b5a5ab4ac7181479663e65d221d8c1e0922b79bcd89
data/README.md CHANGED
@@ -8,7 +8,7 @@ motion-hybrid takes your existing web app and views and wraps them in a snappy n
8
8
  Add to your rubymotion project's Gemfile:
9
9
 
10
10
  ```ruby
11
- gem 'motion-hybrid'
11
+ gem 'motion-hybrid'
12
12
  ```
13
13
 
14
14
  Run bundle and install required cocoapods:
@@ -109,7 +109,23 @@ All markup is contained within a div with id `motion-hybrid-bridge`
109
109
 
110
110
  ### Navbar items
111
111
 
112
+ TBA
112
113
 
113
114
  ## Custom routes
114
115
 
115
- TODO: Write usage instructions here
116
+ Sometimes you will want to trigger native iOS functionality from the web views, this is done by intercepting URLs that you can intercept and handle using the routing api, so you can do things like:
117
+
118
+ ```ruby
119
+ class BaseScreen < MotionHybrid::Screen
120
+ # pops up in-app email composer when clicking mailto: links
121
+ route /^mailto:/ do |request|
122
+ BW::Mail.compose(to: 'bob@example.com', subject: 'In app emailing', message: 'Hi!', animated: true)
123
+ end
124
+
125
+ # ask for push nofitication permisions when user hits '/setup' url
126
+ route '/setup' do
127
+ app_delegate.register_for_push_notifications :badge, :sound, :alert
128
+ end
129
+ end
130
+ ```
131
+
@@ -1,3 +1,3 @@
1
1
  module MotionHybrid
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -8,9 +8,9 @@ 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{Giving webviews som iOS love.}
12
- spec.description = %q{Giving webviews som iOS love.}
13
- spec.homepage = ""
11
+ spec.summary = %q{Native iOS framework for making hybrid apps}
12
+ spec.description = %q{Native iOS framework for making hybrid apps}
13
+ spec.homepage = "https://github.com/balvig/motion-hybrid"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-hybrid
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
  - Jens Balvig
@@ -164,7 +164,7 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
- description: Giving webviews som iOS love.
167
+ description: Native iOS framework for making hybrid apps
168
168
  email:
169
169
  - jens@balvig.com
170
170
  executables: []
@@ -214,7 +214,7 @@ files:
214
214
  - resources/web/refreshable.html
215
215
  - spec/basic_routes_spec.rb
216
216
  - vendor/Podfile.lock
217
- homepage: ''
217
+ homepage: https://github.com/balvig/motion-hybrid
218
218
  licenses:
219
219
  - MIT
220
220
  metadata: {}
@@ -237,6 +237,6 @@ rubyforge_project:
237
237
  rubygems_version: 2.1.0
238
238
  signing_key:
239
239
  specification_version: 4
240
- summary: Giving webviews som iOS love.
240
+ summary: Native iOS framework for making hybrid apps
241
241
  test_files:
242
242
  - spec/basic_routes_spec.rb