elastic_tabstops 0.1.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/bin/console +0 -0
- data/bin/demo.rb +0 -0
- data/lib/elastic_tabstops/outstream_to_lines.rb +2 -0
- data/lib/elastic_tabstops/version.rb +1 -1
- metadata +8 -19
- data/.gitignore +0 -8
- data/.travis.yml +0 -7
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -38
- data/INSPIRATION/Elastic tabstops - a better way to indent and align code.pdf +0 -0
- data/INSPIRATION/Elastic tabstops - a better way to indent and align code.webloc +0 -8
- data/INSPIRATION/src:text:tabwriter: - The Go Programming Language.webloc +0 -8
- data/INSPIRATION/tabwriter - The Go Programming Language.webloc +0 -8
- data/Rakefile +0 -10
- data/elastic_tabstops.gemspec +0 -51
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b73e69ac9d175d21f6ec925d4447b28cae8dcafe5e9111d3403b886409bd480d
|
4
|
+
data.tar.gz: 812d1964fe2e901f35afd7a8ae82487d9c394572fda2bb4d2c7f67f64f4bc604
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a118ad7c845b394011122d4a6e9047ed60e840ad17c229fda6f136b83327f528177181950309a353e22cb73bb195ddc6495bb3b119e2cfbadb39da6918e006e6
|
7
|
+
data.tar.gz: c313329273d2d9a1cb498e3d17c338213ee2df44ebc1c63d6a7d27a69d030c1ca70f6ea759b6462fd30d660384c4373c39dedf7110c36afd339de9a50354e32d
|
data/README.md
CHANGED
@@ -21,11 +21,12 @@ columns.
|
|
21
21
|
```ruby
|
22
22
|
require "elastic_tabstops"
|
23
23
|
|
24
|
-
def word(letter); letter * rand(12) end
|
25
|
-
def line(letters); letters.map { |letter| word(letter) }.join("\t") end
|
24
|
+
def word(letter); letter * rand(12) end
|
25
|
+
def line(letters); letters.map { |letter| word(letter) }.join("\t") end
|
26
26
|
|
27
|
-
et = ElasticTabstops::make_stream($stdout)
|
28
|
-
5.times do et.puts line(%w(a b c d e)) end
|
27
|
+
et = ElasticTabstops::make_stream($stdout)
|
28
|
+
5.times do et.puts line(%w(a b c d e)) end
|
29
|
+
et.flush
|
29
30
|
```
|
30
31
|
```text
|
31
32
|
aaaaaa bbbbbbbbbbb c eeeeeeeee
|
@@ -197,7 +198,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
197
198
|
|
198
199
|
## Contributing
|
199
200
|
|
200
|
-
Bug reports and pull requests are welcome on GitHub at `https://github.com/perlmonger42/
|
201
|
+
Bug reports and pull requests are welcome on GitHub at `https://github.com/perlmonger42/elastic-tabstops`.
|
201
202
|
|
202
203
|
## License
|
203
204
|
|
data/bin/console
CHANGED
File without changes
|
data/bin/demo.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic_tabstops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas A. Boyer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,21 +134,11 @@ executables: []
|
|
134
134
|
extensions: []
|
135
135
|
extra_rdoc_files: []
|
136
136
|
files:
|
137
|
-
- ".gitignore"
|
138
|
-
- ".travis.yml"
|
139
|
-
- Gemfile
|
140
|
-
- Gemfile.lock
|
141
|
-
- INSPIRATION/Elastic tabstops - a better way to indent and align code.pdf
|
142
|
-
- INSPIRATION/Elastic tabstops - a better way to indent and align code.webloc
|
143
|
-
- 'INSPIRATION/src:text:tabwriter: - The Go Programming Language.webloc'
|
144
|
-
- INSPIRATION/tabwriter - The Go Programming Language.webloc
|
145
137
|
- LICENSE.txt
|
146
138
|
- README.md
|
147
|
-
- Rakefile
|
148
139
|
- bin/console
|
149
140
|
- bin/demo.rb
|
150
141
|
- bin/setup
|
151
|
-
- elastic_tabstops.gemspec
|
152
142
|
- lib/elastic_tabstops.rb
|
153
143
|
- lib/elastic_tabstops/formatter.rb
|
154
144
|
- lib/elastic_tabstops/outstream_to_lines.rb
|
@@ -161,7 +151,7 @@ metadata:
|
|
161
151
|
homepage_uri: https://github.com/perlmonger42/elastic_tabstops
|
162
152
|
source_code_uri: https://github.com/perlmonger42/elastic_tabstops
|
163
153
|
changelog_uri: https://github.com/perlmonger42/elastic_tabstops/blob/master/CHANGELOG.md
|
164
|
-
post_install_message:
|
154
|
+
post_install_message:
|
165
155
|
rdoc_options: []
|
166
156
|
require_paths:
|
167
157
|
- lib
|
@@ -176,9 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
166
|
- !ruby/object:Gem::Version
|
177
167
|
version: '0'
|
178
168
|
requirements: []
|
179
|
-
|
180
|
-
|
181
|
-
signing_key:
|
169
|
+
rubygems_version: 3.4.6
|
170
|
+
signing_key:
|
182
171
|
specification_version: 4
|
183
172
|
summary: An output stream that makes columnar output easy.
|
184
173
|
test_files: []
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
elastic_tabstops (0.1.1)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
byebug (11.0.1)
|
10
|
-
coderay (1.1.2)
|
11
|
-
ffaker (2.11.0)
|
12
|
-
method_source (0.9.2)
|
13
|
-
minitest (5.11.3)
|
14
|
-
minitest-rg (5.2.0)
|
15
|
-
minitest (~> 5.0)
|
16
|
-
pry (0.12.2)
|
17
|
-
coderay (~> 1.1.0)
|
18
|
-
method_source (~> 0.9.0)
|
19
|
-
pry-byebug (3.7.0)
|
20
|
-
byebug (~> 11.0)
|
21
|
-
pry (~> 0.10)
|
22
|
-
rake (10.5.0)
|
23
|
-
|
24
|
-
PLATFORMS
|
25
|
-
ruby
|
26
|
-
|
27
|
-
DEPENDENCIES
|
28
|
-
bundler (~> 2.0)
|
29
|
-
elastic_tabstops!
|
30
|
-
ffaker (~> 2.11, >= 2.11.0)
|
31
|
-
minitest (~> 5.0)
|
32
|
-
minitest-rg (~> 5.0)
|
33
|
-
pry (~> 0.12.2)
|
34
|
-
pry-byebug (~> 3.7, >= 3.7.0)
|
35
|
-
rake (~> 10.0)
|
36
|
-
|
37
|
-
BUNDLED WITH
|
38
|
-
2.0.1
|
Binary file
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>URL</key>
|
6
|
-
<string>http://nickgravgaard.com/elastic-tabstops/</string>
|
7
|
-
</dict>
|
8
|
-
</plist>
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>URL</key>
|
6
|
-
<string>https://golang.org/src/text/tabwriter/</string>
|
7
|
-
</dict>
|
8
|
-
</plist>
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>URL</key>
|
6
|
-
<string>https://golang.org/pkg/text/tabwriter/</string>
|
7
|
-
</dict>
|
8
|
-
</plist>
|
data/Rakefile
DELETED
data/elastic_tabstops.gemspec
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "elastic_tabstops/version"
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "elastic_tabstops"
|
8
|
-
spec.version = ElasticTabstops::VERSION
|
9
|
-
spec.authors = ["Thomas A. Boyer"]
|
10
|
-
spec.email = ["thom at boyers.org"]
|
11
|
-
|
12
|
-
spec.summary = %q{An output stream that makes columnar output easy.}
|
13
|
-
spec.description = %q{Generate monospaced output in neatly-aligned columns.
|
14
|
-
|
15
|
-
This gem implements the Elastic Tabstops proposal
|
16
|
-
(see http://nickgravgaard.com/elastic-tabstops/).
|
17
|
-
|
18
|
-
Data written to an elastic tabstop output stream is reformatted to align
|
19
|
-
columns. Columns are made up of tab-terminated cells in adjacent lines of output.
|
20
|
-
}
|
21
|
-
spec.homepage = "https://github.com/perlmonger42/elastic_tabstops"
|
22
|
-
spec.license = "MIT"
|
23
|
-
|
24
|
-
if spec.respond_to?(:metadata)
|
25
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
26
|
-
|
27
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
28
|
-
spec.metadata["source_code_uri"] = "https://github.com/perlmonger42/elastic_tabstops"
|
29
|
-
spec.metadata["changelog_uri"] = "https://github.com/perlmonger42/elastic_tabstops/blob/master/CHANGELOG.md"
|
30
|
-
else
|
31
|
-
raise "RubyGems 2.0 or newer is required to protect against " \
|
32
|
-
"public gem pushes."
|
33
|
-
end
|
34
|
-
|
35
|
-
# Specify which files should be added to the gem when it is released.
|
36
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
37
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
38
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
39
|
-
end
|
40
|
-
spec.bindir = "exe"
|
41
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
42
|
-
spec.require_paths = ["lib"]
|
43
|
-
|
44
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
45
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
46
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
47
|
-
spec.add_development_dependency "minitest-rg", "~> 5.0"
|
48
|
-
spec.add_development_dependency "pry", "~> 0.12.2"
|
49
|
-
spec.add_development_dependency 'pry-byebug', '~> 3.7', '>= 3.7.0'
|
50
|
-
spec.add_development_dependency "ffaker", "~> 2.11", ">= 2.11.0"
|
51
|
-
end
|