binky-builder 0.2.2 → 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 +409 -79
- data/README.md +10 -4
- data/lib/binky/builder.rb +23 -17
- 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,8 +1,8 @@
|
|
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
|
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" />
|
6
6
|
<change beforePath="$PROJECT_DIR$/lib/binky/builder/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/binky/builder/version.rb" afterDir="false" />
|
7
7
|
</list>
|
8
8
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
@@ -16,76 +16,92 @@
|
|
16
16
|
<file pinned="false" current-in-tab="false">
|
17
17
|
<entry file="file://$PROJECT_DIR$/lib/binky/builder.rb">
|
18
18
|
<provider selected="true" editor-type-id="text-editor">
|
19
|
-
<state relative-caret-position="
|
20
|
-
<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" />
|
21
21
|
</state>
|
22
22
|
</provider>
|
23
23
|
</entry>
|
24
24
|
</file>
|
25
|
-
<file pinned="false" current-in-tab="
|
26
|
-
<entry file="file://$
|
25
|
+
<file pinned="false" current-in-tab="true">
|
26
|
+
<entry file="file://$PROJECT_DIR$/lib/binky/builder/version.rb">
|
27
27
|
<provider selected="true" editor-type-id="text-editor">
|
28
|
-
<state relative-caret-position="
|
29
|
-
<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" />
|
30
30
|
</state>
|
31
31
|
</provider>
|
32
32
|
</entry>
|
33
33
|
</file>
|
34
|
-
<file pinned="false" current-in-tab="
|
35
|
-
<entry file="file://$PROJECT_DIR$/
|
34
|
+
<file pinned="false" current-in-tab="false">
|
35
|
+
<entry file="file://$PROJECT_DIR$/test/test_helper.rb">
|
36
36
|
<provider selected="true" editor-type-id="text-editor">
|
37
|
-
<state relative-caret-position="
|
38
|
-
<caret line="
|
37
|
+
<state relative-caret-position="104">
|
38
|
+
<caret line="4" selection-start-line="4" selection-end-line="4" />
|
39
39
|
</state>
|
40
40
|
</provider>
|
41
41
|
</entry>
|
42
42
|
</file>
|
43
43
|
<file pinned="false" current-in-tab="false">
|
44
|
-
<entry file="file://$PROJECT_DIR$/.
|
45
|
-
<provider selected="true" editor-type-id="text-editor"
|
44
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
45
|
+
<provider selected="true" editor-type-id="text-editor">
|
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" />
|
48
|
+
</state>
|
49
|
+
</provider>
|
46
50
|
</entry>
|
47
51
|
</file>
|
48
52
|
<file pinned="false" current-in-tab="false">
|
49
|
-
<entry file="file://$PROJECT_DIR
|
50
|
-
<provider selected="true" editor-type-id="text-editor"
|
53
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
54
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
55
|
+
<state split_layout="SPLIT">
|
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" />
|
58
|
+
</first_editor>
|
59
|
+
<second_editor />
|
60
|
+
</state>
|
61
|
+
</provider>
|
51
62
|
</entry>
|
52
63
|
</file>
|
53
64
|
<file pinned="false" current-in-tab="false">
|
54
|
-
<entry file="file://$PROJECT_DIR$/binky
|
65
|
+
<entry file="file://$PROJECT_DIR$/test/binky/builder_test.rb">
|
55
66
|
<provider selected="true" editor-type-id="text-editor">
|
56
|
-
<state relative-caret-position="
|
57
|
-
<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" />
|
58
69
|
</state>
|
59
70
|
</provider>
|
60
71
|
</entry>
|
61
72
|
</file>
|
62
73
|
<file pinned="false" current-in-tab="false">
|
63
|
-
<entry file="file://$
|
64
|
-
<provider selected="true" editor-type-id="text-editor"
|
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">
|
75
|
+
<provider selected="true" editor-type-id="text-editor">
|
76
|
+
<state relative-caret-position="189">
|
77
|
+
<caret line="230" selection-start-line="230" selection-end-line="230" />
|
78
|
+
</state>
|
79
|
+
</provider>
|
65
80
|
</entry>
|
66
81
|
</file>
|
67
82
|
<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 />
|
83
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/module.rb">
|
84
|
+
<provider selected="true" editor-type-id="text-editor">
|
85
|
+
<state relative-caret-position="18694">
|
86
|
+
<caret line="719" column="33" selection-start-line="719" selection-start-column="18" selection-end-line="719" selection-end-column="33" />
|
75
87
|
</state>
|
76
88
|
</provider>
|
77
89
|
</entry>
|
78
90
|
</file>
|
79
91
|
<file pinned="false" current-in-tab="false">
|
80
|
-
<entry file="file://$
|
81
|
-
<provider selected="true" editor-type-id="text-editor"
|
92
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/basic_object.rb">
|
93
|
+
<provider selected="true" editor-type-id="text-editor">
|
94
|
+
<state relative-caret-position="6006">
|
95
|
+
<caret line="231" column="8" selection-start-line="231" selection-start-column="8" selection-end-line="231" selection-end-column="8" />
|
96
|
+
</state>
|
97
|
+
</provider>
|
82
98
|
</entry>
|
83
99
|
</file>
|
84
100
|
<file pinned="false" current-in-tab="false">
|
85
|
-
<entry file="file://$
|
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">
|
86
102
|
<provider selected="true" editor-type-id="text-editor">
|
87
|
-
<state relative-caret-position="
|
88
|
-
<caret line="
|
103
|
+
<state relative-caret-position="189">
|
104
|
+
<caret line="100" selection-start-line="100" selection-end-line="100" />
|
89
105
|
</state>
|
90
106
|
</provider>
|
91
107
|
</entry>
|
@@ -101,7 +117,10 @@
|
|
101
117
|
</component>
|
102
118
|
<component name="FindInProjectRecents">
|
103
119
|
<findStrings>
|
120
|
+
<find>instance_</find>
|
121
|
+
<find>instance_method</find>
|
104
122
|
<find>block</find>
|
123
|
+
<find>to_hash</find>
|
105
124
|
</findStrings>
|
106
125
|
</component>
|
107
126
|
<component name="Git.Settings">
|
@@ -112,9 +131,10 @@
|
|
112
131
|
<list>
|
113
132
|
<option value="$PROJECT_DIR$/lib/binky/builder/builder_helper.rb" />
|
114
133
|
<option value="$PROJECT_DIR$/binky-builder.gemspec" />
|
115
|
-
<option value="$PROJECT_DIR$/test/binky/builder_test.rb" />
|
116
134
|
<option value="$PROJECT_DIR$/README.md" />
|
117
135
|
<option value="$PROJECT_DIR$/lib/binky/builder.rb" />
|
136
|
+
<option value="$PROJECT_DIR$/test/binky/builder_test.rb" />
|
137
|
+
<option value="$PROJECT_DIR$/.gitignore" />
|
118
138
|
<option value="$PROJECT_DIR$/lib/binky/builder/version.rb" />
|
119
139
|
</list>
|
120
140
|
</option>
|
@@ -138,48 +158,65 @@
|
|
138
158
|
</component>
|
139
159
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
140
160
|
<component name="ProjectView">
|
141
|
-
<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">
|
142
162
|
<foldersAlwaysOnTop value="true" />
|
143
163
|
</navigator>
|
144
164
|
<panes>
|
145
|
-
<pane id="
|
146
|
-
<subPane>
|
165
|
+
<pane id="Scope">
|
166
|
+
<subPane subId="Scope 'Project Files'; set:Project Files; class com.intellij.psi.search.scope.ProjectFilesScope">
|
147
167
|
<expand>
|
148
168
|
<path>
|
149
|
-
<item name="binky-builder" type="
|
150
|
-
<item name="binky-builder" type="
|
169
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
170
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
151
171
|
</path>
|
152
172
|
<path>
|
153
|
-
<item name="binky-builder" type="
|
154
|
-
<item name="binky-builder" type="
|
155
|
-
<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" />
|
156
176
|
</path>
|
157
177
|
<path>
|
158
|
-
<item name="binky-builder" type="
|
159
|
-
<item name="binky-builder" type="
|
160
|
-
<item name="lib" type="
|
161
|
-
<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" />
|
162
182
|
</path>
|
163
183
|
<path>
|
164
|
-
<item name="binky-builder" type="
|
165
|
-
<item name="binky-builder" type="
|
166
|
-
<item name="lib" type="
|
167
|
-
<item name="binky" type="
|
168
|
-
<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" />
|
169
189
|
</path>
|
190
|
+
<path>
|
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" />
|
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>
|
170
208
|
<path>
|
171
209
|
<item name="binky-builder" type="b2602c69:ProjectViewProjectNode" />
|
172
210
|
<item name="binky-builder" type="462c0819:PsiDirectoryNode" />
|
173
|
-
<item name="test" type="462c0819:PsiDirectoryNode" />
|
174
211
|
</path>
|
175
212
|
</expand>
|
176
213
|
<select />
|
177
214
|
</subPane>
|
178
215
|
</pane>
|
179
|
-
<pane id="Scope" />
|
180
216
|
</panes>
|
181
217
|
</component>
|
182
218
|
<component name="PropertiesComponent">
|
219
|
+
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
183
220
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
184
221
|
<property name="last_opened_file_path" value="$PROJECT_DIR$/../vortrics" />
|
185
222
|
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
@@ -198,7 +235,36 @@
|
|
198
235
|
</list>
|
199
236
|
</option>
|
200
237
|
</component>
|
201
|
-
<component name="RunManager">
|
238
|
+
<component name="RunManager" selected="Test::Unit/Shoulda/Minitest.All tests in binky-builder: binky-builder">
|
239
|
+
<configuration name="All tests in binky-builder: binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
240
|
+
<module name="binky-builder" />
|
241
|
+
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
242
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-Ilib:test" />
|
243
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
244
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
245
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
246
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
247
|
+
<envs>
|
248
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
249
|
+
</envs>
|
250
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
251
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
252
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
|
253
|
+
<COVERAGE_PATTERN ENABLED="true">
|
254
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
255
|
+
</COVERAGE_PATTERN>
|
256
|
+
</EXTENSION>
|
257
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$" />
|
258
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
259
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/{*_test,test_*,*_spec}.rb" />
|
260
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
261
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
|
262
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
263
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
264
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
265
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
266
|
+
<method v="2" />
|
267
|
+
</configuration>
|
202
268
|
<configuration name="All tests in test: binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
203
269
|
<module name="binky-builder" />
|
204
270
|
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
@@ -228,9 +294,70 @@
|
|
228
294
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
229
295
|
<method v="2" />
|
230
296
|
</configuration>
|
297
|
+
<configuration name="Run test 'builder_test': binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
298
|
+
<module name="binky-builder" />
|
299
|
+
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
300
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-Ilib:test" />
|
301
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
302
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
303
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
304
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
305
|
+
<envs>
|
306
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
307
|
+
</envs>
|
308
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
309
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
310
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
|
311
|
+
<COVERAGE_PATTERN ENABLED="true">
|
312
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
313
|
+
</COVERAGE_PATTERN>
|
314
|
+
</EXTENSION>
|
315
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
316
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/binky/builder_test.rb" />
|
317
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
318
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
319
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
320
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
321
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
322
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
323
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
324
|
+
<method v="2" />
|
325
|
+
</configuration>
|
326
|
+
<configuration name="test_using_builder: binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
327
|
+
<module name="binky-builder" />
|
328
|
+
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
329
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-Ilib:test" />
|
330
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
331
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
332
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
333
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
334
|
+
<envs>
|
335
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
336
|
+
</envs>
|
337
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
338
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
339
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
|
340
|
+
<COVERAGE_PATTERN ENABLED="true">
|
341
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
342
|
+
</COVERAGE_PATTERN>
|
343
|
+
</EXTENSION>
|
344
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
345
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/binky/builder_test.rb" />
|
346
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
347
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="test_using_builder" />
|
348
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_METHOD" />
|
349
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
350
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
351
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
352
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
353
|
+
<method v="2" />
|
354
|
+
</configuration>
|
231
355
|
<recent_temporary>
|
232
356
|
<list>
|
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" />
|
233
359
|
<item itemvalue="Test::Unit/Shoulda/Minitest.All tests in test: binky-builder" />
|
360
|
+
<item itemvalue="Test::Unit/Shoulda/Minitest.test_using_builder: binky-builder" />
|
234
361
|
</list>
|
235
362
|
</recent_temporary>
|
236
363
|
</component>
|
@@ -244,7 +371,10 @@
|
|
244
371
|
<updated>1596190242171</updated>
|
245
372
|
<workItem from="1596190243364" duration="5305000" />
|
246
373
|
<workItem from="1596196456720" duration="5542000" />
|
247
|
-
<workItem from="1596439308667" duration="
|
374
|
+
<workItem from="1596439308667" duration="19176000" />
|
375
|
+
<workItem from="1596462743515" duration="6742000" />
|
376
|
+
<workItem from="1596538937194" duration="1082000" />
|
377
|
+
<workItem from="1596613602740" duration="3049000" />
|
248
378
|
</task>
|
249
379
|
<task id="LOCAL-00001" summary="Binky Builder gem initial commit.">
|
250
380
|
<created>1596191104643</created>
|
@@ -302,16 +432,120 @@
|
|
302
432
|
<option name="project" value="LOCAL" />
|
303
433
|
<updated>1596447053126</updated>
|
304
434
|
</task>
|
305
|
-
<
|
435
|
+
<task id="LOCAL-00009" summary="Binky Builder gem initial commit.">
|
436
|
+
<created>1596447831202</created>
|
437
|
+
<option name="number" value="00009" />
|
438
|
+
<option name="presentableId" value="LOCAL-00009" />
|
439
|
+
<option name="project" value="LOCAL" />
|
440
|
+
<updated>1596447831202</updated>
|
441
|
+
</task>
|
442
|
+
<task id="LOCAL-00010" summary="Binky Builder gem initial commit.">
|
443
|
+
<created>1596461165447</created>
|
444
|
+
<option name="number" value="00010" />
|
445
|
+
<option name="presentableId" value="LOCAL-00010" />
|
446
|
+
<option name="project" value="LOCAL" />
|
447
|
+
<updated>1596461165447</updated>
|
448
|
+
</task>
|
449
|
+
<task id="LOCAL-00011" summary="Binky Builder gem initial commit.">
|
450
|
+
<created>1596462191383</created>
|
451
|
+
<option name="number" value="00011" />
|
452
|
+
<option name="presentableId" value="LOCAL-00011" />
|
453
|
+
<option name="project" value="LOCAL" />
|
454
|
+
<updated>1596462191383</updated>
|
455
|
+
</task>
|
456
|
+
<task id="LOCAL-00012" summary="Binky Builder gem initial commit.">
|
457
|
+
<created>1596463070270</created>
|
458
|
+
<option name="number" value="00012" />
|
459
|
+
<option name="presentableId" value="LOCAL-00012" />
|
460
|
+
<option name="project" value="LOCAL" />
|
461
|
+
<updated>1596463070270</updated>
|
462
|
+
</task>
|
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" />
|
306
513
|
<servers />
|
307
514
|
</component>
|
308
515
|
<component name="TestHistory">
|
309
|
-
<history-entry file="
|
310
|
-
<configuration name="
|
516
|
+
<history-entry file="Run_test_'builder_test'__binky-builder - 2020.08.05 at 10h 08m 26s.xml">
|
517
|
+
<configuration name="Run test 'builder_test': binky-builder" configurationId="TestUnitRunConfigurationType" />
|
518
|
+
</history-entry>
|
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" />
|
521
|
+
</history-entry>
|
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" />
|
524
|
+
</history-entry>
|
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" />
|
527
|
+
</history-entry>
|
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" />
|
530
|
+
</history-entry>
|
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" />
|
533
|
+
</history-entry>
|
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" />
|
536
|
+
</history-entry>
|
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" />
|
539
|
+
</history-entry>
|
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" />
|
542
|
+
</history-entry>
|
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" />
|
311
545
|
</history-entry>
|
312
546
|
</component>
|
313
547
|
<component name="TimeTrackingManager">
|
314
|
-
<option name="totallyTimeSpent" value="
|
548
|
+
<option name="totallyTimeSpent" value="40896000" />
|
315
549
|
</component>
|
316
550
|
<component name="ToolWindowManager">
|
317
551
|
<frame x="1920" y="28" width="1920" height="1052" extended-state="6" />
|
@@ -322,8 +556,8 @@
|
|
322
556
|
<window_info id="Favorites" order="2" side_tool="true" />
|
323
557
|
<window_info anchor="bottom" id="Message" order="0" />
|
324
558
|
<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.
|
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" />
|
327
561
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
328
562
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
329
563
|
<window_info anchor="bottom" id="TODO" order="6" />
|
@@ -346,7 +580,59 @@
|
|
346
580
|
<option name="LAST_COMMIT_MESSAGE" value="Binky Builder gem initial commit." />
|
347
581
|
</component>
|
348
582
|
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
349
|
-
<SUITE FILE_PATH="coverage/binky_builder@
|
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" />
|
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" />
|
587
|
+
</component>
|
588
|
+
<component name="debuggerHistoryManager">
|
589
|
+
<expressions id="evaluateExpression">
|
590
|
+
<expression>
|
591
|
+
<expression-string>e.to_hash[:items][0]["fromString"]</expression-string>
|
592
|
+
<language-id>ruby</language-id>
|
593
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
594
|
+
</expression>
|
595
|
+
<expression>
|
596
|
+
<expression-string>e.to_hash[:items][0][:fromString]</expression-string>
|
597
|
+
<language-id>ruby</language-id>
|
598
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
599
|
+
</expression>
|
600
|
+
<expression>
|
601
|
+
<expression-string>e.to_hash[:items][0]</expression-string>
|
602
|
+
<language-id>ruby</language-id>
|
603
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
604
|
+
</expression>
|
605
|
+
<expression>
|
606
|
+
<expression-string>e.to_hash[:items]</expression-string>
|
607
|
+
<language-id>ruby</language-id>
|
608
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
609
|
+
</expression>
|
610
|
+
<expression>
|
611
|
+
<expression-string>e.to_hash[:items].fromString</expression-string>
|
612
|
+
<language-id>ruby</language-id>
|
613
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
614
|
+
</expression>
|
615
|
+
<expression>
|
616
|
+
<expression-string>e.to_hash[:items]["fromString"]</expression-string>
|
617
|
+
<language-id>ruby</language-id>
|
618
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
619
|
+
</expression>
|
620
|
+
<expression>
|
621
|
+
<expression-string>e.to_hash[:items][:fromString]</expression-string>
|
622
|
+
<language-id>ruby</language-id>
|
623
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
624
|
+
</expression>
|
625
|
+
<expression>
|
626
|
+
<expression-string>elem[:id]</expression-string>
|
627
|
+
<language-id>ruby</language-id>
|
628
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
629
|
+
</expression>
|
630
|
+
<expression>
|
631
|
+
<expression-string>elem.to_hash[:id]</expression-string>
|
632
|
+
<language-id>ruby</language-id>
|
633
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
634
|
+
</expression>
|
635
|
+
</expressions>
|
350
636
|
</component>
|
351
637
|
<component name="editorHistoryManager">
|
352
638
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
@@ -356,41 +642,71 @@
|
|
356
642
|
<entry file="file://$PROJECT_DIR$/.travis.yml">
|
357
643
|
<provider selected="true" editor-type-id="text-editor" />
|
358
644
|
</entry>
|
359
|
-
<entry file="file://$PROJECT_DIR$/.gitignore">
|
360
|
-
<provider selected="true" editor-type-id="text-editor" />
|
361
|
-
</entry>
|
362
645
|
<entry file="file://$PROJECT_DIR$/LICENSE.txt">
|
363
646
|
<provider selected="true" editor-type-id="text-editor" />
|
364
647
|
</entry>
|
365
|
-
<entry file="file://$
|
648
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/string.rb">
|
366
649
|
<provider selected="true" editor-type-id="text-editor">
|
367
|
-
<state relative-caret-position="
|
368
|
-
<caret line="
|
650
|
+
<state relative-caret-position="33306">
|
651
|
+
<caret line="1281" column="8" selection-start-line="1281" selection-start-column="8" selection-end-line="1281" selection-end-column="8" />
|
369
652
|
</state>
|
370
653
|
</provider>
|
371
654
|
</entry>
|
372
655
|
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/object.rb">
|
373
656
|
<provider selected="true" editor-type-id="text-editor">
|
374
|
-
<state relative-caret-position="
|
375
|
-
<caret line="
|
657
|
+
<state relative-caret-position="18668">
|
658
|
+
<caret line="718" column="8" selection-start-line="718" selection-start-column="8" selection-end-line="718" selection-end-column="8" />
|
659
|
+
</state>
|
660
|
+
</provider>
|
661
|
+
</entry>
|
662
|
+
<entry file="file://$PROJECT_DIR$/Gemfile.lock" />
|
663
|
+
<entry file="file://$PROJECT_DIR$/binky-builder.gemspec">
|
664
|
+
<provider selected="true" editor-type-id="text-editor">
|
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" />
|
667
|
+
</state>
|
668
|
+
</provider>
|
669
|
+
</entry>
|
670
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/module.rb">
|
671
|
+
<provider selected="true" editor-type-id="text-editor">
|
672
|
+
<state relative-caret-position="18694">
|
673
|
+
<caret line="719" column="33" selection-start-line="719" selection-start-column="18" selection-end-line="719" selection-end-column="33" />
|
674
|
+
</state>
|
675
|
+
</provider>
|
676
|
+
</entry>
|
677
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/basic_object.rb">
|
678
|
+
<provider selected="true" editor-type-id="text-editor">
|
679
|
+
<state relative-caret-position="6006">
|
680
|
+
<caret line="231" column="8" selection-start-line="231" selection-start-column="8" selection-end-line="231" selection-end-column="8" />
|
376
681
|
</state>
|
377
682
|
</provider>
|
378
683
|
</entry>
|
379
684
|
<entry file="file://$PROJECT_DIR$/test/test_helper.rb">
|
380
|
-
<provider selected="true" editor-type-id="text-editor"
|
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>
|
381
690
|
</entry>
|
382
|
-
<entry file="file://$
|
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">
|
383
692
|
<provider selected="true" editor-type-id="text-editor">
|
384
|
-
<state relative-caret-position="
|
385
|
-
<caret line="
|
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" />
|
386
702
|
</state>
|
387
703
|
</provider>
|
388
704
|
</entry>
|
389
705
|
<entry file="file://$PROJECT_DIR$/README.md">
|
390
706
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
391
707
|
<state split_layout="SPLIT">
|
392
|
-
<first_editor relative-caret-position="
|
393
|
-
<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" />
|
394
710
|
</first_editor>
|
395
711
|
<second_editor />
|
396
712
|
</state>
|
@@ -398,15 +714,29 @@
|
|
398
714
|
</entry>
|
399
715
|
<entry file="file://$PROJECT_DIR$/lib/binky/builder.rb">
|
400
716
|
<provider selected="true" editor-type-id="text-editor">
|
401
|
-
<state relative-caret-position="
|
402
|
-
<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" />
|
719
|
+
</state>
|
720
|
+
</provider>
|
721
|
+
</entry>
|
722
|
+
<entry file="file://$PROJECT_DIR$/test/binky/builder_test.rb">
|
723
|
+
<provider selected="true" editor-type-id="text-editor">
|
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" />
|
726
|
+
</state>
|
727
|
+
</provider>
|
728
|
+
</entry>
|
729
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
730
|
+
<provider selected="true" editor-type-id="text-editor">
|
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" />
|
403
733
|
</state>
|
404
734
|
</provider>
|
405
735
|
</entry>
|
406
736
|
<entry file="file://$PROJECT_DIR$/lib/binky/builder/version.rb">
|
407
737
|
<provider selected="true" editor-type-id="text-editor">
|
408
738
|
<state relative-caret-position="52">
|
409
|
-
<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" />
|
410
740
|
</state>
|
411
741
|
</provider>
|
412
742
|
</entry>
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Initialize an instance using json data, including the Builder class on your clas
|
|
24
24
|
Once initialized just use the accessors as any other instance.
|
25
25
|
```ruby
|
26
26
|
class Issue
|
27
|
-
include Binky::
|
27
|
+
include Binky::Struct
|
28
28
|
alias :super_initialize :initialize
|
29
29
|
|
30
30
|
def initialize(json = nil)
|
@@ -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
|
-
include Binky::
|
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
@@ -1,19 +1,22 @@
|
|
1
1
|
require "binky/builder/version"
|
2
2
|
|
3
3
|
module Binky
|
4
|
-
module
|
4
|
+
module Helper
|
5
5
|
|
6
6
|
# Parses a given json structure looking for specific keys inside the structure.
|
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
|
+
json.transform_keys!(&:to_s)
|
13
14
|
k.each do |key|
|
14
|
-
|
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)})
|
17
|
+
end unless json.nil?
|
16
18
|
yield self if block_given?
|
19
|
+
self
|
17
20
|
end
|
18
21
|
|
19
22
|
# Builds an instance variable as well as its class method accessors from a key value pair.
|
@@ -48,20 +51,24 @@ module Binky
|
|
48
51
|
end
|
49
52
|
end
|
50
53
|
|
54
|
+
def method_missing(name,*args)
|
55
|
+
accessor_builder name.to_s.chop, args[0]
|
56
|
+
end
|
57
|
+
|
51
58
|
def attribute_from_inner_key(element, attribute, inner_key = nil)
|
52
59
|
{attribute.to_sym => nested_hash_value(element, inner_key&.present? ? inner_key : attribute.to_s)}
|
53
60
|
end
|
54
61
|
end
|
55
62
|
|
56
|
-
module
|
63
|
+
module Struct
|
57
64
|
class Error < StandardError; end
|
58
|
-
include
|
65
|
+
include Helper
|
59
66
|
|
60
67
|
def initialize(json = nil)
|
61
68
|
@attributes = {}
|
62
69
|
json.each do |k, v|
|
63
70
|
self.send("#{k}=", v)
|
64
|
-
end unless json.
|
71
|
+
end unless json.nil?
|
65
72
|
end
|
66
73
|
|
67
74
|
def method_missing(name, *args)
|
@@ -78,18 +85,17 @@ module Binky
|
|
78
85
|
end
|
79
86
|
end
|
80
87
|
|
81
|
-
module
|
88
|
+
module Builder
|
82
89
|
class Error < StandardError; end
|
83
|
-
include
|
90
|
+
include Helper
|
84
91
|
|
85
|
-
def initialize(json = {})
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
accessor_builder name.to_s.chop, args[0]
|
92
|
+
def initialize(json = {}, keys = nil)
|
93
|
+
k = keys || json&.keys
|
94
|
+
k&.reject! {|key| key.to_s.include?("=")}
|
95
|
+
json.transform_keys!(&:to_s)
|
96
|
+
k&.each do |key|
|
97
|
+
self.send("#{key}=",nested_hash_value(json, key.to_s))
|
98
|
+
end unless json.nil?
|
93
99
|
end
|
94
100
|
end
|
95
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
|