gzipped_tar 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -1
- data/.travis.yml +7 -4
- data/Gemfile +2 -0
- data/README.md +1 -1
- data/Rakefile +8 -4
- data/gzipped_tar.gemspec +3 -3
- data/lib/gzipped_tar/reader.rb +3 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c679776bcba2c01c4cfcc60b906335dded172e5a
|
4
|
+
data.tar.gz: e78923592b35588d09cb738d9f76765371f5458e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a20c07ade01ce74a19e53e5619f4b16b3a6b88924418837710e75d0d79be2f035599cf62364b78be4a2e8a3a0f00bca6a3fa0532ddee2e5f9e0afcce0835341
|
7
|
+
data.tar.gz: 78195123fcb04b760acfc8e6eb42507a4173ec8cb8c90af41113d84b4d7b91021b19e62a2ea104957155421f93c789edd14cf768f07ddaab4bb8f50afa0847d3
|
data/.rubocop.yml
CHANGED
@@ -2,7 +2,7 @@ inherit_from:
|
|
2
2
|
- https://gist.githubusercontent.com/pat/ba3b8ffb1901bfe5439b460943b6b019/raw/.rubocop.yml
|
3
3
|
|
4
4
|
AllCops:
|
5
|
-
TargetRubyVersion: 2.
|
5
|
+
TargetRubyVersion: 2.1
|
6
6
|
|
7
7
|
Style/Documentation:
|
8
8
|
Enabled: false
|
@@ -12,3 +12,6 @@ Style/RedundantFreeze:
|
|
12
12
|
|
13
13
|
Style/SafeNavigation:
|
14
14
|
Enabled: false
|
15
|
+
|
16
|
+
Style/SymbolArray:
|
17
|
+
Enabled: false
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -2,10 +2,14 @@
|
|
2
2
|
|
3
3
|
require "bundler/gem_tasks"
|
4
4
|
require "rspec/core/rake_task"
|
5
|
-
require "rubocop/rake_task"
|
6
5
|
|
7
6
|
RSpec::Core::RakeTask.new(:spec)
|
8
|
-
|
7
|
+
task :default => :spec
|
9
8
|
|
10
|
-
|
11
|
-
|
9
|
+
if RUBY_VERSION.to_f >= 2.1
|
10
|
+
require "rubocop/rake_task"
|
11
|
+
RuboCop::RakeTask.new(:rubocop)
|
12
|
+
|
13
|
+
Rake::Task["default"].clear if Rake::Task.task_defined?("default")
|
14
|
+
task :default => [:rubocop, :spec]
|
15
|
+
end
|
data/gzipped_tar.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "gzipped_tar"
|
5
|
-
spec.version = "0.0.
|
5
|
+
spec.version = "0.0.3"
|
6
6
|
spec.authors = ["Pat Allan"]
|
7
7
|
spec.email = ["pat@freelancing-gods.com"]
|
8
8
|
|
@@ -17,6 +17,6 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |file| File.basename(file) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_development_dependency "
|
21
|
-
spec.add_development_dependency "
|
20
|
+
spec.add_development_dependency "rake"
|
21
|
+
spec.add_development_dependency "rspec", "~> 3.7"
|
22
22
|
end
|
data/lib/gzipped_tar/reader.rb
CHANGED
@@ -10,8 +10,9 @@ module GZippedTar
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def read(path)
|
13
|
-
result =
|
14
|
-
result
|
13
|
+
result = nil
|
14
|
+
reader.each { |entry| result = entry.read if entry.full_name == path }
|
15
|
+
result
|
15
16
|
ensure
|
16
17
|
reader.rewind
|
17
18
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gzipped_tar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '3.7'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '3.7'
|
41
41
|
description:
|
42
42
|
email:
|
43
43
|
- pat@freelancing-gods.com
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.6.13
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: In-memory reading/writing of .tar.gz files
|