io-console 0.4.7-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,5 @@
1
+ begin
2
+ require "#{RUBY_VERSION[/\d+\.\d+/]}/io/console.so"
3
+ rescue LoadError
4
+ require 'io/console.so'
5
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: false
2
+ # fallback to console window size
3
+ def IO.default_console_size
4
+ [
5
+ ENV["LINES"].to_i.nonzero? || 25,
6
+ ENV["COLUMNS"].to_i.nonzero? || 80,
7
+ ]
8
+ end
9
+
10
+ begin
11
+ require 'io/console'
12
+ rescue LoadError
13
+ class << IO
14
+ alias console_size default_console_size
15
+ end
16
+ else
17
+ # returns console window size
18
+ def IO.console_size
19
+ console.winsize
20
+ rescue NoMethodError
21
+ default_console_size
22
+ end
23
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: io-console
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.7
5
+ platform: x64-mingw32
6
+ authors:
7
+ - Nobu Nakada
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-12-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake-compiler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake-compiler-dock
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.1
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.1
41
+ description: add console capabilities to IO instances.
42
+ email: nobu@ruby-lang.org
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - LICENSE.txt
48
+ - README.md
49
+ - ext/io/console/console.c
50
+ - ext/io/console/extconf.rb
51
+ - ext/io/console/win32_vk.inc
52
+ - lib/2.2/io/console.so
53
+ - lib/2.3/io/console.so
54
+ - lib/2.4/io/console.so
55
+ - lib/2.5/io/console.so
56
+ - lib/io/console.rb
57
+ - lib/io/console/size.rb
58
+ homepage: https://github.com/ruby/io-console
59
+ licenses:
60
+ - BSD-2-Clause
61
+ metadata:
62
+ source_code_url: https://github.com/ruby/io-console
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '2.2'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: 2.6.dev
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubyforge_project:
82
+ rubygems_version: 2.7.3
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: Console interface
86
+ test_files: []