under-os 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ef5b142a4e4cb3a0ae9e4fcf41e2348c691bf93f
4
+ data.tar.gz: e274b74979f02280d836f2c53a7f28c919b4d0a2
5
+ SHA512:
6
+ metadata.gz: baacb919ea538b281819beb91f438d77c77abda5bd7e21080ca100d6a0318efef6de4887e12833a78cd2743d0f90ae06f1ffe36d58dfb0f3cd75ce24169f47bc
7
+ data.tar.gz: 072c365f9b4f0dec820e9491de382d5f03f76388bc2c35d9160a3f467a81dc84836b722f698827949ffe0aaa35ab2ddf75b190d278c1af841e2664be24e2a72b
data/lib/under-os.rb ADDED
@@ -0,0 +1,15 @@
1
+ # just a gem hook
2
+
3
+ Motion::Project::App.instance_eval do
4
+ alias :setup_before_under_os :setup
5
+
6
+ def setup(*args, &block)
7
+ config.setup_blocks << proc do |app|
8
+ Dir.glob(File.dirname(__FILE__) + '/**/*.rb').reverse.each do |file|
9
+ app.files.insert(0, file) if file != __FILE__
10
+ end
11
+ end
12
+
13
+ setup_before_under_os *args, &block
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ class UnderOs::Application
2
+ attr_reader :window
3
+
4
+ def self.new(*args)
5
+ @inst ||= super(*args)
6
+ end
7
+
8
+ def self.start(&block)
9
+ @inst.instance_eval &block
10
+ end
11
+
12
+ def initialize(ios_app, options)
13
+ @_ = ios_app
14
+ @window = UnderOs::Window.new
15
+ end
16
+ end
@@ -0,0 +1,6 @@
1
+ #
2
+ # A little wrap over the ruby Motion config
3
+ #
4
+ class UnderOs::Config
5
+
6
+ end
@@ -0,0 +1,9 @@
1
+ #
2
+ # Generic, per-app delegate
3
+ class AppDelegate
4
+ def application(application, didFinishLaunchingWithOptions:launchOptions)
5
+ UnderOs::Application.new(application, launchOptions)
6
+
7
+ true
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class UnderOs::Window
2
+ def initialize
3
+ @_ = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
4
+ end
5
+ end
data/lib/under_os.rb ADDED
@@ -0,0 +1,5 @@
1
+ module UnderOs
2
+ VERSION='0.0.0'
3
+ end
4
+
5
+ UnderOS = UnderOs
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: under-os
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Nikolay Nemshilov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A web-like thin wrapper over iOS
14
+ email:
15
+ - nemshilov@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/under-os.rb
21
+ - lib/under_os/application.rb
22
+ - lib/under_os/config.rb
23
+ - lib/under_os/delegate.rb
24
+ - lib/under_os/window.rb
25
+ - lib/under_os.rb
26
+ homepage:
27
+ licenses:
28
+ - MIT
29
+ metadata: {}
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.0.3
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: A web-like thin wrapper over iOS
50
+ test_files: []