security-report-parser 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Security Report Parser
2
2
 
3
- Used to parse montly reports from our security guard.
3
+ Used to parse monthly reports from our security guard.
4
4
 
5
5
  ## Installation
6
6
 
@@ -11,10 +11,14 @@ module Parser
11
11
  end
12
12
 
13
13
  def event_type
14
- return :open if @description.include?('Снятие')
15
- return :close if @description.include?('Постановка')
16
-
17
- :unknown
14
+ case @description
15
+ when /Снятие/
16
+ :open
17
+ when /Постановка/
18
+ :close
19
+ else
20
+ :unknown
21
+ end
18
22
  end
19
23
 
20
24
  private
@@ -1,7 +1,7 @@
1
1
  module Security
2
2
  module Report
3
3
  module Parser
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: security-report-parser
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Timur Vafin
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-11 00:00:00.000000000 Z
12
+ date: 2013-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -153,11 +153,6 @@ files:
153
153
  - README.md
154
154
  - Rakefile
155
155
  - bin/security-report-parser
156
- - bin/stubs/autospec
157
- - bin/stubs/htmldiff
158
- - bin/stubs/ldiff
159
- - bin/stubs/rake
160
- - bin/stubs/rspec
161
156
  - lib/parser.rb
162
157
  - lib/parser/checker.rb
163
158
  - lib/parser/cli.rb
@@ -192,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
187
  - !ruby/object:Gem::Version
193
188
  segments:
194
189
  - 0
195
- hash: 4567418744484905582
190
+ hash: -926868982450480843
196
191
  version: '0'
197
192
  none: false
198
193
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -201,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
196
  - !ruby/object:Gem::Version
202
197
  segments:
203
198
  - 0
204
- hash: 4567418744484905582
199
+ hash: -926868982450480843
205
200
  version: '0'
206
201
  none: false
207
202
  requirements: []
data/bin/stubs/autospec DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'autospec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rspec-core', 'autospec')
data/bin/stubs/htmldiff DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'htmldiff' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('diff-lcs', 'htmldiff')
data/bin/stubs/ldiff DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'ldiff' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('diff-lcs', 'ldiff')
data/bin/stubs/rake DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rake' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rake', 'rake')
data/bin/stubs/rspec DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rspec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rspec-core', 'rspec')