terminal-size 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/terminal-size.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Terminal
2
- class Size; VERSION = '0.0.2' end
2
+ class Size; VERSION = '0.0.3' end
3
3
  class << self
4
4
  def size
5
5
  size_via_low_level_ioctl or size_via_stty or nil
@@ -1,10 +1,11 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'working/gemspec'
3
3
  require 'terminal-size'
4
+
4
5
  Working.gemspec \
5
6
  name: 'terminal-size',
6
7
  summary: Working.third_line_of_readme,
7
- description: Working.readme_snippet(/== Usage/, /== Installation/),
8
+ description: Working.readme_snippet(/== Usage/, /== Bonus Contract/),
8
9
  version: Terminal::Size::VERSION,
9
10
  authors: %w(☈king Norrin),
10
11
  email: 'rking-terminal-size@sharpsaw.org',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal-size
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,9 +12,8 @@ bindir: bin
12
12
  cert_chain: []
13
13
  date: 2013-01-07 00:00:00.000000000 Z
14
14
  dependencies: []
15
- description: ! '== Usage
16
-
17
- '
15
+ description: ! "== Usage\n\n p Terminal.size # ⇒ {height: 90, width: 161}\n p
16
+ Terminal.size! # to get 80×25 as a fallback instead of nil\n\n"
18
17
  email: rking-terminal-size@sharpsaw.org
19
18
  executables: []
20
19
  extensions: []