ruby_fs 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -2
- data/CHANGELOG.md +3 -0
- data/README.md +2 -3
- data/lib/ruby_fs.rb +2 -0
- data/lib/ruby_fs/command_reply.rb +2 -0
- data/lib/ruby_fs/event.rb +2 -0
- data/lib/ruby_fs/lexer.rb +2 -0
- data/lib/ruby_fs/response.rb +2 -0
- data/lib/ruby_fs/stream.rb +3 -1
- data/lib/ruby_fs/version.rb +3 -1
- data/ruby_fs.gemspec +0 -1
- data/spec/ruby_fs/command_reply_spec.rb +2 -0
- data/spec/ruby_fs/event_spec.rb +2 -0
- data/spec/ruby_fs/response_spec.rb +2 -0
- data/spec/ruby_fs/stream_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/support/mock_server.rb +2 -0
- metadata +22 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d2821005c9ef5720cfbde75aeb42651c38db614
|
4
|
+
data.tar.gz: 7b17af48e3603bc771803627f3ac36c5abc3a5cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83f3851116e8a3fac9ef9269652979087a890f3814d7bee438e27b7787a368adc473045cccfa7f7c656330582b320c644d49243a4963aff334072296d5916c98
|
7
|
+
data.tar.gz: d83532843ab8ad6a71cb05644ff5290aa4176dbdd6cda25ab16ff5518d16e1426719b79e622668ef0980e3824cdc9fcdf2d6b2a19eff6ceb6e5eb999c50395f5
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# develop
|
2
2
|
|
3
|
+
# 1.1.1
|
4
|
+
* CS: Remove explicit dependency on json, since we only support Ruby > 1.9 and JSON support is bundled.
|
5
|
+
|
3
6
|
# 1.1.0
|
4
7
|
* Feature: Allow specifying an event mask (other than 'ALL') when connecting
|
5
8
|
* CS: Minor performance improvements from removing repeated regex compilation
|
data/README.md
CHANGED
@@ -14,9 +14,8 @@ stream = RubyFS::Stream.new '127.0.0.1', 8021, 'ClueCon', lambda { |e| p e }
|
|
14
14
|
|
15
15
|
stream.run
|
16
16
|
|
17
|
-
stream.api 'originate sofia/mydomain.com/ext@yourvsp.com 1000'
|
18
|
-
|
19
|
-
end
|
17
|
+
response = stream.api 'originate sofia/mydomain.com/ext@yourvsp.com 1000'
|
18
|
+
puts "Originate response was #{response.inspect}"
|
20
19
|
```
|
21
20
|
|
22
21
|
## Links
|
data/lib/ruby_fs.rb
CHANGED
data/lib/ruby_fs/event.rb
CHANGED
data/lib/ruby_fs/lexer.rb
CHANGED
data/lib/ruby_fs/response.rb
CHANGED
data/lib/ruby_fs/stream.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'json'
|
2
4
|
|
3
5
|
require 'ruby_fs/lexer'
|
@@ -39,7 +41,7 @@ module RubyFS
|
|
39
41
|
loop { receive_data @socket.readpartial(4096) }
|
40
42
|
rescue EOFError, IOError, Errno::ECONNREFUSED => e
|
41
43
|
logger.info "Client socket closed due to (#{e.class}) #{e.message}!"
|
42
|
-
terminate
|
44
|
+
async.terminate
|
43
45
|
end
|
44
46
|
|
45
47
|
#
|
data/lib/ruby_fs/version.rb
CHANGED
data/ruby_fs.gemspec
CHANGED
@@ -19,7 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
s.add_runtime_dependency %q<celluloid-io>, ["~> 0.13"]
|
22
|
-
s.add_runtime_dependency %q<json>
|
23
22
|
|
24
23
|
s.add_development_dependency %q<bundler>, ["~> 1.0"]
|
25
24
|
s.add_development_dependency %q<rspec>, ["~> 2.5"]
|
data/spec/ruby_fs/event_spec.rb
CHANGED
data/spec/ruby_fs/stream_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/support/mock_server.rb
CHANGED
metadata
CHANGED
@@ -1,125 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_fs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Langfeld
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid-io
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.13'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.13'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: json
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - '>='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - '>='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- - ~>
|
31
|
+
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
33
|
version: '1.0'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- - ~>
|
38
|
+
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '1.0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rspec
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - ~>
|
45
|
+
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
47
|
version: '2.5'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - ~>
|
52
|
+
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '2.5'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: yard
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - ~>
|
59
|
+
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
61
|
version: '0.6'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- - ~>
|
66
|
+
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0.6'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: rake
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
|
-
- -
|
73
|
+
- - ">="
|
88
74
|
- !ruby/object:Gem::Version
|
89
75
|
version: '0'
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
|
-
- -
|
80
|
+
- - ">="
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: guard-rspec
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
|
-
- -
|
87
|
+
- - ">="
|
102
88
|
- !ruby/object:Gem::Version
|
103
89
|
version: '0'
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
|
-
- -
|
94
|
+
- - ">="
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '0'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: rb-fsevent
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
|
-
- - ~>
|
101
|
+
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: '0.9'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- - ~>
|
108
|
+
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: '0.9'
|
125
111
|
description: A Ruby client library for the FreeSWITCH EventSocket API built on Celluloid.
|
@@ -129,9 +115,9 @@ executables: []
|
|
129
115
|
extensions: []
|
130
116
|
extra_rdoc_files: []
|
131
117
|
files:
|
132
|
-
- .gitignore
|
133
|
-
- .rspec
|
134
|
-
- .travis.yml
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".travis.yml"
|
135
121
|
- CHANGELOG.md
|
136
122
|
- Gemfile
|
137
123
|
- Guardfile
|
@@ -161,17 +147,17 @@ require_paths:
|
|
161
147
|
- lib
|
162
148
|
required_ruby_version: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
|
-
- -
|
150
|
+
- - ">="
|
165
151
|
- !ruby/object:Gem::Version
|
166
152
|
version: '0'
|
167
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
154
|
requirements:
|
169
|
-
- -
|
155
|
+
- - ">="
|
170
156
|
- !ruby/object:Gem::Version
|
171
157
|
version: '0'
|
172
158
|
requirements: []
|
173
159
|
rubyforge_project: ruby_fs
|
174
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.2.0
|
175
161
|
signing_key:
|
176
162
|
specification_version: 4
|
177
163
|
summary: Wrapping FreeSWITCH EventSocket for rubyists
|