ngzip 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.0.5 (2013-12-12)
2
+
3
+ * Fixed issue #2 (files without extensions being ignored)
4
+
1
5
  ### 1.0.4 (2013-09-20)
2
6
 
3
7
  * Fixed issue #1 ("+" character in filename)
data/lib/ngzip/builder.rb CHANGED
@@ -75,7 +75,7 @@ module Ngzip
75
75
  def file_list(files)
76
76
  Array(files).map do |e|
77
77
  if File.directory?(e)
78
- Dir.glob("#{e}/**/*.*")
78
+ Dir.glob("#{e}/**/*")
79
79
  else
80
80
  e
81
81
  end
data/lib/ngzip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ngzip
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
@@ -0,0 +1 @@
1
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@@ -14,6 +14,7 @@ describe Ngzip::Builder do
14
14
  let(:builder) {Ngzip::Builder.new()}
15
15
  let(:lorem) {File.expand_path('../../../data/a/lorem.txt', __FILE__)}
16
16
  let(:ipsum) {File.expand_path('../../../data/a/ipsum.txt', __FILE__)}
17
+ let(:without_dot) {File.expand_path('../../../data/a/filename-without-a-dot', __FILE__)}
17
18
  let(:whitespaced) {File.expand_path('../../../data/a/A filename with whitespace.txt', __FILE__)}
18
19
  let(:plused) {File.expand_path('../../../data/c/A filename with space and + in it.txt', __FILE__)}
19
20
  let(:cargo) {File.expand_path('../../../data/b/Cargo.png', __FILE__)}
@@ -61,6 +62,7 @@ describe Ngzip::Builder do
61
62
 
62
63
  it 'must return a correct list for all files in a directory' do
63
64
  expected = "8f92322f 446 #{URI.escape(whitespaced)} A filename with whitespace.txt"
65
+ expected << "\n8f92322f 446 #{without_dot} filename-without-a-dot"
64
66
  expected << "\n8f92322f 446 #{ipsum} ipsum.txt"
65
67
  expected << "\n8f92322f 446 #{lorem} lorem.txt"
66
68
  builder.build(a,options).must_equal expected
@@ -68,6 +70,7 @@ describe Ngzip::Builder do
68
70
 
69
71
  it 'must allow to mix files and directories' do
70
72
  expected = "8f92322f 446 #{URI.escape(whitespaced)} a/A filename with whitespace.txt"
73
+ expected << "\n8f92322f 446 #{without_dot} a/filename-without-a-dot"
71
74
  expected << "\n8f92322f 446 #{ipsum} a/ipsum.txt"
72
75
  expected << "\n8f92322f 446 #{lorem} a/lorem.txt"
73
76
  expected << "\nf7c0867d 1342 #{sit} sit.txt"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ngzip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-20 00:00:00.000000000 Z
12
+ date: 2013-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -63,6 +63,7 @@ files:
63
63
  - lib/ngzip/version.rb
64
64
  - ngzip.gemspec
65
65
  - test/data/a/A filename with whitespace.txt
66
+ - test/data/a/filename-without-a-dot
66
67
  - test/data/a/ipsum.txt
67
68
  - test/data/a/lorem.txt
68
69
  - test/data/b/Cargo.png
@@ -87,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
88
  version: '0'
88
89
  segments:
89
90
  - 0
90
- hash: 870021569406491909
91
+ hash: 3162045522527369733
91
92
  required_rubygems_version: !ruby/object:Gem::Requirement
92
93
  none: false
93
94
  requirements:
@@ -96,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  version: '0'
97
98
  segments:
98
99
  - 0
99
- hash: 870021569406491909
100
+ hash: 3162045522527369733
100
101
  requirements: []
101
102
  rubyforge_project:
102
103
  rubygems_version: 1.8.25
@@ -105,6 +106,7 @@ specification_version: 3
105
106
  summary: Provides a nginx mod_zip compatible file manifest for streaming support
106
107
  test_files:
107
108
  - test/data/a/A filename with whitespace.txt
109
+ - test/data/a/filename-without-a-dot
108
110
  - test/data/a/ipsum.txt
109
111
  - test/data/a/lorem.txt
110
112
  - test/data/b/Cargo.png