device_wizard 0.2.0 → 0.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: 406bf43f4fe4c815ffd03e19efc2caa55eeedb2e
4
- data.tar.gz: d7ab087236486dff9d14d43b75e097f5bed77ac4
3
+ metadata.gz: f105bc73c1727c38a89b6f2107ad0aaf3668a2a0
4
+ data.tar.gz: e9a9b293971931ed6d4034604eb729d2ae86530d
5
5
  SHA512:
6
- metadata.gz: 60252f7a27a3bbcc1458416e6ccbf30e0b7c7053cda0ec1c7a06198cd1d25fc9fdabed51d18b6a83753f8013aff2f6b2147e10e8b6200dd29d0562d2056e765e
7
- data.tar.gz: c8b39d1520ba064d8c437982ddb82d09acea6e95e7d1a83c1fc805726d23ea8124bf49ef0442ba68f98295e6e5abe2c102ac7ca04a74dc91c883fa9176c29ad0
6
+ metadata.gz: 9027b3569db978de624dd9f1978ea75b5edf17ac6e5aaf25ec3007da26713fb77adfdda4aae9753d0c38fd81b336aa1c398ad50b09802c0ac24d20cee6eca1d7
7
+ data.tar.gz: 35b2cbd26ef3e77bb7adca286b382dd59508f68e4f15a1d1a0543a3d7f28b454ea0d70c3f4ba374882f6c639fabd3323a5f8f6277adbe798b7b03d175fe41cc3
@@ -1,7 +1,13 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="d61b7375-c87d-4649-8619-301d696e3e1d" name="Default" comment="" />
4
+ <list default="true" id="d61b7375-c87d-4649-8619-301d696e3e1d" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/device_wizard/browser_details_spec.rb" afterPath="$PROJECT_DIR$/spec/device_wizard/browser_details_spec.rb" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/device_wizard.rb" afterPath="$PROJECT_DIR$/lib/device_wizard.rb" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/device_wizard/os_details_spec.rb" afterPath="$PROJECT_DIR$/spec/device_wizard/os_details_spec.rb" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/device_wizard/version.rb" afterPath="$PROJECT_DIR$/lib/device_wizard/version.rb" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
10
+ </list>
5
11
  <ignored path="device_wizard.iws" />
6
12
  <ignored path=".idea/workspace.xml" />
7
13
  <ignored path=".idea/dataSources.local.xml" />
@@ -20,7 +26,7 @@
20
26
  <favorites_list name="device_wizard" />
21
27
  </component>
22
28
  <component name="FileEditorManager">
23
- <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
29
+ <leaf>
24
30
  <file leaf-file-name="device_wizard.gemspec" pinned="false" current-in-tab="false">
25
31
  <entry file="file://$PROJECT_DIR$/device_wizard.gemspec">
26
32
  <provider selected="true" editor-type-id="text-editor">
@@ -31,23 +37,24 @@
31
37
  </provider>
32
38
  </entry>
33
39
  </file>
34
- <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
40
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
35
41
  <entry file="file://$PROJECT_DIR$/lib/device_wizard/version.rb">
36
42
  <provider selected="true" editor-type-id="text-editor">
37
- <state vertical-scroll-proportion="0.0">
43
+ <state vertical-scroll-proportion="0.011320755">
38
44
  <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
39
45
  <folding />
40
46
  </state>
41
47
  </provider>
42
48
  </entry>
43
49
  </file>
44
- <file leaf-file-name="device_wizard.rb" pinned="false" current-in-tab="true">
50
+ <file leaf-file-name="device_wizard.rb" pinned="false" current-in-tab="false">
45
51
  <entry file="file://$PROJECT_DIR$/lib/device_wizard.rb">
46
52
  <provider selected="true" editor-type-id="text-editor">
47
- <state vertical-scroll-proportion="0.1310564">
48
- <caret line="17" column="6" selection-start-line="17" selection-start-column="5" selection-end-line="17" selection-end-column="6" />
53
+ <state vertical-scroll-proportion="0.0">
54
+ <caret line="300" column="0" selection-start-line="300" selection-start-column="0" selection-end-line="300" selection-end-column="0" />
49
55
  <folding>
50
56
  <element signature="e#56#184#0" expanded="false" />
57
+ <element signature="e#188#2665#0" expanded="false" />
51
58
  <element signature="e#1135#1982#0" expanded="false" />
52
59
  <element signature="e#1988#2212#0" expanded="false" />
53
60
  <element signature="e#2218#2425#0" expanded="false" />
@@ -59,9 +66,7 @@
59
66
  <element signature="e#4538#5053#0" expanded="false" />
60
67
  <element signature="e#5057#5168#0" expanded="false" />
61
68
  <element signature="e#5172#5701#0" expanded="false" />
62
- <element signature="e#5705#6731#0" expanded="false" />
63
- <element signature="e#6735#7308#0" expanded="false" />
64
- <element signature="e#7312#7854#0" expanded="false" />
69
+ <element signature="e#7442#7984#0" expanded="false" />
65
70
  </folding>
66
71
  </state>
67
72
  </provider>
@@ -81,7 +86,7 @@
81
86
  <entry file="file://$PROJECT_DIR$/spec/device_wizard/browser_details_spec.rb">
82
87
  <provider selected="true" editor-type-id="text-editor">
83
88
  <state vertical-scroll-proportion="0.0">
84
- <caret line="54" column="45" selection-start-line="54" selection-start-column="45" selection-end-line="54" selection-end-column="45" />
89
+ <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
85
90
  <folding />
86
91
  </state>
87
92
  </provider>
@@ -91,7 +96,7 @@
91
96
  <entry file="file://$PROJECT_DIR$/spec/device_wizard/os_details_spec.rb">
92
97
  <provider selected="true" editor-type-id="text-editor">
93
98
  <state vertical-scroll-proportion="0.0">
94
- <caret line="37" column="35" selection-start-line="37" selection-start-column="35" selection-end-line="37" selection-end-column="35" />
99
+ <caret line="45" column="37" selection-start-line="45" selection-start-column="37" selection-end-line="45" selection-end-column="37" />
95
100
  <folding />
96
101
  </state>
97
102
  </provider>
@@ -136,11 +141,11 @@
136
141
  <list>
137
142
  <option value="$PROJECT_DIR$/Gemfile" />
138
143
  <option value="$PROJECT_DIR$/device_wizard.gemspec" />
139
- <option value="$PROJECT_DIR$/lib/device_wizard/version.rb" />
144
+ <option value="$PROJECT_DIR$/spec/device_wizard/device_wizard_spec.rb" />
140
145
  <option value="$PROJECT_DIR$/spec/device_wizard/browser_details_spec.rb" />
141
146
  <option value="$PROJECT_DIR$/spec/device_wizard/os_details_spec.rb" />
142
147
  <option value="$PROJECT_DIR$/lib/device_wizard.rb" />
143
- <option value="$PROJECT_DIR$/spec/device_wizard/device_wizard_spec.rb" />
148
+ <option value="$PROJECT_DIR$/lib/device_wizard/version.rb" />
144
149
  </list>
145
150
  </option>
146
151
  </component>
@@ -149,11 +154,14 @@
149
154
  <component name="JsGulpfileManager">
150
155
  <detection-done>true</detection-done>
151
156
  </component>
157
+ <component name="NamedScopeManager">
158
+ <order />
159
+ </component>
152
160
  <component name="ProjectFrameBounds">
153
- <option name="x" value="1918" />
154
- <option name="y" value="29" />
155
- <option name="width" value="2363" />
156
- <option name="height" value="1380" />
161
+ <option name="x" value="1920" />
162
+ <option name="y" value="23" />
163
+ <option name="width" value="2560" />
164
+ <option name="height" value="1417" />
157
165
  </component>
158
166
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
159
167
  <OptionsSetting value="true" id="Add" />
@@ -176,11 +184,8 @@
176
184
  <autoscrollToSource />
177
185
  <autoscrollFromSource />
178
186
  <sortByType />
179
- <manualOrder />
180
- <foldersAlwaysOnTop value="true" />
181
187
  </navigator>
182
188
  <panes>
183
- <pane id="Scope" />
184
189
  <pane id="Scratches" />
185
190
  <pane id="ProjectPane">
186
191
  <subPane>
@@ -266,6 +271,7 @@
266
271
  </PATH>
267
272
  </subPane>
268
273
  </pane>
274
+ <pane id="Scope" />
269
275
  </panes>
270
276
  </component>
271
277
  <component name="PropertiesComponent">
@@ -296,6 +302,7 @@
296
302
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
297
303
  </COVERAGE_PATTERN>
298
304
  </EXTENSION>
305
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
299
306
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
300
307
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
301
308
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
@@ -333,6 +340,7 @@
333
340
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
334
341
  </COVERAGE_PATTERN>
335
342
  </EXTENSION>
343
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
336
344
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
337
345
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
338
346
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
@@ -363,6 +371,7 @@
363
371
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
364
372
  </COVERAGE_PATTERN>
365
373
  </EXTENSION>
374
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
366
375
  <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
367
376
  <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
368
377
  <method />
@@ -383,6 +392,7 @@
383
392
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
384
393
  </COVERAGE_PATTERN>
385
394
  </EXTENSION>
395
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
386
396
  <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
387
397
  <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
388
398
  <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
@@ -403,12 +413,6 @@
403
413
  <envs />
404
414
  <method />
405
415
  </configuration>
406
- <configuration default="true" type="js.build_tools.npm" factoryName="npm">
407
- <command value="run-script" />
408
- <scripts />
409
- <envs />
410
- <method />
411
- </configuration>
412
416
  </component>
413
417
  <component name="ShelveChangesManager" show_recycled="false" />
414
418
  <component name="SvnConfiguration">
@@ -424,47 +428,47 @@
424
428
  <servers />
425
429
  </component>
426
430
  <component name="ToolWindowManager">
427
- <frame x="1918" y="29" width="2363" height="1380" extended-state="0" />
428
- <editor active="false" />
431
+ <frame x="1920" y="23" width="2560" height="1417" extended-state="0" />
432
+ <editor active="true" />
429
433
  <layout>
430
- <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25161567" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
431
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
432
- <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
433
- <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
434
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
435
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
436
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
437
- <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
438
- <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
439
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
440
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
441
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
442
- <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
443
- <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
444
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
445
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
446
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
447
- <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
434
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
435
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
436
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
437
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
438
+ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
439
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2533757" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
440
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
441
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
442
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
443
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
444
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
445
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
446
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
447
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
448
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
449
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
450
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
451
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
448
452
  </layout>
449
453
  <layout-to-restore>
450
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
451
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
452
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
453
- <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
454
- <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
455
- <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
456
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
457
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
458
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
459
- <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
460
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25179857" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
461
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
462
- <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
463
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
464
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
465
- <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
466
- <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
467
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
454
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
455
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
456
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
457
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
458
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
459
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
460
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
461
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
462
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
463
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
464
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
465
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
466
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
467
+ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
468
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25179857" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
469
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
470
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
471
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
468
472
  </layout-to-restore>
469
473
  </component>
470
474
  <component name="Vcs.Log.UiProperties">
@@ -488,15 +492,15 @@
488
492
  <entry file="file://$PROJECT_DIR$/device_wizard.gemspec">
489
493
  <provider selected="true" editor-type-id="text-editor">
490
494
  <state vertical-scroll-proportion="0.0">
491
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
495
+ <caret line="19" column="30" selection-start-line="19" selection-start-column="30" selection-end-line="19" selection-end-column="30" />
492
496
  <folding />
493
497
  </state>
494
498
  </provider>
495
499
  </entry>
496
- <entry file="file://$PROJECT_DIR$/.rspec">
500
+ <entry file="file://$PROJECT_DIR$/lib/device_wizard/version.rb">
497
501
  <provider selected="true" editor-type-id="text-editor">
498
502
  <state vertical-scroll-proportion="0.0">
499
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
503
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
500
504
  <folding />
501
505
  </state>
502
506
  </provider>
@@ -504,9 +508,10 @@
504
508
  <entry file="file://$PROJECT_DIR$/lib/device_wizard.rb">
505
509
  <provider selected="true" editor-type-id="text-editor">
506
510
  <state vertical-scroll-proportion="0.0">
507
- <caret line="77" column="0" selection-start-line="77" selection-start-column="0" selection-end-line="77" selection-end-column="0" />
511
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
508
512
  <folding>
509
513
  <element signature="e#56#184#0" expanded="false" />
514
+ <element signature="e#188#2665#0" expanded="false" />
510
515
  <element signature="e#1135#1982#0" expanded="false" />
511
516
  <element signature="e#1988#2212#0" expanded="false" />
512
517
  <element signature="e#2218#2425#0" expanded="false" />
@@ -518,17 +523,39 @@
518
523
  <element signature="e#4538#5053#0" expanded="false" />
519
524
  <element signature="e#5057#5168#0" expanded="false" />
520
525
  <element signature="e#5172#5701#0" expanded="false" />
521
- <element signature="e#5705#6731#0" expanded="false" />
522
- <element signature="e#6735#7308#0" expanded="false" />
523
- <element signature="e#7312#7854#0" expanded="false" />
526
+ <element signature="e#7442#7984#0" expanded="false" />
524
527
  </folding>
525
528
  </state>
526
529
  </provider>
527
530
  </entry>
531
+ <entry file="file://$PROJECT_DIR$/.rspec">
532
+ <provider selected="true" editor-type-id="text-editor">
533
+ <state vertical-scroll-proportion="0.0">
534
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
535
+ <folding />
536
+ </state>
537
+ </provider>
538
+ </entry>
539
+ <entry file="file://$PROJECT_DIR$/spec/device_wizard/browser_details_spec.rb">
540
+ <provider selected="true" editor-type-id="text-editor">
541
+ <state vertical-scroll-proportion="0.0">
542
+ <caret line="54" column="45" selection-start-line="54" selection-start-column="45" selection-end-line="54" selection-end-column="45" />
543
+ <folding />
544
+ </state>
545
+ </provider>
546
+ </entry>
547
+ <entry file="file://$PROJECT_DIR$/spec/device_wizard/os_details_spec.rb">
548
+ <provider selected="true" editor-type-id="text-editor">
549
+ <state vertical-scroll-proportion="0.0">
550
+ <caret line="37" column="35" selection-start-line="37" selection-start-column="35" selection-end-line="37" selection-end-column="35" />
551
+ <folding />
552
+ </state>
553
+ </provider>
554
+ </entry>
528
555
  <entry file="file://$PROJECT_DIR$/spec/device_wizard/device_wizard_spec.rb">
529
556
  <provider selected="true" editor-type-id="text-editor">
530
557
  <state vertical-scroll-proportion="0.0">
531
- <caret line="158" column="109" selection-start-line="158" selection-start-column="109" selection-end-line="158" selection-end-column="109" />
558
+ <caret line="151" column="18" selection-start-line="151" selection-start-column="18" selection-end-line="151" selection-end-column="18" />
532
559
  <folding>
533
560
  <element signature="e#124#1880#0" expanded="false" />
534
561
  <element signature="e#1901#2201#0" expanded="false" />
@@ -553,7 +580,7 @@
553
580
  <entry file="file://$PROJECT_DIR$/device_wizard.gemspec">
554
581
  <provider selected="true" editor-type-id="text-editor">
555
582
  <state vertical-scroll-proportion="0.0">
556
- <caret line="19" column="30" selection-start-line="19" selection-start-column="30" selection-end-line="19" selection-end-column="30" />
583
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
557
584
  <folding />
558
585
  </state>
559
586
  </provider>
@@ -572,6 +599,7 @@
572
599
  <caret line="77" column="0" selection-start-line="77" selection-start-column="0" selection-end-line="77" selection-end-column="0" />
573
600
  <folding>
574
601
  <element signature="e#56#184#0" expanded="false" />
602
+ <element signature="e#188#2665#0" expanded="false" />
575
603
  <element signature="e#1135#1982#0" expanded="false" />
576
604
  <element signature="e#1988#2212#0" expanded="false" />
577
605
  <element signature="e#2218#2425#0" expanded="false" />
@@ -583,9 +611,7 @@
583
611
  <element signature="e#4538#5053#0" expanded="false" />
584
612
  <element signature="e#5057#5168#0" expanded="false" />
585
613
  <element signature="e#5172#5701#0" expanded="false" />
586
- <element signature="e#5705#6731#0" expanded="false" />
587
- <element signature="e#6735#7308#0" expanded="false" />
588
- <element signature="e#7312#7854#0" expanded="false" />
614
+ <element signature="e#7442#7984#0" expanded="false" />
589
615
  </folding>
590
616
  </state>
591
617
  </provider>
@@ -631,6 +657,46 @@
631
657
  </state>
632
658
  </provider>
633
659
  </entry>
660
+ <entry file="file://$PROJECT_DIR$/lib/device_wizard.rb">
661
+ <provider selected="true" editor-type-id="text-editor">
662
+ <state vertical-scroll-proportion="0.0">
663
+ <caret line="77" column="0" selection-start-line="77" selection-start-column="0" selection-end-line="77" selection-end-column="0" />
664
+ <folding>
665
+ <element signature="e#56#184#0" expanded="false" />
666
+ <element signature="e#188#2665#0" expanded="false" />
667
+ <element signature="e#1135#1982#0" expanded="false" />
668
+ <element signature="e#1988#2212#0" expanded="false" />
669
+ <element signature="e#2218#2425#0" expanded="false" />
670
+ <element signature="e#2669#2767#0" expanded="false" />
671
+ <element signature="e#2771#2927#0" expanded="false" />
672
+ <element signature="e#2931#3450#0" expanded="false" />
673
+ <element signature="e#3454#3997#0" expanded="false" />
674
+ <element signature="e#4001#4534#0" expanded="false" />
675
+ <element signature="e#4538#5053#0" expanded="false" />
676
+ <element signature="e#5057#5168#0" expanded="false" />
677
+ <element signature="e#5172#5701#0" expanded="false" />
678
+ <element signature="e#7442#7984#0" expanded="false" />
679
+ </folding>
680
+ </state>
681
+ </provider>
682
+ </entry>
683
+ <entry file="file://$PROJECT_DIR$/spec/device_wizard/device_wizard_spec.rb">
684
+ <provider selected="true" editor-type-id="text-editor">
685
+ <state vertical-scroll-proportion="0.0">
686
+ <caret line="158" column="109" selection-start-line="158" selection-start-column="109" selection-end-line="158" selection-end-column="109" />
687
+ <folding>
688
+ <element signature="e#124#1880#0" expanded="false" />
689
+ <element signature="e#1901#2201#0" expanded="false" />
690
+ <element signature="e#2226#2504#0" expanded="false" />
691
+ <element signature="e#2525#3370#0" expanded="false" />
692
+ <element signature="e#3387#3719#0" expanded="false" />
693
+ <element signature="e#3741#4614#0" expanded="false" />
694
+ <element signature="e#4636#7436#0" expanded="false" />
695
+ <element signature="e#7459#7911#0" expanded="false" />
696
+ </folding>
697
+ </state>
698
+ </provider>
699
+ </entry>
634
700
  <entry file="file://$PROJECT_DIR$/Gemfile">
635
701
  <provider selected="true" editor-type-id="text-editor">
636
702
  <state vertical-scroll-proportion="0.0">
@@ -639,18 +705,26 @@
639
705
  </state>
640
706
  </provider>
641
707
  </entry>
642
- <entry file="file://$PROJECT_DIR$/spec/device_wizard/os_details_spec.rb">
708
+ <entry file="file://$PROJECT_DIR$/device_wizard.gemspec">
643
709
  <provider selected="true" editor-type-id="text-editor">
644
710
  <state vertical-scroll-proportion="0.0">
645
- <caret line="37" column="35" selection-start-line="37" selection-start-column="35" selection-end-line="37" selection-end-column="35" />
711
+ <caret line="19" column="30" selection-start-line="19" selection-start-column="30" selection-end-line="19" selection-end-column="30" />
646
712
  <folding />
647
713
  </state>
648
714
  </provider>
649
715
  </entry>
650
- <entry file="file://$PROJECT_DIR$/spec/device_wizard/browser_details_spec.rb">
716
+ <entry file="file://$PROJECT_DIR$/.rspec">
651
717
  <provider selected="true" editor-type-id="text-editor">
652
718
  <state vertical-scroll-proportion="0.0">
653
- <caret line="54" column="45" selection-start-line="54" selection-start-column="45" selection-end-line="54" selection-end-column="45" />
719
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
720
+ <folding />
721
+ </state>
722
+ </provider>
723
+ </entry>
724
+ <entry file="file://$PROJECT_DIR$/Gemfile">
725
+ <provider selected="true" editor-type-id="text-editor">
726
+ <state vertical-scroll-proportion="0.0">
727
+ <caret line="5" column="9" selection-start-line="5" selection-start-column="9" selection-end-line="5" selection-end-column="9" />
654
728
  <folding />
655
729
  </state>
656
730
  </provider>
@@ -672,20 +746,21 @@
672
746
  </state>
673
747
  </provider>
674
748
  </entry>
675
- <entry file="file://$PROJECT_DIR$/lib/device_wizard/version.rb">
749
+ <entry file="file://$PROJECT_DIR$/spec/device_wizard/browser_details_spec.rb">
676
750
  <provider selected="true" editor-type-id="text-editor">
677
751
  <state vertical-scroll-proportion="0.0">
678
- <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
752
+ <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
679
753
  <folding />
680
754
  </state>
681
755
  </provider>
682
756
  </entry>
683
757
  <entry file="file://$PROJECT_DIR$/lib/device_wizard.rb">
684
758
  <provider selected="true" editor-type-id="text-editor">
685
- <state vertical-scroll-proportion="0.1310564">
686
- <caret line="17" column="6" selection-start-line="17" selection-start-column="5" selection-end-line="17" selection-end-column="6" />
759
+ <state vertical-scroll-proportion="0.0">
760
+ <caret line="300" column="0" selection-start-line="300" selection-start-column="0" selection-end-line="300" selection-end-column="0" />
687
761
  <folding>
688
762
  <element signature="e#56#184#0" expanded="false" />
763
+ <element signature="e#188#2665#0" expanded="false" />
689
764
  <element signature="e#1135#1982#0" expanded="false" />
690
765
  <element signature="e#1988#2212#0" expanded="false" />
691
766
  <element signature="e#2218#2425#0" expanded="false" />
@@ -697,12 +772,26 @@
697
772
  <element signature="e#4538#5053#0" expanded="false" />
698
773
  <element signature="e#5057#5168#0" expanded="false" />
699
774
  <element signature="e#5172#5701#0" expanded="false" />
