tdl-client-ruby 0.8.1 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 692ce8021fc9ee93c4beb5d2ccf53702b357a852
4
- data.tar.gz: bd4c39075d37f2585f9e2d08283094b074b59a42
3
+ metadata.gz: 29e7430cac8c4eaa35d9d3a7d541ab6ef465e1c5
4
+ data.tar.gz: 71479e768682431168431d76a764aeefd1d3c71e
5
5
  SHA512:
6
- metadata.gz: c5390ada98e61d5d533525df561e00f26379c9ced6d966f794beb861532f2176d8dc7ae7a906aa5da0786b2c16675736bba3de07ee807b843fbe8c93b343e689
7
- data.tar.gz: 6ecb31247e27e216db9d5dbc5a747e5ea298a69b0ec6e1008c0af3d9d846d4f3f50ea7b8ec520c8b315a52f44b35eb493301416a6ec6a8d1d1dc2e739aed0bb8
6
+ metadata.gz: f7244c8821463a38d0719c7f868bf6cdd4996860da249224dac4ea69ca44f3746c55a77f392fcf7aa7580409dbe5167a400ba8f114a56b2469e5df65739dcb11
7
+ data.tar.gz: 6eb6e1c1834bbe787aa21d46edc1a71c15913a7230dd10e7677025fa4576f322be8c2f04e617604450b00818fac5b87b689789071b733da0d4c9f2a69f1adf69
@@ -1,3 +1,4 @@
1
1
  module TDL
2
- PREVIOUS_VERSION = '0.6.1'
2
+ PREVIOUS_VERSION = '0.8.1'
3
+ # the current MAJOR.MINOR version is dynamically computed from the version of the Spec
3
4
  end
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
- if remaing_content
7
- lines_remaining = remaing_content.size
8
- "\"#{top_line} .. ( #{lines_remaining} more line#{ 's' if lines_remaining != 1 } )\""
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.8.1
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-17 00:00:00.000000000 Z
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.6.1
223
+ previous_version: 0.8.1
224
224
  post_install_message:
225
225
  rdoc_options: []
226
226
  require_paths: