under-os 1.2.0 → 1.2.1

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: 97b21422505f0e6c41a9437eca6fc287e5c37db1
4
- data.tar.gz: 163b49514385bce8995b306b5b087961b250ecc2
3
+ metadata.gz: f26c97edd3027e97c225827fd8bd869ae1590cc0
4
+ data.tar.gz: 517d1b9dbcbb2ed6008a4211ce765705e1c58a65
5
5
  SHA512:
6
- metadata.gz: b114c74edf769d28d294aa327c9382e6927bc690a13b4fd7331bb2ae371f29f34ba6131d92c81ad8f7cefc84c3bee9eb0a3d953247bf0ad4d07b64643eba5d0b
7
- data.tar.gz: e3dec5a68e2a7abf834d910ba6b4fb30fddb365068f8a8e576ee7a365531d5f9e31c9561a2dce92498e26ba02f5d2efad97af3a7ad6467de5034b9d3e45f907d
6
+ metadata.gz: 6eb0aeb8452c02e6b7777f37b2f4cd4187dcd9e03aad75542bd91350a961c592edfa1c315b8d26075606a9199c1cda707dd54cf8b62a4cb4e0256b19dae73dd1
7
+ data.tar.gz: 289fbfefe89706b5abc4e31f97d461a635ead887d28fd360a8463ba4430e0efe7dd08c9f4d5b2c2e524cc37dc2b1c6c281327953a3d84f106425a627ea3508f6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- under-os (1.1.0)
4
+ under-os (1.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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('')
@@ -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) if src.is_a?(String)
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 = UIImage.imageWithData(response.data)
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
@@ -1,5 +1,5 @@
1
1
  module UnderOs
2
- VERSION='1.2.0'
2
+ VERSION='1.2.1'
3
3
  end
4
4
 
5
5
  UOS = UnderOS = UnderOs
@@ -0,0 +1,16 @@
1
+ .repl_history
2
+ build
3
+ tags
4
+ app/pixate_code.rb
5
+ resources/*.nib
6
+ resources/*.momd
7
+ resources/*.storyboardc
8
+ .DS_Store
9
+ nbproject
10
+ .redcar
11
+ #*#
12
+ *~
13
+ *.sw[po]
14
+ .eprj
15
+ .sass-cache
16
+ .idea
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rake'
4
+
5
+ gem 'under-os'
6
+ # Add your dependencies here:
@@ -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
@@ -0,0 +1,4 @@
1
+ UnderOs::App.start do
2
+ config.navbar = true
3
+ config.root_page = HomePage.new
4
+ end
@@ -0,0 +1,3 @@
1
+ <page title="Home Page">
2
+ <button>Tap me!</button>
3
+ </page>
File without changes
@@ -0,0 +1,7 @@
1
+ class HomePage < UOS::Page
2
+ def initialize
3
+ first("button").on :tap do
4
+ alert("Hello World!")
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ page {
2
+ background: white;
3
+ }
@@ -0,0 +1,6 @@
1
+ page button {
2
+ top: 260px;
3
+ left: 110px;
4
+ width: 100px;
5
+ height: 30px;
6
+ }
File without changes
@@ -0,0 +1,9 @@
1
+ describe "Application 'uos'" do
2
+ before do
3
+ @app = UIApplication.sharedApplication
4
+ end
5
+
6
+ it "has one window" do
7
+ @app.windows.size.should == 1
8
+ end
9
+ end
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.post_install_message = %Q{
20
- If you want to use the UnderOS template with RubyMotion, please run the following:
19
+ gem.add_development_dependency 'rake'
20
+ gem.add_development_dependency 'motion-facon'
21
21
 
22
- mkdir -p ~/Library/RubyMotion/template/uos
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
- Then just run the following to generate your first project:
27
+ To get started run the following:
27
28
 
28
- motion create awesomness --template=uos
29
- }
29
+ motion create awesomeness --template=uos
30
+ cd awesomeness
31
+ rake
30
32
 
31
- gem.add_development_dependency 'rake'
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.0
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-02 00:00:00.000000000 Z
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: "\n If you want to use the UnderOS template with RubyMotion,
222
- please run the following:\n\n mkdir -p ~/Library/RubyMotion/template/uos\n git
223
- clone https://github.com/under-os/under-os-template.git ~/Library/RubyMotion/template/uos\n\n\n
224
- \ Then just run the following to generate your first project:\n\n motion create
225
- awesomness --template=uos\n "
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.1.11
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