memtar 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.overcommit.yml +7 -31
- data/.rubocop.yml +80 -0
- data/lib/memtar.rb +3 -1
- data/lib/memtar/version.rb +3 -2
- data/memtar.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5689f9f87168486016e02f4a4c11e5682c164f9e58346fd581ebd6a82f8c7886
|
4
|
+
data.tar.gz: 62da4c3a3d5ec99db17083527da830edb23b8852f42b4fe6beb6387d358bd6b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ead83830c71da2d58d0bf6d0fb6e08d87b532240a572ed370b47a9510a5fd796ea5b0fe123ddba0881624eb33da2ca9c20f8f3ddea3e309401798ba3a4c05b6f
|
7
|
+
data.tar.gz: 4507864b30b167d78d0c952cd799630216d29761f60d86422a3c31fd4f08bb5aab2b1579706aa2d2231eed77e8d03961acc704642dbd964d6c7291c32a5e7091
|
data/.overcommit.yml
CHANGED
@@ -1,31 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
# `include`), whether to only display output if it fails (via `quiet`), etc.
|
9
|
-
#
|
10
|
-
# For a complete list of hooks, see:
|
11
|
-
# https://github.com/causes/overcommit/tree/master/lib/overcommit/hook
|
12
|
-
#
|
13
|
-
# For a complete list of options that you can use to customize hooks, see:
|
14
|
-
# https://github.com/causes/overcommit#configuration
|
15
|
-
#
|
16
|
-
# Uncomment the following lines to make the configuration take effect.
|
17
|
-
|
18
|
-
#PreCommit:
|
19
|
-
# Rubocop:
|
20
|
-
# on_warn: fail # Treat all warnings as failures
|
21
|
-
#
|
22
|
-
# TrailingWhitespace:
|
23
|
-
# exclude:
|
24
|
-
# - '**/db/structure.sql' # Ignore trailing whitespace in generated files
|
25
|
-
#
|
26
|
-
#PostCheckout:
|
27
|
-
# ALL: # Special hook name that customizes all hooks of this type
|
28
|
-
# quiet: true # Change all post-checkout hooks to only display output on failure
|
29
|
-
#
|
30
|
-
# IndexTags:
|
31
|
-
# enabled: true # Generate a tags file with `ctags` each time HEAD changes
|
1
|
+
PreCommit:
|
2
|
+
ALL:
|
3
|
+
problem_on_unmodified_line: warn
|
4
|
+
Reek:
|
5
|
+
enabled: true
|
6
|
+
RuboCop:
|
7
|
+
enabled: true
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.5
|
3
|
+
|
4
|
+
# These non-default settings best reflect our current code style.
|
5
|
+
Style/MethodDefParentheses:
|
6
|
+
EnforcedStyle: require_no_parentheses_except_multiline
|
7
|
+
Style/PercentLiteralDelimiters:
|
8
|
+
PreferredDelimiters:
|
9
|
+
"%i": ()
|
10
|
+
"%w": ()
|
11
|
+
Style/RescueStandardError:
|
12
|
+
EnforcedStyle: implicit
|
13
|
+
Style/AndOr:
|
14
|
+
EnforcedStyle: conditionals
|
15
|
+
Layout/IndentHeredoc:
|
16
|
+
EnforcedStyle: squiggly
|
17
|
+
Layout/MultilineMethodCallBraceLayout:
|
18
|
+
EnforcedStyle: symmetrical
|
19
|
+
Layout/SpaceAroundBlockParameters:
|
20
|
+
EnforcedStyleInsidePipes: no_space
|
21
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
22
|
+
EnforcedStyle: space
|
23
|
+
Layout/SpaceBeforeBlockBraces:
|
24
|
+
EnforcedStyle: space
|
25
|
+
EnforcedStyleForEmptyBraces: space
|
26
|
+
Layout/SpaceInsideBlockBraces:
|
27
|
+
EnforcedStyle: space
|
28
|
+
EnforcedStyleForEmptyBraces: no_space
|
29
|
+
SpaceBeforeBlockParameters: true
|
30
|
+
Layout/SpaceInsideHashLiteralBraces:
|
31
|
+
EnforcedStyle: space
|
32
|
+
EnforcedStyleForEmptyBraces: no_space
|
33
|
+
Layout/SpaceInsideParens:
|
34
|
+
EnforcedStyle: no_space
|
35
|
+
Layout/SpaceInsideReferenceBrackets:
|
36
|
+
EnforcedStyle: no_space
|
37
|
+
EnforcedStyleForEmptyBrackets: no_space
|
38
|
+
Layout/TrailingBlankLines:
|
39
|
+
EnforcedStyle: final_newline
|
40
|
+
Style/BarePercentLiterals:
|
41
|
+
EnforcedStyle: percent_q
|
42
|
+
|
43
|
+
# Either style of these arguably has its place depending on the context.
|
44
|
+
Style/FormatStringToken:
|
45
|
+
Enabled: false
|
46
|
+
Style/LambdaCall:
|
47
|
+
Enabled: false
|
48
|
+
Style/StringLiterals:
|
49
|
+
Enabled: false
|
50
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
51
|
+
Enabled: false
|
52
|
+
# However, these score at comparatively fewer offences, so I'll
|
53
|
+
# leave it here in case we want to enforce a style after all.
|
54
|
+
EnforcedStyle: no_space
|
55
|
+
EnforcedStyleForEmptyBrackets: no_space
|
56
|
+
|
57
|
+
# The default configuration of these makes it hard to use proportional fonts.
|
58
|
+
Layout/AlignParameters:
|
59
|
+
EnforcedStyle: with_fixed_indentation
|
60
|
+
Layout/EndAlignment:
|
61
|
+
EnforcedStyleAlignWith: start_of_line
|
62
|
+
Layout/ExtraSpacing:
|
63
|
+
AllowForAlignment: false
|
64
|
+
Layout/FirstParameterIndentation:
|
65
|
+
EnforcedStyle: consistent
|
66
|
+
Layout/IndentHash:
|
67
|
+
EnforcedStyle: consistent
|
68
|
+
Layout/MultilineMethodCallIndentation:
|
69
|
+
EnforcedStyle: indented
|
70
|
+
Layout/MultilineOperationIndentation:
|
71
|
+
EnforcedStyle: indented
|
72
|
+
Layout/SpaceAroundOperators:
|
73
|
+
AllowForAlignment: false
|
74
|
+
Layout/SpaceBeforeFirstArg:
|
75
|
+
AllowForAlignment: false
|
76
|
+
|
77
|
+
# This is for rubocop to not complain about specs
|
78
|
+
Metrics/BlockLength:
|
79
|
+
ExcludedMethods:
|
80
|
+
- describe
|
data/lib/memtar.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'archive/tar/minitar'
|
2
4
|
require 'memtar/version'
|
3
5
|
|
@@ -47,7 +49,7 @@ class MemTar
|
|
47
49
|
end
|
48
50
|
|
49
51
|
def header opts
|
50
|
-
Archive::Tar::PosixHeader.new(default.merge
|
52
|
+
Archive::Tar::Minitar::PosixHeader.new(default.merge(opts)).to_s
|
51
53
|
end
|
52
54
|
|
53
55
|
def default
|
data/lib/memtar/version.rb
CHANGED
data/memtar.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_dependency "minitar", "~> 0.
|
20
|
+
spec.add_dependency "minitar", "~> 0.8"
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.7"
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: memtar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafał Rzepecki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitar
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.8'
|
20
20
|
type: :runtime
|
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: '0.
|
26
|
+
version: '0.8'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,6 +75,7 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
77
|
- ".overcommit.yml"
|
78
|
+
- ".rubocop.yml"
|
78
79
|
- Gemfile
|
79
80
|
- LICENSE.txt
|
80
81
|
- README.md
|
@@ -104,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
105
|
version: '0'
|
105
106
|
requirements: []
|
106
107
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.7.6.2
|
108
109
|
signing_key:
|
109
110
|
specification_version: 4
|
110
111
|
summary: In-memory tar archive creation
|