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 +4 -4
- data/Ascii85.gemspec +1 -1
- data/History.txt +6 -1
- data/README.md +4 -11
- data/bin/ascii85 +10 -1
- data/lib/Ascii85/version.rb +1 -1
- metadata +6 -7
- data/.travis.yml +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e6f75c871ecc6415e5f3b26367ff204262a4063d807bb358ab9d068f747eb4a
|
4
|
+
data.tar.gz: e641790ad3a207e4ef93d9afd2eb03c615455d52fd12f63fd6436f98bdf2c45f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
[](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
|
13
|
-
|
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.
|
68
|
+
unless File.exist?(@options[:file])
|
60
69
|
abort "File not found: \"#{@options[:file]}\""
|
61
70
|
end
|
62
71
|
|
data/lib/Ascii85/version.rb
CHANGED
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.
|
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:
|
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.
|
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"
|