motion-kit 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -8
- data/lib/{motion-kit → motion-kit-cocoa}/calculator/view_calculator.rb +0 -0
- data/lib/motion-kit-cocoa/constraints/constraint.rb +3 -1
- data/lib/motion-kit-cocoa/{layouts → helpers}/accessibility_compat.rb +0 -0
- data/lib/motion-kit-cocoa/{layouts → helpers}/cagradientlayer_helpers.rb +0 -0
- data/lib/motion-kit-cocoa/{layouts → helpers}/calayer_helpers.rb +0 -0
- data/lib/motion-kit-cocoa/{layouts → helpers}/sugarcube_compat.rb +0 -0
- data/lib/motion-kit-ios/{layouts → helpers}/constraints_helpers.rb +0 -0
- data/lib/motion-kit-ios/{layouts → helpers}/layout_device.rb +0 -0
- data/lib/motion-kit-ios/{layouts → helpers}/layout_orientation.rb +0 -0
- data/lib/motion-kit-ios/{layouts → helpers}/uibutton_helpers.rb +0 -0
- data/lib/motion-kit-ios/{layouts/uiview_layout_autoresizing.rb → helpers/uiview_autoresizing_helpers.rb} +0 -0
- data/lib/motion-kit-ios/{layouts/uiview_layout_constraints.rb → helpers/uiview_constraints_helpers.rb} +0 -0
- data/lib/motion-kit-ios/{layouts/uiview_layout_frame.rb → helpers/uiview_frame_helpers.rb} +0 -0
- data/lib/motion-kit-ios/{layouts/uiview_layout_gradient.rb → helpers/uiview_gradient_helpers.rb} +0 -0
- data/lib/motion-kit-ios/{layouts → helpers}/uiview_helpers.rb +0 -0
- data/lib/motion-kit-osx/{layouts → helpers}/constraints_helpers.rb +0 -0
- data/lib/motion-kit-osx/{layouts → helpers}/nsmenu_extensions.rb +0 -0
- data/lib/motion-kit-osx/{layouts → helpers}/nsmenu_helpers.rb +0 -0
- data/lib/motion-kit-osx/{layouts → helpers}/nsmenuitem_extensions.rb +0 -0
- data/lib/motion-kit-osx/{layouts → helpers}/nstablecolumn_helpers.rb +0 -0
- data/lib/motion-kit-osx/{layouts → helpers}/nstableview_helpers.rb +0 -0
- data/lib/motion-kit-osx/{layouts/nsview_layout_autoresizing.rb → helpers/nsview_autoresizing_helpers.rb} +0 -0
- data/lib/motion-kit-osx/{layouts/nsview_layout_constraints.rb → helpers/nsview_constraints_helpers.rb} +0 -0
- data/lib/motion-kit-osx/{layouts/nsview_layout_frame.rb → helpers/nsview_frame_helpers.rb} +0 -0
- data/lib/motion-kit-osx/{layouts → helpers}/nsview_helpers.rb +0 -0
- data/lib/motion-kit-osx/helpers/nswindow_frame_helpers.rb +361 -0
- data/lib/motion-kit-osx/{layouts → helpers}/nswindow_helpers.rb +0 -0
- data/lib/motion-kit/{layouts → helpers}/base_layout.rb +0 -0
- data/lib/motion-kit/{layouts → helpers}/base_layout_class_methods.rb +0 -0
- data/lib/motion-kit/{layouts → helpers}/parent.rb +0 -0
- data/lib/motion-kit/{layouts → helpers}/tree_layout.rb +21 -4
- data/lib/motion-kit/object.rb +11 -0
- data/lib/motion-kit/version.rb +1 -1
- data/spec/ios/layout_spec.rb +6 -6
- data/spec/ios/motion_kit_id_spec.rb +15 -0
- data/spec/ios/remove_layout_spec.rb +9 -5
- data/spec/osx/{frame_helper_spec.rb → nsview_frame_helper_spec.rb} +69 -69
- data/spec/osx/nswindow_frame_helper_spec.rb +1288 -0
- metadata +38 -34
- data/lib/motion-kit-osx/layouts/nswindow_frame.rb +0 -14
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin T.A. Gray
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dbt
|
@@ -39,49 +39,49 @@ files:
|
|
39
39
|
- lib/motion-kit/calculator/frame_calculator.rb
|
40
40
|
- lib/motion-kit/calculator/origin_calculator.rb
|
41
41
|
- lib/motion-kit/calculator/size_calculator.rb
|
42
|
-
- lib/motion-kit/
|
43
|
-
- lib/motion-kit/
|
44
|
-
- lib/motion-kit/
|
45
|
-
- lib/motion-kit/
|
46
|
-
- lib/motion-kit/layouts/tree_layout.rb
|
42
|
+
- lib/motion-kit/helpers/base_layout.rb
|
43
|
+
- lib/motion-kit/helpers/base_layout_class_methods.rb
|
44
|
+
- lib/motion-kit/helpers/parent.rb
|
45
|
+
- lib/motion-kit/helpers/tree_layout.rb
|
47
46
|
- lib/motion-kit/motion-kit.rb
|
48
47
|
- lib/motion-kit/object.rb
|
49
48
|
- lib/motion-kit/util.rb
|
50
49
|
- lib/motion-kit/version.rb
|
50
|
+
- lib/motion-kit-cocoa/calculator/view_calculator.rb
|
51
51
|
- lib/motion-kit-cocoa/constraints/constraint.rb
|
52
52
|
- lib/motion-kit-cocoa/constraints/constraint_placeholder.rb
|
53
53
|
- lib/motion-kit-cocoa/constraints/constraints_helpers.rb
|
54
54
|
- lib/motion-kit-cocoa/constraints/constraints_target.rb
|
55
|
-
- lib/motion-kit-cocoa/
|
56
|
-
- lib/motion-kit-cocoa/
|
57
|
-
- lib/motion-kit-cocoa/
|
58
|
-
- lib/motion-kit-cocoa/
|
55
|
+
- lib/motion-kit-cocoa/helpers/accessibility_compat.rb
|
56
|
+
- lib/motion-kit-cocoa/helpers/cagradientlayer_helpers.rb
|
57
|
+
- lib/motion-kit-cocoa/helpers/calayer_helpers.rb
|
58
|
+
- lib/motion-kit-cocoa/helpers/sugarcube_compat.rb
|
59
59
|
- lib/motion-kit-ios/deprecated.rb
|
60
60
|
- lib/motion-kit-ios/dummy.rb
|
61
|
+
- lib/motion-kit-ios/helpers/constraints_helpers.rb
|
62
|
+
- lib/motion-kit-ios/helpers/layout_device.rb
|
63
|
+
- lib/motion-kit-ios/helpers/layout_orientation.rb
|
64
|
+
- lib/motion-kit-ios/helpers/uibutton_helpers.rb
|
65
|
+
- lib/motion-kit-ios/helpers/uiview_autoresizing_helpers.rb
|
66
|
+
- lib/motion-kit-ios/helpers/uiview_constraints_helpers.rb
|
67
|
+
- lib/motion-kit-ios/helpers/uiview_frame_helpers.rb
|
68
|
+
- lib/motion-kit-ios/helpers/uiview_gradient_helpers.rb
|
69
|
+
- lib/motion-kit-ios/helpers/uiview_helpers.rb
|
61
70
|
- lib/motion-kit-ios/ios_util.rb
|
62
|
-
- lib/motion-kit-ios/layouts/constraints_helpers.rb
|
63
|
-
- lib/motion-kit-ios/layouts/layout_device.rb
|
64
|
-
- lib/motion-kit-ios/layouts/layout_orientation.rb
|
65
|
-
- lib/motion-kit-ios/layouts/uibutton_helpers.rb
|
66
|
-
- lib/motion-kit-ios/layouts/uiview_helpers.rb
|
67
|
-
- lib/motion-kit-ios/layouts/uiview_layout_autoresizing.rb
|
68
|
-
- lib/motion-kit-ios/layouts/uiview_layout_constraints.rb
|
69
|
-
- lib/motion-kit-ios/layouts/uiview_layout_frame.rb
|
70
|
-
- lib/motion-kit-ios/layouts/uiview_layout_gradient.rb
|
71
71
|
- lib/motion-kit-osx/deprecated.rb
|
72
72
|
- lib/motion-kit-osx/dummy.rb
|
73
|
-
- lib/motion-kit-osx/
|
74
|
-
- lib/motion-kit-osx/
|
75
|
-
- lib/motion-kit-osx/
|
76
|
-
- lib/motion-kit-osx/
|
77
|
-
- lib/motion-kit-osx/
|
78
|
-
- lib/motion-kit-osx/
|
79
|
-
- lib/motion-kit-osx/
|
80
|
-
- lib/motion-kit-osx/
|
81
|
-
- lib/motion-kit-osx/
|
82
|
-
- lib/motion-kit-osx/
|
83
|
-
- lib/motion-kit-osx/
|
84
|
-
- lib/motion-kit-osx/
|
73
|
+
- lib/motion-kit-osx/helpers/constraints_helpers.rb
|
74
|
+
- lib/motion-kit-osx/helpers/nsmenu_extensions.rb
|
75
|
+
- lib/motion-kit-osx/helpers/nsmenu_helpers.rb
|
76
|
+
- lib/motion-kit-osx/helpers/nsmenuitem_extensions.rb
|
77
|
+
- lib/motion-kit-osx/helpers/nstablecolumn_helpers.rb
|
78
|
+
- lib/motion-kit-osx/helpers/nstableview_helpers.rb
|
79
|
+
- lib/motion-kit-osx/helpers/nsview_autoresizing_helpers.rb
|
80
|
+
- lib/motion-kit-osx/helpers/nsview_constraints_helpers.rb
|
81
|
+
- lib/motion-kit-osx/helpers/nsview_frame_helpers.rb
|
82
|
+
- lib/motion-kit-osx/helpers/nsview_helpers.rb
|
83
|
+
- lib/motion-kit-osx/helpers/nswindow_frame_helpers.rb
|
84
|
+
- lib/motion-kit-osx/helpers/nswindow_helpers.rb
|
85
85
|
- lib/motion-kit-osx/osx_util.rb
|
86
86
|
- lib/motion-kit.rb
|
87
87
|
- README.md
|
@@ -114,6 +114,7 @@ files:
|
|
114
114
|
- spec/ios/layout_spec.rb
|
115
115
|
- spec/ios/layout_state_spec.rb
|
116
116
|
- spec/ios/memory_leak_spec.rb
|
117
|
+
- spec/ios/motion_kit_id_spec.rb
|
117
118
|
- spec/ios/motionkit_util_spec.rb
|
118
119
|
- spec/ios/objc_selectors_spec.rb
|
119
120
|
- spec/ios/orientation_helper_specs.rb
|
@@ -135,11 +136,12 @@ files:
|
|
135
136
|
- spec/osx/create_via_extensions_spec.rb
|
136
137
|
- spec/osx/custom_root_layout_spec.rb
|
137
138
|
- spec/osx/deferred_spec.rb
|
138
|
-
- spec/osx/frame_helper_spec.rb
|
139
139
|
- spec/osx/issue42_spec.rb
|
140
140
|
- spec/osx/menu_extensions_spec.rb
|
141
141
|
- spec/osx/menu_layout_spec.rb
|
142
142
|
- spec/osx/menu_spec.rb
|
143
|
+
- spec/osx/nsview_frame_helper_spec.rb
|
144
|
+
- spec/osx/nswindow_frame_helper_spec.rb
|
143
145
|
- spec/osx/root_menu_spec.rb
|
144
146
|
- spec/osx/table_view_spec.rb
|
145
147
|
homepage: https://github.com/rubymotion/motion-kit
|
@@ -196,6 +198,7 @@ test_files:
|
|
196
198
|
- spec/ios/layout_spec.rb
|
197
199
|
- spec/ios/layout_state_spec.rb
|
198
200
|
- spec/ios/memory_leak_spec.rb
|
201
|
+
- spec/ios/motion_kit_id_spec.rb
|
199
202
|
- spec/ios/motionkit_util_spec.rb
|
200
203
|
- spec/ios/objc_selectors_spec.rb
|
201
204
|
- spec/ios/orientation_helper_specs.rb
|
@@ -217,10 +220,11 @@ test_files:
|
|
217
220
|
- spec/osx/create_via_extensions_spec.rb
|
218
221
|
- spec/osx/custom_root_layout_spec.rb
|
219
222
|
- spec/osx/deferred_spec.rb
|
220
|
-
- spec/osx/frame_helper_spec.rb
|
221
223
|
- spec/osx/issue42_spec.rb
|
222
224
|
- spec/osx/menu_extensions_spec.rb
|
223
225
|
- spec/osx/menu_layout_spec.rb
|
224
226
|
- spec/osx/menu_spec.rb
|
227
|
+
- spec/osx/nsview_frame_helper_spec.rb
|
228
|
+
- spec/osx/nswindow_frame_helper_spec.rb
|
225
229
|
- spec/osx/root_menu_spec.rb
|
226
230
|
- spec/osx/table_view_spec.rb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# @requires MotionKit::NSWindowHelpers
|
2
|
-
module MotionKit
|
3
|
-
class NSWindowHelpers
|
4
|
-
|
5
|
-
def frame(value, autosave_name=nil)
|
6
|
-
retval = target.setFrame(value, display: true)
|
7
|
-
if autosave_name
|
8
|
-
target.setFrameAutosaveName(autosave_name)
|
9
|
-
end
|
10
|
-
return retval
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|