binky-builder 0.2.2 → 0.3.0
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/.idea/workspace.xml +286 -56
- data/lib/binky/builder.rb +9 -7
- data/lib/binky/builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f533285a0a107689dd61a34d55096c961c2a7da2dfbdbbc534d795685f151c5a
|
4
|
+
data.tar.gz: 766e61344f711e5edcad0a4a9b0045077d65ac693fe36574e5452b421cbdc99d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f92dc7ce6c0f1fb36e3ad43726a59e22e83fe21bd757775fe48a40b51bbb5ae7f64df7750362704d544bf192e440078ce39baa6c6a8fa3be6d4fc08279de7129
|
7
|
+
data.tar.gz: c7fdeaeddd10924184fd95c909c1d962815ea0a51a8f02271e3176f11a615ffcfbff330a92cbff4bc0e4b05d9d9fdd177e1e05eadc535246801d02746b6d6b52
|
data/.idea/workspace.xml
CHANGED
@@ -2,8 +2,10 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="c1900bce-76f3-4483-9969-b14ec05dbe50" name="Default Changelist" comment="">
|
5
|
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
5
6
|
<change beforePath="$PROJECT_DIR$/lib/binky/builder.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/binky/builder.rb" afterDir="false" />
|
6
7
|
<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" />
|
7
9
|
</list>
|
8
10
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
9
11
|
<option name="SHOW_DIALOG" value="false" />
|
@@ -16,8 +18,17 @@
|
|
16
18
|
<file pinned="false" current-in-tab="false">
|
17
19
|
<entry file="file://$PROJECT_DIR$/lib/binky/builder.rb">
|
18
20
|
<provider selected="true" editor-type-id="text-editor">
|
19
|
-
<state relative-caret-position="
|
20
|
-
<caret line="
|
21
|
+
<state relative-caret-position="373">
|
22
|
+
<caret line="88" column="27" lean-forward="true" selection-start-line="88" selection-start-column="27" selection-end-line="88" selection-end-column="27" />
|
23
|
+
</state>
|
24
|
+
</provider>
|
25
|
+
</entry>
|
26
|
+
</file>
|
27
|
+
<file pinned="false" current-in-tab="false">
|
28
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/string.rb">
|
29
|
+
<provider selected="true" editor-type-id="text-editor">
|
30
|
+
<state relative-caret-position="-4057">
|
31
|
+
<caret line="1281" column="8" selection-start-line="1281" selection-start-column="8" selection-end-line="1281" selection-end-column="8" />
|
21
32
|
</state>
|
22
33
|
</provider>
|
23
34
|
</entry>
|
@@ -25,8 +36,8 @@
|
|
25
36
|
<file pinned="false" current-in-tab="false">
|
26
37
|
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/object.rb">
|
27
38
|
<provider selected="true" editor-type-id="text-editor">
|
28
|
-
<state relative-caret-position="
|
29
|
-
<caret line="
|
39
|
+
<state relative-caret-position="970">
|
40
|
+
<caret line="718" column="8" selection-start-line="718" selection-start-column="8" selection-end-line="718" selection-end-column="8" />
|
30
41
|
</state>
|
31
42
|
</provider>
|
32
43
|
</entry>
|
@@ -41,51 +52,58 @@
|
|
41
52
|
</entry>
|
42
53
|
</file>
|
43
54
|
<file pinned="false" current-in-tab="false">
|
44
|
-
<entry file="file://$PROJECT_DIR
|
45
|
-
<provider selected="true" editor-type-id="text-editor"
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
55
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
56
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
57
|
+
<state split_layout="SPLIT">
|
58
|
+
<first_editor relative-caret-position="234">
|
59
|
+
<caret line="54" column="3" selection-start-line="54" selection-start-column="3" selection-end-line="54" selection-end-column="3" />
|
60
|
+
</first_editor>
|
61
|
+
<second_editor />
|
62
|
+
</state>
|
63
|
+
</provider>
|
51
64
|
</entry>
|
52
65
|
</file>
|
53
66
|
<file pinned="false" current-in-tab="false">
|
54
|
-
<entry file="file://$PROJECT_DIR$/
|
67
|
+
<entry file="file://$PROJECT_DIR$/test/test_helper.rb">
|
55
68
|
<provider selected="true" editor-type-id="text-editor">
|
56
|
-
<state relative-caret-position="
|
57
|
-
<caret line="
|
69
|
+
<state relative-caret-position="104">
|
70
|
+
<caret line="4" selection-start-line="4" selection-end-line="4" />
|
58
71
|
</state>
|
59
72
|
</provider>
|
60
73
|
</entry>
|
61
74
|
</file>
|
62
75
|
<file pinned="false" current-in-tab="false">
|
63
|
-
<entry file="file://$PROJECT_DIR$/
|
64
|
-
<provider selected="true" editor-type-id="text-editor"
|
76
|
+
<entry file="file://$PROJECT_DIR$/test/binky/builder_test.rb">
|
77
|
+
<provider selected="true" editor-type-id="text-editor">
|
78
|
+
<state relative-caret-position="191">
|
79
|
+
<caret line="44" column="25" selection-start-line="44" selection-start-column="25" selection-end-line="44" selection-end-column="25" />
|
80
|
+
</state>
|
81
|
+
</provider>
|
65
82
|
</entry>
|
66
83
|
</file>
|
67
84
|
<file pinned="false" current-in-tab="false">
|
68
|
-
<entry file="file://$
|
69
|
-
<provider selected="true" editor-type-id="
|
70
|
-
<state
|
71
|
-
<
|
72
|
-
<caret line="54" column="3" lean-forward="true" selection-start-line="54" selection-start-column="3" selection-end-line="54" selection-end-column="3" />
|
73
|
-
</first_editor>
|
74
|
-
<second_editor />
|
85
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/module.rb">
|
86
|
+
<provider selected="true" editor-type-id="text-editor">
|
87
|
+
<state relative-caret-position="190">
|
88
|
+
<caret line="719" column="33" selection-start-line="719" selection-start-column="18" selection-end-line="719" selection-end-column="33" />
|
75
89
|
</state>
|
76
90
|
</provider>
|
77
91
|
</entry>
|
78
92
|
</file>
|
79
93
|
<file pinned="false" current-in-tab="false">
|
80
|
-
<entry file="file://$
|
81
|
-
<provider selected="true" editor-type-id="text-editor"
|
94
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/basic_object.rb">
|
95
|
+
<provider selected="true" editor-type-id="text-editor">
|
96
|
+
<state relative-caret-position="4913">
|
97
|
+
<caret line="231" column="8" selection-start-line="231" selection-start-column="8" selection-end-line="231" selection-end-column="8" />
|
98
|
+
</state>
|
99
|
+
</provider>
|
82
100
|
</entry>
|
83
101
|
</file>
|
84
102
|
<file pinned="false" current-in-tab="false">
|
85
|
-
<entry file="file://$
|
103
|
+
<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">
|
86
104
|
<provider selected="true" editor-type-id="text-editor">
|
87
|
-
<state relative-caret-position="
|
88
|
-
<caret line="
|
105
|
+
<state relative-caret-position="147">
|
106
|
+
<caret line="198" selection-start-line="198" selection-end-line="198" />
|
89
107
|
</state>
|
90
108
|
</provider>
|
91
109
|
</entry>
|
@@ -101,6 +119,8 @@
|
|
101
119
|
</component>
|
102
120
|
<component name="FindInProjectRecents">
|
103
121
|
<findStrings>
|
122
|
+
<find>instance_</find>
|
123
|
+
<find>instance_method</find>
|
104
124
|
<find>block</find>
|
105
125
|
</findStrings>
|
106
126
|
</component>
|
@@ -112,8 +132,8 @@
|
|
112
132
|
<list>
|
113
133
|
<option value="$PROJECT_DIR$/lib/binky/builder/builder_helper.rb" />
|
114
134
|
<option value="$PROJECT_DIR$/binky-builder.gemspec" />
|
115
|
-
<option value="$PROJECT_DIR$/test/binky/builder_test.rb" />
|
116
135
|
<option value="$PROJECT_DIR$/README.md" />
|
136
|
+
<option value="$PROJECT_DIR$/test/binky/builder_test.rb" />
|
117
137
|
<option value="$PROJECT_DIR$/lib/binky/builder.rb" />
|
118
138
|
<option value="$PROJECT_DIR$/lib/binky/builder/version.rb" />
|
119
139
|
</list>
|
@@ -172,6 +192,12 @@
|
|
172
192
|
<item name="binky-builder" type="462c0819:PsiDirectoryNode" />
|
173
193
|
<item name="test" type="462c0819:PsiDirectoryNode" />
|
174
194
|
</path>
|
195
|
+
<path>
|
196
|
+
<item name="binky-builder" type="b2602c69:ProjectViewProjectNode" />
|
197
|
+
<item name="binky-builder" type="462c0819:PsiDirectoryNode" />
|
198
|
+
<item name="test" type="462c0819:PsiDirectoryNode" />
|
199
|
+
<item name="binky" type="462c0819:PsiDirectoryNode" />
|
200
|
+
</path>
|
175
201
|
</expand>
|
176
202
|
<select />
|
177
203
|
</subPane>
|
@@ -198,7 +224,36 @@
|
|
198
224
|
</list>
|
199
225
|
</option>
|
200
226
|
</component>
|
201
|
-
<component name="RunManager">
|
227
|
+
<component name="RunManager" selected="Test::Unit/Shoulda/Minitest.Run test 'builder_test': binky-builder">
|
228
|
+
<configuration name="All tests in binky-builder: binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
229
|
+
<module name="binky-builder" />
|
230
|
+
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
231
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-Ilib:test" />
|
232
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
233
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
234
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
235
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
236
|
+
<envs>
|
237
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
238
|
+
</envs>
|
239
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
240
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
241
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
|
242
|
+
<COVERAGE_PATTERN ENABLED="true">
|
243
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
244
|
+
</COVERAGE_PATTERN>
|
245
|
+
</EXTENSION>
|
246
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$" />
|
247
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
248
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/{*_test,test_*,*_spec}.rb" />
|
249
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
250
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
|
251
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
252
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
253
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
254
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
255
|
+
<method v="2" />
|
256
|
+
</configuration>
|
202
257
|
<configuration name="All tests in test: binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
203
258
|
<module name="binky-builder" />
|
204
259
|
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
@@ -228,9 +283,70 @@
|
|
228
283
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
229
284
|
<method v="2" />
|
230
285
|
</configuration>
|
286
|
+
<configuration name="Run test 'builder_test': binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
287
|
+
<module name="binky-builder" />
|
288
|
+
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
289
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-Ilib:test" />
|
290
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
291
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
292
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
293
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
294
|
+
<envs>
|
295
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
296
|
+
</envs>
|
297
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
298
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
299
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
|
300
|
+
<COVERAGE_PATTERN ENABLED="true">
|
301
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
302
|
+
</COVERAGE_PATTERN>
|
303
|
+
</EXTENSION>
|
304
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
305
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/binky/builder_test.rb" />
|
306
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
307
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
308
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
309
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
310
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
311
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
312
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
313
|
+
<method v="2" />
|
314
|
+
</configuration>
|
315
|
+
<configuration name="test_using_builder: binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
316
|
+
<module name="binky-builder" />
|
317
|
+
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
318
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-Ilib:test" />
|
319
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
320
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
321
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
322
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
323
|
+
<envs>
|
324
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
325
|
+
</envs>
|
326
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
327
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
328
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
|
329
|
+
<COVERAGE_PATTERN ENABLED="true">
|
330
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
331
|
+
</COVERAGE_PATTERN>
|
332
|
+
</EXTENSION>
|
333
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
334
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/binky/builder_test.rb" />
|
335
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
336
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="test_using_builder" />
|
337
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_METHOD" />
|
338
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
339
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
340
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
341
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
342
|
+
<method v="2" />
|
343
|
+
</configuration>
|
231
344
|
<recent_temporary>
|
232
345
|
<list>
|
346
|
+
<item itemvalue="Test::Unit/Shoulda/Minitest.Run test 'builder_test': binky-builder" />
|
347
|
+
<item itemvalue="Test::Unit/Shoulda/Minitest.All tests in binky-builder: binky-builder" />
|
233
348
|
<item itemvalue="Test::Unit/Shoulda/Minitest.All tests in test: binky-builder" />
|
349
|
+
<item itemvalue="Test::Unit/Shoulda/Minitest.test_using_builder: binky-builder" />
|
234
350
|
</list>
|
235
351
|
</recent_temporary>
|
236
352
|
</component>
|
@@ -244,7 +360,7 @@
|
|
244
360
|
<updated>1596190242171</updated>
|
245
361
|
<workItem from="1596190243364" duration="5305000" />
|
246
362
|
<workItem from="1596196456720" duration="5542000" />
|
247
|
-
<workItem from="1596439308667" duration="
|
363
|
+
<workItem from="1596439308667" duration="17781000" />
|
248
364
|
</task>
|
249
365
|
<task id="LOCAL-00001" summary="Binky Builder gem initial commit.">
|
250
366
|
<created>1596191104643</created>
|
@@ -302,16 +418,50 @@
|
|
302
418
|
<option name="project" value="LOCAL" />
|
303
419
|
<updated>1596447053126</updated>
|
304
420
|
</task>
|
305
|
-
<
|
421
|
+
<task id="LOCAL-00009" summary="Binky Builder gem initial commit.">
|
422
|
+
<created>1596447831202</created>
|
423
|
+
<option name="number" value="00009" />
|
424
|
+
<option name="presentableId" value="LOCAL-00009" />
|
425
|
+
<option name="project" value="LOCAL" />
|
426
|
+
<updated>1596447831202</updated>
|
427
|
+
</task>
|
428
|
+
<option name="localTasksCounter" value="10" />
|
306
429
|
<servers />
|
307
430
|
</component>
|
308
431
|
<component name="TestHistory">
|
309
|
-
<history-entry file="
|
432
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.03 at 14h 47m 56s.xml">
|
433
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
434
|
+
</history-entry>
|
435
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.03 at 14h 54m 25s.xml">
|
436
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
437
|
+
</history-entry>
|
438
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.03 at 14h 54m 57s.xml">
|
439
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
440
|
+
</history-entry>
|
441
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.03 at 14h 55m 26s.xml">
|
442
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
443
|
+
</history-entry>
|
444
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.03 at 14h 57m 26s.xml">
|
445
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
446
|
+
</history-entry>
|
447
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.03 at 14h 57m 57s.xml">
|
448
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
449
|
+
</history-entry>
|
450
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.03 at 15h 10m 49s.xml">
|
310
451
|
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
311
452
|
</history-entry>
|
453
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.03 at 15h 16m 04s.xml">
|
454
|
+
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
455
|
+
</history-entry>
|
456
|
+
<history-entry file="All_tests_in_binky-builder__binky-builder - 2020.08.03 at 15h 17m 03s.xml">
|
457
|
+
<configuration name="All tests in binky-builder: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
458
|
+
</history-entry>
|
459
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.03 at 15h 21m 06s.xml">
|
460
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
461
|
+
</history-entry>
|
312
462
|
</component>
|
313
463
|
<component name="TimeTrackingManager">
|
314
|
-
<option name="totallyTimeSpent" value="
|
464
|
+
<option name="totallyTimeSpent" value="28628000" />
|
315
465
|
</component>
|
316
466
|
<component name="ToolWindowManager">
|
317
467
|
<frame x="1920" y="28" width="1920" height="1052" extended-state="6" />
|
@@ -322,8 +472,8 @@
|
|
322
472
|
<window_info id="Favorites" order="2" side_tool="true" />
|
323
473
|
<window_info anchor="bottom" id="Message" order="0" />
|
324
474
|
<window_info anchor="bottom" id="Find" order="1" weight="0.32976827" />
|
325
|
-
<window_info anchor="bottom" id="Run" order="2" weight="0.
|
326
|
-
<window_info anchor="bottom" id="Debug" order="3" weight="0.
|
475
|
+
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.26078027" />
|
476
|
+
<window_info anchor="bottom" id="Debug" order="3" weight="0.2422998" />
|
327
477
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
328
478
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
329
479
|
<window_info anchor="bottom" id="TODO" order="6" />
|
@@ -345,8 +495,56 @@
|
|
345
495
|
<MESSAGE value="Binky Builder gem initial commit." />
|
346
496
|
<option name="LAST_COMMIT_MESSAGE" value="Binky Builder gem initial commit." />
|
347
497
|
</component>
|
498
|
+
<component name="XDebuggerManager">
|
499
|
+
<breakpoint-manager>
|
500
|
+
<breakpoints>
|
501
|
+
<line-breakpoint enabled="true" type="ruby-line">
|
502
|
+
<url>file://$PROJECT_DIR$/test/binky/builder_test.rb</url>
|
503
|
+
<line>50</line>
|
504
|
+
<option name="timeStamp" value="5" />
|
505
|
+
</line-breakpoint>
|
506
|
+
<line-breakpoint enabled="true" type="ruby-line">
|
507
|
+
<url>file://$PROJECT_DIR$/lib/binky/builder.rb</url>
|
508
|
+
<line>93</line>
|
509
|
+
<option name="timeStamp" value="6" />
|
510
|
+
</line-breakpoint>
|
511
|
+
</breakpoints>
|
512
|
+
</breakpoint-manager>
|
513
|
+
</component>
|
348
514
|
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
349
|
-
<SUITE FILE_PATH="coverage/binky_builder@
|
515
|
+
<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="1596460622083" 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" />
|
516
|
+
<SUITE FILE_PATH="coverage/binky_builder@All_tests_in_test__binky_builder.rcov" NAME="All tests in test: binky-builder Coverage Results" MODIFIED="1596460563548" 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" />
|
517
|
+
<SUITE FILE_PATH="coverage/binky_builder@Run_test__builder_test___binky_builder.rcov" NAME="Run test 'builder_test': binky-builder Coverage Results" MODIFIED="1596460865440" 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" />
|
518
|
+
<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" />
|
519
|
+
</component>
|
520
|
+
<component name="debuggerHistoryManager">
|
521
|
+
<expressions id="evaluateExpression">
|
522
|
+
<expression>
|
523
|
+
<expression-string>@obj.to_hash["id"]</expression-string>
|
524
|
+
<language-id>ruby</language-id>
|
525
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
526
|
+
</expression>
|
527
|
+
<expression>
|
528
|
+
<expression-string>@obj.to_hash</expression-string>
|
529
|
+
<language-id>ruby</language-id>
|
530
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
531
|
+
</expression>
|
532
|
+
<expression>
|
533
|
+
<expression-string>@obj.to_hash.id</expression-string>
|
534
|
+
<language-id>ruby</language-id>
|
535
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
536
|
+
</expression>
|
537
|
+
<expression>
|
538
|
+
<expression-string>@obj.id</expression-string>
|
539
|
+
<language-id>ruby</language-id>
|
540
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
541
|
+
</expression>
|
542
|
+
<expression>
|
543
|
+
<expression-string>nested_hash_value(json,key)</expression-string>
|
544
|
+
<language-id>ruby</language-id>
|
545
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
546
|
+
</expression>
|
547
|
+
</expressions>
|
350
548
|
</component>
|
351
549
|
<component name="editorHistoryManager">
|
352
550
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
@@ -362,44 +560,76 @@
|
|
362
560
|
<entry file="file://$PROJECT_DIR$/LICENSE.txt">
|
363
561
|
<provider selected="true" editor-type-id="text-editor" />
|
364
562
|
</entry>
|
365
|
-
<entry file="file://$PROJECT_DIR$/
|
366
|
-
<provider selected="true" editor-type-id="text-editor">
|
367
|
-
<state relative-caret-position="208">
|
368
|
-
<caret line="8" column="40" selection-start-line="8" selection-start-column="40" selection-end-line="8" selection-end-column="40" />
|
369
|
-
</state>
|
370
|
-
</provider>
|
371
|
-
</entry>
|
372
|
-
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/object.rb">
|
563
|
+
<entry file="file://$PROJECT_DIR$/binky-builder.gemspec">
|
373
564
|
<provider selected="true" editor-type-id="text-editor">
|
374
|
-
<state relative-caret-position="
|
375
|
-
<caret line="
|
565
|
+
<state relative-caret-position="416">
|
566
|
+
<caret line="16" column="47" selection-start-line="16" selection-start-column="47" selection-end-line="16" selection-end-column="47" />
|
376
567
|
</state>
|
377
568
|
</provider>
|
378
569
|
</entry>
|
379
570
|
<entry file="file://$PROJECT_DIR$/test/test_helper.rb">
|
380
|
-
<provider selected="true" editor-type-id="text-editor" />
|
381
|
-
</entry>
|
382
|
-
<entry file="file://$PROJECT_DIR$/binky-builder.gemspec">
|
383
571
|
<provider selected="true" editor-type-id="text-editor">
|
384
|
-
<state relative-caret-position="
|
385
|
-
<caret line="
|
572
|
+
<state relative-caret-position="104">
|
573
|
+
<caret line="4" selection-start-line="4" selection-end-line="4" />
|
386
574
|
</state>
|
387
575
|
</provider>
|
388
576
|
</entry>
|
389
577
|
<entry file="file://$PROJECT_DIR$/README.md">
|
390
578
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
391
579
|
<state split_layout="SPLIT">
|
392
|
-
<first_editor relative-caret-position="
|
393
|
-
<caret line="54" column="3"
|
580
|
+
<first_editor relative-caret-position="234">
|
581
|
+
<caret line="54" column="3" selection-start-line="54" selection-start-column="3" selection-end-line="54" selection-end-column="3" />
|
394
582
|
</first_editor>
|
395
583
|
<second_editor />
|
396
584
|
</state>
|
397
585
|
</provider>
|
398
586
|
</entry>
|
587
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/basic_object.rb">
|
588
|
+
<provider selected="true" editor-type-id="text-editor">
|
589
|
+
<state relative-caret-position="4913">
|
590
|
+
<caret line="231" column="8" selection-start-line="231" selection-start-column="8" selection-end-line="231" selection-end-column="8" />
|
591
|
+
</state>
|
592
|
+
</provider>
|
593
|
+
</entry>
|
594
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/module.rb">
|
595
|
+
<provider selected="true" editor-type-id="text-editor">
|
596
|
+
<state relative-caret-position="190">
|
597
|
+
<caret line="719" column="33" selection-start-line="719" selection-start-column="18" selection-end-line="719" selection-end-column="33" />
|
598
|
+
</state>
|
599
|
+
</provider>
|
600
|
+
</entry>
|
601
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/object.rb">
|
602
|
+
<provider selected="true" editor-type-id="text-editor">
|
603
|
+
<state relative-caret-position="970">
|
604
|
+
<caret line="718" column="8" selection-start-line="718" selection-start-column="8" selection-end-line="718" selection-end-column="8" />
|
605
|
+
</state>
|
606
|
+
</provider>
|
607
|
+
</entry>
|
608
|
+
<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">
|
609
|
+
<provider selected="true" editor-type-id="text-editor">
|
610
|
+
<state relative-caret-position="147">
|
611
|
+
<caret line="198" selection-start-line="198" selection-end-line="198" />
|
612
|
+
</state>
|
613
|
+
</provider>
|
614
|
+
</entry>
|
615
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/string.rb">
|
616
|
+
<provider selected="true" editor-type-id="text-editor">
|
617
|
+
<state relative-caret-position="-4057">
|
618
|
+
<caret line="1281" column="8" selection-start-line="1281" selection-start-column="8" selection-end-line="1281" selection-end-column="8" />
|
619
|
+
</state>
|
620
|
+
</provider>
|
621
|
+
</entry>
|
399
622
|
<entry file="file://$PROJECT_DIR$/lib/binky/builder.rb">
|
400
623
|
<provider selected="true" editor-type-id="text-editor">
|
401
|
-
<state relative-caret-position="
|
402
|
-
<caret line="
|
624
|
+
<state relative-caret-position="373">
|
625
|
+
<caret line="88" column="27" lean-forward="true" selection-start-line="88" selection-start-column="27" selection-end-line="88" selection-end-column="27" />
|
626
|
+
</state>
|
627
|
+
</provider>
|
628
|
+
</entry>
|
629
|
+
<entry file="file://$PROJECT_DIR$/test/binky/builder_test.rb">
|
630
|
+
<provider selected="true" editor-type-id="text-editor">
|
631
|
+
<state relative-caret-position="191">
|
632
|
+
<caret line="44" column="25" selection-start-line="44" selection-start-column="25" selection-end-line="44" selection-end-column="25" />
|
403
633
|
</state>
|
404
634
|
</provider>
|
405
635
|
</entry>
|
data/lib/binky/builder.rb
CHANGED
@@ -11,8 +11,8 @@ module Binky
|
|
11
11
|
k = keys || json&.keys
|
12
12
|
raise ArgumentError unless k&.respond_to?(:each)
|
13
13
|
k.each do |key|
|
14
|
-
@to_hash.merge!({key => nested_hash_value(json,key)})
|
15
|
-
end unless json.
|
14
|
+
@to_hash.merge!({key => nested_hash_value(json,key.to_sym)})
|
15
|
+
end unless json.nil?
|
16
16
|
yield self if block_given?
|
17
17
|
end
|
18
18
|
|
@@ -61,7 +61,7 @@ module Binky
|
|
61
61
|
@attributes = {}
|
62
62
|
json.each do |k, v|
|
63
63
|
self.send("#{k}=", v)
|
64
|
-
end unless json.
|
64
|
+
end unless json.nil?
|
65
65
|
end
|
66
66
|
|
67
67
|
def method_missing(name, *args)
|
@@ -82,10 +82,12 @@ module Binky
|
|
82
82
|
class Error < StandardError; end
|
83
83
|
include BuilderHelper
|
84
84
|
|
85
|
-
def initialize(json = {})
|
86
|
-
|
87
|
-
|
88
|
-
|
85
|
+
def initialize(json = {}, keys = nil)
|
86
|
+
k = keys || json&.keys
|
87
|
+
k&.reject! {|key| key.to_s.include?("=")}
|
88
|
+
k&.each do |key|
|
89
|
+
self.send("#{key}=",nested_hash_value(json, key.to_sym))
|
90
|
+
end unless json.nil?
|
89
91
|
end
|
90
92
|
|
91
93
|
def method_missing(name,*args)
|