zip_dsl 1.3.5 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.idea/workspace.xml +132 -92
- data/.idea/zip_dsl.iml +33 -18
- data/CHANGES +5 -1
- data/lib/zip_dsl/version.rb +1 -1
- data/lib/zip_dsl/zip_dsl.rb +10 -10
- data/lib/zip_dsl/zip_reader.rb +7 -5
- data/lib/zip_dsl/zip_updater.rb +5 -4
- data/lib/zip_dsl/zip_writer.rb +5 -4
- data/spec/zip_dsl_spec.rb +8 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2FjNmRkMWFlZTk2OTE1NWMxNTFiNjE3MjI2NmRhOWYxNmYwM2U4Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjU4MTUwNTdiYmVlYTVhYWNkYmEzY2JmODA4MDc0YWUwMzczMDk3MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWU3ZmIxOGYwNmRkNjNjZDYzMjJiMTVkNzkzNzY0YjhjZGQyN2FjNWEyZDg2
|
10
|
+
ODZhYjk2YjNkMDFkOTNhZTVlNDYxZGFiYmM2YTcwYzFiY2MzOGQ3ZmE4YWFl
|
11
|
+
ZGMyMWIwODljYzUzZTYxOTU5ZTZjMjFiMTI0YjVmZDIxNTJiODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzI2ZGRjYWU2NWU4NTJkNWMyZGEzOWU3N2I5ZGU5MDBhYzk1NWZhZmYzODk3
|
14
|
+
MzA5NGUzZDdjY2QzMTUzMDY3ZTM0M2ZmNTlmMDllZDI3NGNlMDEzODYzMzc4
|
15
|
+
MmFiNzBkNGYyN2Q1OGY5NzFiZGVhMzQ5OTM0ZjM3YzY5NTNjOWE=
|
data/.idea/workspace.xml
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
|
-
<list default="true" id="aafa5aec-b597-47d5-af91-f7b63300321f" name="Default" comment="">
|
4
|
+
<list default="true" id="aafa5aec-b597-47d5-af91-f7b63300321f" name="Default" comment=" Adding each_entry method. ">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/version.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
|
5
7
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/zip_dsl.iml" afterPath="$PROJECT_DIR$/.idea/zip_dsl.iml" />
|
9
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" />
|
10
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/zip_dsl_spec.rb" afterPath="$PROJECT_DIR$/spec/zip_dsl_spec.rb" />
|
11
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb" />
|
12
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb" />
|
13
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
|
6
14
|
</list>
|
7
15
|
<ignored path="zip_dsl.iws" />
|
8
16
|
<ignored path=".idea/workspace.xml" />
|
@@ -15,8 +23,9 @@
|
|
15
23
|
</component>
|
16
24
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
17
25
|
<component name="CoverageDataManager">
|
26
|
+
<SUITE FILE_PATH="coverage/zip_dsl@ZipDSL_build_should_create_new_zip_file_with_files_at_particular_folder__zip_dsl.coverage" NAME="ZipDSL#build should create new zip file with files at particular folder: zip_dsl Coverage Results" MODIFIED="1384277318541" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="zip_dsl" />
|
18
27
|
<SUITE FILE_PATH="coverage/zip_dsl@ZipDSL_read__zip_dsl.coverage" NAME="ZipDSL#read: zip_dsl Coverage Results" MODIFIED="1384208377079" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="zip_dsl" />
|
19
|
-
<SUITE FILE_PATH="coverage/zip_dsl@zip_dsl_spec.coverage" NAME="zip_dsl_spec Coverage Results" MODIFIED="
|
28
|
+
<SUITE FILE_PATH="coverage/zip_dsl@zip_dsl_spec.coverage" NAME="zip_dsl_spec Coverage Results" MODIFIED="1384277657930" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="zip_dsl" />
|
20
29
|
<SUITE FILE_PATH="coverage/zip_dsl@ZipDSL_should_display_files_in_specified_subdirectory__zip_dsl.coverage" NAME="ZipDSL should display files in specified subdirectory: zip_dsl Coverage Results" MODIFIED="1383423978042" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="zip_dsl" />
|
21
30
|
<SUITE FILE_PATH="coverage/zip_dsl@ZipDSL_should_update_existing_zip_file.coverage" NAME="ZipDSL should update existing zip file Coverage Results" MODIFIED="1383424005082" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="zip_dsl" />
|
22
31
|
</component>
|
@@ -35,25 +44,25 @@
|
|
35
44
|
<file leaf-file-name="zip_dsl_spec.rb" pinned="false" current="false" current-in-tab="false">
|
36
45
|
<entry file="file://$PROJECT_DIR$/spec/zip_dsl_spec.rb">
|
37
46
|
<provider selected="true" editor-type-id="text-editor">
|
38
|
-
<state line="
|
47
|
+
<state line="15" column="2" selection-start="283" selection-end="283" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2080">
|
39
48
|
<folding />
|
40
49
|
</state>
|
41
50
|
</provider>
|
42
51
|
</entry>
|
43
52
|
</file>
|
44
|
-
<file leaf-file-name="
|
45
|
-
<entry file="file://$
|
53
|
+
<file leaf-file-name="memoized_helpers.rb" pinned="false" current="false" current-in-tab="false">
|
54
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p448@zip_dsl/gems/rspec-core-2.14.5/lib/rspec/core/memoized_helpers.rb">
|
46
55
|
<provider selected="true" editor-type-id="text-editor">
|
47
|
-
<state line="
|
56
|
+
<state line="198" column="0" selection-start="6885" selection-end="6885" vertical-scroll-proportion="0.0" vertical-offset="2999" max-vertical-offset="8320">
|
48
57
|
<folding />
|
49
58
|
</state>
|
50
59
|
</provider>
|
51
60
|
</entry>
|
52
61
|
</file>
|
53
|
-
<file leaf-file-name="CHANGES" pinned="false" current="
|
62
|
+
<file leaf-file-name="CHANGES" pinned="false" current="true" current-in-tab="true">
|
54
63
|
<entry file="file://$PROJECT_DIR$/CHANGES">
|
55
64
|
<provider selected="true" editor-type-id="text-editor">
|
56
|
-
<state line="
|
65
|
+
<state line="32" column="16" selection-start="355" selection-end="369" vertical-scroll-proportion="0.8858132" vertical-offset="0" max-vertical-offset="608">
|
57
66
|
<folding />
|
58
67
|
</state>
|
59
68
|
</provider>
|
@@ -61,20 +70,20 @@
|
|
61
70
|
</file>
|
62
71
|
<file leaf-file-name="LICENSE" pinned="false" current="false" current-in-tab="false">
|
63
72
|
<entry file="file://$PROJECT_DIR$/LICENSE">
|
64
|
-
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
65
|
-
<state />
|
66
|
-
</provider>
|
67
73
|
<provider selected="true" editor-type-id="text-editor">
|
68
74
|
<state line="21" column="63" selection-start="1072" selection-end="1072" vertical-scroll-proportion="0.0" vertical-offset="336" max-vertical-offset="432">
|
69
75
|
<folding />
|
70
76
|
</state>
|
71
77
|
</provider>
|
78
|
+
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
79
|
+
<state />
|
80
|
+
</provider>
|
72
81
|
</entry>
|
73
82
|
</file>
|
74
83
|
<file leaf-file-name="zip_writer.rb" pinned="false" current="false" current-in-tab="false">
|
75
84
|
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
|
76
85
|
<provider selected="true" editor-type-id="text-editor">
|
77
|
-
<state line="
|
86
|
+
<state line="4" column="2" selection-start="59" selection-end="59" vertical-scroll-proportion="-2.4615386" vertical-offset="0" max-vertical-offset="1856">
|
78
87
|
<folding />
|
79
88
|
</state>
|
80
89
|
</provider>
|
@@ -83,7 +92,16 @@
|
|
83
92
|
<file leaf-file-name="zip_reader.rb" pinned="false" current="false" current-in-tab="false">
|
84
93
|
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb">
|
85
94
|
<provider selected="true" editor-type-id="text-editor">
|
86
|
-
<state line="
|
95
|
+
<state line="20" column="4" selection-start="281" selection-end="281" vertical-scroll-proportion="-12.307693" vertical-offset="0" max-vertical-offset="1296">
|
96
|
+
<folding />
|
97
|
+
</state>
|
98
|
+
</provider>
|
99
|
+
</entry>
|
100
|
+
</file>
|
101
|
+
<file leaf-file-name="zip_updater.rb" pinned="false" current="false" current-in-tab="false">
|
102
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb">
|
103
|
+
<provider selected="true" editor-type-id="text-editor">
|
104
|
+
<state line="3" column="0" selection-start="36" selection-end="59" vertical-scroll-proportion="-1.8461539" vertical-offset="0" max-vertical-offset="1792">
|
87
105
|
<folding />
|
88
106
|
</state>
|
89
107
|
</provider>
|
@@ -92,7 +110,7 @@
|
|
92
110
|
<file leaf-file-name="zip_dsl.rb" pinned="false" current="false" current-in-tab="false">
|
93
111
|
<entry file="file://$PROJECT_DIR$/lib/zip_dsl.rb">
|
94
112
|
<provider selected="true" editor-type-id="text-editor">
|
95
|
-
<state line="
|
113
|
+
<state line="2" column="24" selection-start="82" selection-end="82" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="160">
|
96
114
|
<folding />
|
97
115
|
</state>
|
98
116
|
</provider>
|
@@ -101,19 +119,16 @@
|
|
101
119
|
<file leaf-file-name="zip_dsl.rb" pinned="false" current="false" current-in-tab="false">
|
102
120
|
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb">
|
103
121
|
<provider selected="true" editor-type-id="text-editor">
|
104
|
-
<state line="
|
122
|
+
<state line="5" column="0" selection-start="73" selection-end="103" vertical-scroll-proportion="-3.0769231" vertical-offset="0" max-vertical-offset="1152">
|
105
123
|
<folding />
|
106
124
|
</state>
|
107
125
|
</provider>
|
108
126
|
</entry>
|
109
127
|
</file>
|
110
|
-
<file leaf-file-name="
|
111
|
-
<entry file="file://$PROJECT_DIR$/
|
112
|
-
<provider editor-type-id="MarkdownPreviewEditor">
|
113
|
-
<state />
|
114
|
-
</provider>
|
128
|
+
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
129
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
|
115
130
|
<provider selected="true" editor-type-id="text-editor">
|
116
|
-
<state line="
|
131
|
+
<state line="1" column="18" selection-start="31" selection-end="31" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="144">
|
117
132
|
<folding />
|
118
133
|
</state>
|
119
134
|
</provider>
|
@@ -142,17 +157,17 @@
|
|
142
157
|
<option value="$PROJECT_DIR$/.ruby-version" />
|
143
158
|
<option value="$PROJECT_DIR$/.gitignore" />
|
144
159
|
<option value="$PROJECT_DIR$/Rakefile" />
|
145
|
-
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb" />
|
146
|
-
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
|
147
160
|
<option value="$PROJECT_DIR$/Gemfile" />
|
148
161
|
<option value="$PROJECT_DIR$/zip_dsl.gemspec.erb" />
|
149
162
|
<option value="$PROJECT_DIR$/README.md" />
|
163
|
+
<option value="$PROJECT_DIR$/LICENSE" />
|
164
|
+
<option value="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
|
150
165
|
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" />
|
151
166
|
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb" />
|
167
|
+
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb" />
|
168
|
+
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
|
152
169
|
<option value="$PROJECT_DIR$/spec/zip_dsl_spec.rb" />
|
153
|
-
<option value="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
|
154
170
|
<option value="$PROJECT_DIR$/CHANGES" />
|
155
|
-
<option value="$PROJECT_DIR$/LICENSE" />
|
156
171
|
</list>
|
157
172
|
</option>
|
158
173
|
</component>
|
@@ -188,6 +203,7 @@
|
|
188
203
|
<sortByType />
|
189
204
|
</navigator>
|
190
205
|
<panes>
|
206
|
+
<pane id="Scope" />
|
191
207
|
<pane id="ProjectPane">
|
192
208
|
<subPane>
|
193
209
|
<PATH>
|
@@ -254,7 +270,6 @@
|
|
254
270
|
</PATH>
|
255
271
|
</subPane>
|
256
272
|
</pane>
|
257
|
-
<pane id="Scope" />
|
258
273
|
</panes>
|
259
274
|
</component>
|
260
275
|
<component name="PropertiesComponent">
|
@@ -276,14 +291,17 @@
|
|
276
291
|
</key>
|
277
292
|
</component>
|
278
293
|
<component name="RunManager" selected="RSpec.zip_dsl_spec">
|
279
|
-
<configuration default="false" name="
|
294
|
+
<configuration default="false" name="ZipDSL" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
295
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
280
296
|
<module name="zip_dsl" />
|
281
|
-
<
|
282
|
-
<
|
283
|
-
<
|
284
|
-
<
|
285
|
-
<
|
286
|
-
<envs
|
297
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
298
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
299
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
300
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
301
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
302
|
+
<envs>
|
303
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
304
|
+
</envs>
|
287
305
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
288
306
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
289
307
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
@@ -292,13 +310,23 @@
|
|
292
310
|
</COVERAGE_PATTERN>
|
293
311
|
</EXTENSION>
|
294
312
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
295
|
-
<
|
296
|
-
<
|
313
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
314
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
315
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
316
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
317
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL" />
|
318
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
319
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
320
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
321
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
322
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
323
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
324
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
297
325
|
<RunnerSettings RunnerId="RubyRunner" />
|
298
326
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
299
327
|
<method />
|
300
328
|
</configuration>
|
301
|
-
<configuration default="false" name="
|
329
|
+
<configuration default="false" name="zip_dsl_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
302
330
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
303
331
|
<module name="zip_dsl" />
|
304
332
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -321,7 +349,7 @@
|
|
321
349
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
322
350
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
323
351
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
324
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
352
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
325
353
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
326
354
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
327
355
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -333,7 +361,7 @@
|
|
333
361
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
334
362
|
<method />
|
335
363
|
</configuration>
|
336
|
-
<configuration default="false" name="
|
364
|
+
<configuration default="false" name="ZipDSL should display files in specified subdirectory: zip_dsl" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
337
365
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
338
366
|
<module name="zip_dsl" />
|
339
367
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -344,7 +372,7 @@
|
|
344
372
|
<envs>
|
345
373
|
<env name="JRUBY_OPTS" value="-X+O" />
|
346
374
|
</envs>
|
347
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
375
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
348
376
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
349
377
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
350
378
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -356,7 +384,7 @@
|
|
356
384
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
357
385
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
358
386
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
359
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
387
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL should display files in specified subdirectory" />
|
360
388
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
361
389
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
362
390
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -368,7 +396,7 @@
|
|
368
396
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
369
397
|
<method />
|
370
398
|
</configuration>
|
371
|
-
<configuration default="false" name="ZipDSL
|
399
|
+
<configuration default="false" name="ZipDSL#read: zip_dsl" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
372
400
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
373
401
|
<module name="zip_dsl" />
|
374
402
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -391,7 +419,7 @@
|
|
391
419
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
392
420
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
393
421
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
394
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL
|
422
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL#read" />
|
395
423
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
396
424
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
397
425
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -403,7 +431,7 @@
|
|
403
431
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
404
432
|
<method />
|
405
433
|
</configuration>
|
406
|
-
<configuration default="false" name="ZipDSL#
|
434
|
+
<configuration default="false" name="ZipDSL#build should create new zip file with files at particular folder: zip_dsl" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
407
435
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
408
436
|
<module name="zip_dsl" />
|
409
437
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -426,7 +454,7 @@
|
|
426
454
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
427
455
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
428
456
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
429
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL#
|
457
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL#build should create new zip file with files at particular folder" />
|
430
458
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
431
459
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
432
460
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -434,7 +462,9 @@
|
|
434
462
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
435
463
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
436
464
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
465
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
437
466
|
<RunnerSettings RunnerId="RubyRunner" />
|
467
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
438
468
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
439
469
|
<method />
|
440
470
|
</configuration>
|
@@ -553,19 +583,19 @@
|
|
553
583
|
</configuration>
|
554
584
|
<list size="6">
|
555
585
|
<item index="0" class="java.lang.String" itemvalue="Rake.rake" />
|
556
|
-
<item index="1" class="java.lang.String" itemvalue="
|
557
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.
|
558
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.
|
559
|
-
<item index="4" class="java.lang.String" itemvalue="RSpec.ZipDSL
|
560
|
-
<item index="5" class="java.lang.String" itemvalue="RSpec.ZipDSL#
|
586
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.ZipDSL" />
|
587
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.zip_dsl_spec" />
|
588
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.ZipDSL should display files in specified subdirectory: zip_dsl" />
|
589
|
+
<item index="4" class="java.lang.String" itemvalue="RSpec.ZipDSL#read: zip_dsl" />
|
590
|
+
<item index="5" class="java.lang.String" itemvalue="RSpec.ZipDSL#build should create new zip file with files at particular folder: zip_dsl" />
|
561
591
|
</list>
|
562
592
|
<recent_temporary>
|
563
593
|
<list size="5">
|
564
|
-
<item index="0" class="java.lang.String" itemvalue="RSpec.
|
565
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.ZipDSL should
|
566
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.
|
567
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.ZipDSL" />
|
568
|
-
<item index="4" class="java.lang.String" itemvalue="
|
594
|
+
<item index="0" class="java.lang.String" itemvalue="RSpec.zip_dsl_spec" />
|
595
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.ZipDSL#build should create new zip file with files at particular folder: zip_dsl" />
|
596
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.ZipDSL#read: zip_dsl" />
|
597
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.ZipDSL should display files in specified subdirectory: zip_dsl" />
|
598
|
+
<item index="4" class="java.lang.String" itemvalue="RSpec.ZipDSL" />
|
569
599
|
</list>
|
570
600
|
</recent_temporary>
|
571
601
|
</component>
|
@@ -615,14 +645,14 @@
|
|
615
645
|
<frame x="92" y="22" width="1588" height="1028" extended-state="0" />
|
616
646
|
<editor active="true" />
|
617
647
|
<layout>
|
618
|
-
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
648
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3243824" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
619
649
|
<window_info id="Terminal" 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" />
|
620
650
|
<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" />
|
621
651
|
<window_info id="Database" 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" />
|
622
652
|
<window_info id="Heroku" 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" />
|
623
653
|
<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" />
|
624
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
625
|
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.
|
654
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.33333334" sideWeight="0.6728972" order="0" side_tool="false" content_ui="combo" />
|
655
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39957035" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
626
656
|
<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" />
|
627
657
|
<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" />
|
628
658
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32867885" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
@@ -672,26 +702,24 @@
|
|
672
702
|
</line-breakpoint>
|
673
703
|
<line-breakpoint enabled="true" type="ruby-line">
|
674
704
|
<url>file://$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb</url>
|
675
|
-
<line>
|
705
|
+
<line>15</line>
|
676
706
|
<option name="timeStamp" value="6" />
|
677
707
|
</line-breakpoint>
|
708
|
+
<line-breakpoint enabled="true" type="ruby-line">
|
709
|
+
<url>file://$PROJECT_DIR$/spec/zip_dsl_spec.rb</url>
|
710
|
+
<line>18</line>
|
711
|
+
<option name="timeStamp" value="7" />
|
712
|
+
</line-breakpoint>
|
713
|
+
<line-breakpoint enabled="true" type="ruby-line">
|
714
|
+
<url>file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb</url>
|
715
|
+
<line>8</line>
|
716
|
+
<option name="timeStamp" value="8" />
|
717
|
+
</line-breakpoint>
|
678
718
|
</breakpoints>
|
679
|
-
<option name="time" value="
|
719
|
+
<option name="time" value="9" />
|
680
720
|
</breakpoint-manager>
|
681
721
|
</component>
|
682
722
|
<component name="editorHistoryManager">
|
683
|
-
<entry file="file://$PROJECT_DIR$/Rakefile">
|
684
|
-
<provider selected="true" editor-type-id="text-editor">
|
685
|
-
<state line="18" column="34" selection-start="464" selection-end="464" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0" />
|
686
|
-
</provider>
|
687
|
-
</entry>
|
688
|
-
<entry file="file://$PROJECT_DIR$/Gemfile">
|
689
|
-
<provider selected="true" editor-type-id="text-editor">
|
690
|
-
<state line="5" column="19" selection-start="99" selection-end="99" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0">
|
691
|
-
<folding />
|
692
|
-
</state>
|
693
|
-
</provider>
|
694
|
-
</entry>
|
695
723
|
<entry file="file://$PROJECT_DIR$/zip_dsl.gemspec.erb">
|
696
724
|
<provider selected="true" editor-type-id="text-editor">
|
697
725
|
<state line="11" column="23" selection-start="468" selection-end="468" vertical-scroll-proportion="0.0" vertical-offset="165" max-vertical-offset="405" />
|
@@ -712,78 +740,90 @@
|
|
712
740
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="575" />
|
713
741
|
</provider>
|
714
742
|
</entry>
|
715
|
-
<entry file="file://$PROJECT_DIR$/
|
743
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
716
744
|
<provider selected="true" editor-type-id="text-editor">
|
717
|
-
<state line="
|
745
|
+
<state line="73" column="26" selection-start="0" selection-end="61" vertical-scroll-proportion="0.0" vertical-offset="663" max-vertical-offset="1264">
|
718
746
|
<folding />
|
719
747
|
</state>
|
720
748
|
</provider>
|
721
|
-
</entry>
|
722
|
-
<entry file="file://$PROJECT_DIR$/README.md">
|
723
749
|
<provider editor-type-id="MarkdownPreviewEditor">
|
724
750
|
<state />
|
725
751
|
</provider>
|
752
|
+
</entry>
|
753
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p448@zip_dsl/gems/meta_methods-1.0.6/lib/meta_methods/meta_methods.rb">
|
726
754
|
<provider selected="true" editor-type-id="text-editor">
|
727
|
-
<state line="
|
755
|
+
<state line="35" column="6" selection-start="770" selection-end="770" vertical-scroll-proportion="0.33333334" vertical-offset="361" max-vertical-offset="1488" />
|
756
|
+
</provider>
|
757
|
+
</entry>
|
758
|
+
<entry file="file://$PROJECT_DIR$/LICENSE">
|
759
|
+
<provider selected="true" editor-type-id="text-editor">
|
760
|
+
<state line="21" column="63" selection-start="1072" selection-end="1072" vertical-scroll-proportion="0.0" vertical-offset="336" max-vertical-offset="432">
|
761
|
+
<folding />
|
762
|
+
</state>
|
763
|
+
</provider>
|
764
|
+
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
765
|
+
<state />
|
766
|
+
</provider>
|
767
|
+
</entry>
|
768
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
|
769
|
+
<provider selected="true" editor-type-id="text-editor">
|
770
|
+
<state line="1" column="18" selection-start="31" selection-end="31" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="144">
|
728
771
|
<folding />
|
729
772
|
</state>
|
730
773
|
</provider>
|
731
774
|
</entry>
|
732
775
|
<entry file="file://$PROJECT_DIR$/lib/zip_dsl.rb">
|
733
776
|
<provider selected="true" editor-type-id="text-editor">
|
734
|
-
<state line="
|
777
|
+
<state line="2" column="24" selection-start="82" selection-end="82" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="160">
|
735
778
|
<folding />
|
736
779
|
</state>
|
737
780
|
</provider>
|
738
781
|
</entry>
|
739
|
-
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p448@zip_dsl/gems/
|
782
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p448@zip_dsl/gems/rspec-core-2.14.5/lib/rspec/core/memoized_helpers.rb">
|
740
783
|
<provider selected="true" editor-type-id="text-editor">
|
741
|
-
<state line="
|
784
|
+
<state line="198" column="0" selection-start="6885" selection-end="6885" vertical-scroll-proportion="0.0" vertical-offset="2999" max-vertical-offset="8320">
|
742
785
|
<folding />
|
743
786
|
</state>
|
744
787
|
</provider>
|
745
788
|
</entry>
|
746
789
|
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb">
|
747
790
|
<provider selected="true" editor-type-id="text-editor">
|
748
|
-
<state line="
|
791
|
+
<state line="20" column="4" selection-start="281" selection-end="281" vertical-scroll-proportion="-12.307693" vertical-offset="0" max-vertical-offset="1296">
|
749
792
|
<folding />
|
750
793
|
</state>
|
751
794
|
</provider>
|
752
795
|
</entry>
|
753
|
-
<entry file="file://$PROJECT_DIR$/
|
754
|
-
<provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
|
755
|
-
<state />
|
756
|
-
</provider>
|
796
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb">
|
757
797
|
<provider selected="true" editor-type-id="text-editor">
|
758
|
-
<state line="
|
798
|
+
<state line="5" column="0" selection-start="73" selection-end="103" vertical-scroll-proportion="-3.0769231" vertical-offset="0" max-vertical-offset="1152">
|
759
799
|
<folding />
|
760
800
|
</state>
|
761
801
|
</provider>
|
762
802
|
</entry>
|
763
|
-
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/
|
803
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb">
|
764
804
|
<provider selected="true" editor-type-id="text-editor">
|
765
|
-
<state line="
|
805
|
+
<state line="3" column="0" selection-start="36" selection-end="59" vertical-scroll-proportion="-1.8461539" vertical-offset="0" max-vertical-offset="1792">
|
766
806
|
<folding />
|
767
807
|
</state>
|
768
808
|
</provider>
|
769
809
|
</entry>
|
770
|
-
<entry file="file://$PROJECT_DIR$/
|
810
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
|
771
811
|
<provider selected="true" editor-type-id="text-editor">
|
772
|
-
<state line="
|
812
|
+
<state line="4" column="2" selection-start="59" selection-end="59" vertical-scroll-proportion="-2.4615386" vertical-offset="0" max-vertical-offset="1856">
|
773
813
|
<folding />
|
774
814
|
</state>
|
775
815
|
</provider>
|
776
816
|
</entry>
|
777
817
|
<entry file="file://$PROJECT_DIR$/spec/zip_dsl_spec.rb">
|
778
818
|
<provider selected="true" editor-type-id="text-editor">
|
779
|
-
<state line="
|
819
|
+
<state line="15" column="2" selection-start="283" selection-end="283" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2080">
|
780
820
|
<folding />
|
781
821
|
</state>
|
782
822
|
</provider>
|
783
823
|
</entry>
|
784
|
-
<entry file="file://$PROJECT_DIR$/
|
824
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
785
825
|
<provider selected="true" editor-type-id="text-editor">
|
786
|
-
<state line="
|
826
|
+
<state line="32" column="16" selection-start="355" selection-end="369" vertical-scroll-proportion="0.8858132" vertical-offset="0" max-vertical-offset="608">
|
787
827
|
<folding />
|
788
828
|
</state>
|
789
829
|
</provider>
|
data/.idea/zip_dsl.iml
CHANGED
@@ -36,14 +36,17 @@
|
|
36
36
|
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
37
37
|
<method />
|
38
38
|
</configuration>
|
39
|
-
<configuration default="false" name="
|
39
|
+
<configuration default="false" name="ZipDSL" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
40
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
40
41
|
<module name="zip_dsl" />
|
41
|
-
<
|
42
|
-
<
|
43
|
-
<
|
44
|
-
<
|
45
|
-
<
|
46
|
-
<envs
|
42
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
43
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
44
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
45
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
46
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
47
|
+
<envs>
|
48
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
49
|
+
</envs>
|
47
50
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
48
51
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
49
52
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
@@ -52,13 +55,23 @@
|
|
52
55
|
</COVERAGE_PATTERN>
|
53
56
|
</EXTENSION>
|
54
57
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
55
|
-
<
|
56
|
-
<
|
58
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
59
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
60
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
61
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
62
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL" />
|
63
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
64
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
65
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
66
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
67
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
68
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
69
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
57
70
|
<RunnerSettings RunnerId="RubyRunner" />
|
58
71
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
59
72
|
<method />
|
60
73
|
</configuration>
|
61
|
-
<configuration default="false" name="
|
74
|
+
<configuration default="false" name="zip_dsl_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
62
75
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
63
76
|
<module name="zip_dsl" />
|
64
77
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -81,7 +94,7 @@
|
|
81
94
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
82
95
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
83
96
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
84
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
97
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
85
98
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
86
99
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
87
100
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -93,7 +106,7 @@
|
|
93
106
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
94
107
|
<method />
|
95
108
|
</configuration>
|
96
|
-
<configuration default="false" name="
|
109
|
+
<configuration default="false" name="ZipDSL should display files in specified subdirectory: zip_dsl" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
97
110
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
98
111
|
<module name="zip_dsl" />
|
99
112
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -104,7 +117,7 @@
|
|
104
117
|
<envs>
|
105
118
|
<env name="JRUBY_OPTS" value="-X+O" />
|
106
119
|
</envs>
|
107
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
120
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
108
121
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
109
122
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
110
123
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -116,7 +129,7 @@
|
|
116
129
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
117
130
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
118
131
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
119
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
132
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL should display files in specified subdirectory" />
|
120
133
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
121
134
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
122
135
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -128,7 +141,7 @@
|
|
128
141
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
129
142
|
<method />
|
130
143
|
</configuration>
|
131
|
-
<configuration default="false" name="ZipDSL
|
144
|
+
<configuration default="false" name="ZipDSL#read: zip_dsl" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
132
145
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
133
146
|
<module name="zip_dsl" />
|
134
147
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -151,7 +164,7 @@
|
|
151
164
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
152
165
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
153
166
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
154
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL
|
167
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL#read" />
|
155
168
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
156
169
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
157
170
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -163,7 +176,7 @@
|
|
163
176
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
164
177
|
<method />
|
165
178
|
</configuration>
|
166
|
-
<configuration default="false" name="ZipDSL#
|
179
|
+
<configuration default="false" name="ZipDSL#build should create new zip file with files at particular folder: zip_dsl" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
167
180
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
168
181
|
<module name="zip_dsl" />
|
169
182
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -186,7 +199,7 @@
|
|
186
199
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/zip_dsl_spec.rb" />
|
187
200
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
188
201
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
189
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL#
|
202
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ZipDSL#build should create new zip file with files at particular folder" />
|
190
203
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
191
204
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
192
205
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -194,7 +207,9 @@
|
|
194
207
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
195
208
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
196
209
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
210
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
197
211
|
<RunnerSettings RunnerId="RubyRunner" />
|
212
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
198
213
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
199
214
|
<method />
|
200
215
|
</configuration>
|
data/CHANGES
CHANGED
data/lib/zip_dsl/version.rb
CHANGED
data/lib/zip_dsl/zip_dsl.rb
CHANGED
@@ -3,20 +3,20 @@ require 'meta_methods/meta_methods'
|
|
3
3
|
class ZipDSL
|
4
4
|
include MetaMethods
|
5
5
|
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :name, :from_dir
|
7
7
|
|
8
|
-
def initialize
|
9
|
-
@from_root = File.expand_path(from_root)
|
10
|
-
@to_root = File.expand_path(to_root)
|
8
|
+
def initialize name, from_dir = nil
|
11
9
|
@name = name
|
10
|
+
@from_dir = from_dir.nil? ? from_dir : File.expand_path(from_dir)
|
12
11
|
|
12
|
+
to_root = File.expand_path(File.dirname(name))
|
13
13
|
FileUtils.mkdir_p(to_root) unless File.exists? to_root
|
14
14
|
end
|
15
15
|
|
16
16
|
def build(name=nil, &execute_block)
|
17
17
|
name = name.nil? ? @name : name
|
18
18
|
|
19
|
-
create_block = lambda { ZipWriter.new(
|
19
|
+
create_block = lambda { ZipWriter.new(name, from_dir) }
|
20
20
|
destroy_block = lambda {|writer| writer.close }
|
21
21
|
|
22
22
|
evaluate_dsl(create_block, destroy_block, execute_block)
|
@@ -25,14 +25,14 @@ class ZipDSL
|
|
25
25
|
def update(name=nil, &execute_block)
|
26
26
|
name = name.nil? ? @name : name
|
27
27
|
|
28
|
-
create_block = lambda { ZipUpdater.new(
|
28
|
+
create_block = lambda { ZipUpdater.new(name, from_dir) }
|
29
29
|
destroy_block = lambda {|updater| updater.close }
|
30
30
|
|
31
31
|
evaluate_dsl(create_block, destroy_block, execute_block)
|
32
32
|
end
|
33
33
|
|
34
34
|
def entry_exist? entry_name
|
35
|
-
create_block = lambda { ZipReader.new(
|
35
|
+
create_block = lambda { ZipReader.new(name) }
|
36
36
|
destroy_block = lambda {|reader| reader.close }
|
37
37
|
execute_block = lambda { |reader| reader.entry_exist?(entry_name) }
|
38
38
|
|
@@ -40,7 +40,7 @@ class ZipDSL
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def entries_size
|
43
|
-
create_block = lambda { ZipReader.new(
|
43
|
+
create_block = lambda { ZipReader.new(name) }
|
44
44
|
destroy_block = lambda {|reader| reader.close }
|
45
45
|
execute_block = lambda { |reader| reader.entries_size }
|
46
46
|
|
@@ -48,7 +48,7 @@ class ZipDSL
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def list dir="."
|
51
|
-
create_block = lambda { ZipReader.new(
|
51
|
+
create_block = lambda { ZipReader.new(name) }
|
52
52
|
destroy_block = lambda {|reader| reader.close }
|
53
53
|
execute_block = lambda { |reader| reader.list(dir) }
|
54
54
|
|
@@ -56,7 +56,7 @@ class ZipDSL
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def each_entry dir=".", &code
|
59
|
-
create_block = lambda { ZipReader.new(
|
59
|
+
create_block = lambda { ZipReader.new(name) }
|
60
60
|
destroy_block = lambda {|reader| reader.close }
|
61
61
|
execute_block = lambda { |reader| reader.each_entry(dir, &code) }
|
62
62
|
|
data/lib/zip_dsl/zip_reader.rb
CHANGED
@@ -3,20 +3,22 @@ require 'zip/zip'
|
|
3
3
|
class ZipReader
|
4
4
|
include Enumerable
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
attr_reader :zis
|
7
|
+
|
8
|
+
def initialize name
|
9
|
+
@zis = Zip::ZipInputStream.new("#{name}")
|
8
10
|
end
|
9
11
|
|
10
12
|
def each(&block)
|
11
|
-
|
13
|
+
zis.rewind
|
12
14
|
|
13
|
-
while (entry =
|
15
|
+
while (entry = zis.get_next_entry)
|
14
16
|
block.call(entry)
|
15
17
|
end
|
16
18
|
end
|
17
19
|
|
18
20
|
def close
|
19
|
-
|
21
|
+
zis.close
|
20
22
|
end
|
21
23
|
|
22
24
|
def entry_exist? entry_name
|
data/lib/zip_dsl/zip_updater.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
require 'zip/zip'
|
2
2
|
|
3
3
|
class ZipUpdater
|
4
|
+
attr_reader :from_dir
|
4
5
|
|
5
|
-
def initialize
|
6
|
-
@
|
7
|
-
@zipfile = Zip::ZipFile.open(
|
6
|
+
def initialize name, from_dir
|
7
|
+
@from_dir = from_dir
|
8
|
+
@zipfile = Zip::ZipFile.open(name)
|
8
9
|
end
|
9
10
|
|
10
11
|
def close
|
@@ -99,7 +100,7 @@ class ZipUpdater
|
|
99
100
|
end
|
100
101
|
|
101
102
|
def full_name name
|
102
|
-
full_name?(name) ? name : "#{
|
103
|
+
full_name?(name) ? name : "#{from_dir}/#{name}"
|
103
104
|
end
|
104
105
|
|
105
106
|
end
|
data/lib/zip_dsl/zip_writer.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
require 'zip/zip'
|
2
2
|
|
3
3
|
class ZipWriter
|
4
|
+
attr_reader :from_dir
|
4
5
|
|
5
|
-
def initialize
|
6
|
-
@
|
6
|
+
def initialize name, from_dir
|
7
|
+
@from_dir = from_dir
|
7
8
|
|
8
|
-
@zos = Zip::ZipOutputStream.new(
|
9
|
+
@zos = Zip::ZipOutputStream.new(name)
|
9
10
|
|
10
11
|
@compression_level = Zlib::BEST_COMPRESSION
|
11
12
|
end
|
@@ -103,7 +104,7 @@ class ZipWriter
|
|
103
104
|
end
|
104
105
|
|
105
106
|
def full_name name
|
106
|
-
full_name?(name) ? name : "#{
|
107
|
+
full_name?(name) ? name : "#{from_dir}/#{name}"
|
107
108
|
end
|
108
109
|
|
109
110
|
end
|
data/spec/zip_dsl_spec.rb
CHANGED
@@ -6,16 +6,15 @@ require 'file_utils/file_utils'
|
|
6
6
|
describe ZipDSL do
|
7
7
|
include FileUtils
|
8
8
|
|
9
|
-
let(:
|
10
|
-
let(:to_basedir) { "build" }
|
9
|
+
let(:from_dir) { "." }
|
11
10
|
|
12
|
-
subject { ZipDSL.new
|
11
|
+
subject { ZipDSL.new "build/test.zip", from_dir }
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
end
|
13
|
+
after do
|
14
|
+
delete_directory "build"
|
15
|
+
end
|
18
16
|
|
17
|
+
describe "#build" do
|
19
18
|
it "should create new zip file with files at particular folder" do
|
20
19
|
subject.build do
|
21
20
|
file :name => "Gemfile"
|
@@ -40,7 +39,7 @@ describe ZipDSL do
|
|
40
39
|
end
|
41
40
|
|
42
41
|
it "should create new zip file with file created from file" do
|
43
|
-
src = File.open("#{
|
42
|
+
src = File.open("#{from_dir}/Rakefile")
|
44
43
|
subject.build do
|
45
44
|
content :name => "Rakefile", :source => src
|
46
45
|
end
|
@@ -74,7 +73,7 @@ describe ZipDSL do
|
|
74
73
|
file :name => "Gemfile"
|
75
74
|
end
|
76
75
|
|
77
|
-
File.exist?(
|
76
|
+
File.exist?(subject.name).should be_true
|
78
77
|
subject.entry_exist?("Gemfile").should be_true
|
79
78
|
|
80
79
|
subject.update do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zip_dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shvets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zip
|