real_zip 0.2.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63b73f43ac7c4bb579dc6b2860683009ea3864e7
4
- data.tar.gz: a2949559d538796c35db7fe6428ba4c1ee506c05
3
+ metadata.gz: d96f3c5999c3d13d30a9553e45740ebd42a8e90c
4
+ data.tar.gz: c13336ba6a7c2e47131b71b8da08079c67b79163
5
5
  SHA512:
6
- metadata.gz: f0f6395e390bcd31826983f7b077cb5304077ee9e2ac17b06f2ea5b4caefd76bd634b03fe82c30a018e5101a0c165e169899a62e8eb23ca22521d8b9a943177e
7
- data.tar.gz: 151b6c50b9ba744d3756a525bc309cf6aeeab063abd2706fb7f1072e3054f3192d8a963094a29a0b7c86b01972f78cc7f3747e55e542122be4e0b21c7a2021e4
6
+ metadata.gz: bc7e156f542670727d2324da042b95eee2fa922767fd039c71167d6310a639ba4ae7ea3b09c05eb6f98f3e7dc0b80720ad39224a7e6d516aed9271637e8a48aa
7
+ data.tar.gz: 9d04bd40f3fdccb610df06df0aa430c83ceaeee276b2cc5eca37fbff02d59c2fd8539605d8581f9d7783addef5cd1c9a3ddba1021e909de7e747611a425bfee2
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ real_zip
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
data/.idea/misc.xml ADDED
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="ruby-1.9.3-p484" project-jdk-type="RUBY_SDK" />
4
+ </project>
5
+
data/.idea/modules.xml ADDED
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/real_zip.iml" filepath="$PROJECT_DIR$/.idea/real_zip.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,55 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="CompassSettings">
4
+ <option name="compassSupportEnabled" value="true" />
5
+ </component>
6
+ <component name="FacetManager">
7
+ <facet type="gem" name="Ruby Gem">
8
+ <configuration>
9
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
10
+ <option name="GEM_APP_TEST_PATH" value="" />
11
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
12
+ </configuration>
13
+ </facet>
14
+ </component>
15
+ <component name="ModuleRunConfigurationManager">
16
+ <configuration default="false" name="All tests in real_zip: real_zip" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
17
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
18
+ <module name="real_zip" />
19
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
20
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
21
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
22
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
23
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
24
+ <envs>
25
+ <env name="JRUBY_OPTS" value="-X+O" />
26
+ </envs>
27
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
28
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
29
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
30
+ <COVERAGE_PATTERN ENABLED="true">
31
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
32
+ </COVERAGE_PATTERN>
33
+ </EXTENSION>
34
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
35
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$" />
36
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
37
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/{*_test,test_*}.rb" />
38
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
39
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
40
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
41
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
42
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
43
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
44
+ <RunnerSettings RunnerId="RubyRunner" />
45
+ <ConfigurationWrapper RunnerId="RubyRunner" />
46
+ <method />
47
+ </configuration>
48
+ </component>
49
+ <component name="NewModuleRootManager">
50
+ <content url="file://$MODULE_DIR$" />
51
+ <orderEntry type="inheritedJdk" />
52
+ <orderEntry type="sourceFolder" forTests="false" />
53
+ </component>
54
+ </module>
55
+
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
7
+
@@ -0,0 +1,291 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="9f656d3f-2998-4b30-b2aa-44be525b7a9f" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/examples_spec.rb" afterPath="$PROJECT_DIR$/spec/examples_spec.rb" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/support/my_temp.rb" afterPath="$PROJECT_DIR$/spec/support/my_temp.rb" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/real_zip.gemspec" afterPath="$PROJECT_DIR$/real_zip.gemspec" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/real_zip.rb" afterPath="$PROJECT_DIR$/lib/real_zip.rb" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/real_zip/version.rb" afterPath="$PROJECT_DIR$/lib/real_zip/version.rb" />
10
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/support/zip_entries.rb.rb" afterPath="$PROJECT_DIR$/spec/support/zip_entries.rb.rb" />
11
+ </list>
12
+ <ignored path="real_zip.iws" />
13
+ <ignored path=".idea/workspace.xml" />
14
+ <option name="TRACKING_ENABLED" value="true" />
15
+ <option name="SHOW_DIALOG" value="false" />
16
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
17
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
18
+ <option name="LAST_RESOLUTION" value="IGNORE" />
19
+ </component>
20
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
21
+ <component name="CoverageDataManager">
22
+ <SUITE FILE_PATH="coverage/real_zip@All_tests_in_real_zip__real_zip.coverage" NAME="All tests in real_zip: real_zip Coverage Results" MODIFIED="1405522348581" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="real_zip" />
23
+ </component>
24
+ <component name="CreatePatchCommitExecutor">
25
+ <option name="PATCH_PATH" value="" />
26
+ </component>
27
+ <component name="DaemonCodeAnalyzer">
28
+ <disable_hints />
29
+ </component>
30
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
31
+ <component name="FavoritesManager">
32
+ <favorites_list name="real_zip" />
33
+ </component>
34
+ <component name="FindManager">
35
+ <FindUsagesManager>
36
+ <setting name="OPEN_NEW_TAB" value="true" />
37
+ </FindUsagesManager>
38
+ </component>
39
+ <component name="Git.Settings">
40
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
41
+ </component>
42
+ <component name="ProjectFrameBounds">
43
+ <option name="x" value="450" />
44
+ <option name="y" value="270" />
45
+ <option name="width" value="1600" />
46
+ <option name="height" value="876" />
47
+ </component>
48
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
49
+ <OptionsSetting value="true" id="Add" />
50
+ <OptionsSetting value="true" id="Remove" />
51
+ <OptionsSetting value="true" id="Checkout" />
52
+ <OptionsSetting value="true" id="Update" />
53
+ <OptionsSetting value="true" id="Status" />
54
+ <OptionsSetting value="true" id="Edit" />
55
+ <ConfirmationsSetting value="0" id="Add" />
56
+ <ConfirmationsSetting value="0" id="Remove" />
57
+ </component>
58
+ <component name="ProjectReloadState">
59
+ <option name="STATE" value="0" />
60
+ </component>
61
+ <component name="ProjectView">
62
+ <navigator currentView="ProjectPane" proportions="" version="1">
63
+ <flattenPackages />
64
+ <showMembers />
65
+ <showModules />
66
+ <showLibraryContents />
67
+ <hideEmptyPackages />
68
+ <abbreviatePackageNames />
69
+ <autoscrollToSource />
70
+ <autoscrollFromSource />
71
+ <sortByType />
72
+ </navigator>
73
+ <panes>
74
+ <pane id="ProjectPane">
75
+ <subPane>
76
+ <PATH>
77
+ <PATH_ELEMENT>
78
+ <option name="myItemId" value="real_zip" />
79
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
80
+ </PATH_ELEMENT>
81
+ </PATH>
82
+ <PATH>
83
+ <PATH_ELEMENT>
84
+ <option name="myItemId" value="real_zip" />
85
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
86
+ </PATH_ELEMENT>
87
+ <PATH_ELEMENT>
88
+ <option name="myItemId" value="real_zip" />
89
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
90
+ </PATH_ELEMENT>
91
+ </PATH>
92
+ <PATH>
93
+ <PATH_ELEMENT>
94
+ <option name="myItemId" value="real_zip" />
95
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
96
+ </PATH_ELEMENT>
97
+ <PATH_ELEMENT>
98
+ <option name="myItemId" value="real_zip" />
99
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
100
+ </PATH_ELEMENT>
101
+ <PATH_ELEMENT>
102
+ <option name="myItemId" value="lib" />
103
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
104
+ </PATH_ELEMENT>
105
+ </PATH>
106
+ <PATH>
107
+ <PATH_ELEMENT>
108
+ <option name="myItemId" value="real_zip" />
109
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
110
+ </PATH_ELEMENT>
111
+ <PATH_ELEMENT>
112
+ <option name="myItemId" value="real_zip" />
113
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
114
+ </PATH_ELEMENT>
115
+ <PATH_ELEMENT>
116
+ <option name="myItemId" value="lib" />
117
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
118
+ </PATH_ELEMENT>
119
+ <PATH_ELEMENT>
120
+ <option name="myItemId" value="real_zip" />
121
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
122
+ </PATH_ELEMENT>
123
+ </PATH>
124
+ </subPane>
125
+ </pane>
126
+ <pane id="Scope" />
127
+ </panes>
128
+ </component>
129
+ <component name="PropertiesComponent">
130
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
131
+ <property name="WebServerToolWindowFactoryState" value="false" />
132
+ <property name="recentsLimit" value="5" />
133
+ </component>
134
+ <component name="RunManager" selected="Test::Unit/Shoulda/Minitest.All tests in real_zip: real_zip">
135
+ <configuration default="false" name="All tests in real_zip: real_zip" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
136
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
137
+ <module name="real_zip" />
138
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
139
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
140
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
141
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
142
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
143
+ <envs>
144
+ <env name="JRUBY_OPTS" value="-X+O" />
145
+ </envs>
146
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
147
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
148
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
149
+ <COVERAGE_PATTERN ENABLED="true">
150
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
151
+ </COVERAGE_PATTERN>
152
+ </EXTENSION>
153
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
154
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$" />
155
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
156
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/{*_test,test_*}.rb" />
157
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
158
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
159
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
160
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
161
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
162
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
163
+ <RunnerSettings RunnerId="RubyRunner" />
164
+ <ConfigurationWrapper RunnerId="RubyRunner" />
165
+ <method />
166
+ </configuration>
167
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
168
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
169
+ <module name="" />
170
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
171
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
172
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
173
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
174
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
175
+ <envs />
176
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
177
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
178
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
179
+ <COVERAGE_PATTERN ENABLED="true">
180
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
181
+ </COVERAGE_PATTERN>
182
+ </EXTENSION>
183
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
184
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
185
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
186
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
187
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
188
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
189
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
190
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
191
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
192
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
193
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
194
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
195
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
196
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
197
+ <method />
198
+ </configuration>
199
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
200
+ <method />
201
+ </configuration>
202
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
203
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
204
+ <module name="" />
205
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
206
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
207
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
208
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
209
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
210
+ <envs />
211
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
212
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
213
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
214
+ <COVERAGE_PATTERN ENABLED="true">
215
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
216
+ </COVERAGE_PATTERN>
217
+ </EXTENSION>
218
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
219
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
220
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
221
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
222
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
223
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
224
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
225
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
226
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
227
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
228
+ <method />
229
+ </configuration>
230
+ <list size="1">
231
+ <item index="0" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.All tests in real_zip: real_zip" />
232
+ </list>
233
+ <recent_temporary>
234
+ <list size="1">
235
+ <item index="0" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.All tests in real_zip: real_zip" />
236
+ </list>
237
+ </recent_temporary>
238
+ </component>
239
+ <component name="ShelveChangesManager" show_recycled="false" />
240
+ <component name="TaskManager">
241
+ <task active="true" id="Default" summary="Default task">
242
+ <changelist id="9f656d3f-2998-4b30-b2aa-44be525b7a9f" name="Default" comment="" />
243
+ </task>
244
+ <servers />
245
+ </component>
246
+ <component name="ToolWindowManager">
247
+ <frame x="450" y="270" width="1600" height="876" extended-state="0" />
248
+ <editor active="false" />
249
+ <layout>
250
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917705" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
251
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
252
+ <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="-1" side_tool="false" content_ui="tabs" />
253
+ <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" />
254
+ <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="-1" side_tool="false" content_ui="tabs" />
255
+ <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="false" content_ui="tabs" />
256
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
257
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
258
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
259
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
260
+ <window_info id="Run" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.340399" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
261
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
262
+ <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" />
263
+ <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" />
264
+ <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" />
265
+ <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" />
266
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
267
+ <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" />
268
+ <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" />
269
+ </layout>
270
+ </component>
271
+ <component name="Vcs.Log.UiProperties">
272
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
273
+ <collection />
274
+ </option>
275
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
276
+ <collection />
277
+ </option>
278
+ </component>
279
+ <component name="VcsContentAnnotationSettings">
280
+ <option name="myLimit" value="2678400000" />
281
+ </component>
282
+ <component name="VcsManagerConfiguration">
283
+ <option name="myTodoPanelSettings">
284
+ <TodoPanelSettings />
285
+ </option>
286
+ </component>
287
+ <component name="XDebuggerManager">
288
+ <breakpoint-manager />
289
+ </component>
290
+ </project>
291
+
data/README.md CHANGED
@@ -1,29 +1,42 @@
1
- # realZip
2
-
3
- ## Warning
4
- This gem is currently under development. Please refrain from using it.
1
+ # RealZip
5
2
 
6
3
  ## Usage
7
4
 
8
5
  ```ruby
9
6
  require 'real_zip'
10
7
 
11
- # create zip file with given file structure and transfer files to the directory of your choice within the zip file
8
+ # create zip file with given file structure and transfer files to the directory of your choice within the zip file.
9
+
10
+
11
+ ## Use Cases
12
12
 
13
- RealZip 'temp.zip', {dir1:[:f1,:f2],dir2:[:f3,{dir4:[:f4]}]}
13
+ RealZip 'temp.zip', {:html => ["/home/Files/a.html"], :pdf => ["/home/Files/c.pdf"], :rb => ["/home/Files/b.rb"]}
14
14
 
15
- # ensure it works
15
+ # Results in
16
16
  puts `unzip -l temp.zip | awk '{print $4}'`
17
17
  ===========================================
18
- dir1/
19
- dir2/
20
- dir2/dir4/
21
- dir1/f1
22
- dir1/f2
23
- dir2/f3
24
- dir2/dir4/f4
18
+
19
+ html/
20
+ pdf/
21
+ rb/
22
+ html/a.html
23
+ pdf/c.pdf
24
+ rb/b.rb
25
+
26
+ RealZip 'temp.zip', {'doc/html' => ["/home/Files/a.html"], 'doc/pdf' => ["/home/Files/c.pdf"], 'doc/pdf/rb' => ["/home/Files/b.rb"]}
27
+
28
+ # Results in
29
+ puts `unzip -l temp.zip | awk '{print $4}'`
30
+ ===========================================
31
+ doc/html/
32
+ doc/pdf/
33
+ doc/pdf/rb/
34
+ doc/html/a.html
35
+ doc/pdf/c.pdf
36
+ doc/pdf/rb/b.rb
25
37
  ```
26
38
 
39
+
27
40
  ## Installation
28
41
 
29
42
  Add this line to your application's Gemfile:
@@ -32,7 +45,7 @@ Add this line to your application's Gemfile:
32
45
 
33
46
  And then execute:
34
47
 
35
- $ bundle
48
+ $ bundle install
36
49
 
37
50
  Or install it yourself as:
38
51
 
@@ -47,4 +60,4 @@ Or install it yourself as:
47
60
  5. Create new Pull Request
48
61
 
49
62
  ## Acknowledgement
50
- This is software is built upon Alexander K's Fake_Zip gem.A hearty thanks to him for making it freely available.
63
+ This software is built upon Alexander K's Fake_Zip gem. A hearty thanks to him for making it freely available. This project would not be possible without [Ravi Baghele](https://github.com/rbaghele)'s major input in implementing the core file tranfer functionality.I would also like to thank <a href="https://github.com/indermishra">Indrajeet Mishra</a> for his valuable insights about testing and debugging the gem.Our team leader <a href ="https://github.com/stormfire">Mr. Pankaj Gupta</a> has provided invaluable support and guidance throughout the project.
data/lib/a.rb ADDED
@@ -0,0 +1,3 @@
1
+ require_relative 'real_zip.rb'
2
+
3
+ RealZip 'Ruby.zip', {:rb => ["/home/raw/Code/prasad/zippo.rb"]}
@@ -1,3 +1,3 @@
1
1
  module RealZip
