web_app_builder 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/cssxfire.xml +9 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/web_app_builder.iml +10 -0
- data/.idea/workspace.xml +361 -0
- data/.rvmrc +4 -0
- data/CHANGES +5 -0
- data/Gemfile +15 -0
- data/LICENSE +22 -0
- data/README.md +4 -0
- data/Rakefile +34 -0
- data/lib/web_app_builder/version.rb +3 -0
- data/lib/web_app_builder/web_app_builder.rb +268 -0
- data/lib/web_app_builder.rb +1 -0
- data/web_app_builder.gemspec.erb +20 -0
- metadata +115 -0
data/.gitignore
ADDED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
web_app_builder
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
|
data/.idea/cssxfire.xml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="CssXFireSettings">
|
4
|
+
<general autoClear="false" autoExpand="false" />
|
5
|
+
<strategy useRoutes="false" mediaReduce="false" fileReduce="false" currentDocumentsReduce="false" resolveVariables="true" resolveMixins="true" />
|
6
|
+
<routes />
|
7
|
+
</component>
|
8
|
+
</project>
|
9
|
+
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
@@ -0,0 +1,9 @@
|
|
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/web_app_builder.iml" filepath="$PROJECT_DIR$/.idea/web_app_builder.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
9
|
+
|
data/.idea/vcs.xml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager">
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
5
|
+
<orderEntry type="inheritedJdk" />
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
7
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.3, RVM: ruby-1.9.2-p318 [shvets.github.com]) [gem]" level="application" />
|
8
|
+
</component>
|
9
|
+
</module>
|
10
|
+
|
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,361 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="d2b687ec-cc2c-4fad-80ed-a1ad14b97798" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Rakefile" afterPath="$PROJECT_DIR$/Rakefile" />
|
8
|
+
</list>
|
9
|
+
<ignored path="web_app_builder.iws" />
|
10
|
+
<ignored path=".idea/workspace.xml" />
|
11
|
+
<option name="TRACKING_ENABLED" value="true" />
|
12
|
+
<option name="SHOW_DIALOG" value="false" />
|
13
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
14
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
15
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
16
|
+
</component>
|
17
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
18
|
+
<component name="CreatePatchCommitExecutor">
|
19
|
+
<option name="PATCH_PATH" value="" />
|
20
|
+
</component>
|
21
|
+
<component name="DaemonCodeAnalyzer">
|
22
|
+
<disable_hints />
|
23
|
+
</component>
|
24
|
+
<component name="FavoritesManager">
|
25
|
+
<favorites_list name="web_app_builder" />
|
26
|
+
</component>
|
27
|
+
<component name="FileEditorManager">
|
28
|
+
<leaf>
|
29
|
+
<file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
|
30
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
31
|
+
<provider selected="true" editor-type-id="text-editor">
|
32
|
+
<state line="14" column="144" selection-start="197" selection-end="197" vertical-scroll-proportion="0.0">
|
33
|
+
<folding />
|
34
|
+
</state>
|
35
|
+
</provider>
|
36
|
+
</entry>
|
37
|
+
</file>
|
38
|
+
<file leaf-file-name="web_app_builder.gemspec.erb" pinned="false" current="false" current-in-tab="false">
|
39
|
+
<entry file="file://$PROJECT_DIR$/web_app_builder.gemspec.erb">
|
40
|
+
<provider selected="true" editor-type-id="text-editor">
|
41
|
+
<state line="10" column="64" selection-start="568" selection-end="568" vertical-scroll-proportion="-6.4">
|
42
|
+
<folding />
|
43
|
+
</state>
|
44
|
+
</provider>
|
45
|
+
</entry>
|
46
|
+
</file>
|
47
|
+
<file leaf-file-name="Rakefile" pinned="false" current="true" current-in-tab="true">
|
48
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
49
|
+
<provider selected="true" editor-type-id="text-editor">
|
50
|
+
<state line="11" column="27" selection-start="240" selection-end="240" vertical-scroll-proportion="0.28525123">
|
51
|
+
<folding />
|
52
|
+
</state>
|
53
|
+
</provider>
|
54
|
+
</entry>
|
55
|
+
</file>
|
56
|
+
<file leaf-file-name="web_app_builder.rb" pinned="false" current="false" current-in-tab="false">
|
57
|
+
<entry file="file://$PROJECT_DIR$/lib/web_app_builder.rb">
|
58
|
+
<provider selected="true" editor-type-id="text-editor">
|
59
|
+
<state line="0" column="24" selection-start="24" selection-end="24" vertical-scroll-proportion="0.0">
|
60
|
+
<folding />
|
61
|
+
</state>
|
62
|
+
</provider>
|
63
|
+
</entry>
|
64
|
+
</file>
|
65
|
+
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
66
|
+
<entry file="file://$PROJECT_DIR$/lib/web_app_builder/version.rb">
|
67
|
+
<provider selected="true" editor-type-id="text-editor">
|
68
|
+
<state line="3" column="133" selection-start="45" selection-end="45" vertical-scroll-proportion="0.0">
|
69
|
+
<folding />
|
70
|
+
</state>
|
71
|
+
</provider>
|
72
|
+
</entry>
|
73
|
+
</file>
|
74
|
+
</leaf>
|
75
|
+
</component>
|
76
|
+
<component name="FindManager">
|
77
|
+
<FindUsagesManager>
|
78
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
79
|
+
</FindUsagesManager>
|
80
|
+
</component>
|
81
|
+
<component name="Git.Settings">
|
82
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
83
|
+
</component>
|
84
|
+
<component name="IdeDocumentHistory">
|
85
|
+
<option name="changedFiles">
|
86
|
+
<list>
|
87
|
+
<option value="$PROJECT_DIR$/lib/web_app_builder.rb" />
|
88
|
+
<option value="$PROJECT_DIR$/lib/web_app_builder/version.rb" />
|
89
|
+
<option value="$PROJECT_DIR$/web_app_builder.gemspec.erb" />
|
90
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
91
|
+
<option value="$PROJECT_DIR$/Rakefile" />
|
92
|
+
</list>
|
93
|
+
</option>
|
94
|
+
</component>
|
95
|
+
<component name="ProjectFrameBounds">
|
96
|
+
<option name="x" value="332" />
|
97
|
+
<option name="y" value="39" />
|
98
|
+
<option name="width" value="1588" />
|
99
|
+
<option name="height" value="1058" />
|
100
|
+
</component>
|
101
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
102
|
+
<OptionsSetting value="true" id="Add" />
|
103
|
+
<OptionsSetting value="true" id="Remove" />
|
104
|
+
<OptionsSetting value="true" id="Checkout" />
|
105
|
+
<OptionsSetting value="true" id="Update" />
|
106
|
+
<OptionsSetting value="true" id="Status" />
|
107
|
+
<OptionsSetting value="true" id="Edit" />
|
108
|
+
<ConfirmationsSetting value="0" id="Add" />
|
109
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
110
|
+
</component>
|
111
|
+
<component name="ProjectReloadState">
|
112
|
+
<option name="STATE" value="0" />
|
113
|
+
</component>
|
114
|
+
<component name="ProjectView">
|
115
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
116
|
+
<flattenPackages />
|
117
|
+
<showMembers />
|
118
|
+
<showModules />
|
119
|
+
<showLibraryContents />
|
120
|
+
<hideEmptyPackages />
|
121
|
+
<abbreviatePackageNames />
|
122
|
+
<autoscrollToSource />
|
123
|
+
<autoscrollFromSource />
|
124
|
+
<sortByType />
|
125
|
+
</navigator>
|
126
|
+
<panes>
|
127
|
+
<pane id="ProjectPane">
|
128
|
+
<subPane>
|
129
|
+
<PATH>
|
130
|
+
<PATH_ELEMENT>
|
131
|
+
<option name="myItemId" value="web_app_builder" />
|
132
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
133
|
+
</PATH_ELEMENT>
|
134
|
+
</PATH>
|
135
|
+
<PATH>
|
136
|
+
<PATH_ELEMENT>
|
137
|
+
<option name="myItemId" value="web_app_builder" />
|
138
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
139
|
+
</PATH_ELEMENT>
|
140
|
+
<PATH_ELEMENT>
|
141
|
+
<option name="myItemId" value="web_app_builder" />
|
142
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
143
|
+
</PATH_ELEMENT>
|
144
|
+
</PATH>
|
145
|
+
<PATH>
|
146
|
+
<PATH_ELEMENT>
|
147
|
+
<option name="myItemId" value="web_app_builder" />
|
148
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
149
|
+
</PATH_ELEMENT>
|
150
|
+
<PATH_ELEMENT>
|
151
|
+
<option name="myItemId" value="web_app_builder" />
|
152
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
153
|
+
</PATH_ELEMENT>
|
154
|
+
<PATH_ELEMENT>
|
155
|
+
<option name="myItemId" value="lib" />
|
156
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
157
|
+
</PATH_ELEMENT>
|
158
|
+
</PATH>
|
159
|
+
<PATH>
|
160
|
+
<PATH_ELEMENT>
|
161
|
+
<option name="myItemId" value="web_app_builder" />
|
162
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
163
|
+
</PATH_ELEMENT>
|
164
|
+
<PATH_ELEMENT>
|
165
|
+
<option name="myItemId" value="web_app_builder" />
|
166
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
167
|
+
</PATH_ELEMENT>
|
168
|
+
<PATH_ELEMENT>
|
169
|
+
<option name="myItemId" value="lib" />
|
170
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
171
|
+
</PATH_ELEMENT>
|
172
|
+
<PATH_ELEMENT>
|
173
|
+
<option name="myItemId" value="web_app_builder" />
|
174
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
175
|
+
</PATH_ELEMENT>
|
176
|
+
</PATH>
|
177
|
+
</subPane>
|
178
|
+
</pane>
|
179
|
+
<pane id="Scope" />
|
180
|
+
</panes>
|
181
|
+
</component>
|
182
|
+
<component name="RecentsManager">
|
183
|
+
<key name="MoveFile.RECENT_KEYS">
|
184
|
+
<recent name="$PROJECT_DIR$/lib/web_app_builder" />
|
185
|
+
</key>
|
186
|
+
</component>
|
187
|
+
<component name="RunManager">
|
188
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
189
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
190
|
+
<module name="" />
|
191
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
192
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
193
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
194
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
195
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
196
|
+
<envs />
|
197
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
198
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
199
|
+
<COVERAGE_PATTERN ENABLED="true">
|
200
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
201
|
+
</COVERAGE_PATTERN>
|
202
|
+
</EXTENSION>
|
203
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
204
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
205
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
206
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
207
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
208
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
209
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
210
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
211
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
212
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
213
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
214
|
+
<method />
|
215
|
+
</configuration>
|
216
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
217
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
218
|
+
<module name="" />
|
219
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
220
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
221
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
222
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
223
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
224
|
+
<envs />
|
225
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
226
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
227
|
+
<COVERAGE_PATTERN ENABLED="true">
|
228
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
229
|
+
</COVERAGE_PATTERN>
|
230
|
+
</EXTENSION>
|
231
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
232
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
233
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
234
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
235
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
236
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
237
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
238
|
+
<method />
|
239
|
+
</configuration>
|
240
|
+
<list size="0" />
|
241
|
+
</component>
|
242
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
243
|
+
<component name="ToolWindowManager">
|
244
|
+
<frame x="332" y="39" width="1588" height="1058" extended-state="0" />
|
245
|
+
<editor active="true" />
|
246
|
+
<layout>
|
247
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
248
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
249
|
+
<window_info id="jenkinsBrowser" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
250
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
251
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
252
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
253
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
254
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
255
|
+
<window_info id="CSS-X-Fire" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
256
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
257
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
|
258
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.67013526" order="0" side_tool="false" content_ui="combo" />
|
259
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
260
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
261
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
262
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
263
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
264
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
265
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
266
|
+
</layout>
|
267
|
+
</component>
|
268
|
+
<component name="VcsContentAnnotationSettings">
|
269
|
+
<option name="myLimit" value="2678400000" />
|
270
|
+
</component>
|
271
|
+
<component name="VcsManagerConfiguration">
|
272
|
+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
273
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
|
274
|
+
<option name="CHECK_NEW_TODO" value="true" />
|
275
|
+
<option name="myTodoPanelSettings">
|
276
|
+
<value>
|
277
|
+
<are-packages-shown value="false" />
|
278
|
+
<are-modules-shown value="false" />
|
279
|
+
<flatten-packages value="false" />
|
280
|
+
<is-autoscroll-to-source value="false" />
|
281
|
+
</value>
|
282
|
+
</option>
|
283
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
284
|
+
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
285
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
286
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
287
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
288
|
+
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
289
|
+
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
290
|
+
<option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
|
291
|
+
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
292
|
+
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
293
|
+
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
294
|
+
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
295
|
+
<option name="SHORT_DIFF_HORISONTALLY" value="true" />
|
296
|
+
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
297
|
+
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
298
|
+
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
299
|
+
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
300
|
+
<option name="CREATE_PATCH_EXPAND_DETAILS_DEFAULT" value="true" />
|
301
|
+
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
302
|
+
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
|
303
|
+
<option name="CHANGE_DETAILS_ON" value="false" />
|
304
|
+
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
305
|
+
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
|
306
|
+
<option name="LAST_COMMIT_MESSAGE" />
|
307
|
+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
308
|
+
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
309
|
+
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
310
|
+
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
311
|
+
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
312
|
+
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
313
|
+
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
314
|
+
<option name="ACTIVE_VCS_NAME" />
|
315
|
+
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
316
|
+
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
317
|
+
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
318
|
+
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
319
|
+
</component>
|
320
|
+
<component name="XDebuggerManager">
|
321
|
+
<breakpoint-manager />
|
322
|
+
</component>
|
323
|
+
<component name="editorHistoryManager">
|
324
|
+
<entry file="file://$PROJECT_DIR$/lib/web_app_builder.rb">
|
325
|
+
<provider selected="true" editor-type-id="text-editor">
|
326
|
+
<state line="0" column="24" selection-start="24" selection-end="24" vertical-scroll-proportion="0.0">
|
327
|
+
<folding />
|
328
|
+
</state>
|
329
|
+
</provider>
|
330
|
+
</entry>
|
331
|
+
<entry file="file://$PROJECT_DIR$/lib/web_app_builder/version.rb">
|
332
|
+
<provider selected="true" editor-type-id="text-editor">
|
333
|
+
<state line="3" column="133" selection-start="45" selection-end="45" vertical-scroll-proportion="0.0">
|
334
|
+
<folding />
|
335
|
+
</state>
|
336
|
+
</provider>
|
337
|
+
</entry>
|
338
|
+
<entry file="file://$PROJECT_DIR$/web_app_builder.gemspec.erb">
|
339
|
+
<provider selected="true" editor-type-id="text-editor">
|
340
|
+
<state line="10" column="64" selection-start="568" selection-end="568" vertical-scroll-proportion="-6.4">
|
341
|
+
<folding />
|
342
|
+
</state>
|
343
|
+
</provider>
|
344
|
+
</entry>
|
345
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
346
|
+
<provider selected="true" editor-type-id="text-editor">
|
347
|
+
<state line="14" column="144" selection-start="197" selection-end="197" vertical-scroll-proportion="0.0">
|
348
|
+
<folding />
|
349
|
+
</state>
|
350
|
+
</provider>
|
351
|
+
</entry>
|
352
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
353
|
+
<provider selected="true" editor-type-id="text-editor">
|
354
|
+
<state line="11" column="27" selection-start="240" selection-end="240" vertical-scroll-proportion="0.28525123">
|
355
|
+
<folding />
|
356
|
+
</state>
|
357
|
+
</provider>
|
358
|
+
</entry>
|
359
|
+
</component>
|
360
|
+
</project>
|
361
|
+
|
data/.rvmrc
ADDED
data/CHANGES
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Alexander Shvets
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.expand_path("lib", File.dirname(__FILE__))
|
4
|
+
|
5
|
+
require "rspec/core/rake_task"
|
6
|
+
require "web_app_builder/version"
|
7
|
+
require "gemspec_deps_gen/gemspec_deps_gen"
|
8
|
+
|
9
|
+
def version
|
10
|
+
WebAppBuilder::VERSION
|
11
|
+
end
|
12
|
+
|
13
|
+
def project_name
|
14
|
+
File.basename(Dir.pwd)
|
15
|
+
end
|
16
|
+
|
17
|
+
task :build do
|
18
|
+
generator = GemspecDepsGen.new
|
19
|
+
|
20
|
+
generator.generate_dependencies "#{project_name}.gemspec.erb", "#{project_name}.gemspec"
|
21
|
+
|
22
|
+
system "gem build #{project_name}.gemspec"
|
23
|
+
end
|
24
|
+
|
25
|
+
task :release => :build do
|
26
|
+
system "gem push #{project_name}-#{version}.gem"
|
27
|
+
end
|
28
|
+
|
29
|
+
RSpec::Core::RakeTask.new do |task|
|
30
|
+
task.pattern = 'spec/**/*_spec.rb'
|
31
|
+
task.verbose = false
|
32
|
+
end
|
33
|
+
|
34
|
+
|
@@ -0,0 +1,268 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
require 'meta_methods'
|
3
|
+
|
4
|
+
require 'file_utils/file_utils'
|
5
|
+
require 'zip_dsl/zip_dsl'
|
6
|
+
require 'directory_builder'
|
7
|
+
|
8
|
+
class WebAppBuilder
|
9
|
+
include MetaMethods
|
10
|
+
include FileUtils
|
11
|
+
|
12
|
+
JRUBY_JARS_VERSION = Gem.loaded_specs["jruby-jars"].version
|
13
|
+
JRUBY_RACK_VERSION = Gem.loaded_specs["jruby-rack"].version
|
14
|
+
JRUBY_OPENSSL_VERSION = Gem.loaded_specs["jruby-openssl"].version
|
15
|
+
BOUNCY_CASTLE_JAVA_VERSION = Gem.loaded_specs["bouncy-castle-java"].version
|
16
|
+
|
17
|
+
WARFILE_NAME = "Warfile"
|
18
|
+
|
19
|
+
attr_reader :basedir, :build_dir, :config
|
20
|
+
|
21
|
+
def initialize basedir, build_dir
|
22
|
+
@basedir = basedir
|
23
|
+
@build_dir = build_dir
|
24
|
+
end
|
25
|
+
|
26
|
+
def configure
|
27
|
+
@config ||= locals_to_hash(self, read_file("#{basedir}/#{WARFILE_NAME}"))
|
28
|
+
end
|
29
|
+
|
30
|
+
def clean
|
31
|
+
configure
|
32
|
+
|
33
|
+
delete_directory build_dir
|
34
|
+
end
|
35
|
+
|
36
|
+
def prepare
|
37
|
+
create_directory build_dir
|
38
|
+
|
39
|
+
process_templates
|
40
|
+
|
41
|
+
puts "RAILS_ENV: #{config[:rails_env]}"
|
42
|
+
end
|
43
|
+
|
44
|
+
def war
|
45
|
+
configure
|
46
|
+
|
47
|
+
gems = bundler_gems
|
48
|
+
|
49
|
+
# binding
|
50
|
+
build_dir = @build_dir
|
51
|
+
gem_home = gem_home()
|
52
|
+
global_gem_home = global_gem_home()
|
53
|
+
config = @config
|
54
|
+
ruby_home = ruby_home()
|
55
|
+
included_global_gems = included_global_gems()
|
56
|
+
included_global_specs = included_global_specs()
|
57
|
+
included_gems = included_gems(gems)
|
58
|
+
included_specs = included_specs(gems)
|
59
|
+
jars = jars(gems)
|
60
|
+
|
61
|
+
manifest = <<-TEXT
|
62
|
+
Built-By: web_app_builder
|
63
|
+
Created-By: #{config[:author]}
|
64
|
+
TEXT
|
65
|
+
|
66
|
+
builder = Zip::DSL.new "#{build_dir}/#{config[:project_name]}.war", "."
|
67
|
+
|
68
|
+
builder.build do
|
69
|
+
directory :from_dir => "#{build_dir}/WEB-INF", :to_dir => "WEB-INF"
|
70
|
+
directory :from_dir => "#{build_dir}/META-INF", :to_dir => "META-INF"
|
71
|
+
directory :from_dir => "app", :to_dir => "WEB-INF/app"
|
72
|
+
directory :from_dir => "config", :to_dir => "WEB-INF/config"
|
73
|
+
directory :from_dir => "lib", :to_dir => "WEB-INF/lib", :filter => "*.rb"
|
74
|
+
directory :from_dir => "vendor", :to_dir => "WEB-INF/vendor"
|
75
|
+
|
76
|
+
directory :from_dir => "#{gem_home}/gems", :to_dir => "WEB-INF/gems/gems", :filter => included_gems
|
77
|
+
directory :from_dir => "#{gem_home}/specifications", :to_dir => "WEB-INF/gems/specifications",
|
78
|
+
:filter => included_specs
|
79
|
+
directory :from_dir => "#{global_gem_home}/gems", :to_dir => "WEB-INF/gems/gems", :filter => included_global_gems
|
80
|
+
directory :from_dir => "#{global_gem_home}/specifications", :to_dir => "WEB-INF/gems/specifications", :filter => included_global_specs
|
81
|
+
|
82
|
+
directory :from_dir => "#{global_gem_home}/gems/jruby-openssl-#{JRUBY_OPENSSL_VERSION}/lib/shared",
|
83
|
+
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
84
|
+
directory :from_dir => "#{global_gem_home}/gems/bouncy-castle-java-#{BOUNCY_CASTLE_JAVA_VERSION}/lib",
|
85
|
+
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
86
|
+
directory :from_dir => "#{ruby_home}/lib", :to_dir => "WEB-INF/lib", :filter => "*.jar"
|
87
|
+
|
88
|
+
config[:additional_java_jars].each do |jar|
|
89
|
+
file :name => jar, :to_dir => "WEB-INF/lib"
|
90
|
+
end if config[:additional_java_jars]
|
91
|
+
|
92
|
+
directory :to_dir => "WEB-INF/log"
|
93
|
+
|
94
|
+
directory :from_dir => "#{gem_home}/gems/jruby-rack-#{JRUBY_RACK_VERSION}/lib", :to_dir => "WEB-INF/lib", :filter => "*.jar"
|
95
|
+
directory :from_dir => "#{gem_home}/gems/jruby-jars-#{JRUBY_JARS_VERSION}/lib", :to_dir => "WEB-INF/lib", :filter => "*.jar"
|
96
|
+
|
97
|
+
jars.each do |jar|
|
98
|
+
file :name => jar, :to_dir => "WEB-INF/lib"
|
99
|
+
end
|
100
|
+
|
101
|
+
file :name => "Gemfile", :to_dir => "WEB-INF"
|
102
|
+
file :name => "Gemfile.lock", :to_dir => "WEB-INF"
|
103
|
+
|
104
|
+
directory :from_dir => "public"
|
105
|
+
|
106
|
+
content :name => "MANIFEST.MF", :to_dir => "META-INF", :source => manifest
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
def war_exploded
|
111
|
+
configure
|
112
|
+
|
113
|
+
to_dir = "#{build_dir}/exploded"
|
114
|
+
|
115
|
+
gems = bundler_gems
|
116
|
+
|
117
|
+
# binding
|
118
|
+
build_dir = @build_dir
|
119
|
+
gem_home = gem_home()
|
120
|
+
global_gem_home = global_gem_home()
|
121
|
+
config = @config
|
122
|
+
ruby_home = ruby_home()
|
123
|
+
included_global_gems = included_global_gems()
|
124
|
+
included_global_specs = included_global_specs()
|
125
|
+
included_gems = included_gems(gems)
|
126
|
+
included_specs = included_specs(gems)
|
127
|
+
jars = jars(gems)
|
128
|
+
|
129
|
+
builder = DirectoryBuilder.new to_dir
|
130
|
+
|
131
|
+
builder.build do
|
132
|
+
directory :from_dir => "#{build_dir}/WEB-INF", :to_dir => "WEB-INF"
|
133
|
+
directory :from_dir => "#{build_dir}/META-INF", :to_dir => "META-INF"
|
134
|
+
|
135
|
+
directory :from_dir => "app", :to_dir => "WEB-INF/app"
|
136
|
+
directory :from_dir => "config", :to_dir => "WEB-INF/config"
|
137
|
+
directory :from_dir => "lib", :to_dir => "WEB-INF/lib", :filter => "*.rb"
|
138
|
+
directory :from_dir => "vendor", :to_dir => "WEB-INF/vendor"
|
139
|
+
|
140
|
+
directory :from_dir => "#{gem_home}/gems", :to_dir => "WEB-INF/gems/gems", :filter => included_gems
|
141
|
+
directory :from_dir => "#{gem_home}/specifications", :to_dir => "WEB-INF/gems/specifications",
|
142
|
+
:filter => included_specs
|
143
|
+
directory :from_dir => "#{global_gem_home}/gems", :to_dir => "WEB-INF/gems/gems", :filter => included_global_gems
|
144
|
+
directory :from_dir => "#{global_gem_home}/specifications", :to_dir => "WEB-INF/gems/specifications", :filter => included_global_specs
|
145
|
+
|
146
|
+
directory :from_dir => "#{global_gem_home}/gems/jruby-openssl-#{JRUBY_OPENSSL_VERSION}/lib/shared",
|
147
|
+
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
148
|
+
directory :from_dir => "#{global_gem_home}/gems/bouncy-castle-java-#{BOUNCY_CASTLE_JAVA_VERSION}/lib",
|
149
|
+
:to_dir => "WEB-INF/lib", :filter => "*.jar"
|
150
|
+
directory :from_dir => "#{ruby_home}/lib", :to_dir => "WEB-INF/lib", :filter => "*.jar"
|
151
|
+
|
152
|
+
config[:additional_java_jars].each do |jar|
|
153
|
+
file :name => jar, :to_dir => "WEB-INF/lib"
|
154
|
+
end if config[:additional_java_jars]
|
155
|
+
|
156
|
+
#directory :to_dir => "WEB-INF/log"
|
157
|
+
|
158
|
+
directory :from_dir => "#{gem_home}/gems/jruby-rack-#{JRUBY_RACK_VERSION}/lib", :to_dir => "WEB-INF/lib", :filter => "*.jar"
|
159
|
+
directory :from_dir => "#{gem_home}/gems/jruby-jars-#{JRUBY_JARS_VERSION}/lib", :to_dir => "WEB-INF/lib", :filter => "*.jar"
|
160
|
+
|
161
|
+
jars.each do |jar|
|
162
|
+
file :name => jar, :to_dir => "WEB-INF/lib"
|
163
|
+
end
|
164
|
+
|
165
|
+
file :name => "Gemfile", :to_dir => "WEB-INF"
|
166
|
+
file :name => "Gemfile.lock", :to_dir => "WEB-INF"
|
167
|
+
|
168
|
+
directory :from_dir => "public"
|
169
|
+
|
170
|
+
#content :name => "MANIFEST.MF", :to_dir => "META-INF", :source => manifest
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
def process_templates
|
175
|
+
configure
|
176
|
+
|
177
|
+
process_dir(config[:templates_dir]) do |entry_name|
|
178
|
+
if entry_name == "META-INF"
|
179
|
+
process_dir("#{config[:templates_dir]}/META-INF") do |entry_name2|
|
180
|
+
new_content = substitute_vars("#{config[:templates_dir]}/META-INF/#{entry_name2}")
|
181
|
+
|
182
|
+
create_directory "#{build_dir}/META-INF/"
|
183
|
+
|
184
|
+
write_content_to_file new_content, "#{build_dir}/META-INF/#{entry_name2}"
|
185
|
+
end
|
186
|
+
elsif entry_name == "WEB-INF"
|
187
|
+
process_dir("#{config[:templates_dir]}/WEB-INF") do |entry_name2|
|
188
|
+
new_content = substitute_vars("#{config[:templates_dir]}/WEB-INF/#{entry_name2}")
|
189
|
+
|
190
|
+
create_directory "#{build_dir}/WEB-INF/"
|
191
|
+
|
192
|
+
write_content_to_file new_content, "#{build_dir}/WEB-INF/#{entry_name2}"
|
193
|
+
end
|
194
|
+
else
|
195
|
+
new_content = substitute_vars("#{config[:templates_dir]}/#{entry_name}")
|
196
|
+
|
197
|
+
write_content_to_file new_content, "#{build_dir}/#{entry_name}"
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
private
|
203
|
+
|
204
|
+
def ruby_home
|
205
|
+
ENV['MY_RUBY_HOME']
|
206
|
+
end
|
207
|
+
|
208
|
+
def gem_home
|
209
|
+
ENV['GEM_HOME']
|
210
|
+
end
|
211
|
+
|
212
|
+
def global_gem_home
|
213
|
+
gem_home.gsub(config[:project_name], 'global')
|
214
|
+
end
|
215
|
+
|
216
|
+
def included_global_gems
|
217
|
+
"jruby-openssl-#{JRUBY_OPENSSL_VERSION}/**/*, bouncy-castle-java-#{BOUNCY_CASTLE_JAVA_VERSION}/**/*"
|
218
|
+
end
|
219
|
+
|
220
|
+
def included_global_specs
|
221
|
+
"jruby-openssl-#{JRUBY_OPENSSL_VERSION}.gemspec, bouncy-castle-java-#{BOUNCY_CASTLE_JAVA_VERSION}.gemspec"
|
222
|
+
end
|
223
|
+
|
224
|
+
def included_gems gems
|
225
|
+
gems.collect {|gem| "#{gem_folder(gem)}/**/*"}
|
226
|
+
end
|
227
|
+
|
228
|
+
def included_specs gems
|
229
|
+
gems.collect {|gem| gem_spec(gem) }
|
230
|
+
end
|
231
|
+
|
232
|
+
def jars gems
|
233
|
+
jars = []
|
234
|
+
|
235
|
+
gems.each do |gem|
|
236
|
+
gem_jars = Dir["#{gem.full_gem_path}/**/*.jar"]
|
237
|
+
|
238
|
+
jars += gem_jars unless gem_jars.empty?
|
239
|
+
end
|
240
|
+
|
241
|
+
jars
|
242
|
+
end
|
243
|
+
|
244
|
+
def gem_folder gem
|
245
|
+
"#{gem.name}-#{gem.version}#{(gem.platform.to_s == 'java') ? '-java' : ''}"
|
246
|
+
end
|
247
|
+
|
248
|
+
def gem_spec gem
|
249
|
+
"#{gem.name}-#{gem.version}#{(gem.platform.to_s == 'java') ? '-java' : ''}.gemspec"
|
250
|
+
end
|
251
|
+
|
252
|
+
def bundler_gems
|
253
|
+
orig_without_groups = Bundler.settings.without
|
254
|
+
|
255
|
+
Bundler.settings.without = config[:groups_to_reject]
|
256
|
+
|
257
|
+
gems = Bundler::Definition.build(Bundler.default_gemfile, Bundler.default_lockfile, nil).requested_specs
|
258
|
+
|
259
|
+
new_gems = gems.reject do |gem|
|
260
|
+
config[:gems_to_reject].include? gem.name
|
261
|
+
end
|
262
|
+
|
263
|
+
Bundler.settings.without = orig_without_groups
|
264
|
+
|
265
|
+
new_gems
|
266
|
+
end
|
267
|
+
|
268
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "web_app_builder"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/lib/web_app_builder/version')
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "web_app_builder"
|
7
|
+
spec.summary = %q{Class that helps to keep database credentials for rails application in private place}
|
8
|
+
spec.description = %q{Class that helps to keep database credentials for rails application in private place}
|
9
|
+
spec.email = "alexander.shvets@gmail.com"
|
10
|
+
spec.authors = ["Alexander Shvets"]
|
11
|
+
spec.homepage = "http://github.com/shvets/web_app_builder"
|
12
|
+
|
13
|
+
spec.files = `git ls-files`.split($\)
|
14
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
15
|
+
spec.require_paths = ["lib"]
|
16
|
+
spec.version = WebAppBuilder::VERSION
|
17
|
+
|
18
|
+
<%= include_dependencies %>
|
19
|
+
end
|
20
|
+
|
metadata
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: web_app_builder
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Alexander Shvets
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-06-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: meta_methods
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: gemspec_deps_gen
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: gemcutter
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
description: Class that helps to keep database credentials for rails application in
|
63
|
+
private place
|
64
|
+
email: alexander.shvets@gmail.com
|
65
|
+
executables: []
|
66
|
+
extensions: []
|
67
|
+
extra_rdoc_files: []
|
68
|
+
files:
|
69
|
+
- .gitignore
|
70
|
+
- .idea/.name
|
71
|
+
- .idea/.rakeTasks
|
72
|
+
- .idea/cssxfire.xml
|
73
|
+
- .idea/encodings.xml
|
74
|
+
- .idea/misc.xml
|
75
|
+
- .idea/modules.xml
|
76
|
+
- .idea/scopes/scope_settings.xml
|
77
|
+
- .idea/vcs.xml
|
78
|
+
- .idea/web_app_builder.iml
|
79
|
+
- .idea/workspace.xml
|
80
|
+
- .rvmrc
|
81
|
+
- CHANGES
|
82
|
+
- Gemfile
|
83
|
+
- LICENSE
|
84
|
+
- README.md
|
85
|
+
- Rakefile
|
86
|
+
- lib/web_app_builder.rb
|
87
|
+
- lib/web_app_builder/version.rb
|
88
|
+
- lib/web_app_builder/web_app_builder.rb
|
89
|
+
- web_app_builder.gemspec.erb
|
90
|
+
homepage: http://github.com/shvets/web_app_builder
|
91
|
+
licenses: []
|
92
|
+
post_install_message:
|
93
|
+
rdoc_options: []
|
94
|
+
require_paths:
|
95
|
+
- lib
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ! '>='
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
requirements: []
|
109
|
+
rubyforge_project:
|
110
|
+
rubygems_version: 1.8.23
|
111
|
+
signing_key:
|
112
|
+
specification_version: 3
|
113
|
+
summary: Class that helps to keep database credentials for rails application in private
|
114
|
+
place
|
115
|
+
test_files: []
|