punchblock 1.6.0 → 1.6.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.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/punchblock)
2
2
 
3
+ # [v1.6.1](https://github.com/adhearsion/punchblock/compare/v1.6.0...v1.6.1) - [2012-11-14](https://rubygems.org/gems/punchblock/versions/1.6.1)
4
+ * Bugfix: Safer component attribute writer conversion
5
+
3
6
  # [v1.6.0](https://github.com/adhearsion/punchblock/compare/v1.5.3...v1.6.0) - [2012-11-14](https://rubygems.org/gems/punchblock/versions/1.6.0)
4
7
  * Feature: Set dial headers on FreeSWITCH originate command (SIP only)
5
8
  * Feature: Set dial headers on Asterisk originate command (SIP only)
@@ -48,7 +48,7 @@ module Punchblock
48
48
  # @param [Integer] other the amount of time in milliseconds that an input command will wait until considered that a silence becomes a NO-MATCH
49
49
  #
50
50
  def max_silence=(other)
51
- write_attr :'max-silence', other.to_i
51
+ write_attr :'max-silence', other, :to_i
52
52
  end
53
53
 
54
54
  ##
@@ -62,7 +62,7 @@ module Punchblock
62
62
  # @param [Float] min_confidence with which to consider a response acceptable
63
63
  #
64
64
  def min_confidence=(min_confidence)
65
- write_attr 'min-confidence', min_confidence.to_f
65
+ write_attr 'min-confidence', min_confidence, :to_f
66
66
  end
67
67
 
68
68
  ##
@@ -118,7 +118,7 @@ module Punchblock
118
118
  # @param [Float] other Indicates how sensitive the interpreter should be to loud versus quiet input. Higher values represent greater sensitivity.
119
119
  #
120
120
  def sensitivity=(other)
121
- write_attr :sensitivity, other.to_f
121
+ write_attr :sensitivity, other, :to_f
122
122
  end
123
123
 
124
124
  ##
@@ -132,7 +132,7 @@ module Punchblock
132
132
  # @param [Integer] timeout Indicates the amount of time preceding input which may expire before a timeout is triggered.
133
133
  #
134
134
  def initial_timeout=(other)
135
- write_attr :'initial-timeout', other.to_f
135
+ write_attr :'initial-timeout', other, :to_f
136
136
  end
137
137
 
138
138
  ##
@@ -146,7 +146,7 @@ module Punchblock
146
146
  # @param [Integer] timeout Indicates (in the case of DTMF input) the amount of time between input digits which may expire before a timeout is triggered.
147
147
  #
148
148
  def inter_digit_timeout=(other)
149
- write_attr :'inter-digit-timeout', other.to_i
149
+ write_attr :'inter-digit-timeout', other, :to_i
150
150
  end
151
151
 
152
152
  ##
@@ -98,7 +98,7 @@ module Punchblock
98
98
  # @param [Integer] other Indicates some offset through which the output should be skipped before rendering begins.
99
99
  #
100
100
  def start_offset=(other)
101
- write_attr :'start-offset', other.to_i
101
+ write_attr :'start-offset', other, :to_i
102
102
  end
103
103
 
104
104
  ##
@@ -112,7 +112,7 @@ module Punchblock
112
112
  # @param [true, false] other Indicates wether or not the component should be started in a paused state to be resumed at a later time.
113
113
  #
114
114
  def start_paused=(other)
115
- write_attr :'start-paused', other.to_s
115
+ write_attr :'start-paused', other, :to_s
116
116
  end
117
117
 
118
118
  ##
@@ -126,7 +126,7 @@ module Punchblock
126
126
  # @param [Integer] other Indicates the duration of silence that should space repeats of the rendered document.
127
127
  #
128
128
  def repeat_interval=(other)
129
- write_attr :'repeat-interval', other.to_i
129
+ write_attr :'repeat-interval', other, :to_i
130
130
  end
131
131
 
132
132
  ##
@@ -140,7 +140,7 @@ module Punchblock
140
140
  # @param [Integer] other Indicates the number of times the output should be played.
141
141
  #
142
142
  def repeat_times=(other)
143
- write_attr :'repeat-times', other.to_i
143
+ write_attr :'repeat-times', other, :to_i
144
144
  end
145
145
 
146
146
  ##
@@ -154,7 +154,7 @@ module Punchblock
154
154
  # @param [Integer] other Indicates the maximum amount of time for which the output should be allowed to run before being terminated. Includes repeats.
155
155
  #
156
156
  def max_time=(other)
157
- write_attr :'max-time', other.to_i
157
+ write_attr :'max-time', other, :to_i
158
158
  end
159
159
 
160
160
  def inspect_attributes
@@ -41,7 +41,7 @@ module Punchblock
41
41
  # @param [Integer] timeout Controls the length of a period of silence after callers have spoken to conclude they finished.
42
42
  #
43
43
  def final_timeout=(timeout)
44
- write_attr :'final-timeout', timeout.to_i
44
+ write_attr :'final-timeout', timeout, :to_i
45
45
  end
46
46
 
47
47
  ##
@@ -69,7 +69,7 @@ module Punchblock
69
69
  # @param [Integer] timeout Controls how long the recognizer should wait after the end of the prompt for the caller to speak before sending a Recorder event.
70
70
  #
71
71
  def initial_timeout=(timeout)
72
- write_attr :'initial-timeout', timeout.to_i
72
+ write_attr :'initial-timeout', timeout, :to_i
73
73
  end
74
74
 
75
75
  ##
@@ -83,7 +83,7 @@ module Punchblock
83
83
  # @param [Integer] other Indicates the maximum duration for the recording.
84
84
  #
85
85
  def max_duration=(other)
86
- write_attr :'max-duration', other.to_i
86
+ write_attr :'max-duration', other, :to_i
87
87
  end
88
88
 
89
89
  ##
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Punchblock
4
- VERSION = "1.6.0"
4
+ VERSION = "1.6.1"
5
5
  end
data/punchblock.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.7") if s.respond_to? :required_rubygems_version=
24
24
 
25
- s.add_runtime_dependency %q<niceogiri>, ["~> 1.0"]
25
+ s.add_runtime_dependency %q<niceogiri>, ["~> 1.1"]
26
26
  s.add_runtime_dependency %q<blather>, [">= 0.7.0"]
27
27
  s.add_runtime_dependency %q<activesupport>, ["~> 3.0"]
28
28
  s.add_runtime_dependency %q<state_machine>, ["~> 1.0"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punchblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: '1.0'
23
+ version: '1.1'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  requirements:
29
29
  - - ~>
30
30
  - !ruby/object:Gem::Version
31
- version: '1.0'
31
+ version: '1.1'
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: blather
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -515,7 +515,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
515
515
  version: '0'
516
516
  segments:
517
517
  - 0
518
- hash: 1883502262727865241
518
+ hash: -2449922662339076716
519
519
  required_rubygems_version: !ruby/object:Gem::Requirement
520
520
  none: false
521
521
  requirements: