binky-builder 0.3.1 → 0.5.3
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 +311 -144
- data/README.md +10 -4
- data/lib/binky/builder.rb +22 -27
- 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: 9321688bf31d81ae9ca16b4572cbaac0e1293d5d84157b26ee365f445f822264
|
4
|
+
data.tar.gz: 8d69887edddd98bcc61bbf3bfb87336c9268b84a9075bd913964b9376033fbb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 650820f1362f453e4e948bf45e24147bf089b3401d13d0e25d133028a7e8c7737de96f4f72815f7e08201576fcc863e0d6dcecaec3f8a8479ae93801c2f8b2a6
|
7
|
+
data.tar.gz: d33b4adfb673dd192d5922a5d22b5ae2bad83d10e4399653d786f1e47c9342201cbad5a279c1654fea284b36abcdb6f38687786dda5341229f1e28524de37dad
|
data/.gitignore
CHANGED
data/.idea/workspace.xml
CHANGED
@@ -1,9 +1,14 @@
|
|
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="">
|
4
|
+
<list default="true" id="c1900bce-76f3-4483-9969-b14ec05dbe50" name="Default Changelist" comment="Binky Builder gem initial commit.">
|
5
|
+
<change afterPath="$PROJECT_DIR$/test/binky/activerecord_test.rb" afterDir="false" />
|
6
|
+
<change afterPath="$PROJECT_DIR$/test/binky/helper_test.rb" afterDir="false" />
|
7
|
+
<change afterPath="$PROJECT_DIR$/test/binky/struct_test.rb" afterDir="false" />
|
5
8
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
9
|
+
<change beforePath="$PROJECT_DIR$/lib/binky/builder.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/binky/builder.rb" afterDir="false" />
|
6
10
|
<change beforePath="$PROJECT_DIR$/lib/binky/builder/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/binky/builder/version.rb" afterDir="false" />
|
11
|
+
<change beforePath="$PROJECT_DIR$/test/binky/builder_test.rb" beforeDir="false" afterPath="$PROJECT_DIR$/test/binky/builder_test.rb" afterDir="false" />
|
7
12
|
</list>
|
8
13
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
9
14
|
<option name="SHOW_DIALOG" value="false" />
|
@@ -16,92 +21,89 @@
|
|
16
21
|
<file pinned="false" current-in-tab="false">
|
17
22
|
<entry file="file://$PROJECT_DIR$/lib/binky/builder.rb">
|
18
23
|
<provider selected="true" editor-type-id="text-editor">
|
19
|
-
<state relative-caret-position="
|
20
|
-
<caret line="
|
24
|
+
<state relative-caret-position="277">
|
25
|
+
<caret line="11" column="65" lean-forward="true" selection-start-line="11" selection-start-column="65" selection-end-line="11" selection-end-column="65" />
|
21
26
|
</state>
|
22
27
|
</provider>
|
23
28
|
</entry>
|
24
29
|
</file>
|
25
|
-
<file pinned="false" current-in-tab="
|
26
|
-
<entry file="file://$
|
30
|
+
<file pinned="false" current-in-tab="true">
|
31
|
+
<entry file="file://$PROJECT_DIR$/lib/binky/builder/version.rb">
|
27
32
|
<provider selected="true" editor-type-id="text-editor">
|
28
|
-
<state relative-caret-position="
|
29
|
-
<caret line="
|
33
|
+
<state relative-caret-position="52">
|
34
|
+
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
30
35
|
</state>
|
31
36
|
</provider>
|
32
37
|
</entry>
|
33
38
|
</file>
|
34
39
|
<file pinned="false" current-in-tab="false">
|
35
|
-
<entry file="file://$
|
40
|
+
<entry file="file://$PROJECT_DIR$/test/binky/builder_test.rb">
|
36
41
|
<provider selected="true" editor-type-id="text-editor">
|
37
|
-
<state relative-caret-position="
|
38
|
-
<caret line="
|
42
|
+
<state relative-caret-position="-572">
|
43
|
+
<caret line="1" selection-start-line="1" selection-end-line="1" />
|
39
44
|
</state>
|
40
45
|
</provider>
|
41
46
|
</entry>
|
42
47
|
</file>
|
43
|
-
<file pinned="false" current-in-tab="
|
44
|
-
<entry file="file://$PROJECT_DIR$/
|
48
|
+
<file pinned="false" current-in-tab="false">
|
49
|
+
<entry file="file://$PROJECT_DIR$/test/binky/activerecord_test.rb">
|
45
50
|
<provider selected="true" editor-type-id="text-editor">
|
46
|
-
<state relative-caret-position="
|
47
|
-
<caret line="
|
51
|
+
<state relative-caret-position="391">
|
52
|
+
<caret line="34" selection-start-line="34" selection-end-line="34" />
|
48
53
|
</state>
|
49
54
|
</provider>
|
50
55
|
</entry>
|
51
56
|
</file>
|
52
57
|
<file pinned="false" current-in-tab="false">
|
53
|
-
<entry file="file://$PROJECT_DIR$/
|
54
|
-
<provider selected="true" editor-type-id="
|
55
|
-
<state
|
56
|
-
<
|
57
|
-
<caret line="54" column="3" selection-start-line="54" selection-start-column="3" selection-end-line="54" selection-end-column="3" />
|
58
|
-
</first_editor>
|
59
|
-
<second_editor />
|
58
|
+
<entry file="file://$PROJECT_DIR$/test/binky/helper_test.rb">
|
59
|
+
<provider selected="true" editor-type-id="text-editor">
|
60
|
+
<state relative-caret-position="104">
|
61
|
+
<caret line="4" column="3" selection-start-line="4" selection-start-column="3" selection-end-line="4" selection-end-column="3" />
|
60
62
|
</state>
|
61
63
|
</provider>
|
62
64
|
</entry>
|
63
65
|
</file>
|
64
66
|
<file pinned="false" current-in-tab="false">
|
65
|
-
<entry file="file://$PROJECT_DIR$/test/
|
67
|
+
<entry file="file://$PROJECT_DIR$/test/binky/struct_test.rb">
|
66
68
|
<provider selected="true" editor-type-id="text-editor">
|
67
|
-
<state relative-caret-position="
|
68
|
-
<caret line="
|
69
|
+
<state relative-caret-position="156">
|
70
|
+
<caret line="6" column="40" lean-forward="true" selection-start-line="6" selection-end-line="6" selection-end-column="40" />
|
69
71
|
</state>
|
70
72
|
</provider>
|
71
73
|
</entry>
|
72
74
|
</file>
|
73
75
|
<file pinned="false" current-in-tab="false">
|
74
|
-
<entry file="file://$
|
76
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/object.rb">
|
75
77
|
<provider selected="true" editor-type-id="text-editor">
|
76
|
-
<state relative-caret-position="
|
77
|
-
<caret line="
|
78
|
+
<state relative-caret-position="199">
|
79
|
+
<caret line="696" column="8" selection-start-line="696" selection-start-column="8" selection-end-line="696" selection-end-column="8" />
|
78
80
|
</state>
|
79
81
|
</provider>
|
80
82
|
</entry>
|
81
83
|
</file>
|
82
84
|
<file pinned="false" current-in-tab="false">
|
83
|
-
<entry file="file://$
|
85
|
+
<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">
|
84
86
|
<provider selected="true" editor-type-id="text-editor">
|
85
|
-
<state relative-caret-position="
|
86
|
-
<caret line="
|
87
|
+
<state relative-caret-position="189">
|
88
|
+
<caret line="416" selection-start-line="416" selection-end-line="416" />
|
87
89
|
</state>
|
88
90
|
</provider>
|
89
91
|
</entry>
|
90
92
|
</file>
|
91
93
|
<file pinned="false" current-in-tab="false">
|
92
|
-
<entry file="file://$
|
94
|
+
<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">
|
93
95
|
<provider selected="true" editor-type-id="text-editor">
|
94
|
-
<state relative-caret-position="
|
95
|
-
<caret line="
|
96
|
+
<state relative-caret-position="189">
|
97
|
+
<caret line="94" selection-start-line="94" selection-end-line="94" />
|
96
98
|
</state>
|
97
99
|
</provider>
|
98
100
|
</entry>
|
99
101
|
</file>
|
100
102
|
<file pinned="false" current-in-tab="false">
|
101
|
-
<entry file="file://$USER_HOME$/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/minitest-5.14.1/lib/minitest
|
103
|
+
<entry file="file://$USER_HOME$/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/minitest-5.14.1/lib/minitest.rb">
|
102
104
|
<provider selected="true" editor-type-id="text-editor">
|
103
|
-
<state relative-caret-position="
|
104
|
-
<caret line="
|
105
|
+
<state relative-caret-position="189">
|
106
|
+
<caret line="273" selection-start-line="273" selection-end-line="273" />
|
105
107
|
</state>
|
106
108
|
</provider>
|
107
109
|
</entry>
|
@@ -112,6 +114,8 @@
|
|
112
114
|
<option name="RECENT_TEMPLATES">
|
113
115
|
<list>
|
114
116
|
<option value="Ruby File" />
|
117
|
+
<option value="TestUnit Template" />
|
118
|
+
<option value="MiniTest Template" />
|
115
119
|
</list>
|
116
120
|
</option>
|
117
121
|
</component>
|
@@ -120,6 +124,8 @@
|
|
120
124
|
<find>instance_</find>
|
121
125
|
<find>instance_method</find>
|
122
126
|
<find>block</find>
|
127
|
+
<find>to_hash</find>
|
128
|
+
<find>MyBuilder</find>
|
123
129
|
</findStrings>
|
124
130
|
</component>
|
125
131
|
<component name="Git.Settings">
|
@@ -131,23 +137,16 @@
|
|
131
137
|
<option value="$PROJECT_DIR$/lib/binky/builder/builder_helper.rb" />
|
132
138
|
<option value="$PROJECT_DIR$/binky-builder.gemspec" />
|
133
139
|
<option value="$PROJECT_DIR$/README.md" />
|
134
|
-
<option value="$PROJECT_DIR
|
140
|
+
<option value="$PROJECT_DIR$/.gitignore" />
|
135
141
|
<option value="$PROJECT_DIR$/lib/binky/builder.rb" />
|
142
|
+
<option value="$PROJECT_DIR$/test/binky/struct_test.rb" />
|
143
|
+
<option value="$PROJECT_DIR$/test/binky/helper_test.rb" />
|
144
|
+
<option value="$PROJECT_DIR$/test/binky/builder_test.rb" />
|
145
|
+
<option value="$PROJECT_DIR$/test/binky/activerecord_test.rb" />
|
136
146
|
<option value="$PROJECT_DIR$/lib/binky/builder/version.rb" />
|
137
147
|
</list>
|
138
148
|
</option>
|
139
149
|
</component>
|
140
|
-
<component name="ProjectConfigurationFiles">
|
141
|
-
<option name="files">
|
142
|
-
<list>
|
143
|
-
<option value="$PROJECT_DIR$/.idea/binky-builder.iml" />
|
144
|
-
<option value="$PROJECT_DIR$/.idea/misc.xml" />
|
145
|
-
<option value="$PROJECT_DIR$/.idea/vcs.xml" />
|
146
|
-
<option value="$PROJECT_DIR$/.idea/modules.xml" />
|
147
|
-
<option value="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" />
|
148
|
-
</list>
|
149
|
-
</option>
|
150
|
-
</component>
|
151
150
|
<component name="ProjectFrameBounds" extendedState="6">
|
152
151
|
<option name="x" value="1920" />
|
153
152
|
<option name="y" value="28" />
|
@@ -156,58 +155,70 @@
|
|
156
155
|
</component>
|
157
156
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
158
157
|
<component name="ProjectView">
|
159
|
-
<navigator proportions="" version="1">
|
158
|
+
<navigator currentView="Scope" currentSubView="Scope 'Project Files'; set:Project Files; class com.intellij.psi.search.scope.ProjectFilesScope" proportions="" version="1">
|
160
159
|
<foldersAlwaysOnTop value="true" />
|
161
160
|
</navigator>
|
162
161
|
<panes>
|
163
|
-
<pane id="
|
164
|
-
<subPane>
|
162
|
+
<pane id="Scope">
|
163
|
+
<subPane subId="Scope 'Project Files'; set:Project Files; class com.intellij.psi.search.scope.ProjectFilesScope">
|
165
164
|
<expand>
|
166
165
|
<path>
|
167
|
-
<item name="binky-builder" type="
|
168
|
-
<item name="binky-builder" type="
|
166
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
167
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
169
168
|
</path>
|
170
169
|
<path>
|
171
|
-
<item name="binky-builder" type="
|
172
|
-
<item name="binky-builder" type="
|
173
|
-
<item name="lib" type="
|
170
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
171
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
172
|
+
<item name="lib" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
174
173
|
</path>
|
175
174
|
<path>
|
176
|
-
<item name="binky-builder" type="
|
177
|
-
<item name="binky-builder" type="
|
178
|
-
<item name="lib" type="
|
179
|
-
<item name="binky" type="
|
175
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
176
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
177
|
+
<item name="lib" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
178
|
+
<item name="binky" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
180
179
|
</path>
|
181
180
|
<path>
|
182
|
-
<item name="binky-builder" type="
|
183
|
-
<item name="binky-builder" type="
|
184
|
-
<item name="lib" type="
|
185
|
-
<item name="binky" type="
|
186
|
-
<item name="builder" type="
|
181
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
182
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
183
|
+
<item name="lib" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
184
|
+
<item name="binky" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
185
|
+
<item name="builder" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
187
186
|
</path>
|
188
187
|
<path>
|
189
|
-
<item name="binky-builder" type="
|
190
|
-
<item name="binky-builder" type="
|
191
|
-
<item name="test" type="
|
188
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
189
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
190
|
+
<item name="test" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
192
191
|
</path>
|
192
|
+
<path>
|
193
|
+
<item name="binky-builder" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
|
194
|
+
<item name="~/RubymineProjects/binky-builder" type="442cc68d:ScopeViewTreeModel$RootNode" />
|
195
|
+
<item name="test" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
196
|
+
<item name="binky" type="9f88c78c:ScopeViewTreeModel$FileNode" />
|
197
|
+
</path>
|
198
|
+
</expand>
|
199
|
+
<select />
|
200
|
+
</subPane>
|
201
|
+
</pane>
|
202
|
+
<pane id="ProjectPane">
|
203
|
+
<subPane>
|
204
|
+
<expand>
|
193
205
|
<path>
|
194
206
|
<item name="binky-builder" type="b2602c69:ProjectViewProjectNode" />
|
195
207
|
<item name="binky-builder" type="462c0819:PsiDirectoryNode" />
|
196
|
-
<item name="test" type="462c0819:PsiDirectoryNode" />
|
197
|
-
<item name="binky" type="462c0819:PsiDirectoryNode" />
|
198
208
|
</path>
|
199
209
|
</expand>
|
200
210
|
<select />
|
201
211
|
</subPane>
|
202
212
|
</pane>
|
203
|
-
<pane id="Scope" />
|
204
213
|
</panes>
|
205
214
|
</component>
|
206
215
|
<component name="PropertiesComponent">
|
216
|
+
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
207
217
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
208
218
|
<property name="last_opened_file_path" value="$PROJECT_DIR$/../vortrics" />
|
209
219
|
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
210
220
|
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
221
|
+
<property name="nodejs_package_manager_path" value="npm" />
|
211
222
|
<property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
|
212
223
|
</component>
|
213
224
|
<component name="RunDashboard">
|
@@ -222,7 +233,7 @@
|
|
222
233
|
</list>
|
223
234
|
</option>
|
224
235
|
</component>
|
225
|
-
<component name="RunManager" selected="Test::Unit/Shoulda/Minitest.
|
236
|
+
<component name="RunManager" selected="Test::Unit/Shoulda/Minitest.All tests in test: binky-builder">
|
226
237
|
<configuration name="All tests in binky-builder: binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
227
238
|
<module name="binky-builder" />
|
228
239
|
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
@@ -310,6 +321,35 @@
|
|
310
321
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
311
322
|
<method v="2" />
|
312
323
|
</configuration>
|
324
|
+
<configuration name="Run test 'struct_test': binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
325
|
+
<module name="binky-builder" />
|
326
|
+
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
327
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-Ilib:test" />
|
328
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
329
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
330
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
331
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
332
|
+
<envs>
|
333
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
334
|
+
</envs>
|
335
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
336
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
337
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
|
338
|
+
<COVERAGE_PATTERN ENABLED="true">
|
339
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
340
|
+
</COVERAGE_PATTERN>
|
341
|
+
</EXTENSION>
|
342
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
343
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/binky/struct_test.rb" />
|
344
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
345
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
346
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
347
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
348
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
349
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
350
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
351
|
+
<method v="2" />
|
352
|
+
</configuration>
|
313
353
|
<configuration name="test_using_builder: binky-builder" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
314
354
|
<module name="binky-builder" />
|
315
355
|
<predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
|
@@ -341,8 +381,9 @@
|
|
341
381
|
</configuration>
|
342
382
|
<recent_temporary>
|
343
383
|
<list>
|
344
|
-
<item itemvalue="Test::Unit/Shoulda/Minitest.Run test 'builder_test': binky-builder" />
|
345
384
|
<item itemvalue="Test::Unit/Shoulda/Minitest.All tests in test: binky-builder" />
|
385
|
+
<item itemvalue="Test::Unit/Shoulda/Minitest.Run test 'struct_test': binky-builder" />
|
386
|
+
<item itemvalue="Test::Unit/Shoulda/Minitest.Run test 'builder_test': binky-builder" />
|
346
387
|
<item itemvalue="Test::Unit/Shoulda/Minitest.All tests in binky-builder: binky-builder" />
|
347
388
|
<item itemvalue="Test::Unit/Shoulda/Minitest.test_using_builder: binky-builder" />
|
348
389
|
</list>
|
@@ -358,7 +399,11 @@
|
|
358
399
|
<updated>1596190242171</updated>
|
359
400
|
<workItem from="1596190243364" duration="5305000" />
|
360
401
|
<workItem from="1596196456720" duration="5542000" />
|
361
|
-
<workItem from="1596439308667" duration="
|
402
|
+
<workItem from="1596439308667" duration="19176000" />
|
403
|
+
<workItem from="1596462743515" duration="6742000" />
|
404
|
+
<workItem from="1596538937194" duration="1082000" />
|
405
|
+
<workItem from="1596613602740" duration="3179000" />
|
406
|
+
<workItem from="1596616805310" duration="14632000" />
|
362
407
|
</task>
|
363
408
|
<task id="LOCAL-00001" summary="Binky Builder gem initial commit.">
|
364
409
|
<created>1596191104643</created>
|
@@ -437,43 +482,106 @@
|
|
437
482
|
<option name="project" value="LOCAL" />
|
438
483
|
<updated>1596462191383</updated>
|
439
484
|
</task>
|
440
|
-
<
|
485
|
+
<task id="LOCAL-00012" summary="Binky Builder gem initial commit.">
|
486
|
+
<created>1596463070270</created>
|
487
|
+
<option name="number" value="00012" />
|
488
|
+
<option name="presentableId" value="LOCAL-00012" />
|
489
|
+
<option name="project" value="LOCAL" />
|
490
|
+
<updated>1596463070270</updated>
|
491
|
+
</task>
|
492
|
+
<task id="LOCAL-00013" summary="Binky Builder gem initial commit.">
|
493
|
+
<created>1596467478817</created>
|
494
|
+
<option name="number" value="00013" />
|
495
|
+
<option name="presentableId" value="LOCAL-00013" />
|
496
|
+
<option name="project" value="LOCAL" />
|
497
|
+
<updated>1596467478817</updated>
|
498
|
+
</task>
|
499
|
+
<task id="LOCAL-00014" summary="Binky Builder gem initial commit.">
|
500
|
+
<created>1596469840825</created>
|
501
|
+
<option name="number" value="00014" />
|
502
|
+
<option name="presentableId" value="LOCAL-00014" />
|
503
|
+
<option name="project" value="LOCAL" />
|
504
|
+
<updated>1596469840825</updated>
|
505
|
+
</task>
|
506
|
+
<task id="LOCAL-00015" summary="Binky Builder gem initial commit.">
|
507
|
+
<created>1596469918368</created>
|
508
|
+
<option name="number" value="00015" />
|
509
|
+
<option name="presentableId" value="LOCAL-00015" />
|
510
|
+
<option name="project" value="LOCAL" />
|
511
|
+
<updated>1596469918368</updated>
|
512
|
+
</task>
|
513
|
+
<task id="LOCAL-00016" summary="Binky Builder gem initial commit.">
|
514
|
+
<created>1596469949471</created>
|
515
|
+
<option name="number" value="00016" />
|
516
|
+
<option name="presentableId" value="LOCAL-00016" />
|
517
|
+
<option name="project" value="LOCAL" />
|
518
|
+
<updated>1596469949471</updated>
|
519
|
+
</task>
|
520
|
+
<task id="LOCAL-00017" summary="Binky Builder gem initial commit.">
|
521
|
+
<created>1596470177093</created>
|
522
|
+
<option name="number" value="00017" />
|
523
|
+
<option name="presentableId" value="LOCAL-00017" />
|
524
|
+
<option name="project" value="LOCAL" />
|
525
|
+
<updated>1596470177093</updated>
|
526
|
+
</task>
|
527
|
+
<task id="LOCAL-00018" summary="Binky Builder gem initial commit.">
|
528
|
+
<created>1596616508792</created>
|
529
|
+
<option name="number" value="00018" />
|
530
|
+
<option name="presentableId" value="LOCAL-00018" />
|
531
|
+
<option name="project" value="LOCAL" />
|
532
|
+
<updated>1596616508792</updated>
|
533
|
+
</task>
|
534
|
+
<task id="LOCAL-00019" summary="Binky Builder gem initial commit.">
|
535
|
+
<created>1596616621095</created>
|
536
|
+
<option name="number" value="00019" />
|
537
|
+
<option name="presentableId" value="LOCAL-00019" />
|
538
|
+
<option name="project" value="LOCAL" />
|
539
|
+
<updated>1596616621095</updated>
|
540
|
+
</task>
|
541
|
+
<task id="LOCAL-00020" summary="Binky Builder gem initial commit.">
|
542
|
+
<created>1596628497674</created>
|
543
|
+
<option name="number" value="00020" />
|
544
|
+
<option name="presentableId" value="LOCAL-00020" />
|
545
|
+
<option name="project" value="LOCAL" />
|
546
|
+
<updated>1596628497674</updated>
|
547
|
+
</task>
|
548
|
+
<option name="localTasksCounter" value="21" />
|
441
549
|
<servers />
|
442
550
|
</component>
|
443
551
|
<component name="TestHistory">
|
444
|
-
<history-entry file="
|
445
|
-
<configuration name="
|
552
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 17m 45s.xml">
|
553
|
+
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
446
554
|
</history-entry>
|
447
|
-
<history-entry file="
|
448
|
-
<configuration name="
|
555
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 18m 14s.xml">
|
556
|
+
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
449
557
|
</history-entry>
|
450
|
-
<history-entry file="All_tests_in_test__binky-builder - 2020.08.
|
558
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 18m 17s.xml">
|
451
559
|
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
452
560
|
</history-entry>
|
453
|
-
<history-entry file="All_tests_in_test__binky-builder - 2020.08.
|
561
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 18m 19s.xml">
|
454
562
|
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
455
563
|
</history-entry>
|
456
|
-
<history-entry file="
|
457
|
-
<configuration name="All tests in
|
564
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 48m 28s.xml">
|
565
|
+
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
458
566
|
</history-entry>
|
459
|
-
<history-entry file="
|
460
|
-
<configuration name="
|
567
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 48m 39s.xml">
|
568
|
+
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
461
569
|
</history-entry>
|
462
|
-
<history-entry file="All_tests_in_test__binky-builder - 2020.08.
|
570
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 48m 42s.xml">
|
463
571
|
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
464
572
|
</history-entry>
|
465
|
-
<history-entry file="All_tests_in_test__binky-builder - 2020.08.
|
573
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 48m 44s.xml">
|
466
574
|
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
467
575
|
</history-entry>
|
468
|
-
<history-entry file="
|
469
|
-
<configuration name="
|
576
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 48m 46s.xml">
|
577
|
+
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
470
578
|
</history-entry>
|
471
|
-
<history-entry file="
|
472
|
-
<configuration name="
|
579
|
+
<history-entry file="All_tests_in_test__binky-builder - 2020.08.05 at 16h 48m 49s.xml">
|
580
|
+
<configuration name="All tests in test: binky-builder" configurationId="TestUnitRunConfigurationType" />
|
473
581
|
</history-entry>
|
474
582
|
</component>
|
475
583
|
<component name="TimeTrackingManager">
|
476
|
-
<option name="totallyTimeSpent" value="
|
584
|
+
<option name="totallyTimeSpent" value="55658000" />
|
477
585
|
</component>
|
478
586
|
<component name="ToolWindowManager">
|
479
587
|
<frame x="1920" y="28" width="1920" height="1052" extended-state="6" />
|
@@ -483,9 +591,9 @@
|
|
483
591
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
484
592
|
<window_info id="Favorites" order="2" side_tool="true" />
|
485
593
|
<window_info anchor="bottom" id="Message" order="0" />
|
486
|
-
<window_info anchor="bottom" id="Find" order="1" weight="0.
|
487
|
-
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.
|
488
|
-
<window_info anchor="bottom" id="Debug" order="3" weight="0.
|
594
|
+
<window_info anchor="bottom" id="Find" order="1" weight="0.3295688" />
|
595
|
+
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.38398358" />
|
596
|
+
<window_info anchor="bottom" id="Debug" order="3" weight="0.35523614" />
|
489
597
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
490
598
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
491
599
|
<window_info anchor="bottom" id="TODO" order="6" />
|
@@ -507,52 +615,57 @@
|
|
507
615
|
<MESSAGE value="Binky Builder gem initial commit." />
|
508
616
|
<option name="LAST_COMMIT_MESSAGE" value="Binky Builder gem initial commit." />
|
509
617
|
</component>
|
510
|
-
<component name="XDebuggerManager">
|
511
|
-
<breakpoint-manager>
|
512
|
-
<breakpoints>
|
513
|
-
<line-breakpoint enabled="true" type="ruby-line">
|
514
|
-
<url>file://$PROJECT_DIR$/test/binky/builder_test.rb</url>
|
515
|
-
<line>50</line>
|
516
|
-
<option name="timeStamp" value="5" />
|
517
|
-
</line-breakpoint>
|
518
|
-
<line-breakpoint enabled="true" type="ruby-line">
|
519
|
-
<url>file://$PROJECT_DIR$/lib/binky/builder.rb</url>
|
520
|
-
<line>95</line>
|
521
|
-
<option name="timeStamp" value="6" />
|
522
|
-
</line-breakpoint>
|
523
|
-
</breakpoints>
|
524
|
-
</breakpoint-manager>
|
525
|
-
</component>
|
526
618
|
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
527
|
-
<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="
|
528
|
-
<SUITE FILE_PATH="coverage/binky_builder@All_tests_in_test__binky_builder.rcov" NAME="All tests in test: binky-builder Coverage Results" MODIFIED="
|
529
|
-
<SUITE FILE_PATH="coverage/binky_builder@Run_test__builder_test___binky_builder.rcov" NAME="Run test 'builder_test': binky-builder Coverage Results" MODIFIED="
|
619
|
+
<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" />
|
620
|
+
<SUITE FILE_PATH="coverage/binky_builder@All_tests_in_test__binky_builder.rcov" NAME="All tests in test: binky-builder Coverage Results" MODIFIED="1596639146710" 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" />
|
621
|
+
<SUITE FILE_PATH="coverage/binky_builder@Run_test__builder_test___binky_builder.rcov" NAME="Run test 'builder_test': binky-builder Coverage Results" MODIFIED="1596633653684" 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" />
|
530
622
|
<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" />
|
623
|
+
<SUITE FILE_PATH="coverage/binky_builder@Run_test__struct_test___binky_builder.rcov" NAME="Run test 'struct_test': binky-builder Coverage Results" MODIFIED="1596633807824" 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" />
|
531
624
|
</component>
|
532
625
|
<component name="debuggerHistoryManager">
|
533
626
|
<expressions id="evaluateExpression">
|
534
627
|
<expression>
|
535
|
-
<expression-string
|
628
|
+
<expression-string>e</expression-string>
|
536
629
|
<language-id>ruby</language-id>
|
537
630
|
<evaluation-mode>EXPRESSION</evaluation-mode>
|
538
631
|
</expression>
|
539
632
|
<expression>
|
540
|
-
<expression-string
|
633
|
+
<expression-string>e.toll</expression-string>
|
541
634
|
<language-id>ruby</language-id>
|
542
635
|
<evaluation-mode>EXPRESSION</evaluation-mode>
|
543
636
|
</expression>
|
544
637
|
<expression>
|
545
|
-
<expression-string
|
638
|
+
<expression-string>e.to_k</expression-string>
|
546
639
|
<language-id>ruby</language-id>
|
547
640
|
<evaluation-mode>EXPRESSION</evaluation-mode>
|
548
641
|
</expression>
|
549
642
|
<expression>
|
550
|
-
<expression-string
|
643
|
+
<expression-string>e.to_h</expression-string>
|
551
644
|
<language-id>ruby</language-id>
|
552
645
|
<evaluation-mode>EXPRESSION</evaluation-mode>
|
553
646
|
</expression>
|
554
647
|
<expression>
|
555
|
-
<expression-string>
|
648
|
+
<expression-string>self.to_h</expression-string>
|
649
|
+
<language-id>ruby</language-id>
|
650
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
651
|
+
</expression>
|
652
|
+
<expression>
|
653
|
+
<expression-string>self</expression-string>
|
654
|
+
<language-id>ruby</language-id>
|
655
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
656
|
+
</expression>
|
657
|
+
<expression>
|
658
|
+
<expression-string>elements</expression-string>
|
659
|
+
<language-id>ruby</language-id>
|
660
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
661
|
+
</expression>
|
662
|
+
<expression>
|
663
|
+
<expression-string>elements.to_h</expression-string>
|
664
|
+
<language-id>ruby</language-id>
|
665
|
+
<evaluation-mode>EXPRESSION</evaluation-mode>
|
666
|
+
</expression>
|
667
|
+
<expression>
|
668
|
+
<expression-string>elements.to_hash</expression-string>
|
556
669
|
<language-id>ruby</language-id>
|
557
670
|
<evaluation-mode>EXPRESSION</evaluation-mode>
|
558
671
|
</expression>
|
@@ -566,82 +679,136 @@
|
|
566
679
|
<entry file="file://$PROJECT_DIR$/.travis.yml">
|
567
680
|
<provider selected="true" editor-type-id="text-editor" />
|
568
681
|
</entry>
|
569
|
-
<entry file="file://$PROJECT_DIR$/.gitignore">
|
570
|
-
<provider selected="true" editor-type-id="text-editor" />
|
571
|
-
</entry>
|
572
682
|
<entry file="file://$PROJECT_DIR$/LICENSE.txt">
|
573
683
|
<provider selected="true" editor-type-id="text-editor" />
|
574
684
|
</entry>
|
685
|
+
<entry file="file://$PROJECT_DIR$/Gemfile.lock" />
|
575
686
|
<entry file="file://$PROJECT_DIR$/binky-builder.gemspec">
|
576
687
|
<provider selected="true" editor-type-id="text-editor">
|
577
|
-
<state relative-caret-position="
|
578
|
-
<caret line="
|
688
|
+
<state relative-caret-position="546">
|
689
|
+
<caret line="21" column="56" selection-start-line="21" selection-start-column="56" selection-end-line="21" selection-end-column="56" />
|
579
690
|
</state>
|
580
691
|
</provider>
|
581
692
|
</entry>
|
582
|
-
<entry file="file://$PROJECT_DIR
|
693
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
583
694
|
<provider selected="true" editor-type-id="text-editor">
|
584
|
-
<state relative-caret-position="
|
585
|
-
<caret line="
|
695
|
+
<state relative-caret-position="208">
|
696
|
+
<caret line="8" column="8" selection-start-line="8" selection-start-column="8" selection-end-line="8" selection-end-column="8" />
|
586
697
|
</state>
|
587
698
|
</provider>
|
588
699
|
</entry>
|
589
700
|
<entry file="file://$PROJECT_DIR$/README.md">
|
590
701
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
591
702
|
<state split_layout="SPLIT">
|
592
|
-
<first_editor relative-caret-position="
|
593
|
-
<caret line="
|
703
|
+
<first_editor relative-caret-position="1144">
|
704
|
+
<caret line="44" column="5" selection-start-line="44" selection-start-column="5" selection-end-line="44" selection-end-column="5" />
|
594
705
|
</first_editor>
|
595
706
|
<second_editor />
|
596
707
|
</state>
|
597
708
|
</provider>
|
598
709
|
</entry>
|
710
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/hash.rb">
|
711
|
+
<provider selected="true" editor-type-id="text-editor">
|
712
|
+
<state relative-caret-position="352">
|
713
|
+
<caret line="588" column="8" selection-start-line="588" selection-start-column="8" selection-end-line="588" selection-end-column="8" />
|
714
|
+
</state>
|
715
|
+
</provider>
|
716
|
+
</entry>
|
717
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/array.rb">
|
718
|
+
<provider selected="true" editor-type-id="text-editor">
|
719
|
+
<state relative-caret-position="423">
|
720
|
+
<caret line="1176" column="8" selection-start-line="1176" selection-start-column="8" selection-end-line="1176" selection-end-column="8" />
|
721
|
+
</state>
|
722
|
+
</provider>
|
723
|
+
</entry>
|
724
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/string.rb">
|
725
|
+
<provider selected="true" editor-type-id="text-editor">
|
726
|
+
<state relative-caret-position="423">
|
727
|
+
<caret line="1305" column="8" selection-start-line="1305" selection-start-column="8" selection-end-line="1305" selection-end-column="8" />
|
728
|
+
</state>
|
729
|
+
</provider>
|
730
|
+
</entry>
|
599
731
|
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/basic_object.rb">
|
600
732
|
<provider selected="true" editor-type-id="text-editor">
|
601
|
-
<state relative-caret-position="
|
733
|
+
<state relative-caret-position="189">
|
602
734
|
<caret line="231" column="8" selection-start-line="231" selection-start-column="8" selection-end-line="231" selection-end-column="8" />
|
603
735
|
</state>
|
604
736
|
</provider>
|
605
737
|
</entry>
|
606
738
|
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/module.rb">
|
607
739
|
<provider selected="true" editor-type-id="text-editor">
|
608
|
-
<state relative-caret-position="
|
609
|
-
<caret line="
|
740
|
+
<state relative-caret-position="501">
|
741
|
+
<caret line="948" column="8" selection-start-line="948" selection-start-column="8" selection-end-line="948" selection-end-column="8" />
|
610
742
|
</state>
|
611
743
|
</provider>
|
612
744
|
</entry>
|
613
|
-
<entry file="file://$
|
745
|
+
<entry file="file://$PROJECT_DIR$/test/test_helper.rb">
|
746
|
+
<provider selected="true" editor-type-id="text-editor">
|
747
|
+
<state relative-caret-position="78">
|
748
|
+
<caret line="3" column="17" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="17" />
|
749
|
+
</state>
|
750
|
+
</provider>
|
751
|
+
</entry>
|
752
|
+
<entry file="file://$PROJECT_DIR$/test/binky/struct_test.rb">
|
753
|
+
<provider selected="true" editor-type-id="text-editor">
|
754
|
+
<state relative-caret-position="156">
|
755
|
+
<caret line="6" column="40" lean-forward="true" selection-start-line="6" selection-end-line="6" selection-end-column="40" />
|
756
|
+
</state>
|
757
|
+
</provider>
|
758
|
+
</entry>
|
759
|
+
<entry file="file://$PROJECT_DIR$/test/binky/helper_test.rb">
|
760
|
+
<provider selected="true" editor-type-id="text-editor">
|
761
|
+
<state relative-caret-position="104">
|
762
|
+
<caret line="4" column="3" selection-start-line="4" selection-start-column="3" selection-end-line="4" selection-end-column="3" />
|
763
|
+
</state>
|
764
|
+
</provider>
|
765
|
+
</entry>
|
766
|
+
<entry file="file://$USER_HOME$/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/minitest-5.14.1/lib/minitest.rb">
|
614
767
|
<provider selected="true" editor-type-id="text-editor">
|
615
|
-
<state relative-caret-position="
|
616
|
-
<caret line="
|
768
|
+
<state relative-caret-position="189">
|
769
|
+
<caret line="273" selection-start-line="273" selection-end-line="273" />
|
617
770
|
</state>
|
618
771
|
</provider>
|
619
772
|
</entry>
|
620
773
|
<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">
|
621
774
|
<provider selected="true" editor-type-id="text-editor">
|
622
|
-
<state relative-caret-position="
|
623
|
-
<caret line="
|
775
|
+
<state relative-caret-position="189">
|
776
|
+
<caret line="94" selection-start-line="94" selection-end-line="94" />
|
624
777
|
</state>
|
625
778
|
</provider>
|
626
779
|
</entry>
|
627
|
-
<entry file="file://$
|
780
|
+
<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">
|
628
781
|
<provider selected="true" editor-type-id="text-editor">
|
629
|
-
<state relative-caret-position="
|
630
|
-
<caret line="
|
782
|
+
<state relative-caret-position="189">
|
783
|
+
<caret line="416" selection-start-line="416" selection-end-line="416" />
|
631
784
|
</state>
|
632
785
|
</provider>
|
633
786
|
</entry>
|
634
787
|
<entry file="file://$PROJECT_DIR$/lib/binky/builder.rb">
|
635
788
|
<provider selected="true" editor-type-id="text-editor">
|
636
|
-
<state relative-caret-position="
|
637
|
-
<caret line="
|
789
|
+
<state relative-caret-position="277">
|
790
|
+
<caret line="11" column="65" lean-forward="true" selection-start-line="11" selection-start-column="65" selection-end-line="11" selection-end-column="65" />
|
638
791
|
</state>
|
639
792
|
</provider>
|
640
793
|
</entry>
|
641
794
|
<entry file="file://$PROJECT_DIR$/test/binky/builder_test.rb">
|
642
795
|
<provider selected="true" editor-type-id="text-editor">
|
643
|
-
<state relative-caret-position="
|
644
|
-
<caret line="
|
796
|
+
<state relative-caret-position="-572">
|
797
|
+
<caret line="1" selection-start-line="1" selection-end-line="1" />
|
798
|
+
</state>
|
799
|
+
</provider>
|
800
|
+
</entry>
|
801
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/object.rb">
|
802
|
+
<provider selected="true" editor-type-id="text-editor">
|
803
|
+
<state relative-caret-position="199">
|
804
|
+
<caret line="696" column="8" selection-start-line="696" selection-start-column="8" selection-end-line="696" selection-end-column="8" />
|
805
|
+
</state>
|
806
|
+
</provider>
|
807
|
+
</entry>
|
808
|
+
<entry file="file://$PROJECT_DIR$/test/binky/activerecord_test.rb">
|
809
|
+
<provider selected="true" editor-type-id="text-editor">
|
810
|
+
<state relative-caret-position="391">
|
811
|
+
<caret line="34" selection-start-line="34" selection-end-line="34" />
|
645
812
|
</state>
|
646
813
|
</provider>
|
647
814
|
</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,20 +1,23 @@
|
|
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('to_hash',{})
|
11
10
|
k = keys || json&.keys
|
12
|
-
raise ArgumentError unless k&.respond_to?(:each)
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
raise ArgumentError "keys argument is not an array" unless k&.respond_to?(:each)
|
12
|
+
accessor_builder('to_h',{}) unless self.class.method_defined?(:as_json)
|
13
|
+
json.transform_keys!(&:to_s)
|
14
|
+
k&.reject!{|ky| ky.end_with?('=')}
|
15
|
+
k&.each do |key|
|
16
|
+
self.send("#{key}=",nested_hash_value(json, key.to_s))
|
17
|
+
@to_h&.merge!({key.to_sym => nested_hash_value(json,key.to_s)})
|
18
|
+
end
|
17
19
|
yield self if block_given?
|
20
|
+
self
|
18
21
|
end
|
19
22
|
|
20
23
|
# Builds an instance variable as well as its class method accessors from a key value pair.
|
@@ -41,7 +44,6 @@ module Binky
|
|
41
44
|
obj[key]
|
42
45
|
elsif obj.respond_to?(:each)
|
43
46
|
r = nil
|
44
|
-
#The asterisk "splat" operator means you can pass multiple parameters in its place and the block will see them as an array.
|
45
47
|
obj.find do |*a|
|
46
48
|
r = nested_hash_value(a.last, key)
|
47
49
|
end
|
@@ -49,14 +51,18 @@ module Binky
|
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
|
-
def
|
53
|
-
|
54
|
+
def method_missing(name,*args)
|
55
|
+
accessor_builder name.to_s.chop, args[0]
|
56
|
+
end
|
57
|
+
|
58
|
+
def attribute_from_inner_key(elem, attr, in_key = nil)
|
59
|
+
{attr.to_sym => nested_hash_value(elem, in_key&.present? ? in_key : attr.to_s)}
|
54
60
|
end
|
55
61
|
end
|
56
62
|
|
57
|
-
module
|
63
|
+
module Struct
|
58
64
|
class Error < StandardError; end
|
59
|
-
include
|
65
|
+
include Helper
|
60
66
|
|
61
67
|
def initialize(json = nil)
|
62
68
|
@attributes = {}
|
@@ -79,21 +85,10 @@ module Binky
|
|
79
85
|
end
|
80
86
|
end
|
81
87
|
|
82
|
-
module
|
88
|
+
module Builder
|
83
89
|
class Error < StandardError; end
|
84
|
-
include
|
85
|
-
|
86
|
-
def initialize(json = {}, keys = nil)
|
87
|
-
k = keys || json&.keys
|
88
|
-
k&.reject! {|key| key.to_s.include?("=")}
|
89
|
-
json.transform_keys!(&:to_sym)
|
90
|
-
k&.each do |key|
|
91
|
-
self.send("#{key}=",nested_hash_value(json, key.to_sym))
|
92
|
-
end unless json.nil?
|
93
|
-
end
|
94
|
-
|
95
|
-
def method_missing(name,*args)
|
96
|
-
accessor_builder name.to_s.chop, args[0]
|
97
|
-
end
|
90
|
+
include Helper
|
91
|
+
alias_method :initialize,:build_by_keys
|
98
92
|
end
|
93
|
+
|
99
94
|
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.3
|
4
|
+
version: 0.5.3
|
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
|