700
- <element signature="e#5705#6731#0" expanded="false" />
701
- <element signature="e#6735#7308#0" expanded="false" />
702
- <element signature="e#7312#7854#0" expanded="false" />
775
+ <element signature="e#7442#7984#0" expanded="false" />
703
776
  </folding>
704
777
  </state>
705
778
  </provider>
706
779
  </entry>
780
+ <entry file="file://$PROJECT_DIR$/spec/device_wizard/os_details_spec.rb">
781
+ <provider selected="true" editor-type-id="text-editor">
782
+ <state vertical-scroll-proportion="0.0">
783
+ <caret line="45" column="37" selection-start-line="45" selection-start-column="37" selection-end-line="45" selection-end-column="37" />
784
+ <folding />
785
+ </state>
786
+ </provider>
787
+ </entry>
788
+ <entry file="file://$PROJECT_DIR$/lib/device_wizard/version.rb">
789
+ <provider selected="true" editor-type-id="text-editor">
790
+ <state vertical-scroll-proportion="0.011320755">
791
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
792
+ <folding />
793
+ </state>
794
+ </provider>
795
+ </entry>
707
796
  </component>
708
797
  </project>
data/README.md CHANGED
@@ -24,6 +24,39 @@ Or install it yourself as:
24
24
 
25
25
  ## Usage
26
26
 
27
+ **Identify All Details**
28
+
29
+ #create the user agent detector
30
+ detector = DeviceWizard::UserAgentDetector.new
31
+
32
+ #pass the user agent to the detector
33
+ details = detector.get_details(user_agent)
34
+
35
+ The detected details will return the following:
36
+ - **Type** This is the device type of the request [mobile/tablet/desktop etc]
37
+ - **Browser** This is the browser of the request {name, version}
38
+
39
+
40
+ browser = details.browser
41
+
42
+ browser_name = details.browser.name
43
+
44
+ browser_version = details.browser.version
45
+
46
+ - **OS** This is the operating system of the request {name, type, version}
47
+
48
+
49
+ os = details.os
50
+
51
+ os_name = details.os.name
52
+
53
+ os_type = details.os.type
54
+
55
+ os_version = details.os.version
56
+
57
+
58
+ **Identify Device Type**
59
+
27
60
  #create the user agent detector
28
61
  detector = DeviceWizard::UserAgentDetector.new
29
62
 
@@ -39,11 +72,6 @@ The detected device type will be one of the following:
39
72
 
40
73
  To improve performance in your application when using device detector we recommend that you only check the device type on the first request and either store the result in the session or a cookie to prevent having to recalculate the device type on each request.
41
74
 
42
- ## Upcoming Features
43
-
44
- - **Browser Detection**: determine the browser the request was sent from (e.g. chrome/ firefox / internet explorer / or safari etc..)
45
- - **OS Detection**: determine the OS and version the request was sent from (e.g. Windows 10 / IOS 9 etc..)
46
-
47
75
  ## Development
48
76
 
49
77
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -357,13 +357,16 @@ module DeviceWizard
357
357
  class MacResolver
358
358
 
359
359
  KEYWORD = 'intel mac os x'
360
- REGEX = Regexp.new('intel mac os x ([0-9]+_[0-9])')
360
+ REGEX1 = Regexp.new('intel mac os x ([0-9]+_[0-9]+_?[0-9]+)')
361
+ REGEX2 = Regexp.new('intel mac os x ([0-9]+.[0-9]+.?[0-9]+)')
361
362
 
362
363
  def get_version(user_agent)
363
364
  user_agent.downcase!
364
365
  result = 'Unknown'
365
366
 
366
- if REGEX =~ user_agent
367
+ if REGEX1 =~ user_agent
368
+ result = $1
369
+ elsif REGEX2 =~ user_agent
367
370
  result = $1
368
371
  end
369
372
 
@@ -1,3 +1,3 @@
1
1
  module DeviceWizard
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: device_wizard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler