ohboyohboyohboy-monocle-print 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/ruby
2
+ # encoding: utf-8
3
+
4
+ module MonoclePrint
5
+ module Utils
6
+ module_function
7
+
8
+ def at_least( comparable, min )
9
+ ( comparable >= min ) ? comparable : min
10
+ end
11
+
12
+ def at_most( comparable, max )
13
+ ( comparable <= max ) ? comparable : max
14
+ end
15
+
16
+ def bound( comparable, lower, upper = nil )
17
+ return lower if comparable < lower
18
+ return comparable unless upper
19
+ return upper if comparable > upper
20
+ return comparable
21
+ end
22
+ end
23
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ohboyohboyohboy-monocle-print
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Kyle Yetter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rdoc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hoe
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.16'
41
+ description: Fancy console output tools
42
+ email:
43
+ - kyle@ohboyohboyohboy.org
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files:
47
+ - History.txt
48
+ - Manifest.txt
49
+ - README.txt
50
+ files:
51
+ - Gemfile
52
+ - History.txt
53
+ - Manifest.txt
54
+ - README.txt
55
+ - Rakefile
56
+ - lib/monocle-print.rb
57
+ - lib/monocle-print/atomic.rb
58
+ - lib/monocle-print/geometry.rb
59
+ - lib/monocle-print/graphics.rb
60
+ - lib/monocle-print/graphics/registry.rb
61
+ - lib/monocle-print/layout.rb
62
+ - lib/monocle-print/list.rb
63
+ - lib/monocle-print/output-device.rb
64
+ - lib/monocle-print/presentation.rb
65
+ - lib/monocle-print/progress.rb
66
+ - lib/monocle-print/table.rb
67
+ - lib/monocle-print/table/column.rb
68
+ - lib/monocle-print/table/members.rb
69
+ - lib/monocle-print/table/segments.rb
70
+ - lib/monocle-print/terminal-escapes.rb
71
+ - lib/monocle-print/utils.rb
72
+ homepage: http://ohboyohboyohboy.org
73
+ licenses:
74
+ - MIT
75
+ metadata: {}
76
+ post_install_message:
77
+ rdoc_options:
78
+ - "--main"
79
+ - README.txt
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubyforge_project:
94
+ rubygems_version: 2.4.8
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: Fancy console output tools
98
+ test_files: []