mgparser 0.1.4 → 0.1.5

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/bin/mgparser CHANGED
@@ -96,10 +96,11 @@ else
96
96
 
97
97
  def post_init
98
98
  puts "Media Gateway is connected!"
99
+ @call = Call.new
99
100
  end
100
101
 
101
102
  def receive_data(data)
102
- call = Call.new(data)
103
+ @call.analyze(data)
103
104
  end
104
105
  end
105
106
 
data/lib/call.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  class Call
2
2
  attr_accessor :data
3
3
 
4
- def initialize(data)
4
+ def analyze(data)
5
5
 
6
6
  @callprogr_counter = 0
7
7
  @matched = 0
@@ -95,4 +95,4 @@ def initialize(data)
95
95
  end
96
96
  end
97
97
  end
98
- end
98
+ end
data/lib/optparser.rb CHANGED
@@ -16,7 +16,7 @@ require "version"
16
16
  options.verbose = false
17
17
 
18
18
  opts = OptionParser.new do |opts|
19
- opts.banner = "Usage: MGParser.rb [options]"
19
+ opts.banner = "Usage: mgparser [options]"
20
20
 
21
21
  opts.separator ""
22
22
  opts.separator "Specific options:"
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Mgparser
2
2
  module VERSION
3
3
  MAJOR = 0 unless defined? MAJOR
4
4
  MINOR = 1 unless defined? MINOR
5
- TINY = 4 unless defined? TINY
5
+ TINY = 5 unless defined? TINY
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.') unless defined? STRING
8
8
  end
@@ -30,4 +30,4 @@ module VERSION
30
30
  @major.to_s + "." + @minor.to_s + "." + @revision.to_s
31
31
  end
32
32
  end
33
- end
33
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mgparser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dawid Pogorzelski
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-20 00:00:00 Z
18
+ date: 2011-04-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler