tdl-client-ruby 0.8.1 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tdl/previous_version.rb +2 -1
- data/lib/tdl/util.rb +6 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29e7430cac8c4eaa35d9d3a7d541ab6ef465e1c5
|
4
|
+
data.tar.gz: 71479e768682431168431d76a764aeefd1d3c71e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7244c8821463a38d0719c7f868bf6cdd4996860da249224dac4ea69ca44f3746c55a77f392fcf7aa7580409dbe5167a400ba8f114a56b2469e5df65739dcb11
|
7
|
+
data.tar.gz: 6eb6e1c1834bbe787aa21d46edc1a71c15913a7230dd10e7677025fa4576f322be8c2f04e617604450b00818fac5b87b689789071b733da0d4c9f2a69f1adf69
|
data/lib/tdl/previous_version.rb
CHANGED
data/lib/tdl/util.rb
CHANGED
@@ -3,9 +3,12 @@ module TDL
|
|
3
3
|
def self.compress_text(text)
|
4
4
|
# DEBT compress text should not add quotes
|
5
5
|
top_line, *remaing_content = text.split("\n")
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
lines_remaining = remaing_content.size
|
7
|
+
|
8
|
+
if lines_remaining > 1
|
9
|
+
"\"#{top_line} .. ( #{lines_remaining} more lines )\""
|
10
|
+
elsif lines_remaining == 1
|
11
|
+
"\"#{top_line} .. ( 1 more line )\""
|
9
12
|
else
|
10
13
|
"\"#{top_line}\""
|
11
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdl-client-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Ghionoiu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stomp
|
@@ -220,7 +220,7 @@ homepage: https://github.com/julianghionoiu/tdl-client-ruby
|
|
220
220
|
licenses:
|
221
221
|
- GPL-3.0
|
222
222
|
metadata:
|
223
|
-
previous_version: 0.
|
223
|
+
previous_version: 0.8.1
|
224
224
|
post_install_message:
|
225
225
|
rdoc_options: []
|
226
226
|
require_paths:
|