nagios_analyzer 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,12 @@ language: ruby
2
2
  rvm:
3
3
  - 1.8.7
4
4
  - 1.9.2
5
- - ruby-head
5
+ - 1.9.3
6
+ - 2.0.0
6
7
  - rbx-18mode
7
8
  - rbx-19mode
8
- - jruby
9
+ - jruby-18mode
10
+ - jruby-19mode
11
+ matrix:
12
+ allow_failures:
13
+ - rvm: 1.8.7
@@ -13,6 +13,15 @@ module NagiosAnalyzer
13
13
  end
14
14
  end
15
15
 
16
+ #explicitly define NagiosAnalyzer::Section#type method in ruby 1.8
17
+ #because it returns the class in this version, hence not triggers
18
+ #method_missing to return our internal type.
19
+ if RUBY_VERSION == "1.8.7"
20
+ def type
21
+ hash[:type]
22
+ end
23
+ end
24
+
16
25
  def hash
17
26
  return @hash if @hash
18
27
  @hash = {}
@@ -132,7 +132,7 @@ module NagiosAnalyzer
132
132
  end
133
133
 
134
134
  def regexp_for_section(name)
135
- Regexp.new("^\\s*#{name}\\s*{")
135
+ Regexp.new("^\\s*#{name}\\s*\\{")
136
136
  end
137
137
 
138
138
  def section_var_sym(name, filter_problems)
@@ -1,3 +1,3 @@
1
1
  module NagiosAnalyzer
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,41 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: nagios_analyzer
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.4
3
+ version: !ruby/object:Gem::Version
4
+ hash: 21
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 5
10
+ version: 0.0.5
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Jean-Baptiste Barth
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-07-14 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rspec
16
- requirement: !ruby/object:Gem::Requirement
17
+
18
+ date: 2013-07-14 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
22
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :development
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ hash: 3
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ name: rspec
23
31
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- description: Helps you parse a status.dat file produced by nagios or shinken. It aims
31
- at being performant for big status.dat files. Take a look at nagios_parser too if
32
- you want, looks very cool too !
33
- email:
32
+ type: :development
33
+ requirement: *id001
34
+ description: Helps you parse a status.dat file produced by nagios or shinken. It aims at being performant for big status.dat files. Take a look at nagios_parser too if you want, looks very cool too !
35
+ email:
34
36
  - jeanbaptiste.barth@gmail.com
35
37
  executables: []
38
+
36
39
  extensions: []
40
+
37
41
  extra_rdoc_files: []
38
- files:
42
+
43
+ files:
39
44
  - .gitignore
40
45
  - .travis.yml
41
46
  - Gemfile
@@ -54,32 +59,36 @@ files:
54
59
  - spec/status_spec.rb
55
60
  homepage: http://github.com/jbbarth/nagios_analyzer
56
61
  licenses: []
62
+
57
63
  post_install_message:
58
64
  rdoc_options: []
59
- require_paths:
65
+
66
+ require_paths:
60
67
  - lib
61
- required_ruby_version: !ruby/object:Gem::Requirement
68
+ required_ruby_version: !ruby/object:Gem::Requirement
62
69
  none: false
63
- requirements:
64
- - - ! '>='
65
- - !ruby/object:Gem::Version
66
- version: '0'
67
- segments:
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
68
75
  - 0
69
- hash: 458145368960384668
70
- required_rubygems_version: !ruby/object:Gem::Requirement
76
+ version: "0"
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
78
  none: false
72
- requirements:
73
- - - ! '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- segments:
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ hash: 3
83
+ segments:
77
84
  - 0
78
- hash: 458145368960384668
85
+ version: "0"
79
86
  requirements: []
87
+
80
88
  rubyforge_project: nagios_analyzer
81
89
  rubygems_version: 1.8.25
82
90
  signing_key:
83
91
  specification_version: 3
84
92
  summary: Parses a nagios/shinken status.dat file
85
93
  test_files: []
94
+