stockboy 1.1.1 → 1.1.2

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
  SHA1:
3
- metadata.gz: b618c2bafb9061a14b04ae6d571e42a119aa2a90
4
- data.tar.gz: 8772582062024383ea452a5f20d2e4975b7b810e
3
+ metadata.gz: b61bae292712fd23cbd3670b7af75f1c1accd9f3
4
+ data.tar.gz: b7bf75470c330236ae3853f3a70a73827197da2b
5
5
  SHA512:
6
- metadata.gz: 7d55abefd7dbeb962d641ec9639823406f180da9d55196b85f6383be5e67f39fb9827f1df485d24f9aa68d80ade1364b697b497745f7c99a03b29cb66a3c9317
7
- data.tar.gz: 23f36e47763251d1f98351b339d3121d7ea6d322fc5b64e2d6943116c38f2e48d2edab20841ac569d192ff594ef07942be02d9a784a963ec0b78427d718c8559
6
+ metadata.gz: debeaaa64a47c5ebd9cf4feeff2f2e4d7410eb59c4157d4ddadf8b498a807bc84558db597d7e4d3bd72b9bee0c599181e8ebac9370e9e48fb13f0cbd066d0966
7
+ data.tar.gz: f1474b711a72cbda96c44e3324d0214c8a2270ba4c0d81529ebb07d8a848a580e74c260ae01679de4b8dfc7cb99209cd33f0186501f23752ea19562794c15af7
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.2 / 2016-05-26
4
+
5
+ * [BUGFIX] Cast other types in string converter to string
6
+
3
7
  ## 1.1.1 / 2016-03-08
4
8
 
5
9
  * [BUGFIX] Timeouts on SOAP connections were ignored
@@ -24,9 +24,9 @@ module Stockboy::Translations
24
24
  #
25
25
  def translate(context)
26
26
  value = field_value(context, field_key)
27
- return "" if value.blank?
27
+ return "" if value.nil?
28
28
 
29
- value.strip
29
+ value.to_s.strip
30
30
  end
31
31
 
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module Stockboy
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -16,6 +16,11 @@ module Stockboy
16
16
  result = subject.call name: " Arthur \n"
17
17
  expect(result).to eq "Arthur"
18
18
  end
19
+
20
+ it "casts other types to string" do
21
+ result = subject.call name: 1.0/3
22
+ expect(result).to eq "0.3333333333333333"
23
+ end
19
24
  end
20
25
 
21
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stockboy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Vit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-08 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake