epitools 0.5.122 → 0.5.123

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fee320e00e56ea94488a469e34add3705b207b5da4e01b255cd0b643122b1b9
4
- data.tar.gz: 61181faf99b9ac4c5e98339a7a99b2233914877f25c376999b09ab05657ad444
3
+ metadata.gz: 11a6ae70a9142d18e741ba903f803f7977d0281db3478fb2c39b32d53044d0ed
4
+ data.tar.gz: 5dea125fb921bb2ad59c08fa7ffc6f32f03c3fafd03736ea124b4c5a72c2ff09
5
5
  SHA512:
6
- metadata.gz: a475668151f44db4b2025d6de6138eeed1686c9f44d0addb836b5ea406b672ed325121822081990eefa030941e70d496aca6aa5c51138d70494c4bab262f7fc3
7
- data.tar.gz: 5ee5027d1ff20292ae0956623f9a630a398416c80ec3a62321ac55e7b34b9e2ca0ba3bfda904f90684c30c20ddf93fda0bade1966a0698b605c8fa7d2d425cf1
6
+ metadata.gz: da43a98210212a18a6837a53951ac813ccc2a41f64900e559c352ef0f40ea84764671a7148e2dc8a642331d0b1c0fa73d164f19a9fc06135d40a3a35abfb3d7f
7
+ data.tar.gz: b32f798ac765857e2490fc9ee7f78f5c251e0a53658493f203c06dbb30df4f7e77fb023b8fa865951ed12036be2c638ce2ac8aef20fee430e5ec1f6bc2797957
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.122
1
+ 0.5.123
@@ -21,6 +21,13 @@ class String
21
21
  gsub("\r\n", "\n")
22
22
  end
23
23
 
24
+ #
25
+ # Escape shell characters (globs, quotes, parens, etc.)
26
+ #
27
+ def shellescape
28
+ Shellwords.escape(self)
29
+ end
30
+
24
31
  #
25
32
  # Remove redundant whitespaces (not including newlines).
26
33
  #
@@ -117,7 +117,7 @@ class Numeric
117
117
  factor = 10**pow
118
118
 
119
119
  if is_a?(Float)
120
- (BigDecimal.new(to_s) * factor).to_i
120
+ (BigDecimal(to_s) * factor).to_i
121
121
  else
122
122
  self * factor
123
123
  end
@@ -106,23 +106,6 @@ module WM
106
106
  system "wmctrl", "-i", "-a", window_id
107
107
  end
108
108
 
109
- def maximized?
110
- end
111
-
112
- def maximize!
113
- system "wmctrl", "-i", "-a", window_id
114
- end
115
-
116
-
117
- def unmazimize!
118
- end
119
-
120
- def minimized?
121
- end
122
-
123
- def minimize!
124
- end
125
-
126
109
  #
127
110
  # string is made up of regular text, plus <>'d keypresses
128
111
  # eg: "Hello<Ctrl-T><Ctrl-L><Ctrl-Shift-K><Return>!!!"
@@ -147,44 +147,6 @@ describe Class do
147
147
  end
148
148
  end
149
149
 
150
- it "traces messages (when $DEBUG is set)" do
151
- $DEBUG = true
152
-
153
- class TestButt
154
- trace_messages_to :a, :b, :c
155
-
156
- def a(x)
157
- end
158
-
159
- def b(x)
160
- end
161
-
162
- def c(x,y,z,&block)
163
- end
164
- end
165
-
166
- class ButtTest
167
- trace_messages_to :*
168
-
169
- def d
170
- end
171
-
172
- def e
173
- end
174
- end
175
-
176
- t = TestButt.new
177
- t.a(1)
178
- t.b(2)
179
- t.c(3,4,5) { :butt }
180
-
181
- b = ButtTest.new
182
- b.a
183
- b.b
184
-
185
- $DEBUG = false
186
- end
187
-
188
150
  end
189
151
 
190
152
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epitools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.122
4
+ version: 0.5.123
5
5
  platform: ruby
6
6
  authors:
7
7
  - epitron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-30 00:00:00.000000000 Z
11
+ date: 2019-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec