zip_dsl 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/workspace.xml CHANGED
@@ -3,9 +3,8 @@
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$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
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
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/zip_dsl.gemspec" afterPath="$PROJECT_DIR$/zip_dsl.gemspec" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" afterPath="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
9
8
  </list>
10
9
  <ignored path="zip_dsl.iws" />
11
10
  <ignored path=".idea/workspace.xml" />
@@ -30,7 +29,7 @@
30
29
  <file leaf-file-name="zip_writer.rb" pinned="false" current="false" current-in-tab="false">
31
30
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
32
31
  <provider selected="true" editor-type-id="text-editor">
33
- <state line="21" column="19" selection-start="418" selection-end="418" vertical-scroll-proportion="0.0">
32
+ <state line="57" column="0" selection-start="1313" selection-end="1313" vertical-scroll-proportion="0.0">
34
33
  <folding />
35
34
  </state>
36
35
  </provider>
@@ -54,15 +53,6 @@
54
53
  </provider>
55
54
  </entry>
56
55
  </file>
57
- <file leaf-file-name="zip_dsl.gemspec" pinned="false" current="false" current-in-tab="false">
58
- <entry file="file://$PROJECT_DIR$/zip_dsl.gemspec">
59
- <provider selected="true" editor-type-id="text-editor">
60
- <state line="6" column="49" selection-start="217" selection-end="217" vertical-scroll-proportion="0.0">
61
- <folding />
62
- </state>
63
- </provider>
64
- </entry>
65
- </file>
66
56
  <file leaf-file-name="directory_builder_spec.rb" pinned="false" current="false" current-in-tab="false">
67
57
  <entry file="file://$PROJECT_DIR$/spec/directory_builder_spec.rb">
68
58
  <provider selected="true" editor-type-id="text-editor">
@@ -75,7 +65,7 @@
75
65
  <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
76
66
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
77
67
  <provider selected="true" editor-type-id="text-editor">
78
- <state line="1" column="18" selection-start="32" selection-end="32" vertical-scroll-proportion="0.01754386">
68
+ <state line="1" column="19" selection-start="33" selection-end="33" vertical-scroll-proportion="0.01754386">
79
69
  <folding />
80
70
  </state>
81
71
  </provider>
@@ -117,6 +107,15 @@
117
107
  </provider>
118
108
  </entry>
119
109
  </file>
110
+ <file leaf-file-name="zip_dsl.gemspec" pinned="false" current="false" current-in-tab="false">
111
+ <entry file="file://$PROJECT_DIR$/zip_dsl.gemspec">
112
+ <provider selected="true" editor-type-id="text-editor">
113
+ <state line="6" column="49" selection-start="217" selection-end="217" vertical-scroll-proportion="0.0">
114
+ <folding />
115
+ </state>
116
+ </provider>
117
+ </entry>
118
+ </file>
120
119
  </leaf>
121
120
  </component>
122
121
  <component name="FindManager">
@@ -133,7 +132,6 @@
133
132
  <option value="$PROJECT_DIR$/.rvmrc" />
134
133
  <option value="$PROJECT_DIR$/lib/zip_dsl.rb" />
135
134
  <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
136
- <option value="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
137
135
  <option value="$PROJECT_DIR$/zip_dsl.gemspec.erb" />
138
136
  <option value="$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb" />
139
137
  <option value="$PROJECT_DIR$/lib/directory_builder.rb" />
@@ -143,6 +141,7 @@
143
141
  <option value="$PROJECT_DIR$/spec/directory_builder_spec.rb" />
144
142
  <option value="$PROJECT_DIR$/Gemfile" />
145
143
  <option value="$PROJECT_DIR$/lib/zip_dsl/version.rb" />
144
+ <option value="$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb" />
146
145
  </list>
147
146
  </option>
148
147
  </component>
@@ -540,12 +539,12 @@
540
539
  <method />
541
540
  </configuration>
542
541
  <list size="6">
