textecho 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- data/Gemfile +5 -0
- data/Gemfile.lock +25 -0
- data/README.md +4 -0
- data/lib/textecho/base.rb +3 -1
- data/test/test_echo.rb +2 -2
- data/test/test_helper.rb +7 -1
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MDA1ODdkYTI5OGEwNDQ2MmI3YTEwNDNhNDE3YTEyZTVkZTVkYWUwYQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZDcyMjY4NWZlODY4NTk3YTAxYmFjOGE5NGQ1M2E5MGZjYjE5YTcwZQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTgxODFhOWQ4Y2QzYTE2MThlMjRjMGFiODYzYzA1YWMyNmZlMmQ3YjZiNjVj
|
10
|
+
MjUwMGVkYmZiZGY4ZjMyYWQ2N2FkYjJjODc0MDdmOTAzOTE3ZmY5M2Q3ZDZj
|
11
|
+
OTU2ZTA0ZDcwYTkxNWFmMjJjMzMxOWExZmM5MTVlZGFlMDNiZDA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MDA3YzhjZTRhNGUzYWM0ZjZjZDMxZmYwOWRmYTI5ODgyMTkxNWExMWIzOTQ3
|
14
|
+
MDY2ZDQzZjdmNjY3OGMzYjUyMjM3MjgwYmNiOWE2Y2IyYjU3ZjNlMzgzOTg0
|
15
|
+
OTE2YzNmOGVjNmMwZWM2ZjhkYWUwYzE2YTczZGU3OTg3YjkwNzY=
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
textecho (0.1.8)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
codeclimate-test-reporter (0.1.1)
|
10
|
+
simplecov (>= 0.7.1, < 1.0.0)
|
11
|
+
minitest (5.0.8)
|
12
|
+
multi_json (1.8.0)
|
13
|
+
simplecov (0.7.1)
|
14
|
+
multi_json (~> 1.0)
|
15
|
+
simplecov-html (~> 0.7.1)
|
16
|
+
simplecov-html (0.7.1)
|
17
|
+
|
18
|
+
PLATFORMS
|
19
|
+
ruby
|
20
|
+
|
21
|
+
DEPENDENCIES
|
22
|
+
codeclimate-test-reporter
|
23
|
+
minitest
|
24
|
+
multi_json
|
25
|
+
textecho!
|
data/README.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/textecho.png)](http://badge.fury.io/rb/textecho)
|
2
|
+
[![Build Status](https://travis-ci.org/semdinsp/textecho-gem.png)](https://travis-ci.org/semdinsp/textecho-gem)
|
3
|
+
[![Code Climate](https://codeclimate.com/repos/52484e58f3ea002edc05ac05/badges/a2ef062b00ae5fbf50c1/gpa.png)](https://codeclimate.com/repos/52484e58f3ea002edc05ac05/feed)
|
4
|
+
|
1
5
|
textecho-gem
|
2
6
|
============
|
3
7
|
|
data/lib/textecho/base.rb
CHANGED
@@ -5,11 +5,12 @@ module Textecho
|
|
5
5
|
class Base
|
6
6
|
attr_accessor :input_message,:output_message, :output_list,:shortcode, :locale, :msg_source
|
7
7
|
def debug
|
8
|
-
|
8
|
+
false
|
9
9
|
end
|
10
10
|
def msgs
|
11
11
|
self.output_list
|
12
12
|
end
|
13
|
+
|
13
14
|
def setup
|
14
15
|
self.output_list = []
|
15
16
|
end
|
@@ -32,6 +33,7 @@ module Textecho
|
|
32
33
|
end
|
33
34
|
# @@host= 'localhost:8083'
|
34
35
|
def add_msg(msg)
|
36
|
+
self.output_message=msg #update to latest
|
35
37
|
self.output_list << msg
|
36
38
|
end
|
37
39
|
def process()
|
data/test/test_echo.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/test_helper.rb'
|
2
2
|
|
3
|
-
class TestEcho < Test::Unit::TestCase
|
3
|
+
class TestEcho < Minitest::Test #Test::Unit::TestCase
|
4
4
|
|
5
5
|
def setup
|
6
6
|
@f=Textecho::Base.new
|
@@ -56,4 +56,4 @@ class TestEcho < Test::Unit::TestCase
|
|
56
56
|
end
|
57
57
|
|
58
58
|
|
59
|
-
end
|
59
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
1
3
|
require 'stringio'
|
2
|
-
require 'test/unit'
|
4
|
+
#require 'test/unit'
|
5
|
+
gem 'minitest'
|
6
|
+
require 'minitest/autorun'
|
7
|
+
require "codeclimate-test-reporter"
|
8
|
+
CodeClimate::TestReporter.start
|
3
9
|
require File.dirname(__FILE__) + '/../lib/textecho'
|
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.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Sproule
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-13 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
|
@@ -23,9 +23,12 @@ files:
|
|
23
23
|
- lib/textecho.rb
|
24
24
|
- test/test_echo.rb
|
25
25
|
- test/test_helper.rb
|
26
|
+
- Gemfile
|
27
|
+
- Gemfile.lock
|
26
28
|
- README.md
|
27
29
|
homepage: http://github.com/semdinsp/textech
|
28
|
-
licenses:
|
30
|
+
licenses:
|
31
|
+
- MIT
|
29
32
|
metadata: {}
|
30
33
|
post_install_message:
|
31
34
|
rdoc_options: []
|
@@ -33,12 +36,12 @@ require_paths:
|
|
33
36
|
- lib
|
34
37
|
required_ruby_version: !ruby/object:Gem::Requirement
|
35
38
|
requirements:
|
36
|
-
- - '>='
|
39
|
+
- - ! '>='
|
37
40
|
- !ruby/object:Gem::Version
|
38
41
|
version: '0'
|
39
42
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
43
|
requirements:
|
41
|
-
- - '>='
|
44
|
+
- - ! '>='
|
42
45
|
- !ruby/object:Gem::Version
|
43
46
|
version: 1.3.4
|
44
47
|
requirements: []
|