opensips-mi 0.0.6 → 0.0.7

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NWU5ZWY5NzUwZDAwZjEyZmNmMDMxYmRlYzE5MDY4YTIzNDY2NzY4Mg==
5
- data.tar.gz: !binary |-
6
- NTc0Y2MwZjI3YmExY2VlZjhiMDVhMjZlMjdhYmMyMjA5YjlmZTYyYg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NjkxOTI1Mzg4NjQ3N2ExN2M0MjMzMWM4NDZlYzRiNjlmNjY1MTBmZWRiYTE4
10
- YzFkMmE0MGYwZWY4MTBlYjRkMjJmMWM2MGZjZmUzNDI0ZTUwNTNkOWE3OWM4
11
- ZDZjOGEyYjZiZDFmNTQzZGNmOGFhODYwMGY5M2M3MzdhYTk0ZDI=
12
- data.tar.gz: !binary |-
13
- OGRiYTdkNGFiYzRkM2Q4MjdlMDU1NWMxZmNkNzFjM2E4ZDRkMjA5MzkwNzk3
14
- MGFkODkzYzJjNmE4ZmU2NmFhYjIzZjc3OGM3OTQ0M2NhMjlmM2Q1ZDdmY2Uy
15
- MDcxYjA4ZmI4MmQ1NWVkN2U2Y2FjZDkwNzE0OTA0MWY2YTQwMGU=
2
+ SHA1:
3
+ metadata.gz: 71ef11dfb16e3efdac5669c4afd6ef2b433a74fc
4
+ data.tar.gz: dcc82b55bf1030ac0086310e0643e530640da7fa
5
+ SHA512:
6
+ metadata.gz: b62cecb80c51d27d2a5c0707056f0a5c6355b872bae13edb301cb923215aa846929320428fdc8e21f15f8f92d36ff1f9a7f13b7b85d6321884d2fdc02e5adf5c
7
+ data.tar.gz: 0f6aa840550cf9fb0b3e160b2fa441cfa197f09d2a8c71ed21e480c0c0a354ab5ebfc78a05c051e1ce65705c5f31689927cb42374233a696c5aeb95704c2a722
@@ -26,9 +26,6 @@ module Opensips
26
26
 
27
27
  # Interface to mi methods direct call
28
28
  def method_missing(md, *params, &block)
29
- response = command 'which'
30
- raise NoMethodError,
31
- "Method #{md} does not exists" unless response.rawdata.include?(md.to_s)
32
29
  response = command md.to_s, params
33
30
  # return special helper output if exists
34
31
  return response unless response.success
@@ -85,7 +82,7 @@ module Opensips
85
82
  end
86
83
  # compile headers to string
87
84
  headers = hf.map{|name,val| name.eql?("nl") ? "" : "#{name}: #{val}"}.join "\r\n"
88
- headers << "\r\n"
85
+ headers << "\r\n\r\n"
89
86
 
90
87
  # set_header is a hack for xmlrpc which fails if headers are quoted
91
88
  params = [method, ruri, next_hop, socket, set_header(headers)]
@@ -1,5 +1,5 @@
1
1
  module Opensips
2
2
  module MI
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opensips-mi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas Kobzar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-29 00:00:00.000000000 Z
11
+ date: 2014-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,28 +28,28 @@ dependencies:
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Ruby module for interacting with OpenSIPs management interface
@@ -90,17 +90,17 @@ require_paths:
90
90
  - lib
91
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ! '>='
93
+ - - '>='
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ! '>='
98
+ - - '>='
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.0.3
103
+ rubygems_version: 2.1.11
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: OpenSIPs management interface