monocle-print 1.1.0 → 1.1.3

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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ODM2ZmVhODYxMDhhYTc1NjdlNWJkNGI1ZDVkYjY4NDI3M2E0ZTRmYg==
5
- data.tar.gz: !binary |-
6
- NzJhODM3MTczZmI4NzJkMTQxNmZkNDI3YWE2NjBhNTEzM2U0OTI1MA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MDMxZjA0NjU1ODIzMWViMGU5YTVjZGVkNzczOTU1NGEwNjk4OTg0M2E3YjU1
10
- MWFhMjk1OGQ0MzgyN2JkMTY2ZTRlN2NkODlkZjc1MjdhYmNkOWY2Mzk3NTM1
11
- ODA3NmIzODlhNWJjZmRlZDY5NjgwYjI1NWVjZDUwYjFlMGEyMzA=
12
- data.tar.gz: !binary |-
13
- ODczNmI5YmYwNTYwNzdlMGVmNTAzYjkxZDJmMTUwMzE5NjllNzBjM2ZhYWFj
14
- ZDg0MTEwZTM1YWVmM2ZlZDQwMjNhOTYwNmJiNmFlZjllNGQ1MDUxMjU5NDBm
15
- OTcxNTI4MjI3MTUzZTZmNjg5NDcyYjYzMjk1OGYyOTgyMTBlNTE=
2
+ SHA256:
3
+ metadata.gz: 2e976ba9a9cd5646c6cf5e267b9551425f33ccf0a0fb9ef10840fe65e6694f93
4
+ data.tar.gz: cce06c1e840add4cd1afddd123ef4fd43bb351ad236b23094c3ae62a5f8c8e5f
5
+ SHA512:
6
+ metadata.gz: 70ddb295bf690b78401170293c0432649c2b37eb40f3add03b3b7c8a3471ce515a98eb19d6ae248e5caac5102adf97408d07c5802089fafddc4a22ea86abab49
7
+ data.tar.gz: c5181f592b0f051e948746840b27e73c6d4efae260c63fc25bd1a38a38b9e7f9903b7fd714031770936460bbdd2c8a33c705dd08327f1b8187237855ed762b03
data/Gemfile CHANGED
@@ -1,4 +1,12 @@
1
- # A sample Gemfile
2
- source "https://rubygems.org"
1
+ source 'http://rubygems.org'
3
2
 
4
- # gem "rails"
3
+ gem "rdoc", "~>4.0", :group => [:development, :test]
4
+ gem "rspec", "~>2.14", :group => [:development, :test]
5
+ gem "rake", "~>13", :group => [:development, :test]
6
+ gem "hoe-bundler", "~>1.2", :group => [:development, :test]
7
+ gem "hoe-gemspec", "~>1.0", :group => [:development, :test]
8
+ gem "hoe-version", "~>1.2", :group => [:development, :test]
9
+ gem "hoe", "~>3.14", :group => [:development, :test]
10
+ gem "minitest", group: %i(development test)
11
+
12
+ gemspec
data/Manifest.txt CHANGED
@@ -19,3 +19,4 @@ lib/monocle-print/utils.rb
19
19
  lib/monocle-print/terminal-escapes.rb
20
20
  lib/monocle-print/geometry.rb
21
21
  lib/monocle-print/atomic.rb
22
+ lib/monocle-print/version.rb
data/README.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  = monocle-print
2
2
 
3
- * http://ohboyohboyohboy.org
3
+ monocle-print :: http://ohboyohboyohboy.org
4
4
 
5
5
  == DESCRIPTION:
6
6
 
@@ -18,7 +18,7 @@ Fancy console output tools
18
18
 
19
19
  (The MIT License)
20
20
 
21
- Copyright (c) 2012 Kyle Yetter (kyle@ohboyohboyohboy.org)
21
+ Copyright (c) 2012-2024 Kyle Yetter (kyle@ohboyohboyohboy.org)
22
22
 
23
23
  Permission is hereby granted, free of charge, to any person obtaining
24
24
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,21 +1,26 @@
1
1
  #!/usr/bin/ruby
2
2
  # encoding: utf-8
3
3
  #
4
- # author: Kyle Yetter
5
- #
6
-
7
- $LOAD_PATH.unshift( "lib" )
8
4
 
9
- require 'rubygems'
10
- require 'hoe'
11
- require 'monocle-print'
5
+ PROJECT_NAME = "monocle-print"
12
6
 
13
- PACKAGE_NAME = File.basename( File.dirname( __FILE__ ) )
7
+ require_relative './lib/monocle-print'
8
+ require "rubygems"
9
+ require "hoe"
14
10
 
15
- Rake.application.options.ignore_deprecate = true
11
+ # Hoe.plugin :compiler
12
+ # Hoe.plugin :gem_prelude_sucks
13
+ # Hoe.plugin :inline
14
+ # Hoe.plugin :minitest
15
+ # Hoe.plugin :racc
16
+ # Hoe.plugin :rcov
17
+ Hoe.plugin :version
18
+ Hoe.plugins.delete(:test)
16
19
 
17
- Hoe.spec PACKAGE_NAME do
18
- developer( PACKAGE_NAME, 'kyle@ohboyohboyohboy.org' )
19
- self.version = MonoclePrint.version
20
+ Hoe.spec PROJECT_NAME do
21
+ developer( "Kyle Yetter", "kyle@ohboyohboyohboy.org")
22
+ license "MIT" # this should match the license in the README
23
+
24
+ self.version = MonoclePrint::VERSION
25
+ self.readme_file = 'README.txt'
20
26
  end
21
-
@@ -254,7 +254,7 @@ module MonoclePrint
254
254
 
255
255
  def initialize( lines = nil, default = nil )
256
256
  case lines
257
- when Fixnum
257
+ when Integer
258
258
  if block_given?
259
259
  super( lines ) { | i | Line( yield( i ) ) }
260
260
  else
@@ -254,9 +254,12 @@ class OutputDevice < DelegateClass( IO )
254
254
  put!( line )
255
255
  end
256
256
  fill( @margin.left )
257
+
257
258
  @device.print( color_code )
258
259
  @cursor + last_line.width
259
260
  @device.print( last_line )
261
+ @device.print( clear_attr )
262
+
260
263
  self
261
264
  end
262
265
 
@@ -342,7 +345,7 @@ class OutputDevice < DelegateClass( IO )
342
345
  case width
343
346
  when Symbol, String
344
347
  distance_to( width )
345
- when Fixnum
348
+ when Integer
346
349
  Utils.at_least( width, 0 )
347
350
  end
348
351
  if width > 0
@@ -408,12 +411,12 @@ class OutputDevice < DelegateClass( IO )
408
411
  code = ''
409
412
 
410
413
  case fg = @foreground_stack.last
411
- when Fixnum then code << xterm_color( ?f, fg )
414
+ when Integer then code << xterm_color( ?f, fg )
412
415
  when String, Symbol then code << ansi_color( ?f, fg )
413
416
  end
414
417
 
415
418
  case bg = @background_stack.last
416
- when Fixnum then code << xterm_color( ?b, bg )
419
+ when Integer then code << xterm_color( ?b, bg )
417
420
  when String, Symbol then code << ansi_color( ?b, bg )
418
421
  end
419
422
 
@@ -28,7 +28,7 @@ class Table
28
28
  @body = []
29
29
 
30
30
  case columns
31
- when Fixnum
31
+ when Integer
32
32
  expand_columns( columns )
33
33
  when Array
34
34
  title_row( *columns )
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/ruby
2
+ # encoding: utf-8
3
+ #
4
+ # author: Kyle Yetter
5
+ #
6
+
7
+ module MonoclePrint
8
+ VERSION = '1.1.3'
9
+ end
data/lib/monocle-print.rb CHANGED
@@ -10,9 +10,9 @@ end
10
10
  require 'delegate'
11
11
  autoload :StringIO, 'stringio' unless defined?( StringIO )
12
12
 
13
- module MonoclePrint
14
- VERSION = '1.1.0'
13
+ require_relative 'monocle-print/version'
15
14
 
15
+ module MonoclePrint
16
16
  def self.version
17
17
  VERSION
18
18
  end
@@ -68,7 +68,6 @@ module_function
68
68
  else Rectangle.new( obj )
69
69
  end
70
70
  end
71
-
72
71
  end
73
72
 
74
73
  $LOAD_PATH.unshift( MonoclePrint.library_path )
@@ -84,4 +83,4 @@ $LOAD_PATH.unshift( MonoclePrint.library_path )
84
83
  progress
85
84
  table
86
85
  list
87
- ).each { | lib | require "monocle-print/#{ lib }" }
86
+ ).each { | lib | require_relative "monocle-print/#{ lib }" }
metadata CHANGED
@@ -1,43 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monocle-print
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
- - monocle-print
8
- autorequire:
7
+ - Kyle Yetter
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-31 00:00:00.000000000 Z
11
+ date: 2026-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7'
20
23
  type: :development
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ~>
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: hoe
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ~>
37
+ - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '3.7'
39
+ version: '3.26'
34
40
  type: :development
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
- - - ~>
44
+ - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '3.7'
46
+ version: '3.26'
41
47
  description: Fancy console output tools
42
48
  email:
43
49
  - kyle@ohboyohboyohboy.org
@@ -51,49 +57,48 @@ files:
51
57
  - Gemfile
52
58
  - History.txt
53
59
  - Manifest.txt
54
- - Rakefile
55
60
  - README.txt
61
+ - Rakefile
56
62
  - lib/monocle-print.rb
57
- - lib/monocle-print/layout.rb
58
- - lib/monocle-print/table/segments.rb
59
- - lib/monocle-print/table/members.rb
60
- - lib/monocle-print/table/column.rb
61
- - lib/monocle-print/output-device.rb
63
+ - lib/monocle-print/atomic.rb
64
+ - lib/monocle-print/geometry.rb
62
65
  - lib/monocle-print/graphics.rb
63
- - lib/monocle-print/table.rb
64
66
  - lib/monocle-print/graphics/registry.rb
67
+ - lib/monocle-print/layout.rb
65
68
  - lib/monocle-print/list.rb
66
- - lib/monocle-print/progress.rb
69
+ - lib/monocle-print/output-device.rb
67
70
  - lib/monocle-print/presentation.rb
68
- - lib/monocle-print/utils.rb
71
+ - lib/monocle-print/progress.rb
72
+ - lib/monocle-print/table.rb
73
+ - lib/monocle-print/table/column.rb
74
+ - lib/monocle-print/table/members.rb
75
+ - lib/monocle-print/table/segments.rb
69
76
  - lib/monocle-print/terminal-escapes.rb
70
- - lib/monocle-print/geometry.rb
71
- - lib/monocle-print/atomic.rb
72
- - .gemtest
77
+ - lib/monocle-print/utils.rb
78
+ - lib/monocle-print/version.rb
73
79
  homepage: http://ohboyohboyohboy.org
74
80
  licenses:
75
81
  - MIT
76
82
  metadata: {}
77
- post_install_message:
83
+ post_install_message:
78
84
  rdoc_options:
79
- - --main
85
+ - "--main"
80
86
  - README.txt
81
87
  require_paths:
82
88
  - lib
83
89
  required_ruby_version: !ruby/object:Gem::Requirement
84
90
  requirements:
85
- - - ! '>='
91
+ - - ">="
86
92
  - !ruby/object:Gem::Version
87
93
  version: '0'
88
94
  required_rubygems_version: !ruby/object:Gem::Requirement
89
95
  requirements:
90
- - - ! '>='
96
+ - - ">="
91
97
  - !ruby/object:Gem::Version
92
98
  version: '0'
93
99
  requirements: []
94
- rubyforge_project: monocle-print
95
- rubygems_version: 2.0.3
96
- signing_key:
100
+ rubygems_version: 3.1.6
101
+ signing_key:
97
102
  specification_version: 4
98
103
  summary: Fancy console output tools
99
104
  test_files: []
data/.gemtest DELETED
File without changes