Ascii85 1.1.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcb6cc7ca3f3ca02c235e5a0d5b908396524e265c9adaaf56c50bc62117c5ee7
4
- data.tar.gz: c005e9a67ecc1def46d040f06e91cb7984d0cfd43d9729638d60b2fe19d2ab8c
3
+ metadata.gz: 8e6f75c871ecc6415e5f3b26367ff204262a4063d807bb358ab9d068f747eb4a
4
+ data.tar.gz: e641790ad3a207e4ef93d9afd2eb03c615455d52fd12f63fd6436f98bdf2c45f
5
5
  SHA512:
6
- metadata.gz: c6fef31cebe36d41eee64ff857e87007b176b262fc4c667666f6360714b9d15274afb192572cf5bba31953f13ecde7c1b1ea60697ebf83a43dc80b35f64d94dd
7
- data.tar.gz: 2bd0e1367f729cb42d2163e5eeeba540e243138a23cfeb6bf9e2d93d49c80dc12227d65b60bd1db2f6272ab8c9bac19d0aaac37a5e9d48e14dd50d45abb8a749
6
+ metadata.gz: 15ed44f2f78d878aba09fd781f16ae732dd9d55d0b4127b1d42ce736672059a5ac033f556c2b3757ae8bba4177eb3b9c31af27c1541b4ed75d0ac1c3cb288438
7
+ data.tar.gz: d73d0f66ee001669d7ebda085334031a79a138c7522a886000133f6fdbdaabd05ac8a9185652eb4291c9865c44ca44e998cb17d79cde7191f0714b470ddf62ef
data/Ascii85.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.add_development_dependency "minitest",">= 2.6.0"
18
18
  s.add_development_dependency "rake", ">= 0.9.2"
19
19
 
20
- s.files = `git ls-files`.split("\n") - ['.gitignore']
20
+ s.files = `git ls-files`.split("\n") - ['.gitignore', '.github/workflows/ruby.yml']
21
21
  s.test_files = `git ls-files -- spec/*`.split("\n")
22
22
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
23
  s.require_paths = ["lib"]
data/History.txt CHANGED
@@ -1,6 +1,11 @@
1
+ === 1.1.1 / 2024-05-09
2
+
3
+ * Make `bin/ascii85` Ruby 3.2-compatible (thanks @tylerwillingham)
4
+ * Improve error handling of `bin/ascii85` slightly
5
+
1
6
  === 1.1.0 / 2020-11-11
2
7
 
3
- * Make use of frozen_string_literal
8
+ * Make use of frozen_string_literal (thanks @aliismayilov)
4
9
  * Update tests to use newer minitest syntax
5
10
 
6
11
  === 1.0.3 / 2018-01-25
data/README.md CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  # Ascii85
4
4
 
5
- [![Build Status](https://travis-ci.org/DataWraith/ascii85gem.svg?branch=master)](https://travis-ci.org/DataWraith/ascii85gem)
6
-
7
5
  ## Description
8
6
 
9
7
  Ascii85 is a simple gem that provides methods for encoding/decoding Adobe's
10
8
  binary-to-text encoding of the same name.
11
9
 
12
- See http://www.adobe.com/products/postscript/pdfs/PLRM.pdf page 131 and
13
- http://en.wikipedia.org/wiki/Ascii85 for more information about the format.
10
+ See the Adobe PostScript Language Reference ([archived version][PLRM]) page 131
11
+ and https://en.wikipedia.org/wiki/Ascii85 for more information about the format.
12
+
13
+ [PLRM]: https://web.archive.org/web/20161222092741/https://www.adobe.com/products/postscript/pdfs/PLRM.pdf
14
14
 
15
15
 
16
16
  ## Installation
@@ -56,13 +56,6 @@ Encodes or decodes FILE or STDIN using Ascii85 and writes to STDOUT.
56
56
  ```
57
57
 
58
58
 
59
- ## Contributors
60
-
61
- Thank you for your contribution!
62
-
63
- * [@aliismayilov](https://github.com/aliismayilov) contributed frozen String handling
64
-
65
-
66
59
  ## License
67
60
 
68
61
  Ascii85 is distributed under the MIT License. See the accompanying LICENSE file
data/bin/ascii85 CHANGED
@@ -9,6 +9,7 @@
9
9
 
10
10
  require "optparse"
11
11
  require File.join(File.dirname(__FILE__), '..', 'lib', 'ascii85')
12
+ require File.join(File.dirname(__FILE__), '..', 'lib', 'Ascii85', 'version')
12
13
 
13
14
  @options = {
14
15
  :wrap => 80,
@@ -53,10 +54,18 @@ ARGV.options do |opts|
53
54
  end
54
55
  end
55
56
 
57
+ # When opt_parse fails, it will raise an Exception that prints an error message,
58
+ # but the program will continue running. However, @options[:file] will not be
59
+ # set, so we can detect this condition and simply exit with an error status
60
+ # code while OptParse prints out the error message.
61
+ if @options[:file].nil?
62
+ exit 1
63
+ end
64
+
56
65
  if @options[:file] == '-'
57
66
  @input = $stdin.binmode.read
58
67
  else
59
- unless File.exists?(@options[:file])
68
+ unless File.exist?(@options[:file])
60
69
  abort "File not found: \"#{@options[:file]}\""
61
70
  end
62
71
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ascii85
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Ascii85
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Holzfuß
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-12 00:00:00.000000000 Z
11
+ date: 1980-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -62,7 +62,6 @@ extra_rdoc_files:
62
62
  - README.md
63
63
  - LICENSE
64
64
  files:
65
- - ".travis.yml"
66
65
  - Ascii85.gemspec
67
66
  - Gemfile
68
67
  - History.txt
@@ -77,7 +76,7 @@ homepage: https://github.com/DataWraith/ascii85gem/
77
76
  licenses:
78
77
  - MIT
79
78
  metadata: {}
80
- post_install_message:
79
+ post_install_message:
81
80
  rdoc_options: []
82
81
  require_paths:
83
82
  - lib
@@ -92,8 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
91
  - !ruby/object:Gem::Version
93
92
  version: '0'
94
93
  requirements: []
95
- rubygems_version: 3.1.4
96
- signing_key:
94
+ rubygems_version: 3.5.9
95
+ signing_key:
97
96
  specification_version: 4
98
97
  summary: Ascii85 encoder/decoder
99
98
  test_files:
data/.travis.yml DELETED
@@ -1,30 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9
4
- - 2.0
5
- - 2.1
6
- - 2.2
7
- - 2.3
8
- - 2.4
9
- - 2.5
10
- - 2.6
11
- - 2.7
12
- - ruby-head
13
- - jruby
14
- - truffleruby
15
- env:
16
- - RUBYOPT="--enable-frozen-string-literal"
17
- - RUBYOPT=""
18
- matrix:
19
- exclude:
20
- - rvm: 1.9
21
- env: RUBYOPT="--enable-frozen-string-literal"
22
- - rvm: 2.0
23
- env: RUBYOPT="--enable-frozen-string-literal"
24
- - rvm: 2.1
25
- env: RUBYOPT="--enable-frozen-string-literal"
26
- - rvm: 2.2
27
- env: RUBYOPT="--enable-frozen-string-literal"
28
- # bundler did not support this back then
29
- - rvm: 2.3
30
- env: RUBYOPT="--enable-frozen-string-literal"