zip_dsl 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.idea/misc.xml +1 -1
- data/.idea/workspace.xml +295 -55
- data/.idea/zip_dsl.iml +13 -10
- data/Gemfile +2 -0
- data/lib/directory_builder.rb +1 -1
- data/lib/zip_dsl/version.rb +1 -1
- data/lib/zip_dsl/zip_dsl.rb +3 -4
- data/lib/zip_dsl/zip_writer.rb +5 -4
- data/lib/zip_dsl.rb +3 -0
- data/spec/zip_builder_spec.rb +15 -12
- data/zip_dsl.gemspec +2 -0
- metadata +34 -1
data/.idea/misc.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p194 [
|
|
3
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p194 [zip_dsl]" project-jdk-type="RUBY_SDK" />
|
|
4
4
|
</project>
|
|
5
5
|
|
data/.idea/workspace.xml
CHANGED
|
@@ -2,7 +2,17 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
4
|
<list default="true" id="aafa5aec-b597-47d5-af91-f7b63300321f" name="Default" comment="">
|
|
5
|
-
<change type="
|
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/zip_dsl.rb" />
|
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/zip_dsl.iml" afterPath="$PROJECT_DIR$/.idea/zip_dsl.iml" />
|
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
|
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
9
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
|
|
10
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/directory_builder.rb" afterPath="$PROJECT_DIR$/lib/directory_builder.rb" />
|
|
11
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/version.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
|
|
12
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" />
|
|
13
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
|
|
14
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/zip_builder_spec.rb" afterPath="$PROJECT_DIR$/spec/zip_builder_spec.rb" />
|
|
15
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/zip_dsl.gemspec" afterPath="$PROJECT_DIR$/zip_dsl.gemspec" />
|
|
6
16
|
</list>
|
|
7
17
|
<ignored path="zip_dsl.iws" />
|
|
8
18
|
<ignored path=".idea/workspace.xml" />
|
|
@@ -24,55 +34,37 @@
|
|
|
24
34
|
</component>
|
|
25
35
|
<component name="FileEditorManager">
|
|
26
36
|
<leaf>
|
|
27
|
-
<file leaf-file-name=".
|
|
28
|
-
<entry file="file://$PROJECT_DIR
|
|
37
|
+
<file leaf-file-name="zip_builder_spec.rb" pinned="false" current="false" current-in-tab="false">
|
|
38
|
+
<entry file="file://$PROJECT_DIR$/spec/zip_builder_spec.rb">
|
|
29
39
|
<provider selected="true" editor-type-id="text-editor">
|
|
30
|
-
<state line="
|
|
40
|
+
<state line="73" column="70" selection-start="2060" selection-end="2060" vertical-scroll-proportion="0.0">
|
|
31
41
|
<folding />
|
|
32
42
|
</state>
|
|
33
43
|
</provider>
|
|
34
44
|
</entry>
|
|
35
45
|
</file>
|
|
36
|
-
<file leaf-file-name=".
|
|
37
|
-
<entry file="file://$PROJECT_DIR
|
|
46
|
+
<file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
|
|
47
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
|
|
38
48
|
<provider selected="true" editor-type-id="text-editor">
|
|
39
|
-
<state line="
|
|
49
|
+
<state line="1" column="18" selection-start="32" selection-end="32" vertical-scroll-proportion="0.025931928">
|
|
40
50
|
<folding />
|
|
41
51
|
</state>
|
|
42
52
|
</provider>
|
|
43
53
|
</entry>
|
|
44
54
|
</file>
|
|
45
|
-
<file leaf-file-name="
|
|
46
|
-
<entry file="file://$PROJECT_DIR$/
|
|
55
|
+
<file leaf-file-name="zip_writer.rb" pinned="false" current="false" current-in-tab="false">
|
|
56
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
|
|
47
57
|
<provider selected="true" editor-type-id="text-editor">
|
|
48
|
-
<state line="
|
|
58
|
+
<state line="56" column="13" selection-start="1261" selection-end="1261" vertical-scroll-proportion="0.0">
|
|
49
59
|
<folding />
|
|
50
60
|
</state>
|
|
51
61
|
</provider>
|
|
52
62
|
</entry>
|
|
53
63
|
</file>
|
|
54
|
-
<file leaf-file-name="
|
|
55
|
-
<entry file="file://$PROJECT_DIR$/
|
|
64
|
+
<file leaf-file-name="directory_builder_spec.rb" pinned="false" current="false" current-in-tab="false">
|
|
65
|
+
<entry file="file://$PROJECT_DIR$/spec/directory_builder_spec.rb">
|
|
56
66
|
<provider selected="true" editor-type-id="text-editor">
|
|
57
|
-
<state line="
|
|
58
|
-
<folding />
|
|
59
|
-
</state>
|
|
60
|
-
</provider>
|
|
61
|
-
</entry>
|
|
62
|
-
</file>
|
|
63
|
-
<file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
|
|
64
|
-
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
65
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
66
|
-
<state line="0" column="19" selection-start="19" selection-end="19" vertical-scroll-proportion="0.0">
|
|
67
|
-
<folding />
|
|
68
|
-
</state>
|
|
69
|
-
</provider>
|
|
70
|
-
</entry>
|
|
71
|
-
</file>
|
|
72
|
-
<file leaf-file-name="zip_dsl.gemspec.erb" pinned="false" current="true" current-in-tab="true">
|
|
73
|
-
<entry file="file://$PROJECT_DIR$/zip_dsl.gemspec.erb">
|
|
74
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
75
|
-
<state line="13" column="40" selection-start="557" selection-end="557" vertical-scroll-proportion="0.35135135">
|
|
67
|
+
<state line="24" column="27" selection-start="704" selection-end="704" vertical-scroll-proportion="0.0">
|
|
76
68
|
<folding />
|
|
77
69
|
</state>
|
|
78
70
|
</provider>
|
|
@@ -92,10 +84,16 @@
|
|
|
92
84
|
<option name="changedFiles">
|
|
93
85
|
<list>
|
|
94
86
|
<option value="$PROJECT_DIR$/.rvmrc" />
|
|
95
|
-
<option value="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
|
|
96
87
|
<option value="$PROJECT_DIR$/Rakefile" />
|
|
97
|
-
<option value="$PROJECT_DIR$/Gemfile" />
|
|
98
88
|
<option value="$PROJECT_DIR$/zip_dsl.gemspec.erb" />
|
|
89
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
|
90
|
+
<option value="$PROJECT_DIR$/lib/zip_dsl.rb" />
|
|
91
|
+
<option value="$PROJECT_DIR$/lib/directory_builder.rb" />
|
|
92
|
+
<option value="$PROJECT_DIR$/spec/spec_helper.rb" />
|
|
93
|
+
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" />
|
|
94
|
+
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
|
|
95
|
+
<option value="$PROJECT_DIR$/spec/zip_builder_spec.rb" />
|
|
96
|
+
<option value="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
|
|
99
97
|
</list>
|
|
100
98
|
</option>
|
|
101
99
|
</component>
|
|
@@ -150,6 +148,20 @@
|
|
|
150
148
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
151
149
|
</PATH_ELEMENT>
|
|
152
150
|
</PATH>
|
|
151
|
+
<PATH>
|
|
152
|
+
<PATH_ELEMENT>
|
|
153
|
+
<option name="myItemId" value="zip_dsl" />
|
|
154
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
155
|
+
</PATH_ELEMENT>
|
|
156
|
+
<PATH_ELEMENT>
|
|
157
|
+
<option name="myItemId" value="zip_dsl" />
|
|
158
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
159
|
+
</PATH_ELEMENT>
|
|
160
|
+
<PATH_ELEMENT>
|
|
161
|
+
<option name="myItemId" value="spec" />
|
|
162
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
163
|
+
</PATH_ELEMENT>
|
|
164
|
+
</PATH>
|
|
153
165
|
<PATH>
|
|
154
166
|
<PATH_ELEMENT>
|
|
155
167
|
<option name="myItemId" value="zip_dsl" />
|
|
@@ -186,13 +198,146 @@
|
|
|
186
198
|
</pane>
|
|
187
199
|
</panes>
|
|
188
200
|
</component>
|
|
201
|
+
<component name="PropertiesComponent">
|
|
202
|
+
<property name="recentsLimit" value="5" />
|
|
203
|
+
</component>
|
|
189
204
|
<component name="RecentsManager">
|
|
190
205
|
<key name="MoveFile.RECENT_KEYS">
|
|
191
206
|
<recent name="$PROJECT_DIR$/lib/zip_dsl" />
|
|
192
207
|
<recent name="$PROJECT_DIR$/lib" />
|
|
193
208
|
</key>
|
|
194
209
|
</component>
|
|
195
|
-
<component name="RunManager">
|
|
210
|
+
<component name="RunManager" selected="RSpec.zip_builder_spec">
|
|
211
|
+
<configuration default="false" name="directory_builder_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
212
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
213
|
+
<module name="zip_dsl" />
|
|
214
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
215
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
|
|
216
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
217
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
218
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
219
|
+
<envs>
|
|
220
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
221
|
+
</envs>
|
|
222
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
223
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
224
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
225
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
226
|
+
</COVERAGE_PATTERN>
|
|
227
|
+
</EXTENSION>
|
|
228
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
229
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/directory_builder_spec.rb" />
|
|
230
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
231
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
232
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
233
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
234
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
235
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
236
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
237
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
238
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
239
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
240
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
241
|
+
<method />
|
|
242
|
+
</configuration>
|
|
243
|
+
<configuration default="false" name="Zip::DSL should create new zip file with new folder" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
244
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
245
|
+
<module name="zip_dsl" />
|
|
246
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
247
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
|
|
248
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
249
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
250
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
251
|
+
<envs>
|
|
252
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
253
|
+
</envs>
|
|
254
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
255
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
256
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
257
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
258
|
+
</COVERAGE_PATTERN>
|
|
259
|
+
</EXTENSION>
|
|
260
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
261
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/zip_builder_spec.rb" />
|
|
262
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
263
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
264
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Zip::DSL should create new zip file with new folder" />
|
|
265
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
266
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
267
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
268
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
269
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
270
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
271
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
272
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
273
|
+
<method />
|
|
274
|
+
</configuration>
|
|
275
|
+
<configuration default="false" name="Zip::DSL should display files in specified directory" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
276
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
277
|
+
<module name="zip_dsl" />
|
|
278
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
279
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
|
|
280
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
281
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
282
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
283
|
+
<envs>
|
|
284
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
285
|
+
</envs>
|
|
286
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
287
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
288
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
289
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
290
|
+
</COVERAGE_PATTERN>
|
|
291
|
+
</EXTENSION>
|
|
292
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
293
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/zip_builder_spec.rb" />
|
|
294
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
295
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
296
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Zip::DSL should display files in specified directory" />
|
|
297
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
298
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
299
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
300
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
301
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
302
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
303
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
304
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
305
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
306
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
307
|
+
<method />
|
|
308
|
+
</configuration>
|
|
309
|
+
<configuration default="false" name="zip_builder_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
310
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
311
|
+
<module name="zip_dsl" />
|
|
312
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
313
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
|
|
314
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
315
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
316
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
317
|
+
<envs>
|
|
318
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
319
|
+
</envs>
|
|
320
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
321
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
322
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
323
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
324
|
+
</COVERAGE_PATTERN>
|
|
325
|
+
</EXTENSION>
|
|
326
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
327
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/zip_builder_spec.rb" />
|
|
328
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
329
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
330
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
331
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
332
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
333
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
334
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
335
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
336
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
337
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
338
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
339
|
+
<method />
|
|
340
|
+
</configuration>
|
|
196
341
|
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
|
197
342
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
198
343
|
<module name="" />
|
|
@@ -221,6 +366,24 @@
|
|
|
221
366
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
222
367
|
<method />
|
|
223
368
|
</configuration>
|
|
369
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
|
370
|
+
<module name="" />
|
|
371
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
372
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
|
373
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
374
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
375
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
376
|
+
<envs />
|
|
377
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
378
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
379
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
380
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
381
|
+
</COVERAGE_PATTERN>
|
|
382
|
+
</EXTENSION>
|
|
383
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
|
384
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
385
|
+
<method />
|
|
386
|
+
</configuration>
|
|
224
387
|
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
|
225
388
|
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
|
226
389
|
<module name="" />
|
|
@@ -245,32 +408,46 @@
|
|
|
245
408
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
|
246
409
|
<method />
|
|
247
410
|
</configuration>
|
|
248
|
-
<list size="
|
|
411
|
+
<list size="4">
|
|
412
|
+
<item index="0" class="java.lang.String" itemvalue="RSpec.directory_builder_spec" />
|
|
413
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.Zip::DSL should create new zip file with new folder" />
|
|
414
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.Zip::DSL should display files in specified directory" />
|
|
415
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.zip_builder_spec" />
|
|
416
|
+
</list>
|
|
417
|
+
<recent_temporary>
|
|
418
|
+
<list size="5">
|
|
419
|
+
<item index="0" class="java.lang.String" itemvalue="RSpec.zip_builder_spec" />
|
|
420
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.Zip::DSL should display files in specified directory" />
|
|
421
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.zip_builder_spec" />
|
|
422
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.Zip::DSL should create new zip file with new folder" />
|
|
423
|
+
<item index="4" class="java.lang.String" itemvalue="RSpec.zip_builder_spec" />
|
|
424
|
+
</list>
|
|
425
|
+
</recent_temporary>
|
|
249
426
|
</component>
|
|
250
427
|
<component name="ShelveChangesManager" show_recycled="false" />
|
|
251
428
|
<component name="ToolWindowManager">
|
|
252
429
|
<frame x="332" y="39" width="1588" height="1058" extended-state="0" />
|
|
253
430
|
<editor active="true" />
|
|
254
431
|
<layout>
|
|
255
|
-
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
|
256
|
-
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.
|
|
257
|
-
<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="
|
|
432
|
+
<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="7" side_tool="false" content_ui="tabs" />
|
|
433
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
434
|
+
<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="7" side_tool="false" content_ui="tabs" />
|
|
258
435
|
<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" />
|
|
259
436
|
<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" />
|
|
260
|
-
<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="
|
|
437
|
+
<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="3" side_tool="false" content_ui="tabs" />
|
|
261
438
|
<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" />
|
|
262
|
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.
|
|
263
|
-
<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="
|
|
264
|
-
<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="
|
|
265
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
|
266
|
-
<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="
|
|
439
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39958376" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
440
|
+
<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="2" side_tool="true" content_ui="tabs" />
|
|
441
|
+
<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="7" side_tool="true" content_ui="tabs" />
|
|
442
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
443
|
+
<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="7" side_tool="false" content_ui="tabs" />
|
|
267
444
|
<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" />
|
|
268
445
|
<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" />
|
|
269
|
-
<window_info id="Find" 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" />
|
|
270
446
|
<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" />
|
|
447
|
+
<window_info id="Find" 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" />
|
|
271
448
|
<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" />
|
|
272
|
-
<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" />
|
|
273
449
|
<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" />
|
|
450
|
+
<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" />
|
|
274
451
|
</layout>
|
|
275
452
|
</component>
|
|
276
453
|
<component name="VcsContentAnnotationSettings">
|
|
@@ -329,9 +506,9 @@
|
|
|
329
506
|
<breakpoint-manager />
|
|
330
507
|
</component>
|
|
331
508
|
<component name="editorHistoryManager">
|
|
332
|
-
<entry file="file://$PROJECT_DIR
|
|
509
|
+
<entry file="file://$PROJECT_DIR$/zip_dsl.gemspec.erb">
|
|
333
510
|
<provider selected="true" editor-type-id="text-editor">
|
|
334
|
-
<state line="
|
|
511
|
+
<state line="13" column="40" selection-start="557" selection-end="557" vertical-scroll-proportion="0.0">
|
|
335
512
|
<folding />
|
|
336
513
|
</state>
|
|
337
514
|
</provider>
|
|
@@ -350,30 +527,93 @@
|
|
|
350
527
|
</state>
|
|
351
528
|
</provider>
|
|
352
529
|
</entry>
|
|
353
|
-
<entry file="file://$PROJECT_DIR$/
|
|
530
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
354
531
|
<provider selected="true" editor-type-id="text-editor">
|
|
355
|
-
<state line="
|
|
532
|
+
<state line="16" column="137" selection-start="228" selection-end="228" vertical-scroll-proportion="0.0">
|
|
533
|
+
<folding />
|
|
534
|
+
</state>
|
|
535
|
+
</provider>
|
|
536
|
+
</entry>
|
|
537
|
+
<entry file="file://$PROJECT_DIR$/zip_dsl.gemspec.erb">
|
|
538
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
539
|
+
<state line="13" column="40" selection-start="557" selection-end="557" vertical-scroll-proportion="0.35135135">
|
|
540
|
+
<folding />
|
|
541
|
+
</state>
|
|
542
|
+
</provider>
|
|
543
|
+
</entry>
|
|
544
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
545
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
546
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
|
547
|
+
<folding />
|
|
548
|
+
</state>
|
|
549
|
+
</provider>
|
|
550
|
+
</entry>
|
|
551
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl.rb">
|
|
552
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
553
|
+
<state line="3" column="136" selection-start="84" selection-end="84" vertical-scroll-proportion="0.07779579">
|
|
554
|
+
<folding />
|
|
555
|
+
</state>
|
|
556
|
+
</provider>
|
|
557
|
+
</entry>
|
|
558
|
+
<entry file="file://$PROJECT_DIR$/lib/directory_builder.rb">
|
|
559
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
560
|
+
<state line="16" column="41" selection-start="321" selection-end="321" vertical-scroll-proportion="0.32090762">
|
|
561
|
+
<folding />
|
|
562
|
+
</state>
|
|
563
|
+
</provider>
|
|
564
|
+
</entry>
|
|
565
|
+
<entry file="file://$PROJECT_DIR$/spec/directory_builder_spec.rb">
|
|
566
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
567
|
+
<state line="24" column="27" selection-start="704" selection-end="704" vertical-scroll-proportion="0.0">
|
|
356
568
|
<folding />
|
|
357
569
|
</state>
|
|
358
570
|
</provider>
|
|
359
571
|
</entry>
|
|
360
572
|
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
361
573
|
<provider selected="true" editor-type-id="text-editor">
|
|
362
|
-
<state line="
|
|
574
|
+
<state line="8" column="29" selection-start="202" selection-end="202" vertical-scroll-proportion="0.0">
|
|
363
575
|
<folding />
|
|
364
576
|
</state>
|
|
365
577
|
</provider>
|
|
366
578
|
</entry>
|
|
367
|
-
<entry file="file://$PROJECT_DIR$/
|
|
579
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
|
368
580
|
<provider selected="true" editor-type-id="text-editor">
|
|
369
|
-
<state line="
|
|
581
|
+
<state line="1" column="0" selection-start="59" selection-end="59" vertical-scroll-proportion="0.0">
|
|
370
582
|
<folding />
|
|
371
583
|
</state>
|
|
372
584
|
</provider>
|
|
373
585
|
</entry>
|
|
374
|
-
<entry file="file://$PROJECT_DIR$/zip_dsl.
|
|
586
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb">
|
|
375
587
|
<provider selected="true" editor-type-id="text-editor">
|
|
376
|
-
<state line="
|
|
588
|
+
<state line="20" column="0" selection-start="446" selection-end="446" vertical-scroll-proportion="0.51863855">
|
|
589
|
+
<folding />
|
|
590
|
+
</state>
|
|
591
|
+
</provider>
|
|
592
|
+
</entry>
|
|
593
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb">
|
|
594
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
595
|
+
<state line="6" column="0" selection-start="81" selection-end="81" vertical-scroll-proportion="0.0">
|
|
596
|
+
<folding />
|
|
597
|
+
</state>
|
|
598
|
+
</provider>
|
|
599
|
+
</entry>
|
|
600
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
|
|
601
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
602
|
+
<state line="56" column="13" selection-start="1261" selection-end="1261" vertical-scroll-proportion="0.0">
|
|
603
|
+
<folding />
|
|
604
|
+
</state>
|
|
605
|
+
</provider>
|
|
606
|
+
</entry>
|
|
607
|
+
<entry file="file://$PROJECT_DIR$/spec/zip_builder_spec.rb">
|
|
608
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
609
|
+
<state line="73" column="70" selection-start="2060" selection-end="2060" vertical-scroll-proportion="0.0">
|
|
610
|
+
<folding />
|
|
611
|
+
</state>
|
|
612
|
+
</provider>
|
|
613
|
+
</entry>
|
|
614
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
|
|
615
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
616
|
+
<state line="1" column="18" selection-start="32" selection-end="32" vertical-scroll-proportion="0.025931928">
|
|
377
617
|
<folding />
|
|
378
618
|
</state>
|
|
379
619
|
</provider>
|
data/.idea/zip_dsl.iml
CHANGED
|
@@ -4,16 +4,19 @@
|
|
|
4
4
|
<content url="file://$MODULE_DIR$" />
|
|
5
5
|
<orderEntry type="inheritedJdk" />
|
|
6
6
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.3, RVM: ruby-1.9.3-p194 [
|
|
8
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.3-p194 [
|
|
9
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
|
10
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
|
11
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
|
12
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
|
13
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec
|
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-
|
|
7
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.3, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
8
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
9
|
+
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.0, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.0.0, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="meta_methods (v1.0.1, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="mocha (v0.10.3, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.9.0, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.9.0, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.9.1, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.9.0, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="zip (v2.0.2, RVM: ruby-1.9.3-p194 [zip_dsl]) [gem]" level="application" />
|
|
17
20
|
</component>
|
|
18
21
|
</module>
|
|
19
22
|
|
data/Gemfile
CHANGED
data/lib/directory_builder.rb
CHANGED
data/lib/zip_dsl/version.rb
CHANGED
data/lib/zip_dsl/zip_dsl.rb
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
require 'zip_writer'
|
|
2
|
-
require 'zip_reader'
|
|
3
1
|
require 'meta_methods'
|
|
4
2
|
|
|
5
3
|
class Zip::DSL
|
|
6
4
|
include MetaMethods
|
|
7
5
|
|
|
8
|
-
def initialize name
|
|
6
|
+
def initialize name, basedir
|
|
9
7
|
@name = name
|
|
8
|
+
@basedir = File.expand_path(basedir)
|
|
10
9
|
end
|
|
11
10
|
|
|
12
11
|
def build(name=nil, &execute_block)
|
|
13
12
|
name = name.nil? ? @name : name
|
|
14
13
|
|
|
15
|
-
create_block = lambda { Zip::Writer.new(name) }
|
|
14
|
+
create_block = lambda { Zip::Writer.new(name, @basedir) }
|
|
16
15
|
destroy_block = lambda {|writer| writer.close }
|
|
17
16
|
|
|
18
17
|
evaluate_dsl(create_block, destroy_block, execute_block)
|
data/lib/zip_dsl/zip_writer.rb
CHANGED
|
@@ -2,8 +2,9 @@ require 'zip/zip'
|
|
|
2
2
|
|
|
3
3
|
class Zip::Writer
|
|
4
4
|
|
|
5
|
-
def initialize file_name
|
|
5
|
+
def initialize file_name, basedir
|
|
6
6
|
@zos = Zip::ZipOutputStream.new(file_name)
|
|
7
|
+
@basedir = basedir
|
|
7
8
|
|
|
8
9
|
@compression_level = Zlib::BEST_COMPRESSION
|
|
9
10
|
end
|
|
@@ -15,7 +16,7 @@ class Zip::Writer
|
|
|
15
16
|
def file params
|
|
16
17
|
to_dir = params[:to_dir].nil? ? File.dirname(params[:name]) : strip_dot(params[:to_dir])
|
|
17
18
|
|
|
18
|
-
add_file params[:name], to_dir
|
|
19
|
+
add_file "#@basedir/#{params[:name]}", to_dir
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
def content params
|
|
@@ -50,10 +51,10 @@ class Zip::Writer
|
|
|
50
51
|
patterns = filter.kind_of?(String) ? [filter] : filter
|
|
51
52
|
|
|
52
53
|
patterns.each do |pattern|
|
|
53
|
-
files = pattern_to_files from_dir, pattern
|
|
54
|
+
files = pattern_to_files "#@basedir/#{from_dir}", pattern
|
|
54
55
|
|
|
55
56
|
files.each do |file_name|
|
|
56
|
-
suffix = File.dirname(file_name)[from_dir.size+1..-1]
|
|
57
|
+
suffix = File.dirname(file_name)["#@basedir/#{from_dir}".size+1..-1]
|
|
57
58
|
dir = suffix.nil? ? to_dir : "#{to_dir}/#{suffix}"
|
|
58
59
|
|
|
59
60
|
if File.file?(file_name)
|
data/lib/zip_dsl.rb
ADDED
data/spec/zip_builder_spec.rb
CHANGED
|
@@ -3,18 +3,20 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
|
|
3
3
|
require 'zip_dsl'
|
|
4
4
|
|
|
5
5
|
describe Zip::DSL do
|
|
6
|
-
|
|
6
|
+
let(:basedir) { File.expand_path("..") }
|
|
7
|
+
|
|
8
|
+
subject { Zip::DSL.new "../test.zip", basedir }
|
|
7
9
|
|
|
8
10
|
it "should create new zip file with files at particular folder" do
|
|
9
|
-
subject.build
|
|
11
|
+
subject.build do
|
|
10
12
|
file :name => "Gemfile"
|
|
11
|
-
file :name => "
|
|
12
|
-
file :name => "
|
|
13
|
+
file :name => "Rakefile", :to_dir => "my_config"
|
|
14
|
+
file :name => "spec/spec_helper.rb", :to_dir => "my_config"
|
|
13
15
|
end
|
|
14
16
|
|
|
15
17
|
subject.entry_exist?("Gemfile").should be_true
|
|
16
|
-
subject.entry_exist?("my_config/
|
|
17
|
-
subject.entry_exist?("my_config/
|
|
18
|
+
subject.entry_exist?("my_config/Rakefile").should be_true
|
|
19
|
+
subject.entry_exist?("my_config/spec_helper.rb").should be_true
|
|
18
20
|
|
|
19
21
|
subject.entries_size.should == 3
|
|
20
22
|
end
|
|
@@ -29,8 +31,9 @@ describe Zip::DSL do
|
|
|
29
31
|
end
|
|
30
32
|
|
|
31
33
|
it "should create new zip file with file created from file" do
|
|
34
|
+
src = File.open("#{basedir}/Rakefile")
|
|
32
35
|
subject.build do
|
|
33
|
-
content :name => "Rakefile", :source =>
|
|
36
|
+
content :name => "Rakefile", :source => src
|
|
34
37
|
end
|
|
35
38
|
|
|
36
39
|
subject.entry_exist?("Rakefile").should be_true
|
|
@@ -48,7 +51,7 @@ describe Zip::DSL do
|
|
|
48
51
|
|
|
49
52
|
it "should create new zip file with new folder" do
|
|
50
53
|
subject.build do
|
|
51
|
-
directory :from_dir => "
|
|
54
|
+
directory :from_dir => "spec", :to_dir => "my_config"
|
|
52
55
|
end
|
|
53
56
|
|
|
54
57
|
subject.entry_exist?("my_config").should be_true
|
|
@@ -57,17 +60,17 @@ describe Zip::DSL do
|
|
|
57
60
|
|
|
58
61
|
it "should display files in specified directory" do
|
|
59
62
|
subject.build do
|
|
60
|
-
directory :from_dir => "
|
|
63
|
+
directory :from_dir => "spec"
|
|
61
64
|
end
|
|
62
65
|
|
|
63
|
-
subject.list.
|
|
66
|
+
subject.list.should include "spec/spec_helper.rb"
|
|
64
67
|
end
|
|
65
68
|
|
|
66
69
|
it "should display files in specified subdirectory" do
|
|
67
70
|
subject.build do
|
|
68
|
-
directory :from_dir => "
|
|
71
|
+
directory :from_dir => "lib"
|
|
69
72
|
end
|
|
70
73
|
|
|
71
|
-
subject.list("
|
|
74
|
+
subject.list("lib/zip_dsl").first.should =~ %r{lib/zip_dsl/version.rb}
|
|
72
75
|
end
|
|
73
76
|
end
|
data/zip_dsl.gemspec
CHANGED
|
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.version = ZipDSL::VERSION
|
|
19
19
|
|
|
20
20
|
spec.add_runtime_dependency "meta_methods", [">= 0"]
|
|
21
|
+
spec.add_runtime_dependency "zip", [">= 0"]
|
|
22
|
+
spec.add_runtime_dependency "file_utils", [">= 0"]
|
|
21
23
|
spec.add_development_dependency "gemspec_deps_gen", [">= 0"]
|
|
22
24
|
spec.add_development_dependency "gemcutter", [">= 0"]
|
|
23
25
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zip_dsl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -27,6 +27,38 @@ dependencies:
|
|
|
27
27
|
- - ! '>='
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
29
|
version: '0'
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: zip
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
33
|
+
none: false
|
|
34
|
+
requirements:
|
|
35
|
+
- - ! '>='
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
type: :runtime
|
|
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: file_utils
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
none: false
|
|
50
|
+
requirements:
|
|
51
|
+
- - ! '>='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
54
|
+
type: :runtime
|
|
55
|
+
prerelease: false
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ! '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
30
62
|
- !ruby/object:Gem::Dependency
|
|
31
63
|
name: gemspec_deps_gen
|
|
32
64
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -82,6 +114,7 @@ files:
|
|
|
82
114
|
- README.md
|
|
83
115
|
- Rakefile
|
|
84
116
|
- lib/directory_builder.rb
|
|
117
|
+
- lib/zip_dsl.rb
|
|
85
118
|
- lib/zip_dsl/version.rb
|
|
86
119
|
- lib/zip_dsl/zip_dsl.rb
|
|
87
120
|
- lib/zip_dsl/zip_reader.rb
|