2
- VERSION = "0.2.0"
2
+ VERSION = "1.0.0"
3
3
  end
data/lib/real_zip.rb CHANGED
@@ -56,16 +56,48 @@ module RealZip
56
56
  first_dir = dir
57
57
  z.dir.mkdir(dir) unless z.file.exist? dir
58
58
  end
59
- op1 = struct
60
- arr = op1.values.first
59
+
60
+ hash = struct
61
+ puts "hash => #{hash}"
62
+ hash.each do |dir,file_arr|
63
+ puts "directory ======> #{dir}"
64
+ puts "file_array ======> #{file_arr.to_s}"
65
+
66
+ new_files = files({dir => file_arr})
67
+ puts "new files ======> #{new_files.to_s}"
68
+ new_files.each_with_index do |file, index|
69
+ puts "file ======> #{file} index => #{index}"
70
+ orignal_file_path = file_arr[index]
71
+ puts "orignal_file_path ==========> #{orignal_file_path}"
72
+ string = File.open(orignal_file_path, 'r'){ |f| f.read }
73
+ file_name = file.split('/').last
74
+ new_file_name = ( files( {dir => [ "#{file_name}" ] } ) ).first
75
+ puts "file_name ========> #{file_name}"
76
+ z.file.open(new_file_name, "w") { |f| f.write string }
77
+ end
78
+ end
79
+
80
+
81
+ # op1 = struct
82
+ # # arr = op1.values.first
83
+ # # op2 = files(op1)
84
+ # # res = op1.to_s + " ==== " + op2.to_s
61
85
  # op2 = files(op1)
62
- # res = op1.to_s + " ==== " + op2.to_s
63
- files(op1).each_with_index do |file,index|
64
- file_path = arr[index]
65
- # FileUtils.cp("/home/raw/Code/prasad/zip.rake", file)
66
- string = File.open(file_path, 'r'){ |f| f.read }
67
- z.file.open(file, "w") { |f| f.write string }
68
- end
86
+ # puts "files(op1) ========> #{op2}"
87
+ # files(op1).each_with_index do |file,index|
88
+ # puts "file => #{file}"
89
+ # key = ( file.split("//").first ).to_sym
90
+ # puts "Key ====> #{key} "
91
+ # arr = op1[key]
92
+ # puts "arr of file => #{arr.to_s}"
93
+ # file_path = arr[0]
94
+ # puts "file_path ======> #{file_path}"
95
+ # # file_path = arr[index]
96
+ # # FileUtils.cp("/home/raw/Code/prasad/zip.rake", file)
97
+ # string = File.open(file_path, 'r'){ |f| f.read }
98
+ # puts "===== #{op1.to_s}"
99
+ # z.file.open(file, "w") { |f| f.write string }
100
+ # end
69
101
  end
70
102
  end
71
103
 
data/real_zip.gemspec CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |spec|
7
7
  spec.version = RealZip::VERSION
8
8
  spec.authors = ["Prasad R."]
9
9
  spec.email = ["thelaptopsage@gmail.com"]
10
- spec.description = %q{ build zip files with given file structure and transfer files to it for testing }.strip
11
- spec.summary = %q{ build zip files with given file structure and transfer files to it for testing }.strip
10
+ spec.description = %q{ build zip files with given file structure and transfer files to it }.strip
11
+ spec.summary = %q{ build zip files with given file structure and transfer files to it }.strip
12
12
  spec.homepage = "https://github.com/OskarSchindler/real_zip"
13
13
  spec.license = "MIT"
14
14
 
@@ -0,0 +1,9 @@
1
+ describe RealZip do
2
+ extend MyTemp.new(:temp, 'tmp/testing.zip')
3
+
4
+
5
+ it 'takes file name and hash' do
6
+ expect { RealZip temp, {} }.to change { File.exist? temp }.from(false).to(true)
7
+ end
8
+
9
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: real_zip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prasad R.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,8 +66,7 @@ dependencies:
66
66
  - - "<"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.0.0
69
- description: build zip files with given file structure and transfer files to it for
70
- testing
69
+ description: build zip files with given file structure and transfer files to it
71
70
  email:
72
71
  - thelaptopsage@gmail.com
73
72
  executables: []
@@ -75,15 +74,26 @@ extensions: []
75
74
  extra_rdoc_files: []
76
75
  files:
77
76
  - ".gitignore"
77
+ - ".idea/.name"
78
+ - ".idea/.rakeTasks"
79
+ - ".idea/encodings.xml"
80
+ - ".idea/misc.xml"
81
+ - ".idea/modules.xml"
82
+ - ".idea/real_zip.iml"
83
+ - ".idea/scopes/scope_settings.xml"
84
+ - ".idea/vcs.xml"
85
+ - ".idea/workspace.xml"
78
86
  - ".rspec"
79
87
  - Gemfile
80
88
  - LICENSE.txt
81
89
  - README.md
82
90
  - Rakefile
91
+ - lib/a.rb
83
92
  - lib/real_zip.rb
84
93
  - lib/real_zip/version.rb
85
94
  - real_zip.gemspec
86
95
  - spec/examples_spec.rb
96
+ - spec/real_zip_spec.rb
87
97
  - spec/spec_helper.rb
88
98
  - spec/support/meta_module.rb
89
99
  - spec/support/my_temp.rb
@@ -112,9 +122,10 @@ rubyforge_project:
112
122
  rubygems_version: 2.3.0
113
123
  signing_key:
114
124
  specification_version: 4
115
- summary: build zip files with given file structure and transfer files to it for testing
125
+ summary: build zip files with given file structure and transfer files to it
116
126
  test_files:
117
127
  - spec/examples_spec.rb
128
+ - spec/real_zip_spec.rb
118
129
  - spec/spec_helper.rb
119
130
  - spec/support/meta_module.rb
120
131
  - spec/support/my_temp.rb