syspy 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/bytes.rb +12 -12
  2. metadata +35 -52
data/lib/bytes.rb CHANGED
@@ -8,11 +8,11 @@ module Syspy
8
8
 
9
9
  def self.uintle(io,length)
10
10
  case length
11
- when 1:
11
+ when 1
12
12
  BinData::Uint8.read(io).to_i
13
- when 2:
13
+ when 2
14
14
  BinData::Uint16le.read(io).to_i
15
- when 4:
15
+ when 4
16
16
  BinData::Uint32le.read(io).to_i
17
17
  else
18
18
  raise ArgumentError.new("Invalid length")
@@ -29,11 +29,11 @@ module Syspy
29
29
 
30
30
  def self.uintbe(io,length)
31
31
  case length
32
- when 1:
32
+ when 1
33
33
  BinData::Uint8.read(io).to_i
34
- when 2:
34
+ when 2
35
35
  BinData::Uint16be.read(io).to_i
36
- when 4:
36
+ when 4
37
37
  BinData::Uint32be.read(io).to_i
38
38
  else
39
39
  raise ArgumentError.new("Invalid length")
@@ -54,11 +54,11 @@ module Syspy
54
54
 
55
55
  def self.intle(io,length)
56
56
  case length
57
- when 1:
57
+ when 1
58
58
  BinData::Int8.read(io).to_i
59
- when 2:
59
+ when 2
60
60
  BinData::Int16le.read(io).to_i
61
- when 4:
61
+ when 4
62
62
  BinData::Int32le.read(io).to_i
63
63
  else
64
64
  raise ArgumentError.new("Invalid length")
@@ -75,11 +75,11 @@ module Syspy
75
75
 
76
76
  def self.intbe(io,length)
77
77
  case length
78
- when 1:
78
+ when 1
79
79
  BinData::Int8.read(io).to_i
80
- when 2:
80
+ when 2
81
81
  BinData::Int16be.read(io).to_i
82
- when 4:
82
+ when 4
83
83
  BinData::Int32be.read(io).to_i
84
84
  else
85
85
  raise ArgumentError.new("Invalid length")
metadata CHANGED
@@ -1,46 +1,39 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: syspy
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.13
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 12
10
- version: 0.0.12
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Matthias Balmer
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-01-23 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: bindata
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
35
30
  description:
36
31
  email: matthias.balmer@sysinf.ch
37
- executables:
32
+ executables:
38
33
  - syspy
39
34
  extensions: []
40
-
41
35
  extra_rdoc_files: []
42
-
43
- files:
36
+ files:
44
37
  - lib/bytes.rb
45
38
  - lib/tds_types.rb
46
39
  - lib/tds_tokens.rb
@@ -53,39 +46,29 @@ files:
53
46
  - lib/syspy.rb
54
47
  - lib/tds_package.rb
55
48
  - bin/syspy
56
- has_rdoc: true
57
49
  homepage:
58
50
  licenses: []
59
-
60
- post_install_message: To use syspy as standalone application run "sudo syspy <interface> <destination_ip> <destination_port>"
51
+ post_install_message: To use syspy as standalone application run "sudo syspy <interface>
52
+ <destination_ip> <destination_port>"
61
53
  rdoc_options: []
62
-
63
- require_paths:
54
+ require_paths:
64
55
  - lib
65
- required_ruby_version: !ruby/object:Gem::Requirement
56
+ required_ruby_version: !ruby/object:Gem::Requirement
66
57
  none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
74
- required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
63
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- hash: 3
80
- segments:
81
- - 0
82
- version: "0"
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
83
68
  requirements: []
84
-
85
69
  rubyforge_project:
86
- rubygems_version: 1.4.2
70
+ rubygems_version: 1.8.24
87
71
  signing_key:
88
72
  specification_version: 3
89
73
  summary: Observe TDS packages directly from a network interface
90
74
  test_files: []
91
-