binky-builder 0.4.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.idea/workspace.xml +180 -132
- data/README.md +8 -2
- data/lib/binky/builder.rb +7 -6
- data/lib/binky/builder/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e46f9b7c4de7db6f057e4cfd4b95003477e0bb38690b0afd8ad1225cdb74c4f
|
4
|
+
data.tar.gz: e60a47865a0808cbd95bd3e88061e7cf85f9714f160021b4f12fee63ec65c6ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 226453a1025082447e2acf396845e44c03bead9a8cf1d8c5c94d64a8c42cbea3543889786b53b30864858de6c7379a6a87d548e1960844886f296d977360a5eb
|
7
|
+
data.tar.gz: b43b8bc0858299c65f247914aa39808647b6046ab7c03d13cbb0f2c8d1463cf58e119037d00c86eb7bfd3d9319a4e787552a09166dd218f7b409f8f17b3c3711
|
data/.gitignore
CHANGED
data/.idea/workspace.xml
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
|
-
<list default="true" id="c1900bce-76f3-4483-9969-b14ec05dbe50" name="Default Changelist" comment="">
|
5
|
-
<change beforePath="$PROJECT_DIR
|
6
|
-
<change beforePath="$PROJECT_DIR$/lib/binky/builder.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/binky/builder.rb" afterDir="false" />
|
4
|
+
<list default="true" id="c1900bce-76f3-4483-9969-b14ec05dbe50" name="Default Changelist" comment="Binky Builder gem initial commit.">
|
5
|
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
7
6
|
<change beforePath="$PROJECT_DIR$/lib/binky/builder/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/binky/builder/version.rb" afterDir="false" />
|
8
|
-
<change beforePath="$PROJECT_DIR$/test/binky/builder_test.rb" beforeDir="false" afterPath="$PROJECT_DIR$/test/binky/builder_test.rb" afterDir="false" />
|
9
7
|
</list>
|
10
8
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
11
9
|
<option name="SHOW_DIALOG" value="false" />
|
@@ -18,35 +16,35 @@
|
|
18
16
|
<file pinned="false" current-in-tab="false">
|
19
17
|
<entry file="file://$PROJECT_DIR$/lib/binky/builder.rb">
|
20
18
|
<provider selected="true" editor-type-id="text-editor">
|
21
|
-
<state relative-caret-position="
|
22
|
-
<caret line="
|
19
|
+
<state relative-caret-position="390">
|
20
|
+
<caret line="15" column="13" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
|
23
21
|
</state>
|
24
22
|
</provider>
|
25
23
|
</entry>
|
26
24
|
</file>
|
27
|
-
<file pinned="false" current-in-tab="
|
28
|
-
<entry file="file://$
|
25
|
+
<file pinned="false" current-in-tab="true">
|
26
|
+
<entry file="file://$PROJECT_DIR$/lib/binky/builder/version.rb">
|
29
27
|
<provider selected="true" editor-type-id="text-editor">
|
30
|
-
<state relative-caret-position="
|
31
|
-
<caret line="
|
28
|
+
<state relative-caret-position="52">
|
29
|
+
<caret line="2" column="18" selection-start-line="2" selection-start-column="18" selection-end-line="2" selection-end-column="18" />
|
32
30
|
</state>
|
33
31
|
</provider>
|
34
32
|
</entry>
|
35
33
|
</file>
|
36
34
|
<file pinned="false" current-in-tab="false">
|
37
|
-
<entry file="file://$
|
35
|
+
<entry file="file://$PROJECT_DIR$/test/test_helper.rb">
|
38
36
|
<provider selected="true" editor-type-id="text-editor">
|
39
|
-
<state relative-caret-position="
|
40
|
-
<caret line="
|
37
|
+
<state relative-caret-position="104">
|
38
|
+
<caret line="4" selection-start-line="4" selection-end-line="4" />
|
41
39
|
</state>
|
42
40
|
</provider>
|
43
41
|
</entry>
|
44
42
|
</file>
|
45
|
-
<file pinned="false" current-in-tab="
|
46
|
-
<entry file="file://$PROJECT_DIR
|
43
|
+
<file pinned="false" current-in-tab="false">
|
44
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
47
45
|
<provider selected="true" editor-type-id="text-editor">
|
48
|
-
<state relative-caret-position="
|
49
|
-
<caret line="
|
46
|
+
<state relative-caret-position="208">
|
47
|
+
<caret line="8" column="8" selection-start-line="8" selection-start-column="8" selection-end-line="8" selection-end-column="8" />
|
50
48
|
</state>
|
51
49
|
</provider>
|
52
50
|
</entry>
|
@@ -55,8 +53,8 @@
|
|
55
53
|
<entry file="file://$PROJECT_DIR$/README.md">
|
56
54
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
57
55
|
<state split_layout="SPLIT">
|
58
|
-
<first_editor relative-caret-position="
|
59
|
-
<caret line="
|
56
|
+
<first_editor relative-caret-position="1033">
|
57
|
+
<caret line="44" column="5" lean-forward="true" selection-start-line="44" selection-start-column="5" selection-end-line="44" selection-end-column="5" />
|
60
58
|
</first_editor>
|
61
59
|
<second_editor />
|
62
60
|
</state>
|
@@ -64,19 +62,19 @@
|
|
64
62
|
</entry>
|
65
63
|
</file>
|
66
64
|
<file pinned="false" current-in-tab="false">
|
67
|
-
<entry file="file://$PROJECT_DIR$/test/
|
65
|
+
<entry file="file://$PROJECT_DIR$/test/binky/builder_test.rb">
|
68
66
|
<provider selected="true" editor-type-id="text-editor">
|
69
|
-
<state relative-caret-position="
|
70
|
-
<caret line="
|
67
|
+
<state relative-caret-position="182">
|
68
|
+
<caret line="67" column="34" selection-start-line="67" selection-start-column="34" selection-end-line="67" selection-end-column="34" />
|
71
69
|
</state>
|
72
70
|
</provider>
|
73
71
|
</entry>
|
74
72
|
</file>
|
75
73
|
<file pinned="false" current-in-tab="false">
|
76
|
-
<entry file="file://$
|
74
|
+
<entry file="file://$USER_HOME$/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/minitest-5.14.1/lib/minitest/assertions.rb">
|
77
75
|
<provider selected="true" editor-type-id="text-editor">
|
78
|
-
<state relative-caret-position="
|
79
|
-
<caret line="
|
76
|
+
<state relative-caret-position="189">
|
77
|
+
<caret line="230" selection-start-line="230" selection-end-line="230" />
|
80
78
|
</state>
|
81
79
|
</provider>
|
82
80
|
</entry>
|
@@ -102,8 +100,8 @@
|
|
102
100
|
<file pinned="false" current-in-tab="false">
|
103
101
|
<entry file="file://$USER_HOME$/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/minitest-5.14.1/lib/minitest/test.rb">
|
104
102
|
<provider selected="true" editor-type-id="text-editor">
|
105
|
-
<state relative-caret-position="
|
106
|
-
<caret line="
|
103
|
+
<state relative-caret-position="189">
|
104
|
+
<caret line="100" selection-start-line="100" selection-end-line="100" />
|
107
105
|
</state>
|
108
106
|
</provider>
|
109
107
|
</entry>
|
@@ -122,6 +120,7 @@
|
|
122
120
|
<find>instance_</find>
|
123
121
|
<find>instance_method</find>
|
124
122
|
<find>block</find>
|
123
|
+
<find>to_hash</find>
|
125
124
|
</findStrings>
|
126
125
|
</component>
|
127
126
|
<component name="Git.Settings">
|
@@ -135,6 +134,7 @@
|
|
135
134
|
<option value="$PROJECT_DIR$/README.md" />
|
136
135
|
<option value="$PROJECT_DIR$/lib/binky/builder.rb" />
|
137
136
|
<option value="$PROJECT_DIR$/test/binky/builder_test.rb" />
|
137
|
+
<option value="$PROJECT_DIR$/.gitignore" />
|
138
138
|
<option value="$PROJECT_DIR$/lib/binky/builder/version.rb" />
|
139
139
|
</list>
|
140
140
|
</option>
|
@@ -158,46 +158,56 @@
|
|
158
158
|
</component>
|
159
159
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
160
160
|
<component name="ProjectView">
|
161
|
-
<navigator proportions="" version="1">
|
161
|
+
<navigator currentView="Scope" currentSubView="Scope 'Project Files'; set:Project Files; class com.intellij.psi.search.scope.ProjectFilesScope" proportions="" version="1">
|
162
162
|
<foldersAlwaysOnTop value="true" />
|
163
163
|
</navigator>
|
164
164
|
<panes>
|
165
|
-
<pane id="Scope"
|
166
|
-
|
167
|
-
<subPane>
|
165
|
+
<pane id="Scope">
|
166
|
+
<subPane subId="Scope 'Project Files'; set:Project Files; class com.intellij.psi.search.scope.ProjectFilesScope">
|
168
167
|
<expand>
|
169
168
|
<path>
|
170
|
-
<item name="binky-builder" type="
|
171
|
-
<item name="binky-builder" type="
|
169
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
170
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
172
171
|
</path>
|
173
172
|
<path>
|
174
|
-
<item name="binky-builder" type="
|
175
|
-
<item name="binky-builder" type="
|
176
|
-
<item name="lib" type="
|
173
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
174
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
175
|
+
<item name="lib" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
177
176
|
</path>
|
178
177
|
<path>
|
179
|
-
<item name="binky-builder" type="
|
180
|
-
<item name="binky-builder" type="
|
181
|
-
<item name="lib" type="
|
182
|
-
<item name="binky" type="
|
178
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
179
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
180
|
+
<item name="lib" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
181
|
+
<item name="binky" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
183
182
|
</path>
|
184
183
|
<path>
|
185
|
-
<item name="binky-builder" type="
|
186
|
-
<item name="binky-builder" type="
|
187
|
-
<item name="lib" type="
|
188
|
-
<item name="binky" type="
|
189
|
-
<item name="builder" type="
|
184
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
185
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
186
|
+
<item name="lib" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
187
|
+
<item name="binky" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
188
|
+
<item name="builder" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
190
189
|
</path>
|
191
190
|
<path>
|
192
|
-
<item name="binky-builder" type="
|
193
|
-
<item name="binky-builder" type="
|
194
|
-
<item name="test" type="
|
191
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
192
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
193
|
+
<item name="test" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
195
194
|
</path>
|
195
|
+
<path>
|
196
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
197
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
198
|
+
<item name="test" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
199
|
+
<item name="binky" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
200
|
+
</path>
|
201
|
+
</expand>
|
202
|
+
<select />
|
203
|
+
</subPane>
|
204
|
+
</pane>
|
205
|
+
<pane id="ProjectPane">
|
206
|
+
<subPane>
|
207
|
+
<expand>
|
196
208
|
<path>
|
197
209
|
<item name="binky-builder" type="b2602c69:ProjectViewProjectNode" />
|
198
210
|
<item name="binky-builder" type="462c0819:PsiDirectoryNode" />
|
199
|
-
<item name="test" type="462c0819:PsiDirectoryNode" />
|
200
|
-
<item name="binky" type="462c0819:PsiDirectoryNode" />
|
201
211
|
</path>
|
202
212
|
</expand>
|
203
213
|
<select />
|
@@ -206,8 +216,9 @@
|
|
206
216
|
</panes>
|
207
217
|
</component>
|
208
218
|
<component name="PropertiesComponent">
|
219
|
+
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
209
220
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
210
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR
|
221
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/../vortrics" />
|
211
222
|
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
212
223
|
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
213
224
|
<property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
|
@@ -224,7 +235,7 @@
|
|
224
235
|
</list>
|
225
236
|
</option>
|
226
237
|
</component>
|
227
|
-
<component name="RunManager" selected="Test::Unit/Shoulda/Minitest.All tests in
|
238
|
+
<component name="RunManager" selected="Test::Unit/Shoulda/Minitest.All tests in binky-builder: binky-builder">
|
228
239
|
<configuration name="All tests in binky-builder: binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
229
240
|
<module name="binky-builder" />
|
230
241
|
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
@@ -343,9 +354,9 @@
|
|
343
354
|
</configuration>
|
344
355
|
<recent_temporary>
|
345
356
|
<list>
|
346
|
-
<item itemvalue="Test::Unit/Shoulda/Minitest.All tests in test: binky-builder" />
|
347
|
-
<item itemvalue="Test::Unit/Shoulda/Minitest.Run test 'builder_test': binky-builder" />
|
348
357
|
<item itemvalue="Test::Unit/Shoulda/Minitest.All tests in binky-builder: binky-builder" />
|
358
|
+
<item itemvalue="Test::Unit/Shoulda/Minitest.Run test 'builder_test': binky-builder" />
|
359
|
+
<item itemvalue="Test::Unit/Shoulda/Minitest.All tests in test: binky-builder" />
|
349
360
|
<item itemvalue="Test::Unit/Shoulda/Minitest.test_using_builder: binky-builder" />
|
350
361
|
</list>
|
351
362
|
</recent_temporary>
|
@@ -361,7 +372,9 @@
|
|
361
372
|
<workItem from="1596190243364" duration="5305000" />
|
362
373
|
<workItem from="1596196456720" duration="5542000" />
|
363
374
|
<workItem from="1596439308667" duration="19176000" />
|
364
|
-
<workItem from="1596462743515" duration="
|
375
|
+
<workItem from="1596462743515" duration="6742000" />
|
376
|
+
<workItem from="1596538937194" duration="1082000" />
|
377
|
+
<workItem from="1596613602740" duration="3049000" />
|
365
378
|
</task>
|
366
379
|
<task id="LOCAL-00001" summary="Binky Builder gem initial commit.">
|
367
380
|
<created>1596191104643</created>
|
@@ -447,43 +460,92 @@
|
|
447
460
|
<option name="project" value="LOCAL" />
|
448
461
|
<updated>1596463070270</updated>
|
449
462
|
</task>
|
450
|
-
<
|
463
|
+
<task id="LOCAL-00013" summary="Binky Builder gem initial commit.">
|
464
|
+
<created>1596467478817</created>
|
465
|
+
<option name="number" value="00013" />
|
466
|
+
<option name="presentableId" value="LOCAL-00013" />
|
467
|
+
<option name="project" value="LOCAL" />
|
468
|
+
<updated>1596467478817</updated>
|
469
|
+
</task>
|
470
|
+
<task id="LOCAL-00014" summary="Binky Builder gem initial commit.">
|
471
|
+
<created>1596469840825</created>
|
472
|
+
<option name="number" value="00014" />
|
473
|
+
<option name="presentableId" value="LOCAL-00014" />
|
474
|
+
<option name="project" value="LOCAL" />
|
475
|
+
<updated>1596469840825</updated>
|
476
|
+
</task>
|
477
|
+
<task id="LOCAL-00015" summary="Binky Builder gem initial commit.">
|
478
|
+
<created>1596469918368</created>
|
479
|
+
<option name="number" value="00015" />
|
480
|
+
<option name="presentableId" value="LOCAL-00015" />
|
481
|
+
<option name="project" value="LOCAL" />
|
482
|
+
<updated>1596469918368</updated>
|
483
|
+
</task>
|
484
|
+
<task id="LOCAL-00016" summary="Binky Builder gem initial commit.">
|
485
|
+
<created>1596469949471</created>
|
486
|
+
<option name="number" value="00016" />
|
487
|
+
<option name="presentableId" value="LOCAL-00016" />
|
488
|
+
<option name="project" value="LOCAL" />
|
489
|
+
<updated>1596469949471</updated>
|
490
|
+
</task>
|
491
|
+
<task id="LOCAL-00017" summary="Binky Builder gem initial commit.">
|
492
|
+
<created>1596470177093</created>
|
493
|
+
<option name="number" value="00017" />
|
494
|
+
<option name="presentableId" value="LOCAL-00017" />
|
495
|
+
<option name="project" value="LOCAL" />
|
496
|
+
<updated>1596470177093</updated>
|
497
|
+
</task>
|
498
|
+
<task id="LOCAL-00018" summary="Binky Builder gem initial commit.">
|
499
|
+
<created>1596616508792</created>
|
500
|
+
<option name="number" value="00018" />
|
501
|
+
<option name="presentableId" value="LOCAL-00018" />
|
502
|
+
<option name="project" value="LOCAL" />
|
503
|
+
<updated>1596616508792</updated>
|
504
|
+
</task>
|
505
|
+
<task id="LOCAL-00019" summary="Binky Builder gem initial commit.">
|
506
|
+
<created>1596616621095</created>
|
507
|
+
<option name="number" value="00019" />
|
508
|
+
<option name="presentableId" value="LOCAL-00019" />
|
509
|
+
<option name="project" value="LOCAL" />
|
510
|
+
<updated>1596616621095</updated>
|
511
|
+
</task>
|
512
|
+
<option name="localTasksCounter" value="20" />
|
451
513
|
<servers />
|
452
514
|
</component>
|
453
515
|
<component name="TestHistory">
|
454
|
-
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.
|
516
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 08m 26s.xml">
|
455
517
|
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
456
518
|
</history-entry>
|
457
|
-
<history-entry file="
|
458
|
-
<configuration name="
|
519
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 10m 58s.xml">
|
520
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
459
521
|
</history-entry>
|
460
|
-
<history-entry file="
|
461
|
-
<configuration name="
|
522
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 11m 45s.xml">
|
523
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
462
524
|
</history-entry>
|
463
|
-
<history-entry file="
|
464
|
-
<configuration name="
|
525
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 12m 53s.xml">
|
526
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
465
527
|
</history-entry>
|
466
|
-
<history-entry file="
|
467
|
-
<configuration name="
|
528
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 23m 04s.xml">
|
529
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
468
530
|
</history-entry>
|
469
|
-
<history-entry file="
|
470
|
-
<configuration name="
|
531
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 24m 25s.xml">
|
532
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
471
533
|
</history-entry>
|
472
|
-
<history-entry file="
|
473
|
-
<configuration name="
|
534
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 24m 57s.xml">
|
535
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
474
536
|
</history-entry>
|
475
|
-
<history-entry file="
|
476
|
-
<configuration name="
|
537
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 28m 06s.xml">
|
538
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
477
539
|
</history-entry>
|
478
|
-
<history-entry file="
|
479
|
-
<configuration name="
|
540
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 28m 47s.xml">
|
541
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
480
542
|
</history-entry>
|
481
|
-
<history-entry file="
|
482
|
-
<configuration name="All tests in
|
543
|
+
<history-entry file="All_tests_in_binky-builder__binky-builder - 2020.08.05 at 10h 29m 10s.xml">
|
544
|
+
<configuration name="All tests in binky-builder: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
483
545
|
</history-entry>
|
484
546
|
</component>
|
485
547
|
<component name="TimeTrackingManager">
|
486
|
-
<option name="totallyTimeSpent" value="
|
548
|
+
<option name="totallyTimeSpent" value="40896000" />
|
487
549
|
</component>
|
488
550
|
<component name="ToolWindowManager">
|
489
551
|
<frame x="1920" y="28" width="1920" height="1052" extended-state="6" />
|
@@ -494,8 +556,8 @@
|
|
494
556
|
<window_info id="Favorites" order="2" side_tool="true" />
|
495
557
|
<window_info anchor="bottom" id="Message" order="0" />
|
496
558
|
<window_info anchor="bottom" id="Find" order="1" weight="0.32976827" />
|
497
|
-
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.
|
498
|
-
<window_info anchor="bottom" id="Debug" order="3" weight="0.
|
559
|
+
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.35523614" />
|
560
|
+
<window_info anchor="bottom" id="Debug" order="3" weight="0.35523614" />
|
499
561
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
500
562
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
501
563
|
<window_info anchor="bottom" id="TODO" order="6" />
|
@@ -517,36 +579,10 @@
|
|
517
579
|
<MESSAGE value="Binky Builder gem initial commit." />
|
518
580
|
<option name="LAST_COMMIT_MESSAGE" value="Binky Builder gem initial commit." />
|
519
581
|
</component>
|
520
|
-
<component name="XDebuggerManager">
|
521
|
-
<breakpoint-manager>
|
522
|
-
<breakpoints>
|
523
|
-
<line-breakpoint enabled="true" type="ruby-line">
|
524
|
-
<url>file://$PROJECT_DIR$/lib/binky/builder.rb</url>
|
525
|
-
<line>96</line>
|
526
|
-
<option name="timeStamp" value="6" />
|
527
|
-
</line-breakpoint>
|
528
|
-
<line-breakpoint enabled="true" type="ruby-line">
|
529
|
-
<url>file://$PROJECT_DIR$/lib/binky/builder.rb</url>
|
530
|
-
<line>13</line>
|
531
|
-
<option name="timeStamp" value="9" />
|
532
|
-
</line-breakpoint>
|
533
|
-
<line-breakpoint enabled="true" type="ruby-line">
|
534
|
-
<url>file://$PROJECT_DIR$/test/binky/builder_test.rb</url>
|
535
|
-
<line>47</line>
|
536
|
-
<option name="timeStamp" value="10" />
|
537
|
-
</line-breakpoint>
|
538
|
-
<line-breakpoint enabled="true" type="ruby-line">
|
539
|
-
<url>file://$PROJECT_DIR$/test/binky/builder_test.rb</url>
|
540
|
-
<line>86</line>
|
541
|
-
<option name="timeStamp" value="11" />
|
542
|
-
</line-breakpoint>
|
543
|
-
</breakpoints>
|
544
|
-
</breakpoint-manager>
|
545
|
-
</component>
|
546
582
|
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
547
|
-
<SUITE FILE_PATH="coverage/binky_builder@All_tests_in_binky_builder__binky_builder.rcov" NAME="All tests in binky-builder: binky-builder Coverage Results" MODIFIED="
|
548
|
-
<SUITE FILE_PATH="coverage/binky_builder@All_tests_in_test__binky_builder.rcov" NAME="All tests in test: binky-builder Coverage Results" MODIFIED="
|
549
|
-
<SUITE FILE_PATH="coverage/binky_builder@Run_test__builder_test___binky_builder.rcov" NAME="Run test 'builder_test': binky-builder Coverage Results" MODIFIED="
|
583
|
+
<SUITE FILE_PATH="coverage/binky_builder@All_tests_in_binky_builder__binky_builder.rcov" NAME="All tests in binky-builder: binky-builder Coverage Results" MODIFIED="1596616148912" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="binky-builder" />
|
584
|
+
<SUITE FILE_PATH="coverage/binky_builder@All_tests_in_test__binky_builder.rcov" NAME="All tests in test: binky-builder Coverage Results" MODIFIED="1596469552101" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="binky-builder" />
|
585
|
+
<SUITE FILE_PATH="coverage/binky_builder@Run_test__builder_test___binky_builder.rcov" NAME="Run test 'builder_test': binky-builder Coverage Results" MODIFIED="1596616126166" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="binky-builder" />
|
550
586
|
<SUITE FILE_PATH="coverage/binky_builder@test_using_builder__binky_builder.rcov" NAME="test_using_builder: binky-builder Coverage Results" MODIFIED="1596457170843" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="binky-builder" />
|
551
587
|
</component>
|
552
588
|
<component name="debuggerHistoryManager">
|
@@ -606,19 +642,9 @@
|
|
606
642
|
<entry file="file://$PROJECT_DIR$/.travis.yml">
|
607
643
|
<provider selected="true" editor-type-id="text-editor" />
|
608
644
|
</entry>
|
609
|
-
<entry file="file://$PROJECT_DIR$/.gitignore">
|
610
|
-
<provider selected="true" editor-type-id="text-editor" />
|
611
|
-
</entry>
|
612
645
|
<entry file="file://$PROJECT_DIR$/LICENSE.txt">
|
613
646
|
<provider selected="true" editor-type-id="text-editor" />
|
614
647
|
</entry>
|
615
|
-
<entry file="file://$PROJECT_DIR$/binky-builder.gemspec">
|
616
|
-
<provider selected="true" editor-type-id="text-editor">
|
617
|
-
<state relative-caret-position="416">
|
618
|
-
<caret line="16" column="47" selection-start-line="16" selection-start-column="47" selection-end-line="16" selection-end-column="47" />
|
619
|
-
</state>
|
620
|
-
</provider>
|
621
|
-
</entry>
|
622
648
|
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/string.rb">
|
623
649
|
<provider selected="true" editor-type-id="text-editor">
|
624
650
|
<state relative-caret-position="33306">
|
@@ -633,10 +659,11 @@
|
|
633
659
|
</state>
|
634
660
|
</provider>
|
635
661
|
</entry>
|
636
|
-
<entry file="file://$PROJECT_DIR$/
|
662
|
+
<entry file="file://$PROJECT_DIR$/Gemfile.lock" />
|
663
|
+
<entry file="file://$PROJECT_DIR$/binky-builder.gemspec">
|
637
664
|
<provider selected="true" editor-type-id="text-editor">
|
638
|
-
<state relative-caret-position="
|
639
|
-
<caret line="
|
665
|
+
<state relative-caret-position="546">
|
666
|
+
<caret line="21" column="56" selection-start-line="21" selection-start-column="56" selection-end-line="21" selection-end-column="56" />
|
640
667
|
</state>
|
641
668
|
</provider>
|
642
669
|
</entry>
|
@@ -654,41 +681,62 @@
|
|
654
681
|
</state>
|
655
682
|
</provider>
|
656
683
|
</entry>
|
684
|
+
<entry file="file://$PROJECT_DIR$/test/test_helper.rb">
|
685
|
+
<provider selected="true" editor-type-id="text-editor">
|
686
|
+
<state relative-caret-position="104">
|
687
|
+
<caret line="4" selection-start-line="4" selection-end-line="4" />
|
688
|
+
</state>
|
689
|
+
</provider>
|
690
|
+
</entry>
|
691
|
+
<entry file="file://$USER_HOME$/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/minitest-5.14.1/lib/minitest/test.rb">
|
692
|
+
<provider selected="true" editor-type-id="text-editor">
|
693
|
+
<state relative-caret-position="189">
|
694
|
+
<caret line="100" selection-start-line="100" selection-end-line="100" />
|
695
|
+
</state>
|
696
|
+
</provider>
|
697
|
+
</entry>
|
698
|
+
<entry file="file://$USER_HOME$/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/minitest-5.14.1/lib/minitest/assertions.rb">
|
699
|
+
<provider selected="true" editor-type-id="text-editor">
|
700
|
+
<state relative-caret-position="189">
|
701
|
+
<caret line="230" selection-start-line="230" selection-end-line="230" />
|
702
|
+
</state>
|
703
|
+
</provider>
|
704
|
+
</entry>
|
657
705
|
<entry file="file://$PROJECT_DIR$/README.md">
|
658
706
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
659
707
|
<state split_layout="SPLIT">
|
660
|
-
<first_editor relative-caret-position="
|
661
|
-
<caret line="
|
708
|
+
<first_editor relative-caret-position="1033">
|
709
|
+
<caret line="44" column="5" lean-forward="true" selection-start-line="44" selection-start-column="5" selection-end-line="44" selection-end-column="5" />
|
662
710
|
</first_editor>
|
663
711
|
<second_editor />
|
664
712
|
</state>
|
665
713
|
</provider>
|
666
714
|
</entry>
|
667
|
-
<entry file="file://$
|
715
|
+
<entry file="file://$PROJECT_DIR$/lib/binky/builder.rb">
|
668
716
|
<provider selected="true" editor-type-id="text-editor">
|
669
|
-
<state relative-caret-position="
|
670
|
-
<caret line="
|
717
|
+
<state relative-caret-position="390">
|
718
|
+
<caret line="15" column="13" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
|
671
719
|
</state>
|
672
720
|
</provider>
|
673
721
|
</entry>
|
674
|
-
<entry file="file://$PROJECT_DIR$/
|
722
|
+
<entry file="file://$PROJECT_DIR$/test/binky/builder_test.rb">
|
675
723
|
<provider selected="true" editor-type-id="text-editor">
|
676
|
-
<state relative-caret-position="
|
677
|
-
<caret line="
|
724
|
+
<state relative-caret-position="182">
|
725
|
+
<caret line="67" column="34" selection-start-line="67" selection-start-column="34" selection-end-line="67" selection-end-column="34" />
|
678
726
|
</state>
|
679
727
|
</provider>
|
680
728
|
</entry>
|
681
|
-
<entry file="file://$PROJECT_DIR
|
729
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
682
730
|
<provider selected="true" editor-type-id="text-editor">
|
683
|
-
<state relative-caret-position="
|
684
|
-
<caret line="
|
731
|
+
<state relative-caret-position="208">
|
732
|
+
<caret line="8" column="8" selection-start-line="8" selection-start-column="8" selection-end-line="8" selection-end-column="8" />
|
685
733
|
</state>
|
686
734
|
</provider>
|
687
735
|
</entry>
|
688
736
|
<entry file="file://$PROJECT_DIR$/lib/binky/builder/version.rb">
|
689
737
|
<provider selected="true" editor-type-id="text-editor">
|
690
738
|
<state relative-caret-position="52">
|
691
|
-
<caret line="2" column="
|
739
|
+
<caret line="2" column="18" selection-start-line="2" selection-start-column="18" selection-end-line="2" selection-end-column="18" />
|
692
740
|
</state>
|
693
741
|
</provider>
|
694
742
|
</entry>
|
data/README.md
CHANGED
@@ -38,13 +38,19 @@ Once initialized just use the accessors as any other instance.
|
|
38
38
|
|
39
39
|
### Used on ActiveRecord models
|
40
40
|
Binky-Builder includes another helper that can be used to initialize *ActiveRecord* models based on its column names.
|
41
|
+
In case not using column names but an array of method names, new accessors would be crated to access those methods.
|
41
42
|
```ruby
|
42
43
|
class Issue < ApplicationRecord
|
43
44
|
include Binky::Helper
|
44
45
|
end
|
45
46
|
|
46
|
-
issue = Issue.new.build_by_keys({id: 1234},Issue.column_names) # => Issue.column_names = id:
|
47
|
-
issue.
|
47
|
+
issue = Issue.new.build_by_keys({id: 1234,text: "hocus pocus"},Issue.column_names) # => Issue.column_names = id:
|
48
|
+
issue.as_json # => {id: 1234}
|
49
|
+
|
50
|
+
issue = Issue.new.build_by_keys({id: 1234,text: "hocus pocus"}) # => Issue.column_names = id:
|
51
|
+
issue.id # => {id: 1234}
|
52
|
+
issue.text # => {text: "hocus pocus"}
|
53
|
+
issue.to_hash #=> {id: 1234,text: "hocus pocus"}
|
48
54
|
```
|
49
55
|
|
50
56
|
Call *build_by_keys* method once the model has been initialized passing a json message,
|
data/lib/binky/builder.rb
CHANGED
@@ -7,12 +7,13 @@ module Binky
|
|
7
7
|
# Keys are given through a block.
|
8
8
|
# The result of it it's stored on a instance variable called to_hash and accessible through accessors with same name.
|
9
9
|
def build_by_keys(json = {}, keys = nil)
|
10
|
-
accessor_builder('
|
10
|
+
accessor_builder('to_h',{})
|
11
11
|
k = keys || json&.keys
|
12
12
|
raise ArgumentError unless k&.respond_to?(:each)
|
13
13
|
json.transform_keys!(&:to_s)
|
14
14
|
k.each do |key|
|
15
|
-
|
15
|
+
self.send("#{key}=",nested_hash_value(json, key.to_s))
|
16
|
+
@to_h.merge!({key.to_sym => nested_hash_value(json,key.to_s)})
|
16
17
|
end unless json.nil?
|
17
18
|
yield self if block_given?
|
18
19
|
self
|
@@ -50,6 +51,10 @@ module Binky
|
|
50
51
|
end
|
51
52
|
end
|
52
53
|
|
54
|
+
def method_missing(name,*args)
|
55
|
+
accessor_builder name.to_s.chop, args[0]
|
56
|
+
end
|
57
|
+
|
53
58
|
def attribute_from_inner_key(element, attribute, inner_key = nil)
|
54
59
|
{attribute.to_sym => nested_hash_value(element, inner_key&.present? ? inner_key : attribute.to_s)}
|
55
60
|
end
|
@@ -92,9 +97,5 @@ module Binky
|
|
92
97
|
self.send("#{key}=",nested_hash_value(json, key.to_s))
|
93
98
|
end unless json.nil?
|
94
99
|
end
|
95
|
-
|
96
|
-
def method_missing(name,*args)
|
97
|
-
accessor_builder name.to_s.chop, args[0]
|
98
|
-
end
|
99
100
|
end
|
100
101
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: binky-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduard Garcia Castello
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -18,6 +18,12 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- ".gitignore"
|
21
|
+
- ".idea/.rakeTasks"
|
22
|
+
- ".idea/binky-builder.iml"
|
23
|
+
- ".idea/inspectionProfiles/Project_Default.xml"
|
24
|
+
- ".idea/misc.xml"
|
25
|
+
- ".idea/modules.xml"
|
26
|
+
- ".idea/vcs.xml"
|
21
27
|
- ".idea/workspace.xml"
|
22
28
|
- ".travis.yml"
|
23
29
|
- CODE_OF_CONDUCT.md
|