Ascii85 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +7 -0
- data/Ascii85.gemspec +3 -5
- data/History.txt +4 -0
- data/README.md +62 -0
- data/lib/Ascii85/version.rb +1 -1
- data/lib/ascii85.rb +1 -1
- metadata +90 -87
- data/.gemtest +0 -0
- data/README.rdoc +0 -57
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5677cdd3585a3d528ba316387231b110f6bcc23e
|
4
|
+
data.tar.gz: 3e6f35796a2b92ee46210fa2abc67dcd54e7f79f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f0899095dd358dacddf940655b3b184ca578a6e48e9a965b26d99ab3c44665ed8fbb1df18ec23a0ff5ce3adbb0507c8c97947bdad4573c692cf955ba2f638e1c
|
7
|
+
data.tar.gz: 69d6130a76e34c6a124714147ffada5b6b14908bedc80c9ec7d966aa2a11a86a64b6fcf635dad7ab9762c5e7198d5ea5507ae7379a8b3e579ac8b7f6b24ece23
|
data/.travis.yml
ADDED
data/Ascii85.gemspec
CHANGED
@@ -7,14 +7,12 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Ascii85::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.author = "Johannes Holzfuß"
|
10
|
-
s.email = "
|
10
|
+
s.email = "johannes@holzfuss.name"
|
11
11
|
s.license = 'MIT'
|
12
|
-
s.homepage = "
|
12
|
+
s.homepage = "https://github.com/DataWraith/ascii85gem/"
|
13
13
|
s.summary = %q{Ascii85 encoder/decoder}
|
14
14
|
s.description = %q{Ascii85 provides methods to encode/decode Adobe's binary-to-text encoding of the same name.}
|
15
15
|
|
16
|
-
s.rubyforge_project = "Ascii85"
|
17
|
-
|
18
16
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
19
17
|
s.add_development_dependency "minitest",">= 2.6.0"
|
20
18
|
s.add_development_dependency "rake", ">= 0.9.2"
|
@@ -23,5 +21,5 @@ Gem::Specification.new do |s|
|
|
23
21
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
24
22
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
25
23
|
s.require_paths = ["lib"]
|
26
|
-
s.extra_rdoc_files = ['README.
|
24
|
+
s.extra_rdoc_files = ['README.md', 'LICENSE']
|
27
25
|
end
|
data/History.txt
CHANGED
data/README.md
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
**Status**: This project is in maintenance mode. I will not develop new features, but I will address Issues and Pull Requests.
|
2
|
+
|
3
|
+
# Ascii85
|
4
|
+
|
5
|
+
[![Build Status](https://travis-ci.org/DataWraith/ascii85gem.svg?branch=master)](https://travis-ci.org/DataWraith/ascii85gem)
|
6
|
+
|
7
|
+
## Description
|
8
|
+
|
9
|
+
Ascii85 is a simple gem that provides methods for encoding/decoding Adobe's
|
10
|
+
binary-to-text encoding of the same name.
|
11
|
+
|
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.
|
14
|
+
|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
`sudo gem install Ascii85`
|
19
|
+
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```
|
24
|
+
require 'rubygems'
|
25
|
+
require 'ascii85'
|
26
|
+
|
27
|
+
Ascii85.encode("Ruby")
|
28
|
+
=> "<~;KZGo~>"
|
29
|
+
|
30
|
+
Ascii85.decode("<~;KZGo~>")
|
31
|
+
=> "Ruby"
|
32
|
+
```
|
33
|
+
|
34
|
+
In addition, Ascii85.encode can take a second parameter that specifies the
|
35
|
+
length of the returned lines. The default is 80; use `false` for unlimited.
|
36
|
+
|
37
|
+
Ascii85.decode expects the input to be enclosed in <~ and ~> — it
|
38
|
+
ignores everything outside of these. The output of Ascii85.decode
|
39
|
+
will have the ASCII-8BIT encoding, so in Ruby 1.9 you may have to use
|
40
|
+
<tt>String#force_encoding</tt> to correct the encoding.
|
41
|
+
|
42
|
+
|
43
|
+
## Command-line utility
|
44
|
+
|
45
|
+
This gem includes `ascii85`, a command-line utility modeled after `base64` from
|
46
|
+
the GNU coreutils. It can be used to encode/decode Ascii85 directly from the
|
47
|
+
command-line:
|
48
|
+
|
49
|
+
```
|
50
|
+
Usage: ascii85 [OPTIONS] [FILE]
|
51
|
+
Encodes or decodes FILE or STDIN using Ascii85 and writes to STDOUT.
|
52
|
+
-w, --wrap COLUMN Wrap lines at COLUMN. Default is 80, use 0 for no wrapping
|
53
|
+
-d, --decode Decode the input
|
54
|
+
-h, --help Display this help and exit
|
55
|
+
--version Output version information
|
56
|
+
```
|
57
|
+
|
58
|
+
|
59
|
+
## License
|
60
|
+
|
61
|
+
Ascii85 is distributed under the MIT License. See the accompanying LICENSE file
|
62
|
+
for details.
|
data/lib/Ascii85/version.rb
CHANGED
data/lib/ascii85.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
# and http://en.wikipedia.org/wiki/Ascii85 for more information about
|
10
10
|
# the format.
|
11
11
|
#
|
12
|
-
# Author:: Johannes Holzfuß (
|
12
|
+
# Author:: Johannes Holzfuß (johannes@holzfuss.name)
|
13
13
|
# License:: Distributed under the MIT License (see LICENSE file)
|
14
14
|
#
|
15
15
|
|
metadata
CHANGED
@@ -1,98 +1,101 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: Ascii85
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 1.0.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.3
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
6
|
+
authors:
|
7
|
+
- Johannes Holzfuß
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.6.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.6.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.9.2
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.9.2
|
55
|
+
description: Ascii85 provides methods to encode/decode Adobe's binary-to-text encoding
|
56
|
+
of the same name.
|
57
|
+
email: johannes@holzfuss.name
|
58
|
+
executables:
|
59
|
+
- ascii85
|
52
60
|
extensions: []
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
61
|
+
extra_rdoc_files:
|
62
|
+
- README.md
|
63
|
+
- LICENSE
|
64
|
+
files:
|
65
|
+
- ".travis.yml"
|
66
|
+
- Ascii85.gemspec
|
67
|
+
- Gemfile
|
68
|
+
- History.txt
|
69
|
+
- LICENSE
|
70
|
+
- README.md
|
71
|
+
- Rakefile
|
72
|
+
- bin/ascii85
|
73
|
+
- lib/Ascii85/version.rb
|
74
|
+
- lib/ascii85.rb
|
75
|
+
- spec/lib/ascii85_spec.rb
|
76
|
+
homepage: https://github.com/DataWraith/ascii85gem/
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata: {}
|
72
80
|
post_install_message:
|
73
81
|
rdoc_options: []
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: "0"
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
89
94
|
requirements: []
|
90
|
-
|
91
|
-
|
92
|
-
rubygems_version: 1.8.24
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.6.13
|
93
97
|
signing_key:
|
94
|
-
specification_version:
|
98
|
+
specification_version: 4
|
95
99
|
summary: Ascii85 encoder/decoder
|
96
|
-
test_files:
|
97
|
-
|
98
|
-
has_rdoc:
|
100
|
+
test_files:
|
101
|
+
- spec/lib/ascii85_spec.rb
|
data/.gemtest
DELETED
File without changes
|
data/README.rdoc
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
= Ascii85
|
2
|
-
|
3
|
-
* http://rubyforge.org/projects/ascii85
|
4
|
-
|
5
|
-
|
6
|
-
== Description
|
7
|
-
|
8
|
-
Ascii85 is a simple gem that provides methods for encoding/decoding Adobe's
|
9
|
-
binary-to-text encoding of the same name.
|
10
|
-
|
11
|
-
See http://www.adobe.com/products/postscript/pdfs/PLRM.pdf page 131 and
|
12
|
-
http://en.wikipedia.org/wiki/Ascii85 for more information about the format.
|
13
|
-
|
14
|
-
|
15
|
-
== Installation
|
16
|
-
|
17
|
-
* sudo gem install Ascii85
|
18
|
-
|
19
|
-
|
20
|
-
== Usage
|
21
|
-
|
22
|
-
require 'rubygems'
|
23
|
-
require 'ascii85'
|
24
|
-
|
25
|
-
Ascii85.encode("Ruby")
|
26
|
-
=> "<~;KZGo~>"
|
27
|
-
|
28
|
-
Ascii85.decode("<~;KZGo~>")
|
29
|
-
=> "Ruby"
|
30
|
-
|
31
|
-
In addition, Ascii85.encode can take a second parameter that specifies the
|
32
|
-
length of the returned lines. The default is 80; use +false+ for unlimited.
|
33
|
-
|
34
|
-
Ascii85.decode expects the input to be enclosed in <~ and ~> — it
|
35
|
-
ignores everything outside of these. The output of Ascii85.decode
|
36
|
-
will have the ASCII-8BIT encoding, so in Ruby 1.9 you may have to use
|
37
|
-
<tt>String#force_encoding</tt> to correct the encoding.
|
38
|
-
|
39
|
-
|
40
|
-
== Command-line utility
|
41
|
-
|
42
|
-
This gem includes +ascii85+, a command-line utility modeled after +base64+ from
|
43
|
-
the GNU coreutils. It can be used to encode/decode Ascii85 directly from the
|
44
|
-
command-line:
|
45
|
-
|
46
|
-
Usage: ascii85 [OPTIONS] [FILE]
|
47
|
-
Encodes or decodes FILE or STDIN using Ascii85 and writes to STDOUT.
|
48
|
-
-w, --wrap COLUMN Wrap lines at COLUMN. Default is 80, use 0 for no wrapping
|
49
|
-
-d, --decode Decode the input
|
50
|
-
-h, --help Display this help and exit
|
51
|
-
--version Output version information
|
52
|
-
|
53
|
-
|
54
|
-
== License
|
55
|
-
|
56
|
-
Ascii85 is distributed under the MIT License. See the accompanying LICENSE file
|
57
|
-
for details.
|