under-os 0.0.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -0
  3. data/Gemfile +2 -0
  4. data/Gemfile.lock +16 -0
  5. data/README.md +70 -0
  6. data/Rakefile +24 -0
  7. data/app/config.rb +4 -0
  8. data/app/layouts/alerts.html +8 -0
  9. data/app/layouts/calculator.html +26 -0
  10. data/app/layouts/collections.html +7 -0
  11. data/app/layouts/home.html +14 -0
  12. data/app/layouts/http.html +8 -0
  13. data/app/layouts/inputs.html +44 -0
  14. data/app/layouts/lockers.html +6 -0
  15. data/app/layouts/navbar.html +9 -0
  16. data/app/layouts/scrolls.html +42 -0
  17. data/app/layouts/sidebars.html +17 -0
  18. data/app/pages/alerts_page.rb +14 -0
  19. data/app/pages/calculator_page.rb +36 -0
  20. data/app/pages/collections_page.rb +9 -0
  21. data/app/pages/home_page.rb +11 -0
  22. data/app/pages/http_page.rb +33 -0
  23. data/app/pages/inputs_page.rb +9 -0
  24. data/app/pages/lockers_page.rb +16 -0
  25. data/app/pages/navbar_page.rb +19 -0
  26. data/app/pages/scrolls_page.rb +5 -0
  27. data/app/pages/sidebars_page.rb +42 -0
  28. data/app/pages/stuff_page.rb +35 -0
  29. data/app/styles/application.css +25 -0
  30. data/app/styles/calculator.css +37 -0
  31. data/app/styles/collections.css +19 -0
  32. data/app/styles/home.css +0 -0
  33. data/app/styles/http.css +24 -0
  34. data/app/styles/inputs.css +47 -0
  35. data/app/styles/scrolls.css +67 -0
  36. data/app/styles/sidebars.css +19 -0
  37. data/lib/assets/fontawesome-webfont.ttf +0 -0
  38. data/lib/assets/under-os.css +115 -0
  39. data/lib/under-os.rb +9 -1
  40. data/lib/under_os/app.rb +33 -0
  41. data/lib/under_os/color.rb +176 -0
  42. data/lib/under_os/config.rb +28 -1
  43. data/lib/under_os/core/kernel.rb +16 -0
  44. data/lib/under_os/core/numeric.rb +23 -0
  45. data/lib/under_os/core/string.rb +40 -0
  46. data/lib/under_os/delegate.rb +3 -2
  47. data/lib/under_os/events.rb +85 -0
  48. data/lib/under_os/file.rb +110 -0
  49. data/lib/under_os/history.rb +50 -0
  50. data/lib/under_os/http/receiver.rb +44 -0
  51. data/lib/under_os/http/request.rb +89 -0
  52. data/lib/under_os/http/response.rb +24 -0
  53. data/lib/under_os/http/session.rb +49 -0
  54. data/lib/under_os/http.rb +5 -0
  55. data/lib/under_os/page/builder.rb +96 -0
  56. data/lib/under_os/page/layout.rb +43 -0
  57. data/lib/under_os/page/matcher.rb +83 -0
  58. data/lib/under_os/page/stylesheet.rb +67 -0
  59. data/lib/under_os/page.rb +153 -0
  60. data/lib/under_os/parser/css.rb +37 -0
  61. data/lib/under_os/parser/html.rb +97 -0
  62. data/lib/under_os/parser.rb +24 -0
  63. data/lib/under_os/point.rb +47 -0
  64. data/lib/under_os/screen.rb +9 -0
  65. data/lib/under_os/timer.rb +65 -0
  66. data/lib/under_os/ui/alert.rb +52 -0
  67. data/lib/under_os/ui/button.rb +22 -0
  68. data/lib/under_os/ui/collection/cell.rb +21 -0
  69. data/lib/under_os/ui/collection/delegate.rb +68 -0
  70. data/lib/under_os/ui/collection/item.rb +32 -0
  71. data/lib/under_os/ui/collection/layout.rb +43 -0
  72. data/lib/under_os/ui/collection/styles.rb +15 -0
  73. data/lib/under_os/ui/collection.rb +63 -0
  74. data/lib/under_os/ui/icon/awesome.rb +376 -0
  75. data/lib/under_os/ui/icon/engine.rb +10 -0
  76. data/lib/under_os/ui/icon.rb +42 -0
  77. data/lib/under_os/ui/image.rb +30 -0
  78. data/lib/under_os/ui/input.rb +41 -0
  79. data/lib/under_os/ui/label.rb +21 -0
  80. data/lib/under_os/ui/locker.rb +42 -0
  81. data/lib/under_os/ui/navbar.rb +115 -0
  82. data/lib/under_os/ui/progress.rb +17 -0
  83. data/lib/under_os/ui/scroll.rb +41 -0
  84. data/lib/under_os/ui/select.rb +98 -0
  85. data/lib/under_os/ui/sidebar.rb +45 -0
  86. data/lib/under_os/ui/slider.rb +49 -0
  87. data/lib/under_os/ui/spinner.rb +23 -0
  88. data/lib/under_os/ui/style/fonts.rb +60 -0
  89. data/lib/under_os/ui/style/margins.rb +160 -0
  90. data/lib/under_os/ui/style/outlining.rb +98 -0
  91. data/lib/under_os/ui/style/positioning.rb +169 -0
  92. data/lib/under_os/ui/style.rb +21 -0
  93. data/lib/under_os/ui/switch.rb +29 -0
  94. data/lib/under_os/ui/textarea.rb +14 -0
  95. data/lib/under_os/ui/utils/animation.rb +99 -0
  96. data/lib/under_os/ui/utils/commons.rb +70 -0
  97. data/lib/under_os/ui/utils/dimensions.rb +37 -0
  98. data/lib/under_os/ui/utils/editable.rb +43 -0
  99. data/lib/under_os/ui/utils/events.rb +75 -0
  100. data/lib/under_os/ui/utils/manipulation.rb +44 -0
  101. data/lib/under_os/ui/utils/position.rb +21 -0
  102. data/lib/under_os/ui/utils/size.rb +21 -0
  103. data/lib/under_os/ui/utils/styles.rb +89 -0
  104. data/lib/under_os/ui/utils/traversing.rb +44 -0
  105. data/lib/under_os/ui/utils/wrap.rb +77 -0
  106. data/lib/under_os/ui/view.rb +31 -0
  107. data/lib/under_os/ui.rb +3 -0
  108. data/lib/under_os.rb +2 -2
  109. data/resources/Default-568h@2x.png +0 -0
  110. data/resources/test.png +0 -0
  111. data/spec/assets/app.css +13 -0
  112. data/spec/assets/test.css +7 -0
  113. data/spec/assets/test.html +3 -0
  114. data/spec/assets/test_page.rb +2 -0
  115. data/spec/lib/core/numeric_spec.rb +37 -0
  116. data/spec/lib/core/string_spec.rb +87 -0
  117. data/spec/lib/under_os/color_spec.rb +133 -0
  118. data/spec/lib/under_os/events_spec.rb +71 -0
  119. data/spec/lib/under_os/file_spec.rb +98 -0
  120. data/spec/lib/under_os/page/builder_spec.rb +128 -0
  121. data/spec/lib/under_os/page/layout_spec.rb +18 -0
  122. data/spec/lib/under_os/page/matcher_spec.rb +154 -0
  123. data/spec/lib/under_os/page/stylesheet_spec.rb +83 -0
  124. data/spec/lib/under_os/page_spec.rb +5 -0
  125. data/spec/lib/under_os/parser/css_spec.rb +77 -0
  126. data/spec/lib/under_os/parser/html_spec.rb +152 -0
  127. data/spec/lib/under_os/parser_spec.rb +16 -0
  128. data/spec/lib/under_os/point_spec.rb +54 -0
  129. data/spec/lib/under_os/screen_spec.rb +11 -0
  130. data/spec/lib/under_os/timer_spec.rb +93 -0
  131. data/spec/lib/under_os/ui/button_spec.rb +5 -0
  132. data/spec/lib/under_os/ui/collection_spec.rb +19 -0
  133. data/spec/lib/under_os/ui/icon_spec.rb +26 -0
  134. data/spec/lib/under_os/ui/image_spec.rb +39 -0
  135. data/spec/lib/under_os/ui/input_spec.rb +77 -0
  136. data/spec/lib/under_os/ui/label_spec.rb +22 -0
  137. data/spec/lib/under_os/ui/locker_spec.rb +31 -0
  138. data/spec/lib/under_os/ui/progress_spec.rb +31 -0
  139. data/spec/lib/under_os/ui/scroll_spec.rb +40 -0
  140. data/spec/lib/under_os/ui/select_spec.rb +131 -0
  141. data/spec/lib/under_os/ui/sidebar_spec.rb +35 -0
  142. data/spec/lib/under_os/ui/slider_spec.rb +65 -0
  143. data/spec/lib/under_os/ui/spinner_spec.rb +57 -0
  144. data/spec/lib/under_os/ui/style/fonts_spec.rb +73 -0
  145. data/spec/lib/under_os/ui/style/margins_spec.rb +106 -0
  146. data/spec/lib/under_os/ui/style/outlining_spec.rb +69 -0
  147. data/spec/lib/under_os/ui/style/positioning_spec.rb +69 -0
  148. data/spec/lib/under_os/ui/style_spec.rb +19 -0
  149. data/spec/lib/under_os/ui/switch_spec.rb +56 -0
  150. data/spec/lib/under_os/ui/textarea_spec.rb +30 -0
  151. data/spec/lib/under_os/ui/utils/commons_spec.rb +81 -0
  152. data/spec/lib/under_os/ui/utils/manipulation_spec.rb +130 -0
  153. data/spec/lib/under_os/ui/utils/styles_spec.rb +140 -0
  154. data/spec/lib/under_os/ui/utils/traversing_spec.rb +124 -0
  155. data/spec/lib/under_os/ui/utils/wrap_spec.rb +69 -0
  156. data/spec/lib/under_os/ui/view_spec.rb +39 -0
  157. data/under-os.gemspec +32 -0
  158. metadata +225 -11
  159. data/lib/under_os/application.rb +0 -16
  160. data/lib/under_os/window.rb +0 -5
