Jean Boussier
385ebd054a
Ensure compatibility with `--enable-frozen-string-literal`
...
Ref: https://bugs.ruby-lang.org/issues/20205
In Ruby 3.4 string literals will be "chilled" by default. Meaning
they are still mutable, but will pretend to be frozen.
In most case it has no impact, just emit a few warnings there and
there, but there is one thing it impacts is the `StringIO.new('')`
pattern. `StringIO` checks if the given string is frozen, and if
it is will act as a read only IO.
This breaks rubyzip 2.x.
This commit make the 2.x branch compatible with frozen string literals.
2024-04-08 15:10:07 +01:00
Robert Haines
f9b161eb32
Fix Naming/VariableName cop in the library code.
2020-02-29 18:11:52 +00:00
Robert Haines
aa6ea05d45
Fix Naming/MethodParameterName cop in the library code.
2020-02-29 18:11:52 +00:00
Robert Haines
846e704048
Fix Naming/BlockParameterName cop.
2020-02-17 22:35:08 +00:00
Robert Haines
0df6cb3059
Fix Style/SymbolProc cop.
2020-02-15 16:26:32 +00:00
Robert Haines
bb3b4474fa
Fix Style/SpecialGlobalVars cop.
2020-02-15 16:26:32 +00:00
Robert Haines
835843d992
Fix Naming/HeredocDelimiterCase cop.
2020-02-15 16:26:32 +00:00
Robert Haines
cfe4972e71
Fix Layout/EmptyLineAfterGuardClause cop.
2020-02-15 16:26:32 +00:00
Robert Haines
98c6969c18
Fix Layout/SpaceAroundOperators cop.
2020-02-15 16:26:32 +00:00
Robert Haines
73e405acef
Fix Security/Open cop errors.
2020-02-15 15:56:17 +00:00
Robert Haines
aa6284db7a
When globbing in ZipFSDir, take CWD into account.
2018-04-30 20:06:21 +01:00
Robert Haines
1673da744d
Pass glob through from ZipFileNameMapper.
...
Just pass the basic glob straight through to the underlying Zip::File
implementation.
2018-04-30 19:59:02 +01:00
Takumasa Ochi
cf91112b57
Apply automatic correction by rubocop
2017-06-29 11:57:12 +09:00
Pavel Lobashov
4c81b1151a
fix rubocop cop Style/NilComparison
2015-06-08 10:30:12 +03:00
Pavel Lobashov
13658b0586
fix rubocop cop Style/NonNilCheck
2015-06-08 10:29:08 +03:00
Pavel Lobashov
c0177a455b
Merge branch 'master' into rubocop_fixes
...
Conflicts:
README.md
samples/example_recursive.rb
2015-06-08 10:14:25 +03:00
Vít Ondruch
32016ab1bf
Remove executable bit.
2015-03-31 13:15:46 +02:00
Pavel Lobashov
ce7e01a206
fix rubocop Style/CommentIndentation cop
2015-03-24 19:31:28 +03:00
Pavel Lobashov
784e70be2a
fix rubocop Style/EmptyElse cop
2015-03-24 19:29:07 +03:00
Pavel Lobashov
b9aefaffb5
fix rubocop Style/IfUnlessModifier cop
2015-03-24 19:09:22 +03:00
Pavel Lobashov
1ba81ff46f
fix rubocop Style/NumericLiterals cop
2015-03-23 19:23:04 +03:00
Pavel Lobashov
f291e1f616
fix rubocop Style/NegatedIf cop
2015-03-23 19:11:32 +03:00
Pavel.Lobashov
8d6f23ba9a
fix rubocop Style/SpaceAroundOperators cop
2015-03-22 20:03:50 +03:00
Pavel.Lobashov
d92d8d652a
fix rubocop Style/SpaceInsideParens cop
2015-03-22 19:56:37 +03:00
Pavel.Lobashov
77ef05cf84
fix rubocop Style/SpaceAfterNot cop
2015-03-22 19:44:44 +03:00
Pavel.Lobashov
73e5f70bdf
fix rubocop Style/SpaceAfterMethodName cop
2015-03-22 19:43:44 +03:00
Pavel.Lobashov
d2b4a528de
fix rubocop Style/SpaceAfterComma cop
2015-03-22 19:41:47 +03:00
Pavel.Lobashov
707bd44e66
fix rubocop Style/SingleLineMethods cop
2015-03-22 19:37:59 +03:00
Pavel.Lobashov
735a0553a3
fix rubocop Style/RedundantBegin cop
2015-03-22 19:33:44 +03:00
Pavel.Lobashov
abf9cbec23
fix rubocop Style/RedundantSelf cop
2015-03-22 19:30:24 +03:00
Pavel.Lobashov
225a4f70ce
fix rubocop Style/RedundantReturn cop
2015-03-22 19:27:29 +03:00
Pavel Lobashov
b730387cf2
redone fixes by rubocop Style/Alias to be in style of https://github.com/bbatsov/ruby-style-guide#alias-method-lexically
2015-03-21 13:14:21 +03:00
Pavel Lobashov
b93ef1266f
fix rubocop Style/StringLiterals cop
2015-03-21 11:27:44 +03:00
Pavel Lobashov
f67cf18e45
fix rubocop Style/EmptyLinesAroundModuleBody cop
2015-03-21 11:22:47 +03:00
Pavel Lobashov
b9a757e045
fix rubocop Style/EmptyLinesAroundClassBody cop
2015-03-21 11:21:26 +03:00
Pavel Lobashov
a0da550c22
fix rubocop Style/CaseIndentation cop
2015-03-21 11:12:01 +03:00
Pavel Lobashov
d2d8590ef8
fix rubocop Style/Blocks cop
2015-03-21 11:10:37 +03:00
Pavel Lobashov
98e6b5d057
fix rubocop Style/AlignParameters cop
2015-03-21 10:44:56 +03:00
Pavel.Lobashov
bb08213cb7
fix rubocop Style/Alias cop
2015-03-20 23:17:05 +03:00
Pavel.Lobashov
4ee6d6be39
fix rubocop Lint/UnusedMethodArgument cop
2015-03-20 23:09:41 +03:00
Pavel.Lobashov
6fac8c7e86
fix rubocop Style/TrailingWhitespace cop
2015-03-20 22:43:29 +03:00
Henry Yang
a7a11e33bd
NTFS Extra Field (0x000a) support
2014-09-11 23:04:23 -07:00
Alfredo Amatriain
fc86984e3c
Fixed rdoc comments in filesystem.rb to account for API changes in Rubyzip 1.0.0
2013-09-25 11:40:35 +02:00
Alexander Simonov
61ce5dbc5f
Refactoring part #2
...
Rubyzip interface was changed!
2013-06-03 10:56:24 +03:00