djinni 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/djinni.rb +2 -2
  3. metadata +3 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e5d5b282735848c1a75d8ca154ba9cac9307ca2
4
- data.tar.gz: 83bb54eb074e91eb3dd5be431f97078c7971a9c6
3
+ metadata.gz: b0cff3590a30b11e70be1bb8a7ba202aa2bf78e6
4
+ data.tar.gz: 511f35d09429257f001a9d979628b103cd1b1e43
5
5
  SHA512:
6
- metadata.gz: 21a12ab4ee5132f8eb1e31579446ea440fb2bcaf8a54b1342ecf8b35d08891225d6f9d6de4d41909704a3da1807cd035b6b2ec7c409c40f5d8995d240182d8e0
7
- data.tar.gz: 4f43dd63b95822c8ba7d9c905e278500c72eb9da9413a17ca2af76885091d46d991d158b93908598580602da9ac29add88182ac1596bece96c0870594f728709
6
+ metadata.gz: 3bcfa9e6ff8f36b5f1ebfe62b74c1c1f72f68f9d9b72a187dc00261c51a4c11290ea1624f169349acafe972fc55b74c5f051a0935b1243b965c2bc4385639042
7
+ data.tar.gz: 2c92a1a3478245aa431673a9b4438a42d0db4b7eacbee620f30f78d0e3b3878c1c7aa4acab43f12369177c6dc68ae8c0dc49e27f6d3c0189cd0ab3cce47cccb6
data/lib/djinni.rb CHANGED
@@ -190,12 +190,12 @@ class Djinni
190
190
  @hist_index = nil
191
191
  @interactive = interactive
192
192
  @loaded_from = Array.new
193
- @width = TermInfo.screen_size[1]
193
+ @width = %x(tput cols).to_i
194
194
 
195
195
  Signal.trap(
196
196
  "SIGWINCH",
197
197
  proc do
198
- @width = TermInfo.screen_size[1]
198
+ @width = %x(tput cols).to_i
199
199
  end
200
200
  )
201
201
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djinni
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-03 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -70,26 +70,6 @@ dependencies:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 1.0.0
73
- - !ruby/object:Gem::Dependency
74
- name: ruby-terminfo
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '0.1'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 0.1.1
83
- type: :runtime
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '0.1'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 0.1.1
93
73
  description: This Ruby gem accepts user input and handles commands (a.k.a. wishes).
94
74
  It dynamically loads user-defined wishes, maintains a history, and provides tab
95
75
  completion.
@@ -126,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
106
  version: '0'
127
107
  requirements: []
128
108
  rubyforge_project:
129
- rubygems_version: 2.4.5.1
109
+ rubygems_version: 2.6.13
130
110
  signing_key:
131
111
  specification_version: 4
132
112
  summary: A Ruby command handler