mordor-auditing 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/Gemfile.lock +14 -14
- data/LICENSE +20 -0
- data/README.md +15 -0
- data/auditing.gemspec +3 -3
- data/lib/auditing.rb +0 -4
- data/spec/spec_helper.rb +9 -4
- metadata +65 -51
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
bson (1.
|
4
|
+
bson (1.8.2)
|
5
5
|
diff-lcs (1.1.3)
|
6
|
-
extlib (0.9.
|
7
|
-
json (1.7.
|
8
|
-
mongo (1.
|
9
|
-
bson (~> 1.
|
10
|
-
mordor (0.2.
|
6
|
+
extlib (0.9.16)
|
7
|
+
json (1.7.6)
|
8
|
+
mongo (1.8.2)
|
9
|
+
bson (~> 1.8.2)
|
10
|
+
mordor (0.2.17)
|
11
11
|
extlib
|
12
12
|
json
|
13
13
|
mongo
|
14
|
-
rake (0.
|
15
|
-
rspec (2.
|
16
|
-
rspec-core (~> 2.
|
17
|
-
rspec-expectations (~> 2.
|
18
|
-
rspec-mocks (~> 2.
|
19
|
-
rspec-core (2.
|
20
|
-
rspec-expectations (2.
|
14
|
+
rake (10.0.3)
|
15
|
+
rspec (2.12.0)
|
16
|
+
rspec-core (~> 2.12.0)
|
17
|
+
rspec-expectations (~> 2.12.0)
|
18
|
+
rspec-mocks (~> 2.12.0)
|
19
|
+
rspec-core (2.12.2)
|
20
|
+
rspec-expectations (2.12.1)
|
21
21
|
diff-lcs (~> 1.1.3)
|
22
|
-
rspec-mocks (2.
|
22
|
+
rspec-mocks (2.12.1)
|
23
23
|
|
24
24
|
PLATFORMS
|
25
25
|
ruby
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 J.W. Koelewijn
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
[![Build Status](https://secure.travis-ci.org/jwkoelewijn/auditing.png?branch=master)](http://travis-ci.org/jwkoelewijn/auditing)
|
2
|
+
|
3
|
+
## Introduction
|
4
|
+
|
5
|
+
Small library that builds on the Mordor gem to provide auditing classes
|
6
|
+
|
7
|
+
## Usage
|
8
|
+
|
9
|
+
Select the database to use, using:
|
10
|
+
|
11
|
+
```
|
12
|
+
Mordor::Config.use do |config|
|
13
|
+
config[:database] = 'database'
|
14
|
+
end
|
15
|
+
```
|
data/auditing.gemspec
CHANGED
@@ -2,8 +2,8 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.name = "mordor-auditing"
|
3
3
|
|
4
4
|
# Do not set the version and date field manually, this is done by the release script
|
5
|
-
s.version = "0.0.
|
6
|
-
s.date = "
|
5
|
+
s.version = "0.0.19"
|
6
|
+
s.date = "2013-01-22"
|
7
7
|
|
8
8
|
s.summary = "mordor-auditing"
|
9
9
|
s.description = <<-eos
|
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
# The files and test_files directives are set automatically by the release script.
|
21
21
|
# Do not change them by hand, but make sure to add the files to the git repository.
|
22
|
-
s.files = %w(.gitignore .travis.yml Gemfile Gemfile.lock Rakefile auditing.gemspec lib/auditing.rb lib/auditing/modification.rb lib/auditing/request.rb lib/auditing/version.rb spec/auditing/modification_spec.rb spec/auditing/request_spec.rb spec/spec.opts spec/spec_helper.rb tasks/github-gem.rake)
|
22
|
+
s.files = %w(.gitignore .travis.yml Gemfile Gemfile.lock LICENSE README.md Rakefile auditing.gemspec lib/auditing.rb lib/auditing/modification.rb lib/auditing/request.rb lib/auditing/version.rb spec/auditing/modification_spec.rb spec/auditing/request_spec.rb spec/spec.opts spec/spec_helper.rb tasks/github-gem.rake)
|
23
23
|
end
|
data/lib/auditing.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,18 +1,23 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'mongo'
|
3
2
|
require 'mordor'
|
4
|
-
|
5
3
|
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
6
|
-
require 'auditing'
|
7
4
|
|
8
5
|
Mordor::Config.use do |config|
|
9
|
-
|
6
|
+
config[:username] = nil
|
7
|
+
config[:password] = nil
|
8
|
+
config[:hostname] = '127.0.0.1'
|
9
|
+
config[:port] = 27017
|
10
|
+
config[:database] = 'test'
|
10
11
|
end
|
11
12
|
|
13
|
+
require 'auditing'
|
14
|
+
|
15
|
+
|
12
16
|
def clean_sheet
|
13
17
|
@connection = Mongo::Connection.new(Mordor::Config[:hostname], Mordor::Config[:port])
|
14
18
|
@db = @connection[Mordor::Config[:database]]
|
15
19
|
[Auditing::Request, Auditing::Modification].each do |klass|
|
20
|
+
@db[klass.collection_name].remove
|
16
21
|
@db[klass.collection_name].drop
|
17
22
|
end
|
18
23
|
end
|
metadata
CHANGED
@@ -1,64 +1,70 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mordor-auditing
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 57
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 19
|
10
|
+
version: 0.0.19
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Jan-Willem Koelewijn
|
9
14
|
- Dirkjan Bussink
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '0'
|
18
|
+
|
19
|
+
date: 2013-01-22 00:00:00 +01:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
|
-
requirements:
|
28
|
-
- - ! '>='
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: '0'
|
31
|
-
- !ruby/object:Gem::Dependency
|
32
|
-
name: rspec
|
33
|
-
requirement: !ruby/object:Gem::Requirement
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
34
26
|
none: false
|
35
|
-
requirements:
|
36
|
-
- -
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
name: rake
|
35
|
+
requirement: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
39
37
|
type: :development
|
40
38
|
prerelease: false
|
41
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
40
|
none: false
|
43
|
-
requirements:
|
41
|
+
requirements:
|
44
42
|
- - ~>
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 2
|
47
|
+
- 0
|
48
|
+
version: "2.0"
|
49
|
+
name: rspec
|
50
|
+
requirement: *id002
|
51
|
+
description: " Auditing classes based on the Mordor gem, used to audit requests and modifications on objects\n"
|
52
|
+
email:
|
52
53
|
- janwillem.koelewijn@nedap.com
|
53
54
|
- dirkjan.bussink@nedap.com
|
54
55
|
executables: []
|
56
|
+
|
55
57
|
extensions: []
|
58
|
+
|
56
59
|
extra_rdoc_files: []
|
57
|
-
|
60
|
+
|
61
|
+
files:
|
58
62
|
- .gitignore
|
59
63
|
- .travis.yml
|
60
64
|
- Gemfile
|
61
65
|
- Gemfile.lock
|
66
|
+
- LICENSE
|
67
|
+
- README.md
|
62
68
|
- Rakefile
|
63
69
|
- auditing.gemspec
|
64
70
|
- lib/auditing.rb
|
@@ -70,31 +76,39 @@ files:
|
|
70
76
|
- spec/spec.opts
|
71
77
|
- spec/spec_helper.rb
|
72
78
|
- tasks/github-gem.rake
|
79
|
+
has_rdoc: true
|
73
80
|
homepage: http://www.nedap.com
|
74
81
|
licenses: []
|
82
|
+
|
75
83
|
post_install_message:
|
76
84
|
rdoc_options: []
|
77
|
-
|
85
|
+
|
86
|
+
require_paths:
|
78
87
|
- lib
|
79
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
89
|
none: false
|
81
|
-
requirements:
|
82
|
-
- -
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
|
85
|
-
segments:
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
hash: 3
|
94
|
+
segments:
|
86
95
|
- 0
|
87
|
-
|
88
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
version: "0"
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
98
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
hash: 3
|
103
|
+
segments:
|
104
|
+
- 0
|
105
|
+
version: "0"
|
94
106
|
requirements: []
|
107
|
+
|
95
108
|
rubyforge_project:
|
96
|
-
rubygems_version: 1.
|
109
|
+
rubygems_version: 1.5.2
|
97
110
|
signing_key:
|
98
111
|
specification_version: 3
|
99
112
|
summary: mordor-auditing
|
100
113
|
test_files: []
|
114
|
+
|