under-os 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/ext/extconf.rb +12 -0
- data/lib/under_os/ui/image.rb +3 -2
- data/lib/under_os.rb +1 -1
- data/template/uos/.gitignore +16 -0
- data/template/uos/Gemfile +6 -0
- data/template/uos/Rakefile.erb +14 -0
- data/template/uos/app/config.rb +4 -0
- data/template/uos/app/layouts/home.html +3 -0
- data/template/uos/app/models/.gitkeep +0 -0
- data/template/uos/app/pages/home_page.rb +7 -0
- data/template/uos/app/styles/application.css +3 -0
- data/template/uos/app/styles/home.css +6 -0
- data/template/uos/app/views/.gitkeep +0 -0
- data/template/uos/resources/Default-568h@2x.png +0 -0
- data/template/uos/spec/main_spec.rb +9 -0
- data/under-os.gemspec +10 -9
- metadata +27 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f26c97edd3027e97c225827fd8bd869ae1590cc0
|
4
|
+
data.tar.gz: 517d1b9dbcbb2ed6008a4211ce765705e1c58a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eb0aeb8452c02e6b7777f37b2f4cd4187dcd9e03aad75542bd91350a961c592edfa1c315b8d26075606a9199c1cda707dd54cf8b62a4cb4e0256b19dae73dd1
|
7
|
+
data.tar.gz: 289fbfefe89706b5abc4e31f97d461a635ead887d28fd360a8463ba4430e0efe7dd08c9f4d5b2c2e524cc37dc2b1c6c281327953a3d84f106425a627ea3508f6
|
data/Gemfile.lock
CHANGED
data/ext/extconf.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
RUBYMOTION_TEMPLATES_DIR = File.expand_path('~/Library/RubyMotion/template')
|
2
|
+
|
3
|
+
Dir[File.dirname(__FILE__) + "/../template/*"].each do |filename|
|
4
|
+
name = filename.split('/').pop
|
5
|
+
|
6
|
+
`rm -rf #{RUBYMOTION_TEMPLATES_DIR}/#{name}`
|
7
|
+
`mkdir -p #{RUBYMOTION_TEMPLATES_DIR}/#{name}`
|
8
|
+
`cp -r #{filename} #{RUBYMOTION_TEMPLATES_DIR}/#{name}/files`
|
9
|
+
end
|
10
|
+
|
11
|
+
require 'mkmf'
|
12
|
+
create_makefile('')
|
data/lib/under_os/ui/image.rb
CHANGED
@@ -16,13 +16,14 @@ class UnderOs::UI::Image < UnderOs::UI::View
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def src=(src)
|
19
|
-
src = UIImage.imageNamed(src)
|
19
|
+
src = UIImage.imageNamed(src) if src.is_a?(String)
|
20
|
+
src = UIImage.imageWithData(src) if src.is_a?(NSData)
|
20
21
|
@_.image = src
|
21
22
|
end
|
22
23
|
|
23
24
|
def load(url, options={}, &complete)
|
24
25
|
UnderOs::HTTP.get(url, options) do |response|
|
25
|
-
self.src =
|
26
|
+
self.src = response.data
|
26
27
|
complete.call(response) if complete && complete.arity != 0
|
27
28
|
complete.call if complete && complete.arity == 0
|
28
29
|
end
|
data/lib/under_os.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
$:.unshift("/Library/RubyMotion/lib")
|
3
|
+
require 'motion/project/template/ios'
|
4
|
+
|
5
|
+
begin
|
6
|
+
require 'bundler'
|
7
|
+
Bundler.require
|
8
|
+
rescue LoadError
|
9
|
+
end
|
10
|
+
|
11
|
+
Motion::Project::App.setup do |app|
|
12
|
+
# Use `rake config' to see complete project settings.
|
13
|
+
app.name = '<%= name %>'
|
14
|
+
end
|
File without changes
|
File without changes
|
Binary file
|
data/under-os.gemspec
CHANGED
@@ -16,19 +16,20 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
|
19
|
-
gem.
|
20
|
-
|
19
|
+
gem.add_development_dependency 'rake'
|
20
|
+
gem.add_development_dependency 'motion-facon'
|
21
21
|
|
22
|
-
|
23
|
-
git clone https://github.com/under-os/under-os-template.git ~/Library/RubyMotion/template/uos
|
22
|
+
gem.extensions = ['ext/extconf.rb']
|
24
23
|
|
24
|
+
gem.post_install_message = <<-END
|
25
|
+
= UnderOS #{UnderOs::VERSION} =
|
25
26
|
|
26
|
-
|
27
|
+
To get started run the following:
|
27
28
|
|
28
|
-
|
29
|
-
|
29
|
+
motion create awesomeness --template=uos
|
30
|
+
cd awesomeness
|
31
|
+
rake
|
30
32
|
|
31
|
-
|
32
|
-
gem.add_development_dependency 'motion-facon'
|
33
|
+
END
|
33
34
|
|
34
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: under-os
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikolay Nemshilov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -42,7 +42,8 @@ description: A web-broser like wrapper over iOS
|
|
42
42
|
email:
|
43
43
|
- nemshilov@gmail.com
|
44
44
|
executables: []
|
45
|
-
extensions:
|
45
|
+
extensions:
|
46
|
+
- ext/extconf.rb
|
46
47
|
extra_rdoc_files: []
|
47
48
|
files:
|
48
49
|
- ".gitignore"
|
@@ -80,6 +81,7 @@ files:
|
|
80
81
|
- app/styles/inputs.css
|
81
82
|
- app/styles/scrolls.css
|
82
83
|
- app/styles/sidebars.css
|
84
|
+
- ext/extconf.rb
|
83
85
|
- lib/assets/fontawesome-webfont.ttf
|
84
86
|
- lib/assets/under-os.css
|
85
87
|
- lib/under-os.rb
|
@@ -213,16 +215,32 @@ files:
|
|
213
215
|
- spec/lib/under_os/ui/utils/traversing_spec.rb
|
214
216
|
- spec/lib/under_os/ui/utils/wrap_spec.rb
|
215
217
|
- spec/lib/under_os/ui/view_spec.rb
|
218
|
+
- template/uos/.gitignore
|
219
|
+
- template/uos/Gemfile
|
220
|
+
- template/uos/Rakefile.erb
|
221
|
+
- template/uos/app/config.rb
|
222
|
+
- template/uos/app/layouts/home.html
|
223
|
+
- template/uos/app/models/.gitkeep
|
224
|
+
- template/uos/app/pages/home_page.rb
|
225
|
+
- template/uos/app/styles/application.css
|
226
|
+
- template/uos/app/styles/home.css
|
227
|
+
- template/uos/app/views/.gitkeep
|
228
|
+
- template/uos/resources/Default-568h@2x.png
|
229
|
+
- template/uos/spec/main_spec.rb
|
216
230
|
- under-os.gemspec
|
217
231
|
homepage: http://under-os.com
|
218
232
|
licenses:
|
219
233
|
- MIT
|
220
234
|
metadata: {}
|
221
|
-
post_install_message:
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
235
|
+
post_install_message: |2+
|
236
|
+
= UnderOS 1.2.1 =
|
237
|
+
|
238
|
+
To get started run the following:
|
239
|
+
|
240
|
+
motion create awesomeness --template=uos
|
241
|
+
cd awesomeness
|
242
|
+
rake
|
243
|
+
|
226
244
|
rdoc_options: []
|
227
245
|
require_paths:
|
228
246
|
- lib
|
@@ -238,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
256
|
version: '0'
|
239
257
|
requirements: []
|
240
258
|
rubyforge_project:
|
241
|
-
rubygems_version: 2.
|
259
|
+
rubygems_version: 2.2.0
|
242
260
|
signing_key:
|
243
261
|
specification_version: 4
|
244
262
|
summary: A web-broser like wrapper over iOS using RubyMotion
|