voice_com 0.0.1.1 → 0.0.1.2

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.
data/README.md CHANGED
@@ -55,6 +55,8 @@ A template is give in the gem's repository in templates/voicecom_config.yml.
55
55
 
56
56
  The method returns a response string, check VoiceCom documentation for more details.
57
57
 
58
+ ## Response
59
+
58
60
  Creating a response object:
59
61
 
60
62
  response = VoiceCom::Response.new response_attr
@@ -66,7 +68,7 @@ A template is give in the gem's repository in templates/voicecom_config.yml.
66
68
 
67
69
 
68
70
 
69
- ## Response
71
+
70
72
 
71
73
 
72
74
 
@@ -22,7 +22,6 @@ module VoiceCom
22
22
 
23
23
  def build_uri
24
24
  url_string = "http://#{@main_url}?serviceID=#{@sid}&id=#{smsid}&msisdn=#{phone}&msg=#{text}"
25
- # url_string = "http://#{@main_url}?sid=#{@sid}&id=#{smsid}&msisdn=#{phone}&text=#{text}"
26
25
  url_str = addition_attr_to_uri url_string
27
26
 
28
27
  @request_uri = URI.encode url_str
@@ -5,7 +5,7 @@ module VoiceCom
5
5
  attr_reader :answer_hash
6
6
 
7
7
  def initialize(args = {})
8
- args.each {|k,v| instance_variable_set("@#{k}", v)}
8
+ args.each {|k,v| instance_variable_set("@#{k.strip}", v)}
9
9
  yield self if block_given?
10
10
  validate!
11
11
  parse_answer
@@ -1,3 +1,3 @@
1
1
  module VoiceCom
2
- VERSION = "0.0.1.1"
2
+ VERSION = "0.0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voice_com
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.1
4
+ version: 0.0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-24 00:00:00.000000000 Z
12
+ date: 2014-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: -137348665721630467
81
+ hash: -2878627703292417795
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: -137348665721630467
90
+ hash: -2878627703292417795
91
91
  requirements: []
92
92
  rubyforge_project:
93
93
  rubygems_version: 1.8.25