mdb_generator_basic 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.idea/inspectionProfiles/Project_Default.xml +7 -0
- data/.idea/mdb_generator_basic.iml +19 -0
- data/.idea/modules.xml +8 -0
- data/.idea/workspace.xml +369 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/README.md +35 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/mdb_generator_basic/version.rb +3 -0
- data/lib/mdb_generator_basic.rb +76 -0
- data/mdb_generator_basic.gemspec +37 -0
- metadata +116 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fea5ae70747aaa683977e596515900f0c8fc083c
|
4
|
+
data.tar.gz: 74c977b26c44f2ba81444ebc782f5b36767fc0ae
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c6d8af5efd2041568f83128a0a1b4decf77d2fb6b621971b99bd69c94dc343f8ddae01c689146546f71c48c2efdc4ef5fb999715f6e18a23cb99628844d6d52d
|
7
|
+
data.tar.gz: c9dcff78133fe972240f4f515ec968d2bed8773466fbb67fb85dc147d65d7529eece2eec5cc4bc7b8895dff7045a188b04db10e46d5566c674971a0163cebdee
|
data/.gitignore
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
2
|
+
<profile version="1.0">
|
3
|
+
<option name="myName" value="Project Default" />
|
4
|
+
<inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
|
5
|
+
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false" />
|
6
|
+
</profile>
|
7
|
+
</component>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="ModuleRunConfigurationManager">
|
4
|
+
<shared />
|
5
|
+
</component>
|
6
|
+
<component name="NewModuleRootManager">
|
7
|
+
<content url="file://$MODULE_DIR$" />
|
8
|
+
<orderEntry type="inheritedJdk" />
|
9
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.0, RVM: ruby-2.2.2) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.2.2) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.7.0, RVM: ruby-2.2.2) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.7.0, RVM: ruby-2.2.2) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.7.0, RVM: ruby-2.2.2) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.7.0, RVM: ruby-2.2.2) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.7.0, RVM: ruby-2.2.2) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="thor (v0.19.4, RVM: ruby-2.2.2) [gem]" level="application" />
|
18
|
+
</component>
|
19
|
+
</module>
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/mdb_generator_basic.iml" filepath="$PROJECT_DIR$/.idea/mdb_generator_basic.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,369 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="90d8b577-7587-41d2-a1cc-cf1874138538" name="Default" comment="">
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" />
|
6
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" />
|
7
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/mdb_generator_basic.iml" />
|
8
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
|
9
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
10
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.rspec" />
|
11
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.travis.yml" />
|
12
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
|
13
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.md" />
|
14
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Rakefile" />
|
15
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/console" />
|
16
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
|
17
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/mdb_generator_basic.rb" />
|
18
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/mdb_generator_basic/version.rb" />
|
19
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/mdb_generator_basic.gemspec" />
|
20
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/mdb_generator_basic_spec.rb" />
|
21
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" />
|
22
|
+
</list>
|
23
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
24
|
+
<option name="TRACKING_ENABLED" value="true" />
|
25
|
+
<option name="SHOW_DIALOG" value="false" />
|
26
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
27
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
28
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
29
|
+
</component>
|
30
|
+
<component name="FileColors">
|
31
|
+
<fileColor scope="Project Files" color="434648" />
|
32
|
+
<fileColor scope="Problems" color="Rose" />
|
33
|
+
</component>
|
34
|
+
<component name="FileEditorManager">
|
35
|
+
<leaf>
|
36
|
+
<file leaf-file-name="mdb_generator_basic.rb" pinned="false" current-in-tab="false">
|
37
|
+
<entry file="file://$PROJECT_DIR$/lib/mdb_generator_basic.rb">
|
38
|
+
<provider selected="true" editor-type-id="text-editor">
|
39
|
+
<state relative-caret-position="0">
|
40
|
+
<caret line="3" column="14" lean-forward="true" selection-start-line="3" selection-start-column="14" selection-end-line="3" selection-end-column="14" />
|
41
|
+
<folding>
|
42
|
+
<element signature="e#719#949#0" expanded="true" />
|
43
|
+
<marker date="1511309153000" expanded="false" signature="0:91" ph="..." />
|
44
|
+
<marker date="1511309153000" expanded="true" signature="283:410" ph="..." />
|
45
|
+
<marker date="1511309153000" expanded="false" signature="283:630" ph="..." />
|
46
|
+
<marker date="1511309153000" expanded="false" signature="667:949" ph="..." />
|
47
|
+
<marker date="1511309153000" expanded="false" signature="987:1119" ph="..." />
|
48
|
+
</folding>
|
49
|
+
</state>
|
50
|
+
</provider>
|
51
|
+
</entry>
|
52
|
+
</file>
|
53
|
+
<file leaf-file-name="mdb_generator_basic.gemspec" pinned="false" current-in-tab="true">
|
54
|
+
<entry file="file://$PROJECT_DIR$/mdb_generator_basic.gemspec">
|
55
|
+
<provider selected="true" editor-type-id="text-editor">
|
56
|
+
<state relative-caret-position="175">
|
57
|
+
<caret line="18" column="62" lean-forward="false" selection-start-line="18" selection-start-column="62" selection-end-line="18" selection-end-column="62" />
|
58
|
+
<folding />
|
59
|
+
</state>
|
60
|
+
</provider>
|
61
|
+
</entry>
|
62
|
+
</file>
|
63
|
+
</leaf>
|
64
|
+
</component>
|
65
|
+
<component name="FileTemplateManagerImpl">
|
66
|
+
<option name="RECENT_TEMPLATES">
|
67
|
+
<list>
|
68
|
+
<option value="Ruby Class Template" />
|
69
|
+
<option value="HTML File" />
|
70
|
+
<option value="JavaScript File" />
|
71
|
+
<option value="CSS File" />
|
72
|
+
</list>
|
73
|
+
</option>
|
74
|
+
</component>
|
75
|
+
<component name="FindInProjectRecents">
|
76
|
+
<findStrings>
|
77
|
+
<find>mdbgeneratorbasic_files_already_exist</find>
|
78
|
+
<find>mgb_files_already_exist</find>
|
79
|
+
</findStrings>
|
80
|
+
<replaceStrings>
|
81
|
+
<replace>mgb_files_already_exist</replace>
|
82
|
+
<replace>mdb_files_already_exist</replace>
|
83
|
+
</replaceStrings>
|
84
|
+
</component>
|
85
|
+
<component name="Git.Settings">
|
86
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
87
|
+
</component>
|
88
|
+
<component name="IdeDocumentHistory">
|
89
|
+
<option name="CHANGED_PATHS">
|
90
|
+
<list>
|
91
|
+
<option value="$PROJECT_DIR$/lib/mdb_generator_basic/generator.rb" />
|
92
|
+
<option value="$PROJECT_DIR$/lib/mdb_generator_basic.rb" />
|
93
|
+
<option value="$PROJECT_DIR$/core/basefile-a.html" />
|
94
|
+
<option value="$PROJECT_DIR$/core/basefile-b.js" />
|
95
|
+
<option value="$PROJECT_DIR$/core/basefile-c.css" />
|
96
|
+
<option value="$PROJECT_DIR$/core/basefile-d.txt" />
|
97
|
+
<option value="$PROJECT_DIR$/core/basefile-e.rb" />
|
98
|
+
<option value="$PROJECT_DIR$/core/README.md" />
|
99
|
+
<option value="$PROJECT_DIR$/mdb_generator_basic.gemspec" />
|
100
|
+
</list>
|
101
|
+
</option>
|
102
|
+
</component>
|
103
|
+
<component name="JsBowerSettings">
|
104
|
+
<node-interpreter value="project" />
|
105
|
+
<exe-path>/usr/local/bin/bower</exe-path>
|
106
|
+
<config-path />
|
107
|
+
</component>
|
108
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
109
|
+
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
110
|
+
<component name="JsFlowSettings">
|
111
|
+
<service-enabled>true</service-enabled>
|
112
|
+
<exe-path />
|
113
|
+
<annotation-enable>false</annotation-enable>
|
114
|
+
<other-services-enabled>true</other-services-enabled>
|
115
|
+
<auto-save>true</auto-save>
|
116
|
+
</component>
|
117
|
+
<component name="JsGulpfileManager">
|
118
|
+
<detection-done>true</detection-done>
|
119
|
+
<sorting>DEFINITION_ORDER</sorting>
|
120
|
+
</component>
|
121
|
+
<component name="ProjectFrameBounds">
|
122
|
+
<option name="x" value="3" />
|
123
|
+
<option name="y" value="22" />
|
124
|
+
<option name="width" value="986" />
|
125
|
+
<option name="height" value="859" />
|
126
|
+
</component>
|
127
|
+
<component name="ProjectInspectionProfilesVisibleTreeState">
|
128
|
+
<entry key="Project Default">
|
129
|
+
<profile-state>
|
130
|
+
<expanded-state>
|
131
|
+
<State>
|
132
|
+
<id />
|
133
|
+
</State>
|
134
|
+
</expanded-state>
|
135
|
+
<selected-state>
|
136
|
+
<State>
|
137
|
+
<id>Spelling</id>
|
138
|
+
</State>
|
139
|
+
</selected-state>
|
140
|
+
</profile-state>
|
141
|
+
</entry>
|
142
|
+
</component>
|
143
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
144
|
+
<component name="ProjectView">
|
145
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
146
|
+
<flattenPackages />
|
147
|
+
<showMembers />
|
148
|
+
<showModules />
|
149
|
+
<showLibraryContents />
|
150
|
+
<hideEmptyPackages />
|
151
|
+
<abbreviatePackageNames />
|
152
|
+
<autoscrollToSource />
|
153
|
+
<autoscrollFromSource />
|
154
|
+
<sortByType />
|
155
|
+
<manualOrder />
|
156
|
+
<foldersAlwaysOnTop value="true" />
|
157
|
+
</navigator>
|
158
|
+
<panes>
|
159
|
+
<pane id="Scratches" />
|
160
|
+
<pane id="Scope" />
|
161
|
+
<pane id="ProjectPane">
|
162
|
+
<subPane>
|
163
|
+
<expand>
|
164
|
+
<path>
|
165
|
+
<item name="mdb_generator_basic" type="b2602c69:ProjectViewProjectNode" />
|
166
|
+
<item name="mdb_generator_basic" type="462c0819:PsiDirectoryNode" />
|
167
|
+
</path>
|
168
|
+
<path>
|
169
|
+
<item name="mdb_generator_basic" type="b2602c69:ProjectViewProjectNode" />
|
170
|
+
<item name="mdb_generator_basic" type="462c0819:PsiDirectoryNode" />
|
171
|
+
<item name="core" type="462c0819:PsiDirectoryNode" />
|
172
|
+
</path>
|
173
|
+
</expand>
|
174
|
+
<select />
|
175
|
+
</subPane>
|
176
|
+
</pane>
|
177
|
+
</panes>
|
178
|
+
</component>
|
179
|
+
<component name="PropertiesComponent">
|
180
|
+
<property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
|
181
|
+
<property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
|
182
|
+
<property name="javascript.nodejs.core.library.configured.version" value="8.9.1" />
|
183
|
+
<property name="node.js.path.for.package.eslint" value="project" />
|
184
|
+
<property name="node.js.selected.package.eslint" value="" />
|
185
|
+
<property name="node.js.path.for.package.standard" value="project" />
|
186
|
+
<property name="node.js.selected.package.standard" value="/usr/local/lib/node_modules/standard" />
|
187
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
188
|
+
<property name="HbShouldOpenHtmlAsHb" value="" />
|
189
|
+
<property name="DefaultHtmlFileTemplate" value="HTML File" />
|
190
|
+
<property name="list.type.of.created.stylesheet" value="CSS" />
|
191
|
+
<property name="RakeTaksPopup.undocumentedIncluded" value="false" />
|
192
|
+
</component>
|
193
|
+
<component name="RunDashboard">
|
194
|
+
<option name="ruleStates">
|
195
|
+
<list>
|
196
|
+
<RuleState>
|
197
|
+
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
198
|
+
</RuleState>
|
199
|
+
<RuleState>
|
200
|
+
<option name="name" value="StatusDashboardGroupingRule" />
|
201
|
+
</RuleState>
|
202
|
+
</list>
|
203
|
+
</option>
|
204
|
+
</component>
|
205
|
+
<component name="ShelveChangesManager" show_recycled="false">
|
206
|
+
<option name="remove_strategy" value="false" />
|
207
|
+
</component>
|
208
|
+
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
|
209
|
+
<component name="TaskManager">
|
210
|
+
<task active="true" id="Default" summary="Default task">
|
211
|
+
<changelist id="90d8b577-7587-41d2-a1cc-cf1874138538" name="Default" comment="" />
|
212
|
+
<created>1511307697280</created>
|
213
|
+
<option name="number" value="Default" />
|
214
|
+
<option name="presentableId" value="Default" />
|
215
|
+
<updated>1511307697280</updated>
|
216
|
+
<workItem from="1511307698369" duration="2732000" />
|
217
|
+
</task>
|
218
|
+
<servers />
|
219
|
+
</component>
|
220
|
+
<component name="TimeTrackingManager">
|
221
|
+
<option name="totallyTimeSpent" value="2732000" />
|
222
|
+
</component>
|
223
|
+
<component name="ToolWindowManager">
|
224
|
+
<frame x="3" y="22" width="986" height="859" extended-state="0" />
|
225
|
+
<editor active="true" />
|
226
|
+
<layout>
|
227
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.20283976" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
228
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
229
|
+
<window_info id="Cargo" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
230
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3292683" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
231
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
232
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32843137" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
233
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
234
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
235
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
236
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
237
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
238
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
239
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
240
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
241
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
242
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
243
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
244
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
245
|
+
</layout>
|
246
|
+
</component>
|
247
|
+
<component name="TypeScriptGeneratedFilesManager">
|
248
|
+
<option name="version" value="1" />
|
249
|
+
</component>
|
250
|
+
<component name="VcsContentAnnotationSettings">
|
251
|
+
<option name="myLimit" value="2678400000" />
|
252
|
+
</component>
|
253
|
+
<component name="VcsManagerConfiguration">
|
254
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="false" />
|
255
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="false" />
|
256
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="false" />
|
257
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="false" />
|
258
|
+
<ignored-roots>
|
259
|
+
<path value="$PROJECT_DIR$" />
|
260
|
+
</ignored-roots>
|
261
|
+
</component>
|
262
|
+
<component name="XDebuggerManager">
|
263
|
+
<breakpoint-manager />
|
264
|
+
<watches-manager />
|
265
|
+
</component>
|
266
|
+
<component name="editorHistoryManager">
|
267
|
+
<entry file="file://$PROJECT_DIR$/lib/mdb_generator_basic/generator.rb">
|
268
|
+
<provider selected="true" editor-type-id="text-editor">
|
269
|
+
<state relative-caret-position="17">
|
270
|
+
<caret line="1" column="0" lean-forward="false" selection-start-line="1" selection-start-column="0" selection-end-line="3" selection-end-column="14" />
|
271
|
+
<folding />
|
272
|
+
</state>
|
273
|
+
</provider>
|
274
|
+
</entry>
|
275
|
+
<entry file="file://$PROJECT_DIR$/core/basefile-a.html">
|
276
|
+
<provider selected="true" editor-type-id="text-editor">
|
277
|
+
<state relative-caret-position="527">
|
278
|
+
<caret line="31" column="0" lean-forward="true" selection-start-line="31" selection-start-column="0" selection-end-line="31" selection-end-column="0" />
|
279
|
+
<folding>
|
280
|
+
<element signature="n#head#0;n#html#0;n#!!top" expanded="true" />
|
281
|
+
</folding>
|
282
|
+
</state>
|
283
|
+
</provider>
|
284
|
+
</entry>
|
285
|
+
<entry file="file://$PROJECT_DIR$/core/basefile-b.js">
|
286
|
+
<provider selected="true" editor-type-id="text-editor">
|
287
|
+
<state relative-caret-position="238">
|
288
|
+
<caret line="18" column="0" lean-forward="true" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
|
289
|
+
<folding>
|
290
|
+
<element signature="e#45#220#0" expanded="true" />
|
291
|
+
</folding>
|
292
|
+
</state>
|
293
|
+
</provider>
|
294
|
+
</entry>
|
295
|
+
<entry file="file://$PROJECT_DIR$/core/basefile-c.css">
|
296
|
+
<provider selected="true" editor-type-id="text-editor">
|
297
|
+
<state relative-caret-position="238">
|
298
|
+
<caret line="14" column="0" lean-forward="true" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
|
299
|
+
<folding />
|
300
|
+
</state>
|
301
|
+
</provider>
|
302
|
+
</entry>
|
303
|
+
<entry file="file://$PROJECT_DIR$/core/basefile-d.txt">
|
304
|
+
<provider selected="true" editor-type-id="text-editor">
|
305
|
+
<state relative-caret-position="0">
|
306
|
+
<caret line="0" column="237" lean-forward="false" selection-start-line="0" selection-start-column="237" selection-end-line="0" selection-end-column="237" />
|
307
|
+
<folding />
|
308
|
+
</state>
|
309
|
+
</provider>
|
310
|
+
</entry>
|
311
|
+
<entry file="file://$PROJECT_DIR$/core/basefile-e.rb">
|
312
|
+
<provider selected="true" editor-type-id="text-editor">
|
313
|
+
<state relative-caret-position="34">
|
314
|
+
<caret line="2" column="23" lean-forward="true" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
|
315
|
+
<folding />
|
316
|
+
</state>
|
317
|
+
</provider>
|
318
|
+
</entry>
|
319
|
+
<entry file="file://$PROJECT_DIR$/core/README.md">
|
320
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
321
|
+
<state split_layout="SPLIT">
|
322
|
+
<first_editor relative-caret-position="204">
|
323
|
+
<caret line="12" column="23" lean-forward="false" selection-start-line="12" selection-start-column="23" selection-end-line="12" selection-end-column="23" />
|
324
|
+
<folding />
|
325
|
+
</first_editor>
|
326
|
+
<second_editor />
|
327
|
+
</state>
|
328
|
+
</provider>
|
329
|
+
</entry>
|
330
|
+
<entry file="file://$PROJECT_DIR$/lib/mdb_generator_basic.rb">
|
331
|
+
<provider selected="true" editor-type-id="text-editor">
|
332
|
+
<state relative-caret-position="0">
|
333
|
+
<caret line="3" column="14" lean-forward="true" selection-start-line="3" selection-start-column="14" selection-end-line="3" selection-end-column="14" />
|
334
|
+
<folding>
|
335
|
+
<element signature="e#719#949#0" expanded="true" />
|
336
|
+
<marker date="1511309153000" expanded="false" signature="0:91" ph="..." />
|
337
|
+
<marker date="1511309153000" expanded="true" signature="283:410" ph="..." />
|
338
|
+
<marker date="1511309153000" expanded="false" signature="283:630" ph="..." />
|
339
|
+
<marker date="1511309153000" expanded="false" signature="667:949" ph="..." />
|
340
|
+
<marker date="1511309153000" expanded="false" signature="987:1119" ph="..." />
|
341
|
+
</folding>
|
342
|
+
</state>
|
343
|
+
</provider>
|
344
|
+
</entry>
|
345
|
+
<entry file="file://$PROJECT_DIR$/mdb_generator_basic.gemspec">
|
346
|
+
<provider selected="true" editor-type-id="text-editor">
|
347
|
+
<state relative-caret-position="175">
|
348
|
+
<caret line="18" column="62" lean-forward="false" selection-start-line="18" selection-start-column="62" selection-end-line="18" selection-end-column="62" />
|
349
|
+
<folding />
|
350
|
+
</state>
|
351
|
+
</provider>
|
352
|
+
</entry>
|
353
|
+
</component>
|
354
|
+
<component name="masterDetails">
|
355
|
+
<states>
|
356
|
+
<state key="ScopeChooserConfigurable.UI">
|
357
|
+
<settings>
|
358
|
+
<splitter-proportions>
|
359
|
+
<option name="proportions">
|
360
|
+
<list>
|
361
|
+
<option value="0.1796875" />
|
362
|
+
</list>
|
363
|
+
</option>
|
364
|
+
</splitter-proportions>
|
365
|
+
</settings>
|
366
|
+
</state>
|
367
|
+
</states>
|
368
|
+
</component>
|
369
|
+
</project>
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# MdbGeneratorBasic
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/mdb_generator_basic`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'mdb_generator_basic'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install mdb_generator_basic
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mdb_generator_basic.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "mdb_generator_basic"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
require "mdb_generator_basic/version"
|
2
|
+
require 'fileutils'
|
3
|
+
require 'pathname'
|
4
|
+
require 'thor'
|
5
|
+
|
6
|
+
module MdbGeneratorBasic
|
7
|
+
class Generator < Thor
|
8
|
+
map ['-v', '--version'] => :version
|
9
|
+
map ['scaffold'] => :install
|
10
|
+
map ['delete'] => :remove
|
11
|
+
|
12
|
+
# [TASK:] - - - Install
|
13
|
+
desc 'install', 'Install MdbGeneratorBasic files into your project'
|
14
|
+
method_options path: :string
|
15
|
+
def install
|
16
|
+
if mdb_files_already_exist?
|
17
|
+
puts "MdbGeneratorBasic files already installed, doing nothing."
|
18
|
+
else
|
19
|
+
install_files
|
20
|
+
puts "MdbGeneratorBasic files installed to #{install_path}/base"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
# [TASK:] - - - Remove
|
25
|
+
desc 'remove', 'Remove MdbGeneratorBasic files'
|
26
|
+
def remove
|
27
|
+
if mdb_files_already_exist?
|
28
|
+
remove_template_directory
|
29
|
+
puts "MdbGeneratorBasic was successfully removed."
|
30
|
+
else
|
31
|
+
puts "No existing Bitters installation. Doing nothing."
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# [TASK:] - - - Version
|
36
|
+
desc 'version', 'Show MdbGeneratorBasic version'
|
37
|
+
def version
|
38
|
+
say "MdbGeneratorBasic #{MdbGeneratorBasic::VERSION}"
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
### -------------------------------------------------------------------------------
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def mdb_files_already_exist?
|
47
|
+
File.directory?(install_path)
|
48
|
+
end
|
49
|
+
|
50
|
+
def install_path
|
51
|
+
Pathname.new(options[:path].to_s).join('base')
|
52
|
+
end
|
53
|
+
|
54
|
+
def install_files
|
55
|
+
FileUtils.mkdir_p(install_path)
|
56
|
+
FileUtils.cp_r(all_template_files, install_path)
|
57
|
+
end
|
58
|
+
|
59
|
+
def remove_template_directory
|
60
|
+
FileUtils.rm_rf("base")
|
61
|
+
end
|
62
|
+
|
63
|
+
def all_template_files
|
64
|
+
Dir["#{template_directory}/*"]
|
65
|
+
end
|
66
|
+
|
67
|
+
def template_directory
|
68
|
+
File.join(top_level_directory, "core")
|
69
|
+
end
|
70
|
+
|
71
|
+
def top_level_directory
|
72
|
+
File.dirname(File.dirname(File.dirname(__FILE__)))
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "mdb_generator_basic/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "mdb_generator_basic"
|
8
|
+
spec.version = MdbGeneratorBasic::VERSION
|
9
|
+
spec.authors = ["matt-daniel-brown"]
|
10
|
+
spec.email = ["matt@dev.mattdanielbrown.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Very simple generator.}
|
13
|
+
spec.description = %q{Very basic generator that creates files and folders based on a local template.}
|
14
|
+
spec.homepage = %q{https://bitbucket.com/matt-daniel-brown/mdb_generator_basic}
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
22
|
+
"public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match(%r{^(test|spec|features)/})
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
|
33
|
+
spec.add_runtime_dependency "thor", "~> 0.19.1"
|
34
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
35
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
36
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mdb_generator_basic
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- matt-daniel-brown
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.19.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.19.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.16'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
description: Very basic generator that creates files and folders based on a local
|
70
|
+
template.
|
71
|
+
email:
|
72
|
+
- matt@dev.mattdanielbrown.com
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".gitignore"
|
78
|
+
- ".idea/inspectionProfiles/Project_Default.xml"
|
79
|
+
- ".idea/mdb_generator_basic.iml"
|
80
|
+
- ".idea/modules.xml"
|
81
|
+
- ".idea/workspace.xml"
|
82
|
+
- ".rspec"
|
83
|
+
- ".travis.yml"
|
84
|
+
- Gemfile
|
85
|
+
- README.md
|
86
|
+
- Rakefile
|
87
|
+
- bin/console
|
88
|
+
- bin/setup
|
89
|
+
- lib/mdb_generator_basic.rb
|
90
|
+
- lib/mdb_generator_basic/version.rb
|
91
|
+
- mdb_generator_basic.gemspec
|
92
|
+
homepage: https://bitbucket.com/matt-daniel-brown/mdb_generator_basic
|
93
|
+
licenses: []
|
94
|
+
metadata:
|
95
|
+
allowed_push_host: https://rubygems.org
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options: []
|
98
|
+
require_paths:
|
99
|
+
- lib
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
requirements: []
|
111
|
+
rubyforge_project:
|
112
|
+
rubygems_version: 2.6.14
|
113
|
+
signing_key:
|
114
|
+
specification_version: 4
|
115
|
+
summary: Very simple generator.
|
116
|
+
test_files: []
|