Commit Graph

29 Commits

Author SHA1 Message Date
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 e10badf68e Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01: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
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
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 23cfcc73b5 fix rubocop Style/MethodName cop 2015-03-24 19:02:54 +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 b311998e25 fix rubocop Style/SpaceInsideBlockBraces cop 2015-03-22 19:49:07 +03:00
Pavel Lobashov b93ef1266f fix rubocop Style/StringLiterals cop 2015-03-21 11:27:44 +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
Pavel Lobashov 0aa70b8c5b fix rubocop Style/DefWithParentheses cop 2015-03-21 11:16:57 +03:00
Pavel Lobashov d2d8590ef8 fix rubocop Style/Blocks cop 2015-03-21 11:10:37 +03:00
Adrien Siami 2468c97a70 Replace zip/zip by zip in samples 2014-03-31 13:20:27 +02:00
Alexander Simonov 61ce5dbc5f Refactoring part #2
Rubyzip interface was changed!
2013-06-03 10:56:24 +03:00
William Notowidagdo 23041a61ce Fixing the usage code example on samples/example_recursive.rb 2011-12-09 09:48:42 +07:00
Craig Wright 7569b37d85 Added a sample which shows how to use rubyzip to zip a directory recursively. 2011-09-21 09:49:56 -04:00