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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3188e36ec4c8ae7fd3b1daa639ca2febe687638
4
- data.tar.gz: 2e0bb2aff8d12e0b63d3a88a7b24fa42a71ece01
3
+ metadata.gz: c679776bcba2c01c4cfcc60b906335dded172e5a
4
+ data.tar.gz: e78923592b35588d09cb738d9f76765371f5458e
5
5
  SHA512:
6
- metadata.gz: 5858275d7e279216d832c3d88ba7171af0069cf45db21e2c4720a97a5077e39cda53ddc97284d051fc54c0f80fdd13b2a76c1150eb1ce44642f1a65c60b5861c
7
- data.tar.gz: a17f4ecd62ddd261d57c1d774a34949fae92e9a2133395e88547968fed9ebd2be3a29724cad78595e7135101386bd228e434e6f5d7d3c2bc357f8a9c901d4f15
6
+ metadata.gz: 7a20c07ade01ce74a19e53e5619f4b16b3a6b88924418837710e75d0d79be2f035599cf62364b78be4a2e8a3a0f00bca6a3fa0532ddee2e5f9e0afcce0835341
7
+ data.tar.gz: 78195123fcb04b760acfc8e6eb42507a4173ec8cb8c90af41113d84b4d7b91021b19e62a2ea104957155421f93c789edd14cf768f07ddaab4bb8f50afa0847d3
@@ -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.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
@@ -2,7 +2,10 @@ language: ruby
2
2
  script: bundle exec rake
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.2.8
6
- - 2.3.5
7
- - 2.4.2
8
- - jruby-9.1.14.0
5
+ - 1.9.3
6
+ - 2.0
7
+ - 2.1.10
8
+ - 2.2.8
9
+ - 2.3.5
10
+ - 2.4.2
11
+ - jruby-9.1.14.0
data/Gemfile CHANGED
@@ -3,3 +3,5 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
+
7
+ gem "rubocop", "0.51.0" if RUBY_VERSION.to_f >= 2.1
data/README.md CHANGED
@@ -5,7 +5,7 @@ A simple interface for reading and writing gzipped tar files (.tar.gz) in memory
5
5
  ## Installation
6
6
 
7
7
  ```ruby
8
- gem "gzipped_tar", "~> 0.0.2"
8
+ gem "gzipped_tar", "~> 0.0.3"
9
9
  ```
10
10
 
11
11
  ## Usage
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
- RuboCop::RakeTask.new(:rubocop)
7
+ task :default => :spec
9
8
 
10
- Rake::Task["default"].clear if Rake::Task.task_defined?("default")
11
- task :default => %i[ rubocop spec ]
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "gzipped_tar"
5
- spec.version = "0.0.2"
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 "rspec", "~> 3.7"
21
- spec.add_development_dependency "rubocop", "~> 0.51.0"
20
+ spec.add_development_dependency "rake"
21
+ spec.add_development_dependency "rspec", "~> 3.7"
22
22
  end
@@ -10,8 +10,9 @@ module GZippedTar
10
10
  end
11
11
 
12
12
  def read(path)
13
- result = reader.detect { |entry| entry.full_name == path }
14
- result && result.read
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.2
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-03 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
14
+ name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.7'
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: '3.7'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rubocop
28
+ name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.51.0
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: 0.51.0
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.4.5.3
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