textecho 0.2.1 → 0.2.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: 9da72f1e2ee476df02e60ba630c04d2d735661f9
4
- data.tar.gz: 10377d464fed76cf0ab06b331efc18cfa37391f1
3
+ metadata.gz: 7a51a8cfe4dcfd4ad7994670dfd6081959d84d64
4
+ data.tar.gz: 6cf3e85026837625b087aeab3eba887b63ef266d
5
5
  SHA512:
6
- metadata.gz: a477586829eee5c5f1bf7781fe440b7064319c26751bd50331fbc3a911f542a1a69c7d79f2b9c29c7734c6a8dac5c6111ccb1145fdff2474d17f599a32d25989
7
- data.tar.gz: 962a5c1614db25e259f0e4b7366c8ecf2959378025e75b8c8b0ac157c3b42db484c59031ecab34cdc1ff8c1fdf057fe9ae3f9af3bc01028e96066aae1c466d91
6
+ metadata.gz: 996cb32b4f0980ae03455eeb4c488a57a674c899b99a0184ae8be7e1b1fb2c1f48d2f16df0a3936fe5a259a3c3591c794821d7e417b0e83b458197985a363546
7
+ data.tar.gz: dc155a978f6d294dfc02f04341e40e78067b216f921c7e37cd09be4c027cd26d97e93d88b8006a63968c6cc71cb7e762446d4f4ae03fe5b780e334b398d9282b
@@ -6,14 +6,16 @@ PATH
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- codeclimate-test-reporter (0.1.1)
9
+ codeclimate-test-reporter (0.3.0)
10
10
  simplecov (>= 0.7.1, < 1.0.0)
11
- minitest (5.0.8)
12
- multi_json (1.8.2)
13
- simplecov (0.7.1)
14
- multi_json (~> 1.0)
15
- simplecov-html (~> 0.7.1)
16
- simplecov-html (0.7.1)
11
+ docile (1.1.3)
12
+ minitest (5.2.3)
13
+ multi_json (1.8.4)
14
+ simplecov (0.8.2)
15
+ docile (~> 1.1.0)
16
+ multi_json
17
+ simplecov-html (~> 0.8.0)
18
+ simplecov-html (0.8.0)
17
19
 
18
20
  PLATFORMS
19
21
  ruby
@@ -31,7 +31,7 @@ module Textecho
31
31
  self.msg_source=src
32
32
  self.shortcode=shortcode
33
33
  self.input_message=msg.downcase
34
- self.params=params
34
+ self.params=params.clone
35
35
  puts "inspect is #{self.inspect} " if debug
36
36
  process()
37
37
  end
@@ -22,6 +22,13 @@ class TestEcho < Minitest::Test #Test::Unit::TestCase
22
22
  assert !@f.msgs.first.include?(@myMsg2), "message should be downcase"
23
23
  assert @f.msgs.first.include?(@myMsg2.downcase), "message should be downcase"
24
24
  end
25
+ def test_params
26
+
27
+ msgs=@f.handle_message(@source,@myMsg2,@f.shortcode,{"test"=> true})
28
+ assert msgs=@f.msgs, "messages and list not same"
29
+ assert !@f.msgs.first.include?(@myMsg2), "message should be downcase"
30
+ assert @f.params['test'], "params not correct #{@f.params.inspect}"
31
+ end
25
32
 
26
33
  def test_rand
27
34
  @f=Textecho::Randgen.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textecho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-21 00:00:00.000000000 Z
11
+ date: 2014-02-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Common application format for telkcomcel in Timor Leste.
14
14
  email: scott.sproule@estormtech.com