motion-xray 1.0.6 → 1.0.7

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: e7647130b6160a8f45f4d9327616d8400f4284e6
4
+ data.tar.gz: d2a02146e577cef09c7ef0315b83431edbd51775
5
+ SHA512:
6
+ metadata.gz: 54472423ec4852fe74f4ec5ceba7c740f7360a23e5f62775c94296231d383866e6cdae269adc126ba096e3aceee56eb43fcc830d1da5b6cb5b6180107178a0f3
7
+ data.tar.gz: 78d8766e93274bdfa09dfa0d8209c64c036602db0cd70e6897c1ad9c15b8cc59694fcb941027f1933369e2a4242440eb135597876f281cdc771ecde65f2de3c6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- motion-xray (1.0.6)
4
+ motion-xray (1.0.7)
5
5
  geomotion (>= 0.10.0)
6
6
  sugarcube (>= 0.20.1)
7
7
 
@@ -9,7 +9,7 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  diff-lcs (1.1.3)
12
- geomotion (0.12.1)
12
+ geomotion (0.14.0)
13
13
  rspec (2.12.0)
14
14
  rspec-core (~> 2.12.0)
15
15
  rspec-expectations (~> 2.12.0)
@@ -18,7 +18,7 @@ GEM
18
18
  rspec-expectations (2.12.1)
19
19
  diff-lcs (~> 1.1.3)
20
20
  rspec-mocks (2.12.2)
21
- sugarcube (0.20.25)
21
+ sugarcube (1.5.7)
22
22
 
23
23
  PLATFORMS
24
24
  ruby
data/app/app_delegate.rb CHANGED
@@ -21,7 +21,7 @@ class MyController < UIViewController
21
21
  def viewDidLoad
22
22
  self.view.backgroundColor = :black.uicolor
23
23
 
24
- bluebox = UIView.alloc.initWithFrame([[20, 20], [30, 30]])
24
+ bluebox = UIView.alloc.initWithFrame([[20, 84], [30, 30]])
25
25
  bluebox.backgroundColor = :blue.uicolor
26
26
  self.view << bluebox
27
27
 
@@ -1,5 +1,5 @@
1
1
  module Motion
2
2
  module Xray
3
- Version = '1.0.6'
3
+ Version = '1.0.7'
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@ module Motion ; module Xray
9
9
  color_space = CGColorSpaceCreateDeviceRGB()
10
10
  cgcolors = [
11
11
  (start_color || :white).uicolor.CGColor,
12
- (final_color || :lightgray).uicolor.CGColor,
12
+ (final_color || :light_gray).uicolor.CGColor,
13
13
  ]
14
14
 
15
15
  points = [0, 1]
@@ -30,7 +30,7 @@ module Motion ; module Xray
30
30
  def initWithFrame(frame)
31
31
  super.tap do
32
32
  self.font = 'Futura'.uifont(12)
33
- self.textAlignment = :left.uitextalignment
33
+ self.textAlignment = :left.nstextalignment
34
34
  self.textColor = :xray_dashboard_label_text.uicolor
35
35
  self.backgroundColor = :clear.uicolor
36
36
  end
@@ -65,7 +65,7 @@ module Motion ; module Xray
65
65
  else
66
66
  cgcolors = [
67
67
  :white.uicolor.CGColor,
68
- :lightgray.uicolor.CGColor,
68
+ :light_gray.uicolor.CGColor,
69
69
  ]
70
70
  end
71
71
 
@@ -79,7 +79,7 @@ module Motion ; module Xray
79
79
  CGContextSaveGState(context)
80
80
  triangle_bounds = CGRect.new([0, 0], [20, 20]).shrink(6)
81
81
  :clear.uicolor.setStroke
82
- :lightgray.uicolor.setFill
82
+ :light_gray.uicolor.setFill
83
83
 
84
84
  if false
85
85
  if @exposed
@@ -128,11 +128,11 @@ module Motion ; module Xray
128
128
  @table.frame = [[0, bar_height], [half_screen_width, half_screen_height - bar_height * 2]]
129
129
  @table.rowHeight = 30
130
130
  @table.delegate = self
131
- @table.autoresizingMask = :full.uiautoresizemask
131
+ @table.autoresizingMask = :fill.uiautoresizemask
132
132
  @top_half << @table
133
133
 
134
134
  @top_bar = XrayHeaderBackground.alloc.initWithFrame([[0, 0], [half_screen_width, bar_height]])
135
- @top_bar.autoresizingMask = :fixed_top.uiautoresizemask
135
+ @top_bar.autoresizingMask = :fill_top.uiautoresizemask
136
136
  @top_bar.label = XrayHeaderLabel.alloc.initWithFrame(@top_bar.bounds.right(30).thinner(30))
137
137
  @top_bar.label.autoresizingMask = :flexible_width.uiautoresizemask
138
138
 
@@ -160,7 +160,7 @@ module Motion ; module Xray
160
160
  @bottom_bar = XrayHeaderBackground.alloc.initWithFrame([[0, half_screen_height - bar_height], [half_screen_width, bar_height]])
161
161
  @bottom_bar.label = XrayHeaderLabel.alloc.initWithFrame(@bottom_bar.bounds.right(3).thinner(33))
162
162
  @bottom_bar.label.autoresizingMask = :flexible_width.uiautoresizemask
163
- @bottom_bar.autoresizingMask = :fixed_bottom.uiautoresizemask
163
+ @bottom_bar.autoresizingMask = :fill_bottom.uiautoresizemask
164
164
  @top_half << @bottom_bar
165
165
 
166
166
  @assign_button = XrayDetailButton.alloc.init
@@ -175,7 +175,7 @@ module Motion ; module Xray
175
175
  @bottom_half = UIView.alloc.initWithFrame([[0, bottom_half_top], [full_screen_width, bottom_half_height]])
176
176
  grad_layer = CAGradientLayer.layer
177
177
  grad_layer.frame = @bottom_half.layer.bounds
178
- grad_layer.colors = [:white.uicolor.cgcolor, :lightgray.uicolor.cgcolor]
178
+ grad_layer.colors = [:white.uicolor.cgcolor, :light_gray.uicolor.cgcolor]
179
179
  @bottom_half.layer << grad_layer
180
180
  @teh_ui << @bottom_half
181
181
 
@@ -323,7 +323,7 @@ module Motion ; module Xray
323
323
  label = UILabel.alloc.initWithFrame([[5, 5], [0, 0]])
324
324
  label.backgroundColor = :clear.uicolor
325
325
  label.textColor = :white.uicolor
326
- label.textAlignment = :left.uitextalignment
326
+ label.textAlignment = :left.nstextalignment
327
327
 
328
328
  container = UIView.alloc.initWithFrame(CGRect.empty)
329
329
  container.layer.cornerRadius = label.frame.height/2
@@ -6,7 +6,7 @@ module Motion ; module Xray
6
6
  return UIView.alloc.initWithFrame([[0, 0], [container_width, 80]]).tap do |view|
7
7
  frame_view = UIView.alloc.initWithFrame([[4, 4], [92, 72]])
8
8
  frame_view.clipsToBounds = true
9
- frame_view.backgroundColor = :lightgray.uicolor
9
+ frame_view.backgroundColor = :light_gray.uicolor
10
10
  frame_view.layer.borderWidth = 1
11
11
  frame_view.layer.borderColor = :gray.uicolor.cgcolor
12
12
  frame_view.layer.cornerRadius = 5
@@ -16,7 +16,7 @@ module Motion ; module Xray
16
16
  label = UILabel.new
17
17
  label.frame = [[4, 0], [18, 72]]
18
18
  label.text = "X:\nY:\nW:\nH:"
19
- label.textAlignment = :right.uitextalignment
19
+ label.textAlignment = :right.nstextalignment
20
20
  label.font = :small.uifont
21
21
  label.backgroundColor = :clear.uicolor
22
22
  label.numberOfLines = 4
data/lib/motion-xray.rb CHANGED
@@ -2,8 +2,18 @@ unless defined?(Motion::Project::Config)
2
2
  raise "The motion-xray gem must be required within a RubyMotion project Rakefile."
3
3
  end
4
4
 
5
- require 'sugarcube-core'
5
+ require 'sugarcube'
6
+ require 'sugarcube-uikit'
7
+ require 'sugarcube-foundation'
8
+ require 'sugarcube-notifications'
9
+ require 'sugarcube-pointer'
10
+ require 'sugarcube-numbers'
11
+ require 'sugarcube-factories'
12
+ require 'sugarcube-constants'
13
+ require 'sugarcube-color'
14
+ require 'sugarcube-events'
6
15
  require 'sugarcube-image'
16
+ require 'sugarcube-animations'
7
17
  require 'geomotion'
8
18
 
9
19
  Motion::Project::App.setup do |app|
metadata CHANGED
@@ -1,93 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-xray
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
5
- prerelease:
4
+ version: 1.0.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Colin T.A. Gray
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-04 00:00:00.000000000 Z
11
+ date: 2014-04-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: sugarcube
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.20.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.20.1
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: geomotion
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.10.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: 0.10.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
- description: ! 'The simulator and RubyMotion REPL make on-device testing a painful
63
- cycle of
64
-
55
+ description: |
56
+ The simulator and RubyMotion REPL make on-device testing a painful cycle of
65
57
  code, compile, check, repeat. *Especially* when it comes to testing the UI,
66
-
67
58
  where inexplicable differences can crop up between a device and the simulator.
68
59
 
69
-
70
- Motion-Xray is an in-app developer''s toolbox. Activate Xray (usually by shaking
71
- the
72
-
60
+ Motion-Xray is an in-app developer's toolbox. Activate Xray (usually by shaking the
73
61
  phone) and a UI editor appears where you can add, modify, and remove views.
74
62
 
75
-
76
- Why stop there! There''s a log panel, and an accessibility panel that gives you
77
-
63
+ Why stop there! There's a log panel, and an accessibility panel that gives you
78
64
  a visiualization of how you app "looks" to the blind or color blind.
79
65
 
80
-
81
- And you''re damn right it''s extensible! You can write new UI editors, register
82
-
66
+ And you're damn right it's extensible! You can write new UI editors, register
83
67
  custom views, and add new panels, for instance maybe you need a Bluetooth device
84
-
85
68
  scanner, or a way to check API requests.
86
69
 
87
-
88
70
  Enjoy!
89
-
90
- '
91
71
  email:
92
72
  - colinta@gmail.com
93
73
  executables: []
@@ -151,27 +131,26 @@ files:
151
131
  - spec/xray_view_spec.rb
152
132
  homepage: https://github.com/colinta/motion-xray
153
133
  licenses: []
134
+ metadata: {}
154
135
  post_install_message:
155
136
  rdoc_options: []
156
137
  require_paths:
157
138
  - lib
158
139
  required_ruby_version: !ruby/object:Gem::Requirement
159
- none: false
160
140
  requirements:
161
- - - ! '>='
141
+ - - '>='
162
142
  - !ruby/object:Gem::Version
163
143
  version: '0'
164
144
  required_rubygems_version: !ruby/object:Gem::Requirement
165
- none: false
166
145
  requirements:
167
- - - ! '>='
146
+ - - '>='
168
147
  - !ruby/object:Gem::Version
169
148
  version: '0'
170
149
  requirements: []
171
150
  rubyforge_project:
172
- rubygems_version: 1.8.25
151
+ rubygems_version: 2.0.3
173
152
  signing_key:
174
- specification_version: 3
153
+ specification_version: 4
175
154
  summary: An in-app UI editing system for iOS
176
155
  test_files:
177
156
  - spec/xray_view_spec.rb