elastic_tabstops 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21774a2f30fc846d934a1c99bd36038b3ef117d40485c4e408c74aee6deb8cad
4
- data.tar.gz: 99eb9d481aaf389354e87dde04b851f774747314ce9a8a10b265668140902653
3
+ metadata.gz: b73e69ac9d175d21f6ec925d4447b28cae8dcafe5e9111d3403b886409bd480d
4
+ data.tar.gz: 812d1964fe2e901f35afd7a8ae82487d9c394572fda2bb4d2c7f67f64f4bc604
5
5
  SHA512:
6
- metadata.gz: 34f502173b9061d658f1f139ef319b5bd921ff5361dd967d116e157af874c3476439752889e56547fe6a2390d31887f1459cbc26f48330ba6d1d2624dccf8e3c
7
- data.tar.gz: f1f44d3ba5fc34de1c3762d4a3b159c61716408230eae93a1db280db5508866ce25adb93f755e894c600e4cd1523044bb5069d307d8635d2d85b49118fe48550
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; et.flush;
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/elastic_tabstops`.
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
@@ -1,4 +1,6 @@
1
1
  module ElasticTabstops
2
+ require "stringio"
3
+
2
4
  class OutstreamToLines
3
5
 
4
6
  # INVARIANT: @text contains no newlines
@@ -1,3 +1,3 @@
1
1
  module ElasticTabstops
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
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.2
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: 2019-08-28 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -134,34 +134,24 @@ 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
155
145
  - lib/elastic_tabstops/version.rb
156
- homepage: https://github.com/perlmonger42/elastic-tabstops
146
+ homepage: https://github.com/perlmonger42/elastic_tabstops
157
147
  licenses:
158
148
  - MIT
159
149
  metadata:
160
150
  allowed_push_host: https://rubygems.org
161
- homepage_uri: https://github.com/perlmonger42/elastic-tabstops
162
- source_code_uri: https://github.com/perlmonger42/elastic-tabstops
163
- changelog_uri: https://github.com/perlmonger42/elastic-tabstops/blob/master/CHANGELOG.md
164
- post_install_message:
151
+ homepage_uri: https://github.com/perlmonger42/elastic_tabstops
152
+ source_code_uri: https://github.com/perlmonger42/elastic_tabstops
153
+ changelog_uri: https://github.com/perlmonger42/elastic_tabstops/blob/master/CHANGELOG.md
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
- rubyforge_project:
180
- rubygems_version: 2.7.6
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
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.5
7
- before_install: gem install bundler -v 2.0.1
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in elastic_tabstops.gemspec
4
- gemspec
data/Gemfile.lock DELETED
@@ -1,38 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- elastic_tabstops (0.1.2)
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
@@ -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
@@ -1,10 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
8
- end
9
-
10
- task :default => :test
@@ -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