543
- <item index="0" class="java.lang.String" itemvalue="RSpec.DirectoryBuilder should create new zip file with file created from string" />
544
- <item index="1" class="java.lang.String" itemvalue="RSpec.DirectoryBuilder should create new zip file with new empty folder" />
545
- <item index="2" class="java.lang.String" itemvalue="RSpec.DirectoryBuilder should display files in current directory" />
546
- <item index="3" class="java.lang.String" itemvalue="RSpec.zip_builder_spec" />
547
- <item index="4" class="java.lang.String" itemvalue="RSpec.directory_builder_spec" />
548
- <item index="5" class="java.lang.String" itemvalue="Rake.rake" />
542
+ <item index="0" class="java.lang.String" itemvalue="Rake.rake" />
543
+ <item index="1" class="java.lang.String" itemvalue="RSpec.DirectoryBuilder should create new zip file with file created from string" />
544
+ <item index="2" class="java.lang.String" itemvalue="RSpec.DirectoryBuilder should create new zip file with new empty folder" />
545
+ <item index="3" class="java.lang.String" itemvalue="RSpec.DirectoryBuilder should display files in current directory" />
546
+ <item index="4" class="java.lang.String" itemvalue="RSpec.zip_builder_spec" />
547
+ <item index="5" class="java.lang.String" itemvalue="RSpec.directory_builder_spec" />
549
548
  </list>
550
549
  <recent_temporary>
551
550
  <list size="5">
@@ -693,16 +692,12 @@
693
692
  </entry>
694
693
  <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
695
694
  <provider selected="true" editor-type-id="text-editor">
696
- <state line="1" column="28" selection-start="0" selection-end="59" vertical-scroll-proportion="0.01713062">
697
- <folding />
698
- </state>
695
+ <state line="1" column="28" selection-start="0" selection-end="59" vertical-scroll-proportion="0.01713062" />
699
696
  </provider>
700
697
  </entry>
701
698
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_dsl.rb">
702
699
  <provider selected="true" editor-type-id="text-editor">
703
- <state line="45" column="28" selection-start="1218" selection-end="1218" vertical-scroll-proportion="0.0">
704
- <folding />
705
- </state>
700
+ <state line="45" column="28" selection-start="1218" selection-end="1218" vertical-scroll-proportion="0.0" />
706
701
  </provider>
707
702
  </entry>
708
703
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_reader.rb">
@@ -712,13 +707,6 @@
712
707
  </state>
713
708
  </provider>
714
709
  </entry>
715
- <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
716
- <provider selected="true" editor-type-id="text-editor">
717
- <state line="21" column="19" selection-start="418" selection-end="418" vertical-scroll-proportion="0.0">
718
- <folding />
719
- </state>
720
- </provider>
721
- </entry>
722
710
  <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p194@zip_dsl/gems/gemspec_deps_gen-1.0.2/lib/gemspec_deps_gen/gemspec_deps_gen.rb">
723
711
  <provider selected="true" editor-type-id="text-editor">
724
712
  <state line="13" column="70" selection-start="305" selection-end="369" vertical-scroll-proportion="0.0">
@@ -775,9 +763,16 @@
775
763
  </state>
776
764
  </provider>
777
765
  </entry>
766
+ <entry file="file://$PROJECT_DIR$/lib/zip_dsl/zip_writer.rb">
767
+ <provider selected="true" editor-type-id="text-editor">
768
+ <state line="57" column="0" selection-start="1313" selection-end="1313" vertical-scroll-proportion="0.0">
769
+ <folding />
770
+ </state>
771
+ </provider>
772
+ </entry>
778
773
  <entry file="file://$PROJECT_DIR$/lib/zip_dsl/version.rb">
779
774
  <provider selected="true" editor-type-id="text-editor">
780
- <state line="1" column="18" selection-start="32" selection-end="32" vertical-scroll-proportion="0.01754386">
775
+ <state line="1" column="19" selection-start="33" selection-end="33" vertical-scroll-proportion="0.01754386">
781
776
  <folding />
782
777
  </state>
783
778
  </provider>
@@ -1,3 +1,3 @@
1
1
  module ZipDSL
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
@@ -54,7 +54,7 @@ class Zip::Writer
54
54
  files = pattern_to_files full_name(from_dir), pattern
55
55
 
56
56
  files.each do |file_name|
57
- suffix = File.dirname(file_name)["#@basedir/#{from_dir}".size+1..-1]
57
+ suffix = File.dirname(file_name)[full_name(from_dir).size+1..-1]
58
58
  dir = suffix.nil? ? to_dir : "#{to_dir}/#{suffix}"
59
59
 
60
60
  if File.file?(file_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zip_dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: