zip_dsl 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2FjNmRkMWFlZTk2OTE1NWMxNTFiNjE3MjI2NmRhOWYxNmYwM2U4Yg==
4
+ NWU1OGRlZTA1ODI3YjRlZmQ4ZTAzMzQ2N2MyOTg1ODEzMjE1MzUzOA==
5
5
  data.tar.gz: !binary |-
6
- YjU4MTUwNTdiYmVlYTVhYWNkYmEzY2JmODA4MDc0YWUwMzczMDk3MQ==
6
+ ZmE5Zjg4NDljZWI3OTliMWQzZTg0NTI1NDZkZGRkMDdmNjgwYmQ5NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWU3ZmIxOGYwNmRkNjNjZDYzMjJiMTVkNzkzNzY0YjhjZGQyN2FjNWEyZDg2
10
- ODZhYjk2YjNkMDFkOTNhZTVlNDYxZGFiYmM2YTcwYzFiY2MzOGQ3ZmE4YWFl
11
- ZGMyMWIwODljYzUzZTYxOTU5ZTZjMjFiMTI0YjVmZDIxNTJiODQ=
9
+ Yjg3ZjE5ZjYyMDNhNDdmZTZlODk3M2Y5ZmEwYWMwODQyZGE4ODBhNjQwOGE4
10
+ YjZiMTE2NTRiN2QxMDQ5ZmJjYWFjMGQ0OTNmMmMxNmE2YWIyYzUyMDg5NzMw
11
+ OTg2NjBkYTAyZDA0MTc5ZTNkOGIwMDllMDI5MzZlNTI5ZjQ4NjY=
12
12
  data.tar.gz: !binary |-
13
- MzI2ZGRjYWU2NWU4NTJkNWMyZGEzOWU3N2I5ZGU5MDBhYzk1NWZhZmYzODk3
14
- MzA5NGUzZDdjY2QzMTUzMDY3ZTM0M2ZmNTlmMDllZDI3NGNlMDEzODYzMzc4
15
- MmFiNzBkNGYyN2Q1OGY5NzFiZGVhMzQ5OTM0ZjM3YzY5NTNjOWE=
13
+ ZGE4Y2VhY2NkZTAyNDk3YjE5ZDUwOWE1ZmEwYjZjMjk4ZjEwZTg5N2IwM2Rm
14
+ ZDk3NTQ5Y2NhZmY3YTRjYjFlMWQ0YjJiMTFhNTMyYTU4MzEwYTVjYTY1MGRi
15
+ MGFiZWYwNWYxZjk2ODI2NDJhMTRkYjU5YzNkN2MwZjhjMjc5YzI=
data/.idea/workspace.xml CHANGED
@@ -1,16 +1,11 @@
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=" Adding each_entry method.&#10;">
4
+ <list default="true" id="aafa5aec-b597-47d5-af91-f7b63300321f" name="Default" comment="">
5
5
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
6
6
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/version.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
7
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
8
  <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" />
14
9
  </list>
15
10
  <ignored path="zip_dsl.iws" />
16
11
  <ignored path=".idea/workspace.xml" />
@@ -44,7 +39,7 @@
44
39
  <file leaf-file-name="zip_dsl_spec.rb" pinned="false" current="false" current-in-tab="false">
45
40
  <entry file="file://$PROJECT_DIR$/spec/zip_dsl_spec.rb">
46
41
  <provider selected="true" editor-type-id="text-editor">
47
- <state line="15" column="2" selection-start="283" selection-end="283" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2080">
42
+ <state line="15" column="2" selection-start="283" selection-end="283" vertical-scroll-proportion="0.0" vertical-offset="240" max-vertical-offset="2080">
48
43
  <folding />
49
44
  </state>
50
45
  </provider>
@@ -62,28 +57,16 @@
62
57
  <file leaf-file-name="CHANGES" pinned="false" current="true" current-in-tab="true">
63
58
  <entry file="file://$PROJECT_DIR$/CHANGES">
64
59
  <provider selected="true" editor-type-id="text-editor">
65
- <state line="32" column="16" selection-start="355" selection-end="369" vertical-scroll-proportion="0.8858132" vertical-offset="0" max-vertical-offset="608">
60
+ <state line="36" column="10" selection-start="400" selection-end="400" vertical-scroll-proportion="0.94482756" vertical-offset="28" max-vertical-offset="672">
66
61
  <folding />
67
62
  </state>
68
63
  </provider>
69
64
  </entry>
70
65
  </file>
71
- <file leaf-file-name="LICENSE" pinned="false" current="false" current-in-tab="false">
72
- <entry file="file://$PROJECT_DIR$/LICENSE">
73
- <provider selected="true" editor-type-id="text-editor">
74
- <state line="21" column="63" selection-start="1072" selection-end="1072" vertical-scroll-proportion="0.0" vertical-offset="336" max-vertical-offset="432">
75
- <folding />
76
- </state>
77
- </provider>
78
- <provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
79
- <state />
80
- </provider>
81
- </entry>
82
- </file>
83
66
  <file leaf-file-name="zip_writer.rb" pinned="false" current="false" current-in-tab="false">
84
67
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
85
68
  <provider selected="true" editor-type-id="text-editor">
86
- <state line="4" column="2" selection-start="59" selection-end="59" vertical-scroll-proportion="-2.4615386" vertical-offset="0" max-vertical-offset="1856">
69
+ <state line="4" column="2" selection-start="59" selection-end="59" vertical-scroll-proportion="0.0" vertical-offset="64" max-vertical-offset="1856">
87
70
  <folding />
88
71
  </state>
89
72
  </provider>
@@ -92,7 +75,7 @@
92
75
  <file leaf-file-name="zip_reader.rb" pinned="false" current="false" current-in-tab="false">
93
76
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb">
94
77
  <provider selected="true" editor-type-id="text-editor">
95
- <state line="20" column="4" selection-start="281" selection-end="281" vertical-scroll-proportion="-12.307693" vertical-offset="0" max-vertical-offset="1296">
78
+ <state line="15" column="36" selection-start="262" selection-end="262" vertical-scroll-proportion="0.0" vertical-offset="576" max-vertical-offset="1312">
96
79
  <folding />
97
80
  </state>
98
81
  </provider>
@@ -101,16 +84,28 @@
101
84
  <file leaf-file-name="zip_updater.rb" pinned="false" current="false" current-in-tab="false">
102
85
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb">
103
86
  <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
+ <state line="3" column="0" selection-start="36" selection-end="59" vertical-scroll-proportion="0.0" vertical-offset="48" max-vertical-offset="1792">
105
88
  <folding />
106
89
  </state>
107
90
  </provider>
108
91
  </entry>
109
92
  </file>
93
+ <file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
94
+ <entry file="file://$PROJECT_DIR$/README.md">
95
+ <provider selected="true" editor-type-id="text-editor">
96
+ <state line="70" column="14" selection-start="1235" selection-end="1235" vertical-scroll-proportion="-23.88889" vertical-offset="475" max-vertical-offset="1376">
97
+ <folding />
98
+ </state>
99
+ </provider>
100
+ <provider editor-type-id="MarkdownPreviewEditor">
101
+ <state />
102
+ </provider>
103
+ </entry>
104
+ </file>
110
105
  <file leaf-file-name="zip_dsl.rb" pinned="false" current="false" current-in-tab="false">
111
106
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl.rb">
112
107
  <provider selected="true" editor-type-id="text-editor">
113
- <state line="2" column="24" selection-start="82" selection-end="82" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="160">
108
+ <state line="2" column="24" selection-start="82" selection-end="82" vertical-scroll-proportion="0.0" vertical-offset="32" max-vertical-offset="160">
114
109
  <folding />
115
110
  </state>
116
111
  </provider>
@@ -119,7 +114,7 @@
119
114
  <file leaf-file-name="zip_dsl.rb" pinned="false" current="false" current-in-tab="false">
120
115
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb">
121
116
  <provider selected="true" editor-type-id="text-editor">
122
- <state line="5" column="0" selection-start="73" selection-end="103" vertical-scroll-proportion="-3.0769231" vertical-offset="0" max-vertical-offset="1152">
117
+ <state line="5" column="0" selection-start="73" selection-end="103" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1152">
123
118
  <folding />
124
119
  </state>
125
120
  </provider>
@@ -159,14 +154,14 @@
159
154
  <option value="$PROJECT_DIR$/Rakefile" />
160
155
  <option value="$PROJECT_DIR$/Gemfile" />
161
156
  <option value="$PROJECT_DIR$/zip_dsl.gemspec.erb" />
162
- <option value="$PROJECT_DIR$/README.md" />
163
157
  <option value="$PROJECT_DIR$/LICENSE" />
164
- <option value="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
165
158
  <option value="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" />
166
- <option value="$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb" />
167
159
  <option value="$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb" />
168
160
  <option value="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
169
161
  <option value="$PROJECT_DIR$/spec/zip_dsl_spec.rb" />
162
+ <option value="$PROJECT_DIR$/README.md" />
163
+ <option value="$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb" />
164
+ <option value="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
170
165
  <option value="$PROJECT_DIR$/CHANGES" />
171
166
  </list>
172
167
  </option>
@@ -203,7 +198,6 @@
203
198
  <sortByType />
204
199
  </navigator>
205
200
  <panes>
206
- <pane id="Scope" />
207
201
  <pane id="ProjectPane">
208
202
  <subPane>
209
203
  <PATH>
@@ -270,6 +264,7 @@
270
264
  </PATH>
271
265
  </subPane>
272
266
  </pane>
267
+ <pane id="Scope" />
273
268
  </panes>
274
269
  </component>
275
270
  <component name="PropertiesComponent">
@@ -591,10 +586,10 @@
591
586
  </list>
592
587
  <recent_temporary>
593
588
  <list size="5">
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" />
589
+ <item index="0" class="java.lang.String" itemvalue="RSpec.ZipDSL#build should create new zip file with files at particular folder: zip_dsl" />
590
+ <item index="1" class="java.lang.String" itemvalue="RSpec.ZipDSL#read: zip_dsl" />
591
+ <item index="2" class="java.lang.String" itemvalue="RSpec.ZipDSL should display files in specified subdirectory: zip_dsl" />
592
+ <item index="3" class="java.lang.String" itemvalue="RSpec.zip_dsl_spec" />
598
593
  <item index="4" class="java.lang.String" itemvalue="RSpec.ZipDSL" />
599
594
  </list>
600
595
  </recent_temporary>
@@ -638,20 +633,28 @@
638
633
  <created>1384208984587</created>
639
634
  <updated>1384208984587</updated>
640
635
  </task>
641
- <option name="localTasksCounter" value="9" />
636
+ <task id="LOCAL-00009" summary="Changes in API">
637
+ <created>1384277734104</created>
638
+ <updated>1384277734104</updated>
639
+ </task>
640
+ <task id="LOCAL-00010" summary="Changes in API&#10;">
641
+ <created>1384277876551</created>
642
+ <updated>1384277876551</updated>
643
+ </task>
644
+ <option name="localTasksCounter" value="11" />
642
645
  <servers />
643
646
  </component>
644
647
  <component name="ToolWindowManager">
645
648
  <frame x="92" y="22" width="1588" height="1028" extended-state="0" />
646
649
  <editor active="true" />
647
650
  <layout>
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" />
651
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32368702" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
649
652
  <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" />
650
653
  <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" />
651
654
  <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" />
652
655
  <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" />
653
656
  <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" />
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" />
657
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3378729" sideWeight="0.6728972" order="0" side_tool="false" content_ui="combo" />
655
658
  <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" />
656
659
  <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" />
657
660
  <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" />
@@ -683,7 +686,9 @@
683
686
  <MESSAGE value="Bug fixes" />
684
687
  <MESSAGE value="updating README" />
685
688
  <MESSAGE value=" Adding each_entry method." />
686
- <option name="LAST_COMMIT_MESSAGE" value=" Adding each_entry method." />
689
+ <MESSAGE value="Changes in API" />
690
+ <MESSAGE value="Changes in API&#10;" />
691
+ <option name="LAST_COMMIT_MESSAGE" value="Changes in API&#10;" />
687
692
  </component>
688
693
  <component name="XDebuggerManager">
689
694
  <breakpoint-manager>
@@ -740,16 +745,6 @@
740
745
  <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="575" />
741
746
  </provider>
742
747
  </entry>
743
- <entry file="file://$PROJECT_DIR$/README.md">
744
- <provider selected="true" editor-type-id="text-editor">
745
- <state line="73" column="26" selection-start="0" selection-end="61" vertical-scroll-proportion="0.0" vertical-offset="663" max-vertical-offset="1264">
746
- <folding />
747
- </state>
748
- </provider>
749
- <provider editor-type-id="MarkdownPreviewEditor">
750
- <state />
751
- </provider>
752
- </entry>
753
748
  <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">
754
749
  <provider selected="true" editor-type-id="text-editor">
755
750
  <state line="35" column="6" selection-start="770" selection-end="770" vertical-scroll-proportion="0.33333334" vertical-offset="361" max-vertical-offset="1488" />
@@ -765,65 +760,75 @@
765
760
  <state />
766
761
  </provider>
767
762
  </entry>
768
- <entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
763
+ <entry file="file://$PROJECT_DIR$/lib/zip_dsl.rb">
769
764
  <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">
765
+ <state line="2" column="24" selection-start="82" selection-end="82" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="160">
771
766
  <folding />
772
767
  </state>
773
768
  </provider>
774
769
  </entry>
775
- <entry file="file://$PROJECT_DIR$/lib/zip_dsl.rb">
770
+ <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">
776
771
  <provider selected="true" editor-type-id="text-editor">
777
- <state line="2" column="24" selection-start="82" selection-end="82" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="160">
772
+ <state line="198" column="0" selection-start="6885" selection-end="6885" vertical-scroll-proportion="0.0" vertical-offset="2999" max-vertical-offset="8320">
778
773
  <folding />
779
774
  </state>
780
775
  </provider>
781
776
  </entry>
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">
777
+ <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb">
783
778
  <provider selected="true" editor-type-id="text-editor">
784
- <state line="198" column="0" selection-start="6885" selection-end="6885" vertical-scroll-proportion="0.0" vertical-offset="2999" max-vertical-offset="8320">
779
+ <state line="3" column="0" selection-start="36" selection-end="59" vertical-scroll-proportion="0.0" vertical-offset="48" max-vertical-offset="1792">
785
780
  <folding />
786
781
  </state>
787
782
  </provider>
788
783
  </entry>
789
- <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb">
784
+ <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
790
785
  <provider selected="true" editor-type-id="text-editor">
791
- <state line="20" column="4" selection-start="281" selection-end="281" vertical-scroll-proportion="-12.307693" vertical-offset="0" max-vertical-offset="1296">
786
+ <state line="4" column="2" selection-start="59" selection-end="59" vertical-scroll-proportion="0.0" vertical-offset="64" max-vertical-offset="1856">
792
787
  <folding />
793
788
  </state>
794
789
  </provider>
795
790
  </entry>
796
- <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb">
791
+ <entry file="file://$PROJECT_DIR$/spec/zip_dsl_spec.rb">
792
+ <provider selected="true" editor-type-id="text-editor">
793
+ <state line="15" column="2" selection-start="283" selection-end="283" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2080">
794
+ <folding />
795
+ </state>
796
+ </provider>
797
+ </entry>
798
+ <entry file="file://$PROJECT_DIR$/README.md">
797
799
  <provider selected="true" editor-type-id="text-editor">
798
- <state line="5" column="0" selection-start="73" selection-end="103" vertical-scroll-proportion="-3.0769231" vertical-offset="0" max-vertical-offset="1152">
800
+ <state line="70" column="14" selection-start="1235" selection-end="1235" vertical-scroll-proportion="-23.88889" vertical-offset="475" max-vertical-offset="1376">
799
801
  <folding />
800
802
  </state>
801
803
  </provider>
804
+ <provider editor-type-id="MarkdownPreviewEditor">
805
+ <state />
806
+ </provider>
802
807
  </entry>
803
- <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb">
808
+ <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb">
804
809
  <provider selected="true" editor-type-id="text-editor">
805
- <state line="3" column="0" selection-start="36" selection-end="59" vertical-scroll-proportion="-1.8461539" vertical-offset="0" max-vertical-offset="1792">
810
+ <state line="5" column="0" selection-start="73" selection-end="103" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1152">
806
811
  <folding />
807
812
  </state>
808
813
  </provider>
809
814
  </entry>
810
- <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
815
+ <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb">
811
816
  <provider selected="true" editor-type-id="text-editor">
812
- <state line="4" column="2" selection-start="59" selection-end="59" vertical-scroll-proportion="-2.4615386" vertical-offset="0" max-vertical-offset="1856">
817
+ <state line="15" column="36" selection-start="262" selection-end="262" vertical-scroll-proportion="0.0" vertical-offset="576" max-vertical-offset="1312">
813
818
  <folding />
814
819
  </state>
815
820
  </provider>
816
821
  </entry>
817
- <entry file="file://$PROJECT_DIR$/spec/zip_dsl_spec.rb">
822
+ <entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
818
823
  <provider selected="true" editor-type-id="text-editor">
819
- <state line="15" column="2" selection-start="283" selection-end="283" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2080">
824
+ <state line="1" column="18" selection-start="31" selection-end="31" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="144">
820
825
  <folding />
821
826
  </state>
822
827
  </provider>
823
828
  </entry>
824
829
  <entry file="file://$PROJECT_DIR$/CHANGES">
825
830
  <provider selected="true" editor-type-id="text-editor">
826
- <state line="32" column="16" selection-start="355" selection-end="369" vertical-scroll-proportion="0.8858132" vertical-offset="0" max-vertical-offset="608">
831
+ <state line="36" column="10" selection-start="400" selection-end="400" vertical-scroll-proportion="0.94482756" vertical-offset="28" max-vertical-offset="672">
827
832
  <folding />
828
833
  </state>
829
834
  </provider>
data/CHANGES CHANGED
@@ -30,4 +30,8 @@
30
30
 
31
31
  == Version 1.4.0
32
32
 
33
- * Changes in API.
33
+ * Changes in API.
34
+
35
+ == Version 1.4.1
36
+
37
+ * Bug fix.
data/README.md CHANGED
@@ -23,11 +23,10 @@ You can create new archive:
23
23
  ```ruby
24
24
  require 'zip_dsl'
25
25
 
26
- from_dir = "."
27
- to_dir = "build"
28
26
  zip_file = "test.zip"
27
+ from_dir = "."
29
28
 
30
- zip_builder = ZipDSL.new from_dir, to_dir, zip_file
29
+ zip_builder = ZipDSL.new zip_file, from_dir
31
30
 
32
31
  zip_builder.build do
33
32
  # files from 'from_dir'
@@ -49,8 +48,6 @@ end
49
48
  or update existing archive:
50
49
 
51
50
  ```ruby
52
- ...
53
-
54
51
  zip_builder.update do
55
52
  file :name => "README.md"
56
53
  directory :from_dir => "lib"
@@ -60,11 +57,21 @@ end
60
57
  You can also display all entries from archive's folder:
61
58
 
62
59
  ```ruby
63
- ...
64
-
65
60
  zip_builder.list("lib/zip_dsl")
66
61
  ```
67
62
 
63
+ or display entries
64
+
65
+ ```ruby
66
+ zip_builder.each_entry("lib/zip_dsl") do |entry
67
+ puts entry.name
68
+
69
+ content = entry.get_input_stream.read
70
+
71
+ puts content
72
+ end
73
+ ```
74
+
68
75
  ## Contributing
69
76
 
70
77
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  class ZipDSL
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -13,6 +13,7 @@ class ZipReader
13
13
  zis.rewind
14
14
 
15
15
  while (entry = zis.get_next_entry)
16
+ next if entry.name =~ %r{\.\.}
16
17
  block.call(entry)
17
18
  end
18
19
  end
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.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets