surikat 0.2.4 → 0.2.5

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: e7194b79492a3dc3f0ddfb1eab9f8c9df28a7e5f
4
- data.tar.gz: 58a608261a1f0f878c82c53e0a50bf57eb3ee0a4
3
+ metadata.gz: d8fd87569219fcfac1df882c104650f4d0beaffd
4
+ data.tar.gz: 1732ecaefc654f8715237a7c15b174486f369dbc
5
5
  SHA512:
6
- metadata.gz: 9007fdd4f64f21132b6af005d4cfcb304e83b8939d71a6ee1232633a84cda3701513461ff2fed983cc26dad4b1628b3ed77c3c51c5f875c7ceb0c330f5b9fcc8
7
- data.tar.gz: afeaac0a5e2c5bf024d211a312cc77eec285b35f9f0e47b8a02f7e9c92fba3f300ba9f55bcc4db3baee21416464496e47b48511b63d268a89045940176855540
6
+ metadata.gz: 5fc92fa4831ae8fa63f2249479c23a1a6412e2a817f32bc710741b276b2c78d7d92e599eff6a06e52173f215bf7cd1861b18a1ad0abb01558e2cc5e9f5f0e8c1
7
+ data.tar.gz: 5d96315848aff346d0fba1ec6ddc05e78e631731ede940fa7c7324d1b6d72e9311c2098e889d12b9956f122c83a320dc1e861c6070a6a7cbcc3f1bab48f5c4da
@@ -1,9 +1,17 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="66400b9f-bfb7-48ab-a1ab-331b1d21e8c6" name="Default" comment="">
4
+ <list default="true" id="66400b9f-bfb7-48ab-a1ab-331b1d21e8c6" name="Default" comment="built gem 0.2.4">
5
+ <change afterPath="$PROJECT_DIR$/bin/postinstall" afterDir="false" />
5
6
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
- <change beforePath="$PROJECT_DIR$/surikat.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/surikat.gemspec" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/lib/surikat.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/surikat.rb" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/lib/surikat/base_model.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/surikat/base_model.rb" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/lib/surikat/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/surikat/version.rb" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/surikat-0.2.1.gem" beforeDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/surikat-0.2.2.gem" beforeDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/surikat-0.2.3.gem" beforeDir="false" />
14
+ <change beforePath="$PROJECT_DIR$/surikat-0.2.4.gem" beforeDir="false" afterPath="$PROJECT_DIR$/surikat-0.2.4.gem" afterDir="false" />
7
15
  </list>
8
16
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
17
  <option name="TRACKING_ENABLED" value="true" />
@@ -18,51 +26,21 @@
18
26
  <entry file="file://$PROJECT_DIR$/TODO">
19
27
  <provider selected="true" editor-type-id="text-editor">
20
28
  <state relative-caret-position="476">
21
- <caret line="28" column="74" selection-start-line="28" selection-start-column="74" selection-end-line="28" selection-end-column="74" />
29
+ <caret line="28" column="2" selection-start-line="28" selection-start-column="2" selection-end-line="28" selection-end-column="2" />
22
30
  </state>
23
31
  </provider>
24
32
  </entry>
25
33
  </file>
26
- <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
27
- <entry file="file://$PROJECT_DIR$/README.md">
28
- <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
29
- <state split_layout="SPLIT">
30
- <first_editor relative-caret-position="17">
31
- <caret line="189" column="4" selection-start-line="189" selection-start-column="4" selection-end-line="189" selection-end-column="4" />
32
- </first_editor>
33
- <second_editor />
34
- </state>
35
- </provider>
36
- </entry>
37
- </file>
38
- <file leaf-file-name="session_manager.rb" pinned="false" current-in-tab="false">
39
- <entry file="file://$PROJECT_DIR$/lib/surikat/session_manager.rb">
40
- <provider selected="true" editor-type-id="text-editor">
41
- <state relative-caret-position="459">
42
- <caret line="27" column="7" selection-start-line="27" selection-start-column="7" selection-end-line="27" selection-end-column="7" />
43
- </state>
44
- </provider>
45
- </entry>
46
- </file>
47
- <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
48
- <entry file="file://$PROJECT_DIR$/.gitignore">
49
- <provider selected="true" editor-type-id="text-editor">
50
- <state relative-caret-position="255">
51
- <caret line="15" selection-start-line="15" selection-end-line="15" />
52
- </state>
53
- </provider>
54
- </entry>
55
- </file>
56
- <file leaf-file-name="surikat.gemspec" pinned="false" current-in-tab="true">
57
- <entry file="file://$PROJECT_DIR$/surikat.gemspec">
34
+ <file leaf-file-name="surikat.rb" pinned="false" current-in-tab="false">
35
+ <entry file="file://$PROJECT_DIR$/lib/surikat.rb">
58
36
  <provider selected="true" editor-type-id="text-editor">
59
- <state relative-caret-position="578">
60
- <caret line="39" column="2" selection-start-line="39" selection-start-column="2" selection-end-line="39" selection-end-column="2" />
37
+ <state relative-caret-position="755">
38
+ <caret line="149" column="54" selection-start-line="149" selection-start-column="54" selection-end-line="149" selection-end-column="54" />
61
39
  </state>
62
40
  </provider>
63
41
  </entry>
64
42
  </file>
65
- <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
43
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
66
44
  <entry file="file://$PROJECT_DIR$/lib/surikat/version.rb">
67
45
  <provider selected="true" editor-type-id="text-editor">
68
46
  <state relative-caret-position="17">
@@ -71,25 +49,6 @@
71
49
  </provider>
72
50
  </entry>
73
51
  </file>
74
- <file leaf-file-name="surikat.rb" pinned="false" current-in-tab="false">
75
- <entry file="file://$PROJECT_DIR$/lib/surikat.rb">
76
- <provider selected="true" editor-type-id="text-editor">
77
- <state relative-caret-position="381">
78
- <caret line="81" lean-forward="true" selection-start-line="81" selection-end-line="81" />
79
- <folding>
80
- <element signature="e#2343#9042#0" />
81
- <element signature="e#9048#9302#0" />
82
- <element signature="e#9308#10900#0" />
83
- </folding>
84
- </state>
85
- </provider>
86
- </entry>
87
- </file>
88
- <file leaf-file-name="base_model.rb" pinned="false" current-in-tab="false">
89
- <entry file="file://$PROJECT_DIR$/lib/surikat/base_model.rb">
90
- <provider selected="true" editor-type-id="text-editor" />
91
- </entry>
92
- </file>
93
52
  </leaf>
94
53
  </component>
95
54
  <component name="FileTemplateManagerImpl">
@@ -189,14 +148,15 @@
189
148
  <option value="$PROJECT_DIR$/bin/console" />
190
149
  <option value="$PROJECT_DIR$/lib/surikat/templates/console.tmpl" />
191
150
  <option value="$PROJECT_DIR$/exe/surikat" />
192
- <option value="$PROJECT_DIR$/lib/surikat/base_model.rb" />
193
151
  <option value="$PROJECT_DIR$/lib/surikat/templates/base_spec.rb.tmpl" />
194
152
  <option value="$PROJECT_DIR$/lib/surikat/session_manager.rb" />
153
+ <option value="$PROJECT_DIR$/surikat.gemspec" />
195
154
  <option value="$PROJECT_DIR$/README.md" />
196
- <option value="$PROJECT_DIR$/TODO" />
155
+ <option value="$PROJECT_DIR$/bin/postinstall" />
156
+ <option value="$PROJECT_DIR$/lib/surikat/base_model.rb" />
197
157
  <option value="$PROJECT_DIR$/lib/surikat.rb" />
158
+ <option value="$PROJECT_DIR$/TODO" />
198
159
  <option value="$PROJECT_DIR$/lib/surikat/version.rb" />
199
- <option value="$PROJECT_DIR$/surikat.gemspec" />
200
160
  </list>
201
161
  </option>
202
162
  </component>
@@ -210,7 +170,7 @@
210
170
  <packageJsonPaths />
211
171
  </component>
212
172
  <component name="ProjectFrameBounds">
213
- <option name="x" value="3" />
173
+ <option name="x" value="1" />
214
174
  <option name="y" value="23" />
215
175
  <option name="width" value="1889" />
216
176
  <option name="height" value="1057" />
@@ -222,6 +182,7 @@
222
182
  <foldersAlwaysOnTop value="true" />
223
183
  </navigator>
224
184
  <panes>
185
+ <pane id="Scope" />
225
186
  <pane id="ProjectPane">
226
187
  <subPane>
227
188
  <expand>
@@ -234,11 +195,6 @@
234
195
  <item name="surikat" type="462c0819:PsiDirectoryNode" />
235
196
  <item name="bin" type="462c0819:PsiDirectoryNode" />
236
197
  </path>
237
- <path>
238
- <item name="surikat" type="b2602c69:ProjectViewProjectNode" />
239
- <item name="surikat" type="462c0819:PsiDirectoryNode" />
240
- <item name="exe" type="462c0819:PsiDirectoryNode" />
241
- </path>
242
198
  <path>
243
199
  <item name="surikat" type="b2602c69:ProjectViewProjectNode" />
244
200
  <item name="surikat" type="462c0819:PsiDirectoryNode" />
@@ -250,23 +206,10 @@
250
206
  <item name="lib" type="462c0819:PsiDirectoryNode" />
251
207
  <item name="surikat" type="462c0819:PsiDirectoryNode" />
252
208
  </path>
253
- <path>
254
- <item name="surikat" type="b2602c69:ProjectViewProjectNode" />
255
- <item name="surikat" type="462c0819:PsiDirectoryNode" />
256
- <item name="lib" type="462c0819:PsiDirectoryNode" />
257
- <item name="surikat" type="462c0819:PsiDirectoryNode" />
258
- <item name="templates" type="462c0819:PsiDirectoryNode" />
259
- </path>
260
- <path>
261
- <item name="surikat" type="b2602c69:ProjectViewProjectNode" />
262
- <item name="surikat" type="462c0819:PsiDirectoryNode" />
263
- <item name="spec" type="462c0819:PsiDirectoryNode" />
264
- </path>
265
209
  </expand>
266
210
  <select />
267
211
  </subPane>
268
212
  </pane>
269
- <pane id="Scope" />
270
213
  </panes>
271
214
  </component>
272
215
  <component name="PropertiesComponent">
@@ -312,7 +255,8 @@
312
255
  <workItem from="1527061061177" duration="45000" />
313
256
  <workItem from="1527080050867" duration="68864000" />
314
257
  <workItem from="1527681663233" duration="14504000" />
315
- <workItem from="1528216280645" duration="1564000" />
258
+ <workItem from="1528216280645" duration="2063000" />
259
+ <workItem from="1528996630109" duration="3555000" />
316
260
  </task>
317
261
  <task id="LOCAL-00001" summary="no gem">
318
262
  <created>1527697580402</created>
@@ -412,11 +356,18 @@
412
356
  <option name="project" value="LOCAL" />
413
357
  <updated>1528217824781</updated>
414
358
  </task>
415
- <option name="localTasksCounter" value="15" />
359
+ <task id="LOCAL-00015" summary="built gem 0.2.4">
360
+ <created>1528218437319</created>
361
+ <option name="number" value="00015" />
362
+ <option name="presentableId" value="LOCAL-00015" />
363
+ <option name="project" value="LOCAL" />
364
+ <updated>1528218437319</updated>
365
+ </task>
366
+ <option name="localTasksCounter" value="16" />
416
367
  <servers />
417
368
  </component>
418
369
  <component name="TimeTrackingManager">
419
- <option name="totallyTimeSpent" value="129024000" />
370
+ <option name="totallyTimeSpent" value="133078000" />
420
371
  </component>
421
372
  <component name="TodoView">
422
373
  <todo-panel id="selected-file">
@@ -428,7 +379,7 @@
428
379
  </todo-panel>
429
380
  </component>
430
381
  <component name="ToolWindowManager">
431
- <frame x="3" y="23" width="1889" height="1057" extended-state="0" />
382
+ <frame x="1" y="23" width="1889" height="1057" extended-state="0" />
432
383
  <editor active="true" />
433
384
  <layout>
434
385
  <window_info anchor="bottom" id="TODO" order="6" weight="0.32977587" />
@@ -438,10 +389,10 @@
438
389
  <window_info anchor="bottom" id="Version Control" order="10" />
439
390
  <window_info anchor="right" id="Mongo Explorer" order="3" />
440
391
  <window_info anchor="bottom" id="Terminal" order="8" />
441
- <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.49199572" visible="true" weight="0.2512182" />
392
+ <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.4909285" visible="true" weight="0.2512182" />
442
393
  <window_info anchor="right" id="Database" order="4" />
443
394
  <window_info anchor="bottom" id="Find" order="1" weight="0.32977587" />
444
- <window_info id="Structure" order="1" sideWeight="0.50800425" side_tool="true" visible="true" weight="0.2512182" />
395
+ <window_info id="Structure" order="1" sideWeight="0.5090715" side_tool="true" visible="true" weight="0.2512182" />
445
396
  <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
446
397
  <window_info id="Favorites" order="2" side_tool="true" />
447
398
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@@ -470,7 +421,8 @@
470
421
  <MESSAGE value="doc fix" />
471
422
  <MESSAGE value="fixed casting of custom types" />
472
423
  <MESSAGE value="increased version to 0.2.4" />
473
- <option name="LAST_COMMIT_MESSAGE" value="increased version to 0.2.4" />
424
+ <MESSAGE value="built gem 0.2.4" />
425
+ <option name="LAST_COMMIT_MESSAGE" value="built gem 0.2.4" />
474
426
  </component>
475
427
  <component name="XDebuggerManager">
476
428
  <breakpoint-manager>
@@ -478,20 +430,6 @@
478
430
  </breakpoint-manager>
479
431
  </component>
480
432
  <component name="editorHistoryManager">
481
- <entry file="file://$PROJECT_DIR$/surikat.gemspec">
482
- <provider selected="true" editor-type-id="text-editor">
483
- <state relative-caret-position="595">
484
- <caret line="35" column="49" selection-start-line="35" selection-start-column="49" selection-end-line="35" selection-end-column="49" />
485
- </state>
486
- </provider>
487
- </entry>
488
- <entry file="file://$PROJECT_DIR$/lib/surikat/types.rb">
489
- <provider selected="true" editor-type-id="text-editor">
490
- <state relative-caret-position="170">
491
- <caret line="10" column="52" selection-start-line="10" selection-start-column="52" selection-end-line="10" selection-end-column="52" />
492
- </state>
493
- </provider>
494
- </entry>
495
433
  <entry file="file://$PROJECT_DIR$/lib/surikat/main.rb" />
496
434
  <entry file="file://$PROJECT_DIR$/TODO">
497
435
  <provider selected="true" editor-type-id="text-editor">
@@ -554,13 +492,6 @@
554
492
  </state>
555
493
  </provider>
556
494
  </entry>
557
- <entry file="file://$PROJECT_DIR$/lib/surikat/templates/aaa_spec.rb.tmpl">
558
- <provider selected="true" editor-type-id="text-editor">
559
- <state relative-caret-position="2550">
560
- <caret line="150" column="3" selection-start-line="150" selection-start-column="3" selection-end-line="150" selection-end-column="3" />
561
- </state>
562
- </provider>
563
- </entry>
564
495
  <entry file="file://$PROJECT_DIR$/lib/surikat/templates/Gemfile.tmpl">
565
496
  <provider selected="true" editor-type-id="text-editor">
566
497
  <state relative-caret-position="510">
@@ -596,13 +527,6 @@
596
527
  </state>
597
528
  </provider>
598
529
  </entry>
599
- <entry file="file://$PROJECT_DIR$/lib/surikat/templates/application.yml.tmpl">
600
- <provider selected="true" editor-type-id="text-editor">
601
- <state relative-caret-position="221">
602
- <caret line="13" column="18" selection-start-line="13" selection-start-column="18" selection-end-line="13" selection-end-column="18" />
603
- </state>
604
- </provider>
605
- </entry>
606
530
  <entry file="file://$USER_HOME$/maculatura/lib2/app/queries/hello_queries.rb">
607
531
  <provider selected="true" editor-type-id="text-editor" />
608
532
  </entry>
@@ -613,13 +537,6 @@
613
537
  </state>
614
538
  </provider>
615
539
  </entry>
616
- <entry file="file://$PROJECT_DIR$/lib/surikat/templates/base_model.rb.tmpl">
617
- <provider selected="true" editor-type-id="text-editor">
618
- <state relative-caret-position="85">
619
- <caret line="5" column="3" selection-start-line="5" selection-start-column="3" selection-end-line="5" selection-end-column="3" />
620
- </state>
621
- </provider>
622
- </entry>
623
540
  <entry file="file://$PROJECT_DIR$/lib/surikat/templates/hello_spec.rb.tmpl">
624
541
  <provider selected="true" editor-type-id="text-editor">
625
542
  <state relative-caret-position="578">
@@ -668,13 +585,6 @@
668
585
  </state>
669
586
  </provider>
670
587
  </entry>
671
- <entry file="file://$PROJECT_DIR$/lib/surikat/scaffold.rb">
672
- <provider selected="true" editor-type-id="text-editor">
673
- <state relative-caret-position="17">
674
- <caret line="149" column="84" lean-forward="true" selection-start-line="149" selection-start-column="25" selection-end-line="149" selection-end-column="84" />
675
- </state>
676
- </provider>
677
- </entry>
678
588
  <entry file="file://$PROJECT_DIR$/lib/surikat/templates/database.yml.tmpl">
679
589
  <provider selected="true" editor-type-id="text-editor">
680
590
  <state relative-caret-position="425">
@@ -689,13 +599,6 @@
689
599
  </state>
690
600
  </provider>
691
601
  </entry>
692
- <entry file="file://$PROJECT_DIR$/.gitignore">
693
- <provider selected="true" editor-type-id="text-editor">
694
- <state relative-caret-position="255">
695
- <caret line="15" selection-start-line="15" selection-end-line="15" />
696
- </state>
697
- </provider>
698
- </entry>
699
602
  <entry file="file://$PROJECT_DIR$/lib/surikat/base_queries.rb">
700
603
  <provider selected="true" editor-type-id="text-editor">
701
604
  <state relative-caret-position="119">
@@ -1209,9 +1112,6 @@
1209
1112
  </state>
1210
1113
  </provider>
1211
1114
  </entry>
1212
- <entry file="file://$PROJECT_DIR$/lib/surikat/base_model.rb">
1213
- <provider selected="true" editor-type-id="text-editor" />
1214
- </entry>
1215
1115
  <entry file="file://$PROJECT_DIR$/lib/surikat/session_manager.rb">
1216
1116
  <provider selected="true" editor-type-id="text-editor">
1217
1117
  <state relative-caret-position="459">
@@ -1219,32 +1119,90 @@
1219
1119
  </state>
1220
1120
  </provider>
1221
1121
  </entry>
1122
+ <entry file="file://$PROJECT_DIR$/surikat.gemspec">
1123
+ <provider selected="true" editor-type-id="text-editor">
1124
+ <state relative-caret-position="488">
1125
+ <caret line="39" column="2" selection-start-line="39" selection-start-column="2" selection-end-line="39" selection-end-column="2" />
1126
+ </state>
1127
+ </provider>
1128
+ </entry>
1129
+ <entry file="file://$PROJECT_DIR$/.gitignore">
1130
+ <provider selected="true" editor-type-id="text-editor">
1131
+ <state relative-caret-position="255">
1132
+ <caret line="15" selection-start-line="15" selection-end-line="15" />
1133
+ </state>
1134
+ </provider>
1135
+ </entry>
1136
+ <entry file="file://$PROJECT_DIR$/lib/surikat/templates/aaa_spec.rb.tmpl">
1137
+ <provider selected="true" editor-type-id="text-editor">
1138
+ <state relative-caret-position="2550">
1139
+ <caret line="150" column="3" selection-start-line="150" selection-start-column="3" selection-end-line="150" selection-end-column="3" />
1140
+ </state>
1141
+ </provider>
1142
+ </entry>
1143
+ <entry file="file://$PROJECT_DIR$/lib/surikat/templates/application.yml.tmpl">
1144
+ <provider selected="true" editor-type-id="text-editor">
1145
+ <state relative-caret-position="221">
1146
+ <caret line="13" column="18" selection-start-line="13" selection-start-column="18" selection-end-line="13" selection-end-column="18" />
1147
+ </state>
1148
+ </provider>
1149
+ </entry>
1150
+ <entry file="file://$PROJECT_DIR$/lib/surikat/templates/base_model.rb.tmpl">
1151
+ <provider selected="true" editor-type-id="text-editor">
1152
+ <state relative-caret-position="85">
1153
+ <caret line="5" column="3" selection-start-line="5" selection-start-column="3" selection-end-line="5" selection-end-column="3" />
1154
+ </state>
1155
+ </provider>
1156
+ </entry>
1157
+ <entry file="file://$APPLICATION_HOME_DIR$/rubystubs24/kernel.rb">
1158
+ <provider selected="true" editor-type-id="text-editor">
1159
+ <state relative-caret-position="305">
1160
+ <caret line="2969" column="8" selection-start-line="2969" selection-start-column="8" selection-end-line="2969" selection-end-column="8" />
1161
+ </state>
1162
+ </provider>
1163
+ </entry>
1164
+ <entry file="file://$PROJECT_DIR$/lib/surikat/base_model.rb">
1165
+ <provider selected="true" editor-type-id="text-editor">
1166
+ <state relative-caret-position="17">
1167
+ <caret line="1" column="9" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="9" />
1168
+ </state>
1169
+ </provider>
1170
+ </entry>
1171
+ <entry file="file://$PROJECT_DIR$/bin/postinstall">
1172
+ <provider selected="true" editor-type-id="text-editor">
1173
+ <state relative-caret-position="391">
1174
+ <caret line="23" column="38" selection-start-line="23" selection-start-column="38" selection-end-line="23" selection-end-column="38" />
1175
+ </state>
1176
+ </provider>
1177
+ </entry>
1178
+ <entry file="file://$PROJECT_DIR$/lib/surikat/scaffold.rb">
1179
+ <provider selected="true" editor-type-id="text-editor">
1180
+ <state relative-caret-position="590">
1181
+ <caret line="490" column="6" selection-start-line="490" selection-start-column="6" selection-end-line="490" selection-end-column="6" />
1182
+ </state>
1183
+ </provider>
1184
+ </entry>
1222
1185
  <entry file="file://$PROJECT_DIR$/README.md">
1223
1186
  <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
1224
1187
  <state split_layout="SPLIT">
1225
- <first_editor relative-caret-position="17">
1226
- <caret line="189" column="4" selection-start-line="189" selection-start-column="4" selection-end-line="189" selection-end-column="4" />
1188
+ <first_editor relative-caret-position="583">
1189
+ <caret line="401" selection-start-line="401" selection-end-line="401" />
1227
1190
  </first_editor>
1228
1191
  <second_editor />
1229
1192
  </state>
1230
1193
  </provider>
1231
1194
  </entry>
1232
- <entry file="file://$PROJECT_DIR$/TODO">
1195
+ <entry file="file://$PROJECT_DIR$/lib/surikat.rb">
1233
1196
  <provider selected="true" editor-type-id="text-editor">
1234
- <state relative-caret-position="476">
1235
- <caret line="28" column="74" selection-start-line="28" selection-start-column="74" selection-end-line="28" selection-end-column="74" />
1197
+ <state relative-caret-position="755">
1198
+ <caret line="149" column="54" selection-start-line="149" selection-start-column="54" selection-end-line="149" selection-end-column="54" />
1236
1199
  </state>
1237
1200
  </provider>
1238
1201
  </entry>
1239
- <entry file="file://$PROJECT_DIR$/lib/surikat.rb">
1202
+ <entry file="file://$PROJECT_DIR$/TODO">
1240
1203
  <provider selected="true" editor-type-id="text-editor">
1241
- <state relative-caret-position="381">
1242
- <caret line="81" lean-forward="true" selection-start-line="81" selection-end-line="81" />
1243
- <folding>
1244
- <element signature="e#2343#9042#0" />
1245
- <element signature="e#9048#9302#0" />
1246
- <element signature="e#9308#10900#0" />
1247
- </folding>
1204
+ <state relative-caret-position="476">
1205
+ <caret line="28" column="2" selection-start-line="28" selection-start-column="2" selection-end-line="28" selection-end-column="2" />
1248
1206
  </state>
1249
1207
  </provider>
1250
1208
  </entry>
@@ -1255,12 +1213,5 @@
1255
1213
  </state>
1256
1214
  </provider>
1257
1215
  </entry>
1258
- <entry file="file://$PROJECT_DIR$/surikat.gemspec">
1259
- <provider selected="true" editor-type-id="text-editor">
1260
- <state relative-caret-position="578">
1261
- <caret line="39" column="2" selection-start-line="39" selection-start-column="2" selection-end-line="39" selection-end-column="2" />
1262
- </state>
1263
- </provider>
1264
- </entry>
1265
1216
  </component>
1266
1217
  </project>
data/README.md CHANGED
@@ -398,10 +398,17 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
398
398
 
399
399
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
400
400
 
401
+ To install the gem locally:
402
+ `gem uninstall -x surikat && gem build surikat.gemspec && gem install surikat --no-ri --no-rdoc && ruby bin/postinstall`
403
+
401
404
  ## Contributing
402
405
 
403
406
  Bug reports and pull requests are welcome on GitHub at https://github.com/alxx/surikat.
404
407
 
408
+ ## Version
409
+
410
+ This code reflects version 0.2.4.
411
+
405
412
  ## License
406
413
 
407
414
  Author: Alex Deva (me@alxx.se)
@@ -0,0 +1,25 @@
1
+ #!ruby
2
+
3
+ def add_version_to_readme
4
+ require './lib/surikat/version'
5
+ require 'fileutils'
6
+
7
+ text = File.read 'README.md'
8
+ new_text = text.gsub(/(reflects version )\d+\.\d+\.\d+/, '\1' + Surikat::VERSION)
9
+
10
+ if new_text.length > 1000
11
+
12
+ File.open('README.md.new', 'w') do |f|
13
+ f.write new_text
14
+ end
15
+
16
+ FileUtils.mv 'README.md.new', 'README.md'
17
+
18
+ else
19
+ puts "Suspect: readme has too few characters."
20
+ end
21
+
22
+ end
23
+
24
+ puts "Running post-install scripts..."
25
+ add_version_to_readme
@@ -1,10 +1,7 @@
1
- require 'surikat/version'
1
+ require('surikat/version')
2
2
 
3
3
  module Surikat
4
- require 'active_support'
5
- require 'graphql/libgraphqlparser'
6
-
7
- require 'surikat/yaml_configurator'
4
+ %w(active_support graphql/libgraphqlparser surikat/yaml_configurator).each { |g| require g }
8
5
 
9
6
  class << self
10
7
  def config
@@ -15,18 +12,14 @@ module Surikat
15
12
  end
16
13
  end
17
14
 
18
- require 'surikat/base_queries'
19
- require 'surikat/base_model'
20
- require 'surikat/base_type'
15
+ %w(base_queries base_model base_type).each { |g| require "surikat/#{g}" }
21
16
 
22
17
  # Require all models and queries
23
18
  %w(queries models).each do |dir|
24
- Dir.glob("#{FileUtils.pwd}/app/#{dir}/*.rb").each {|f| require(f)}
19
+ Dir.glob("#{FileUtils.pwd}/app/#{dir}/*.rb").each { |f| require(f) }
25
20
  end
26
- require 'surikat/types'
27
21
 
28
- require 'surikat/routes'
29
- require 'surikat/session'
22
+ %w(types routes session).each { |g| require "surikat/#{g}" }
30
23
 
31
24
  class << self
32
25
  def types
@@ -110,6 +103,13 @@ module Surikat
110
103
  \tclass of data: #{data.class}
111
104
  \ttype_name: #{type_name.inspect}" if self.options[:debug]
112
105
 
106
+ type_name_is_array = [type_name[0], type_name[-1]].join == '[]'
107
+
108
+ # When no AR record was found, return a nil value rather than an empty instance
109
+ if data.class.to_s.include?('ActiveRecord_Relation') && data.empty?
110
+ return type_name_is_array ? [] : nil
111
+ end
112
+
113
113
  type_name_single = type_name.gsub(/[\[\]\!]/, '')
114
114
 
115
115
  if Types::BASIC.include? type_name_single
@@ -135,7 +135,7 @@ module Surikat
135
135
  method_selectors = shallow_selectors
136
136
  end
137
137
 
138
- type_name_is_array = [type_name[0], type_name[-1]].join == '[]'
138
+
139
139
 
140
140
  puts "
141
141
  \ttype_name_single: #{type_name_single}
@@ -1,5 +1,6 @@
1
- require 'active_record'
2
- require 'ransack'
1
+ %w(active_record ransack).each do |g|
2
+ require g
3
+ end
3
4
 
4
5
  module Surikat
5
6
 
@@ -1,3 +1,3 @@
1
1
  module Surikat
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: surikat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Deva
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2018-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -219,6 +219,7 @@ files:
219
219
  - README.md
220
220
  - Rakefile
221
221
  - bin/console
222
+ - bin/postinstall
222
223
  - bin/setup
223
224
  - exe/surikat
224
225
  - lib/surikat.rb