metadata CHANGED
@@ -1,33 +1,201 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: under-os
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolay Nemshilov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-10 00:00:00.000000000 Z
12
- dependencies: []
13
- description: A web-like thin wrapper over iOS
11
+ date: 2013-12-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: A web-broser like wrapper over iOS
14
28
  email:
15
29
  - nemshilov@gmail.com
16
30
  executables: []
17
31
  extensions: []
18
32
  extra_rdoc_files: []
19
33
  files:
34
+ - ".gitignore"
35
+ - Gemfile
36
+ - Gemfile.lock
37
+ - README.md
38
+ - Rakefile
39
+ - app/config.rb
40
+ - app/layouts/alerts.html
41
+ - app/layouts/calculator.html
42
+ - app/layouts/collections.html
43
+ - app/layouts/home.html
44
+ - app/layouts/http.html
45
+ - app/layouts/inputs.html
46
+ - app/layouts/lockers.html
47
+ - app/layouts/navbar.html
48
+ - app/layouts/scrolls.html
49
+ - app/layouts/sidebars.html
50
+ - app/pages/alerts_page.rb
51
+ - app/pages/calculator_page.rb
52
+ - app/pages/collections_page.rb
53
+ - app/pages/home_page.rb
54
+ - app/pages/http_page.rb
55
+ - app/pages/inputs_page.rb
56
+ - app/pages/lockers_page.rb
57
+ - app/pages/navbar_page.rb
58
+ - app/pages/scrolls_page.rb
59
+ - app/pages/sidebars_page.rb
60
+ - app/pages/stuff_page.rb
61
+ - app/styles/application.css
62
+ - app/styles/calculator.css
63
+ - app/styles/collections.css
64
+ - app/styles/home.css
65
+ - app/styles/http.css
66
+ - app/styles/inputs.css
67
+ - app/styles/scrolls.css
68
+ - app/styles/sidebars.css
69
+ - lib/assets/fontawesome-webfont.ttf
70
+ - lib/assets/under-os.css
20
71
  - lib/under-os.rb
21
- - lib/under_os/application.rb
72
+ - lib/under_os.rb
73
+ - lib/under_os/app.rb
74
+ - lib/under_os/color.rb
22
75
  - lib/under_os/config.rb
76
+ - lib/under_os/core/kernel.rb
77
+ - lib/under_os/core/numeric.rb
78
+ - lib/under_os/core/string.rb
23
79
  - lib/under_os/delegate.rb
24
- - lib/under_os/window.rb
25
- - lib/under_os.rb
26
- homepage:
80
+ - lib/under_os/events.rb
81
+ - lib/under_os/file.rb
82
+ - lib/under_os/history.rb
83
+ - lib/under_os/http.rb
84
+ - lib/under_os/http/receiver.rb
85
+ - lib/under_os/http/request.rb
86
+ - lib/under_os/http/response.rb
87
+ - lib/under_os/http/session.rb
88
+ - lib/under_os/page.rb
89
+ - lib/under_os/page/builder.rb
90
+ - lib/under_os/page/layout.rb
91
+ - lib/under_os/page/matcher.rb
92
+ - lib/under_os/page/stylesheet.rb
93
+ - lib/under_os/parser.rb
94
+ - lib/under_os/parser/css.rb
95
+ - lib/under_os/parser/html.rb
96
+ - lib/under_os/point.rb
97
+ - lib/under_os/screen.rb
98
+ - lib/under_os/timer.rb
99
+ - lib/under_os/ui.rb
100
+ - lib/under_os/ui/alert.rb
101
+ - lib/under_os/ui/button.rb
102
+ - lib/under_os/ui/collection.rb
103
+ - lib/under_os/ui/collection/cell.rb
104
+ - lib/under_os/ui/collection/delegate.rb
105
+ - lib/under_os/ui/collection/item.rb
106
+ - lib/under_os/ui/collection/layout.rb
107
+ - lib/under_os/ui/collection/styles.rb
108
+ - lib/under_os/ui/icon.rb
109
+ - lib/under_os/ui/icon/awesome.rb
110
+ - lib/under_os/ui/icon/engine.rb
111
+ - lib/under_os/ui/image.rb
112
+ - lib/under_os/ui/input.rb
113
+ - lib/under_os/ui/label.rb
114
+ - lib/under_os/ui/locker.rb
115
+ - lib/under_os/ui/navbar.rb
116
+ - lib/under_os/ui/progress.rb
117
+ - lib/under_os/ui/scroll.rb
118
+ - lib/under_os/ui/select.rb
119
+ - lib/under_os/ui/sidebar.rb
120
+ - lib/under_os/ui/slider.rb
121
+ - lib/under_os/ui/spinner.rb
122
+ - lib/under_os/ui/style.rb
123
+ - lib/under_os/ui/style/fonts.rb
124
+ - lib/under_os/ui/style/margins.rb
125
+ - lib/under_os/ui/style/outlining.rb
126
+ - lib/under_os/ui/style/positioning.rb
127
+ - lib/under_os/ui/switch.rb
128
+ - lib/under_os/ui/textarea.rb
129
+ - lib/under_os/ui/utils/animation.rb
130
+ - lib/under_os/ui/utils/commons.rb
131
+ - lib/under_os/ui/utils/dimensions.rb
132
+ - lib/under_os/ui/utils/editable.rb
133
+ - lib/under_os/ui/utils/events.rb
134
+ - lib/under_os/ui/utils/manipulation.rb
135
+ - lib/under_os/ui/utils/position.rb
136
+ - lib/under_os/ui/utils/size.rb
137
+ - lib/under_os/ui/utils/styles.rb
138
+ - lib/under_os/ui/utils/traversing.rb
139
+ - lib/under_os/ui/utils/wrap.rb
140
+ - lib/under_os/ui/view.rb
141
+ - resources/Default-568h@2x.png
142
+ - resources/test.png
143
+ - spec/assets/app.css
144
+ - spec/assets/test.css
145
+ - spec/assets/test.html
146
+ - spec/assets/test_page.rb
147
+ - spec/lib/core/numeric_spec.rb
148
+ - spec/lib/core/string_spec.rb
149
+ - spec/lib/under_os/color_spec.rb
150
+ - spec/lib/under_os/events_spec.rb
151
+ - spec/lib/under_os/file_spec.rb
152
+ - spec/lib/under_os/page/builder_spec.rb
153
+ - spec/lib/under_os/page/layout_spec.rb
154
+ - spec/lib/under_os/page/matcher_spec.rb
155
+ - spec/lib/under_os/page/stylesheet_spec.rb
156
+ - spec/lib/under_os/page_spec.rb
157
+ - spec/lib/under_os/parser/css_spec.rb
158
+ - spec/lib/under_os/parser/html_spec.rb
159
+ - spec/lib/under_os/parser_spec.rb
160
+ - spec/lib/under_os/point_spec.rb
161
+ - spec/lib/under_os/screen_spec.rb
162
+ - spec/lib/under_os/timer_spec.rb
163
+ - spec/lib/under_os/ui/button_spec.rb
164
+ - spec/lib/under_os/ui/collection_spec.rb
165
+ - spec/lib/under_os/ui/icon_spec.rb
166
+ - spec/lib/under_os/ui/image_spec.rb
167
+ - spec/lib/under_os/ui/input_spec.rb
168
+ - spec/lib/under_os/ui/label_spec.rb
169
+ - spec/lib/under_os/ui/locker_spec.rb
170
+ - spec/lib/under_os/ui/progress_spec.rb
171
+ - spec/lib/under_os/ui/scroll_spec.rb
172
+ - spec/lib/under_os/ui/select_spec.rb
173
+ - spec/lib/under_os/ui/sidebar_spec.rb
174
+ - spec/lib/under_os/ui/slider_spec.rb
175
+ - spec/lib/under_os/ui/spinner_spec.rb
176
+ - spec/lib/under_os/ui/style/fonts_spec.rb
177
+ - spec/lib/under_os/ui/style/margins_spec.rb
178
+ - spec/lib/under_os/ui/style/outlining_spec.rb
179
+ - spec/lib/under_os/ui/style/positioning_spec.rb
180
+ - spec/lib/under_os/ui/style_spec.rb
181
+ - spec/lib/under_os/ui/switch_spec.rb
182
+ - spec/lib/under_os/ui/textarea_spec.rb
183
+ - spec/lib/under_os/ui/utils/commons_spec.rb
184
+ - spec/lib/under_os/ui/utils/manipulation_spec.rb
185
+ - spec/lib/under_os/ui/utils/styles_spec.rb
186
+ - spec/lib/under_os/ui/utils/traversing_spec.rb
187
+ - spec/lib/under_os/ui/utils/wrap_spec.rb
188
+ - spec/lib/under_os/ui/view_spec.rb
189
+ - under-os.gemspec
190
+ homepage: http://under-os.com
27
191
  licenses:
28
192
  - MIT
29
193
  metadata: {}
30
- post_install_message:
194
+ post_install_message: "\n If you want to use the UnderOS template with RubyMotion,
195
+ please run the following:\n\n mkdir -p ~/Library/RubyMotion/template/uos\n git
196
+ clone https://github.com/under-os/under-os-template.git ~/Library/RubyMotion/template/uos\n\n\n
197
+ \ Then just run the following to generate your first project:\n\n motion create
198
+ awesomness --template=uos\n "
31
199
  rdoc_options: []
32
200
  require_paths:
33
201
  - lib
@@ -46,5 +214,51 @@ rubyforge_project:
46
214
  rubygems_version: 2.0.3
47
215
  signing_key:
48
216
  specification_version: 4
49
- summary: A web-like thin wrapper over iOS
50
- test_files: []
217
+ summary: A web-broser like wrapper over iOS using RubyMotion
218
+ test_files:
219
+ - spec/assets/app.css
220
+ - spec/assets/test.css
221
+ - spec/assets/test.html
222
+ - spec/assets/test_page.rb
223
+ - spec/lib/core/numeric_spec.rb
224
+ - spec/lib/core/string_spec.rb
225
+ - spec/lib/under_os/color_spec.rb
226
+ - spec/lib/under_os/events_spec.rb
227
+ - spec/lib/under_os/file_spec.rb
228
+ - spec/lib/under_os/page/builder_spec.rb
229
+ - spec/lib/under_os/page/layout_spec.rb
230
+ - spec/lib/under_os/page/matcher_spec.rb
231
+ - spec/lib/under_os/page/stylesheet_spec.rb
232
+ - spec/lib/under_os/page_spec.rb
233
+ - spec/lib/under_os/parser/css_spec.rb
234
+ - spec/lib/under_os/parser/html_spec.rb
235
+ - spec/lib/under_os/parser_spec.rb
236
+ - spec/lib/under_os/point_spec.rb
237
+ - spec/lib/under_os/screen_spec.rb
238
+ - spec/lib/under_os/timer_spec.rb
239
+ - spec/lib/under_os/ui/button_spec.rb
240
+ - spec/lib/under_os/ui/collection_spec.rb
241
+ - spec/lib/under_os/ui/icon_spec.rb
242
+ - spec/lib/under_os/ui/image_spec.rb
243
+ - spec/lib/under_os/ui/input_spec.rb
244
+ - spec/lib/under_os/ui/label_spec.rb
245
+ - spec/lib/under_os/ui/locker_spec.rb
246
+ - spec/lib/under_os/ui/progress_spec.rb
247
+ - spec/lib/under_os/ui/scroll_spec.rb
248
+ - spec/lib/under_os/ui/select_spec.rb
249
+ - spec/lib/under_os/ui/sidebar_spec.rb
250
+ - spec/lib/under_os/ui/slider_spec.rb
251
+ - spec/lib/under_os/ui/spinner_spec.rb
252
+ - spec/lib/under_os/ui/style/fonts_spec.rb
253
+ - spec/lib/under_os/ui/style/margins_spec.rb
254
+ - spec/lib/under_os/ui/style/outlining_spec.rb
255
+ - spec/lib/under_os/ui/style/positioning_spec.rb
256
+ - spec/lib/under_os/ui/style_spec.rb
257
+ - spec/lib/under_os/ui/switch_spec.rb
258
+ - spec/lib/under_os/ui/textarea_spec.rb
259
+ - spec/lib/under_os/ui/utils/commons_spec.rb
260
+ - spec/lib/under_os/ui/utils/manipulation_spec.rb
261
+ - spec/lib/under_os/ui/utils/styles_spec.rb
262
+ - spec/lib/under_os/ui/utils/traversing_spec.rb
263
+ - spec/lib/under_os/ui/utils/wrap_spec.rb
264
+ - spec/lib/under_os/ui/view_spec.rb
@@ -1,16 +0,0 @@
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
@@ -1,5 +0,0 @@
1
- class UnderOs::Window
2
- def initialize
3
- @_ = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
4
- end
5
- end