zip_dsl 1.3.2 → 1.3.3
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 +43 -22
- data/CHANGES +1 -1
- data/lib/zip_dsl/version.rb +1 -1
- data/lib/zip_dsl/zip_dsl.rb +0 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTlhNjFkNzgwMmE3MDk2ZDdkNTljMGQzYzM0ZjVjYTZkMmVmMWM1NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDI2NmIyMmJjNzUxM2ZiMDUzMDg2YjExY2FkYjBhZmNlZTNiZDc4NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWIyYTgwNGYzZTAwYTZhNzdhNGNiYzRmNDZjNjJmZWE3NzNkMGE3ODFmZDAy
|
10
|
+
NDY0OGYwY2E1YTY3MjUxMTcxNTY2NTk1NDhmM2FkMGU2M2JkZjlhMTY1OGM4
|
11
|
+
OThmNzk2MTg3NTA2NTA5NDJmOTNkYTkxMDhjYjQ0ZDEwZDg1MGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjlkYzdiOWIwZjZjNTI1MzZkZGI3NmY3YWQwOTNmMThmNGM5MDU4NDZhZDkz
|
14
|
+
MTRhOGM4Y2JlMTAxZGVmYjk4ODM0OThiMTcwNjU5NjY0MDc3N2Y1YzY0MTNk
|
15
|
+
NmI1Nzc3OWIyZjQ4NWFmY2ZkZDFlMDk1YjcxZDFhYmIxNGViZDk=
|
data/.idea/workspace.xml
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
<component name="ChangeListManager">
|
4
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
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
|
7
6
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/version.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
|
8
7
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
9
8
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" />
|
@@ -11,7 +10,7 @@
|
|
11
10
|
<ignored path="zip_dsl.iws" />
|
12
11
|
<ignored path=".idea/workspace.xml" />
|
13
12
|
<ignored path="build" />
|
14
|
-
<file path="/Dummy.txt" changelist="aafa5aec-b597-47d5-af91-f7b63300321f" time="
|
13
|
+
<file path="/Dummy.txt" changelist="aafa5aec-b597-47d5-af91-f7b63300321f" time="1380732045739" ignored="false" />
|
15
14
|
<file path="/a.dummy" changelist="aafa5aec-b597-47d5-af91-f7b63300321f" time="1368117970780" ignored="false" />
|
16
15
|
<file path="$PROJECT_DIR$/../web_app_builder/Gemfile" changelist="aafa5aec-b597-47d5-af91-f7b63300321f" time="1380664977410" ignored="false" />
|
17
16
|
<file path="$PROJECT_DIR$/../web_app_builder/.ruby-version" changelist="aafa5aec-b597-47d5-af91-f7b63300321f" time="1380664605677" ignored="false" />
|
@@ -111,7 +110,16 @@
|
|
111
110
|
<file leaf-file-name="zip_dsl_spec.rb" pinned="false" current="true" current-in-tab="true">
|
112
111
|
<entry file="file://$PROJECT_DIR$/spec/zip_dsl_spec.rb">
|
113
112
|
<provider selected="true" editor-type-id="text-editor">
|
114
|
-
<state line="
|
113
|
+
<state line="2" column="27" selection-start="84" selection-end="84" vertical-scroll-proportion="-1.7487844">
|
114
|
+
<folding />
|
115
|
+
</state>
|
116
|
+
</provider>
|
117
|
+
</entry>
|
118
|
+
</file>
|
119
|
+
<file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
|
120
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
121
|
+
<provider selected="true" editor-type-id="text-editor">
|
122
|
+
<state line="18" column="16" selection-start="224" selection-end="224" vertical-scroll-proportion="0.0">
|
115
123
|
<folding />
|
116
124
|
</state>
|
117
125
|
</provider>
|
@@ -129,7 +137,16 @@
|
|
129
137
|
<file leaf-file-name="zip_dsl.rb" pinned="false" current="false" current-in-tab="false">
|
130
138
|
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb">
|
131
139
|
<provider selected="true" editor-type-id="text-editor">
|
132
|
-
<state line="
|
140
|
+
<state line="55" column="5" selection-start="1659" selection-end="1659" vertical-scroll-proportion="0.0">
|
141
|
+
<folding />
|
142
|
+
</state>
|
143
|
+
</provider>
|
144
|
+
</entry>
|
145
|
+
</file>
|
146
|
+
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
147
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
|
148
|
+
<provider selected="true" editor-type-id="text-editor">
|
149
|
+
<state line="1" column="18" selection-start="31" selection-end="31" vertical-scroll-proportion="0.0">
|
133
150
|
<folding />
|
134
151
|
</state>
|
135
152
|
</provider>
|
@@ -165,10 +182,10 @@
|
|
165
182
|
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb" />
|
166
183
|
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_updater.rb" />
|
167
184
|
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
|
168
|
-
<option value="$PROJECT_DIR$/CHANGES" />
|
169
|
-
<option value="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
|
170
185
|
<option value="$PROJECT_DIR$/Gemfile" />
|
171
186
|
<option value="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" />
|
187
|
+
<option value="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
|
188
|
+
<option value="$PROJECT_DIR$/CHANGES" />
|
172
189
|
</list>
|
173
190
|
</option>
|
174
191
|
</component>
|
@@ -590,10 +607,10 @@
|
|
590
607
|
<recent_temporary>
|
591
608
|
<list size="5">
|
592
609
|
<item index="0" class="java.lang.String" itemvalue="RSpec.zip_dsl_spec" />
|
593
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.
|
594
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.
|
595
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.
|
596
|
-
<item index="4" class="java.lang.String" itemvalue="RSpec.
|
610
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.zip_dsl_spec" />
|
611
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.ZipDSL" />
|
612
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.zip_dsl_spec" />
|
613
|
+
<item index="4" class="java.lang.String" itemvalue="RSpec.ZipDSL should update existing zip file" />
|
597
614
|
</list>
|
598
615
|
</recent_temporary>
|
599
616
|
</component>
|
@@ -620,14 +637,19 @@
|
|
620
637
|
<created>1380664427013</created>
|
621
638
|
<updated>1380664427013</updated>
|
622
639
|
</task>
|
623
|
-
<
|
640
|
+
<task id="LOCAL-00005" summary="Bug fixes">
|
641
|
+
<created>1380732048458</created>
|
642
|
+
<updated>1380732048458</updated>
|
643
|
+
</task>
|
644
|
+
<option name="localTasksCounter" value="6" />
|
624
645
|
<servers />
|
625
646
|
</component>
|
626
647
|
<component name="ToolWindowManager">
|
627
648
|
<frame x="332" y="142" width="1588" height="1058" extended-state="0" />
|
628
649
|
<editor active="true" />
|
629
650
|
<layout>
|
630
|
-
<window_info id="
|
651
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
652
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32778355" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
631
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" />
|
632
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" />
|
633
655
|
<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" />
|
@@ -642,7 +664,6 @@
|
|
642
664
|
<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" />
|
643
665
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
644
666
|
<window_info id="jenkinsBrowser" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
645
|
-
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
646
667
|
<window_info id="CSS-X-Fire" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
647
668
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
648
669
|
<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" />
|
@@ -799,37 +820,37 @@
|
|
799
820
|
</state>
|
800
821
|
</provider>
|
801
822
|
</entry>
|
802
|
-
<entry file="file://$PROJECT_DIR$/
|
823
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
803
824
|
<provider selected="true" editor-type-id="text-editor">
|
804
|
-
<state line="
|
825
|
+
<state line="5" column="19" selection-start="99" selection-end="99" vertical-scroll-proportion="0.0">
|
805
826
|
<folding />
|
806
827
|
</state>
|
807
828
|
</provider>
|
808
829
|
</entry>
|
809
|
-
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/
|
830
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb">
|
810
831
|
<provider selected="true" editor-type-id="text-editor">
|
811
|
-
<state line="
|
832
|
+
<state line="55" column="5" selection-start="1659" selection-end="1659" vertical-scroll-proportion="0.0">
|
812
833
|
<folding />
|
813
834
|
</state>
|
814
835
|
</provider>
|
815
836
|
</entry>
|
816
|
-
<entry file="file://$PROJECT_DIR$/
|
837
|
+
<entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
|
817
838
|
<provider selected="true" editor-type-id="text-editor">
|
818
|
-
<state line="
|
839
|
+
<state line="1" column="18" selection-start="31" selection-end="31" vertical-scroll-proportion="0.0">
|
819
840
|
<folding />
|
820
841
|
</state>
|
821
842
|
</provider>
|
822
843
|
</entry>
|
823
|
-
<entry file="file://$PROJECT_DIR$/
|
844
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
824
845
|
<provider selected="true" editor-type-id="text-editor">
|
825
|
-
<state line="
|
846
|
+
<state line="18" column="16" selection-start="224" selection-end="224" vertical-scroll-proportion="0.0">
|
826
847
|
<folding />
|
827
848
|
</state>
|
828
849
|
</provider>
|
829
850
|
</entry>
|
830
851
|
<entry file="file://$PROJECT_DIR$/spec/zip_dsl_spec.rb">
|
831
852
|
<provider selected="true" editor-type-id="text-editor">
|
832
|
-
<state line="
|
853
|
+
<state line="2" column="27" selection-start="84" selection-end="84" vertical-scroll-proportion="-1.7487844">
|
833
854
|
<folding />
|
834
855
|
</state>
|
835
856
|
</provider>
|
data/CHANGES
CHANGED
data/lib/zip_dsl/version.rb
CHANGED
data/lib/zip_dsl/zip_dsl.rb
CHANGED
@@ -54,17 +54,5 @@ class ZipDSL
|
|
54
54
|
|
55
55
|
evaluate_dsl(create_block, destroy_block, execute_block)
|
56
56
|
end
|
57
|
-
|
58
|
-
private
|
59
|
-
|
60
|
-
def evaluate_dsl(create_block, destroy_block, execute_block)
|
61
|
-
begin
|
62
|
-
created_object = create_block.kind_of?(Proc) ? create_block.call : create_block
|
63
|
-
|
64
|
-
created_object.instance_eval(&execute_block)
|
65
|
-
ensure
|
66
|
-
destroy_block.call(created_object) if destroy_block && created_object
|
67
|
-
end
|
68
|
-
end
|
69
57
|
end
|
70
58
|
|