Commit Graph

80 Commits

Author SHA1 Message Date
Robert Haines 1c06454985 Update minimum ruby version to 3.0.
All rubies before 3.0 are EOL and this is a major version bump, so it's
the right time to do this.
2024-03-01 22:14:48 +00:00
Robert Haines f033ae760d Use named parameters for `File::new`.
This is a breaking change, but now is the time to do this as we've
already done the same for `Entry::new`.
2021-06-27 10:20:11 +01:00
Robert Haines 193507b15a Adjust Layout/LineLength cop to 100 characters.
We'll get the line length down in stages...
2021-06-25 22:31:34 +01:00
Robert Haines f1e8c2fc9d Fix Style/StringConcatenation cop. 2021-06-18 16:10:57 +01:00
Robert Haines c438defe73 Remove stale .cvsignore file. 2021-05-25 21:57:56 +01:00
Robert Haines fe998a5aec Fix Layout/EmptyLinesAroundAttributeAccessor cop. 2021-05-25 21:24:50 +01:00
Robert Haines e64132f4fc Fix Style/NegatedIfElseCondition cop. 2021-05-25 21:24:50 +01:00
Robert Haines 2b04cc26fa Fix Style/RedundantFileExtensionInRequire cop. 2021-05-25 21:24:50 +01:00
Robert Haines e10badf68e Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01:00
Robert Haines 7626423994 Fix Naming/VariableName cop in the samples. 2020-02-29 18:11:52 +00:00
Robert Haines fcadea61e2 Fix Naming/MethodParameterName cop in the samples. 2020-02-29 17:12:45 +00:00
Robert Haines 846e704048 Fix Naming/BlockParameterName cop. 2020-02-17 22:35:08 +00:00
Robert Haines bb3b4474fa Fix Style/SpecialGlobalVars cop. 2020-02-15 16:26:32 +00:00
Robert Haines 172ab4b567 Fix Style/FloatDivision cop. 2020-02-15 16:26:32 +00:00
Robert Haines 45f4c2dc29 Fix Style/GuardClause cop. 2020-02-15 16:26:32 +00:00
Robert Haines bce841639e Fix Style/MixinUsage cop. 2020-02-15 16:26:32 +00:00
Robert Haines 1b8f1a6f3c Fix Naming/RescuedExceptionsVariableName 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 cd7bb142a4 Turn off all terminal output in all tests.
Makes things a lot easier when trying to track down bugs.
2018-04-04 19:45:54 +01:00
Takumasa Ochi 3c0de6cd08 Make naming on README more consistent 2017-08-07 19:58:04 +09:00
Takumasa Ochi cf91112b57 Apply automatic correction by rubocop 2017-06-29 11:57:12 +09:00
Alexander Simonov 812609111c Merge pull request #297 from EagleSHCN/patch-1
example_recursive.rb lost some special characters (0x1a at file end) …
2016-11-09 22:22:16 +02:00
EagleSHCN b0b54e505f example_recursive.rb lost some special characters (0x1a at file end) in file
example_recursive.rb lost some special characters ( for example 0x1a at file end ) , it should related to io stream implementation . Use internal zip add method instead of File.read could avoid this lose . 

An issue is posted at https://github.com/rubyzip/rubyzip/issues/296
2016-08-15 12:41:41 +08:00
beyrle 66d6076871 - revised typo 2016-03-22 11:24:28 +01:00
Alexander Simonov 088f44a233 Merge pull request #270 from pol0nium/master
Fix in example_recursive
2016-01-22 11:52:53 +02:00
pol0nium fb0b58c08a Fix in example_recursive
Replacing 'puts' with 'write' as 'puts' was adding extra lines in files,
damaging them. Ref : https://github.com/rubyzip/rubyzip/issues/260
2016-01-20 11:49:06 +01:00
Neil-Ni 9a261bca86 Fix typo file name in samples/example_filesystem.rb 2016-01-07 11:03:25 -05:00
Pavel Lobashov 753eab15d9 fix rubocop cop Style/EmptyLinesAroundClassBody 2015-06-08 10:32:42 +03:00
Pavel Lobashov 68181da2c7 fix rubocop cop Style/TrailingBlankLines 2015-06-08 10:24:36 +03:00
Pavel Lobashov 53fba8ae65 fix after merge fix 2015-06-08 10:18:12 +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
Sim Kern Cheh 34899f3a80 Fix Recursive zipping example
- Minor refactoring
- Rubify Java-ish code
- Fix issue with `::Zip` reference
- Add test to ensure integrity
2015-06-01 13:22:04 +08:00
Pavel Lobashov 068a3e748a fix rubocop Style/FileName cop 2015-03-24 19:23:24 +03:00
Pavel Lobashov 23cfcc73b5 fix rubocop Style/MethodName cop 2015-03-24 19:02:54 +03:00
Pavel Lobashov abb8c02935 fix rubocop Style/Next cop 2015-03-23 19:27:20 +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 04f69028f9 fix rubocop Style/MultilineBlockLayout cop 2015-03-23 19:08:12 +03:00
Pavel Lobashov 930b5ae45b fix rubocop Style/MethodCallParentheses cop 2015-03-23 19:06:43 +03:00
Pavel.Lobashov 7eb06a1efa fix some rubocop Style/Semicolon cop 2015-03-22 20:10:52 +03:00
Pavel.Lobashov 8d6f23ba9a fix rubocop Style/SpaceAroundOperators cop 2015-03-22 20:03:50 +03:00
Pavel.Lobashov 987dbf1064 fix rubocop Style/SpaceInsideBrackets cop 2015-03-22 19:58:07 +03:00
Pavel.Lobashov b311998e25 fix rubocop Style/SpaceInsideBlockBraces cop 2015-03-22 19:49:07 +03:00
Pavel.Lobashov abf9cbec23 fix rubocop Style/RedundantSelf cop 2015-03-22 19:30:24 +03:00
Pavel.Lobashov 06e5a9352d fix rubocop Style/ParenthesesAroundCondition cop 2015-03-22 19:25:35 +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 2ac80869dd fix rubocop Style/EmptyLinesAroundMethodBody cop 2015-03-21 11:22:19 +03:00
Pavel Lobashov b9a757e045 fix rubocop Style/EmptyLinesAroundClassBody cop 2015-03-21 11:21:26 +03:00
Pavel Lobashov eba5fa1983 fix rubocop Style/EmptyLinesAroundAccessModifier cop 2015-03-21 11:19:43 +03:00