mordor-auditing 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +73 -0
- data/Gemfile +0 -1
- data/README.md +1 -1
- data/lib/auditing/request.rb +11 -1
- data/lib/auditing/version.rb +1 -1
- data/{auditing.gemspec → mordor-auditing.gemspec} +6 -5
- data/tasks/github-gem.rake +11 -3
- metadata +27 -20
- data/.travis.yml +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3185e5eb786922446f9e371a28f02ae219edd7b934a1a8d8592e174bd57fc3ed
|
4
|
+
data.tar.gz: 447f773d7b6ae6e57d21c1bb4aa8f563014175fd6877548f6e5e9f6be08e1360
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae7fd83670f2cf4ce3325c9c3b9e526e406c062bfc276f753b178d1e7392130e6c0556c50238676a1351065ff53903f190abe268d8d9d05b13d2098b836c8582
|
7
|
+
data.tar.gz: 88ebac458da6a971d28ba56513bb7c92b786c3054d20fde386a4d5086ae75772739c7a9cd8fdcdabe0daccd2d9204e9d6263721d8a8f611f40397a5d8c7e99f7
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# Ruby CircleCI 2.0 configuration file
|
2
|
+
#
|
3
|
+
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
4
|
+
#
|
5
|
+
version: 2
|
6
|
+
jobs:
|
7
|
+
build:
|
8
|
+
docker:
|
9
|
+
# specify the version you desire here
|
10
|
+
- image: circleci/ruby:2.6.5
|
11
|
+
- image: mongo:3.2
|
12
|
+
|
13
|
+
working_directory: ~/repo
|
14
|
+
|
15
|
+
steps:
|
16
|
+
- checkout
|
17
|
+
|
18
|
+
- run:
|
19
|
+
name: install dependencies
|
20
|
+
command: |
|
21
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
22
|
+
|
23
|
+
# run tests!
|
24
|
+
- run:
|
25
|
+
name: run tests
|
26
|
+
command: |
|
27
|
+
mkdir /tmp/test-results
|
28
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
|
29
|
+
circleci tests split --split-by=timings)"
|
30
|
+
bundle exec rspec \
|
31
|
+
--format progress \
|
32
|
+
--format RspecJunitFormatter \
|
33
|
+
--out /tmp/test-results/rspec.xml \
|
34
|
+
--format progress \
|
35
|
+
$TEST_FILES
|
36
|
+
# collect reports
|
37
|
+
- store_test_results:
|
38
|
+
path: /tmp/test-results
|
39
|
+
- store_artifacts:
|
40
|
+
path: /tmp/test-results
|
41
|
+
destination: test-results
|
42
|
+
|
43
|
+
environment:
|
44
|
+
TZ: CET
|
45
|
+
|
46
|
+
rubygems_release:
|
47
|
+
docker:
|
48
|
+
- image: circleci/ruby:2.6.5
|
49
|
+
|
50
|
+
working_directory: ~/repo
|
51
|
+
|
52
|
+
steps:
|
53
|
+
- checkout
|
54
|
+
|
55
|
+
- run:
|
56
|
+
name: install dependencies
|
57
|
+
command: |
|
58
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
59
|
+
|
60
|
+
- run:
|
61
|
+
name: release to RubyGems
|
62
|
+
command: |
|
63
|
+
bundle exec rake gem:release
|
64
|
+
|
65
|
+
workflows:
|
66
|
+
version: 2
|
67
|
+
CircleCI:
|
68
|
+
jobs:
|
69
|
+
- build
|
70
|
+
- ruby_gems:
|
71
|
+
filters:
|
72
|
+
branches:
|
73
|
+
only: master
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![
|
1
|
+
[![CircleCI](https://circleci.com/gh/nedap/mordor-auditing/tree/master.svg?style=svg)](https://circleci.com/gh/nedap/mordor-auditing/tree/master)
|
2
2
|
|
3
3
|
## Introduction
|
4
4
|
|
data/lib/auditing/request.rb
CHANGED
@@ -25,7 +25,17 @@ module Auditing
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def params=(params)
|
28
|
-
|
28
|
+
# replace_params is *really* slow when given huge requests.
|
29
|
+
# Lazily call that method when needed to combat this.
|
30
|
+
@raw_params = params
|
31
|
+
end
|
32
|
+
|
33
|
+
def params
|
34
|
+
if @raw_params
|
35
|
+
@params = replace_params(@raw_params)
|
36
|
+
@raw_params = nil
|
37
|
+
end
|
38
|
+
@params
|
29
39
|
end
|
30
40
|
|
31
41
|
def self.find_by_url(url, partial = false)
|
data/lib/auditing/version.rb
CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.name = 'mordor-auditing'
|
5
5
|
|
6
6
|
# Do not set the version and date field manually, this is done by the release script
|
7
|
-
s.version =
|
8
|
-
s.date = "
|
7
|
+
s.version = "0.1.1"
|
8
|
+
s.date = "2020-07-28"
|
9
9
|
|
10
10
|
s.summary = 'mordor-auditing'
|
11
11
|
s.description = <<-eos
|
@@ -16,12 +16,13 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.email = ['janwillem.koelewijn@nedap.com', 'dirkjan.bussink@nedap.com']
|
17
17
|
s.homepage = 'http://www.nedap.com'
|
18
18
|
|
19
|
-
s.add_runtime_dependency 'mordor', '~> 0.3.
|
19
|
+
s.add_runtime_dependency 'mordor', '~> 0.3.5'
|
20
20
|
|
21
21
|
s.add_development_dependency 'rake'
|
22
|
-
s.add_development_dependency 'rspec', '~>
|
22
|
+
s.add_development_dependency 'rspec', '~> 3.5'
|
23
|
+
s.add_development_dependency 'rspec_junit_formatter'
|
23
24
|
|
24
25
|
# The files and test_files directives are set automatically by the release script.
|
25
26
|
# Do not change them by hand, but make sure to add the files to the git repository.
|
26
|
-
s.files = %w(.
|
27
|
+
s.files = %w(.circleci/config.yml .gitignore CHANGES.md Gemfile LICENSE README.md Rakefile lib/auditing.rb lib/auditing/modification.rb lib/auditing/request.rb lib/auditing/version.rb mordor-auditing.gemspec spec/auditing/modification_spec.rb spec/auditing/request_spec.rb spec/spec.opts spec/spec_helper.rb tasks/github-gem.rake)
|
27
28
|
end
|
data/tasks/github-gem.rake
CHANGED
@@ -182,11 +182,11 @@ module GithubGem
|
|
182
182
|
def build_task
|
183
183
|
sh "gem build -q #{gemspec_file}"
|
184
184
|
Dir.mkdir('pkg') unless File.exist?('pkg')
|
185
|
-
sh "mv #{
|
185
|
+
sh "mv #{gem_package_filename}.gem pkg/#{gem_package_filename}.gem"
|
186
186
|
end
|
187
187
|
|
188
188
|
def newest_version
|
189
|
-
`#{git} tag`.split("\n").map { |tag| tag.split('
|
189
|
+
`#{git} tag`.split("\n").map { |tag| tag.split('mordor-auditing-').last }.compact.map { |v| Gem::Version.new(v) }.max || Gem::Version.new('0.0.0')
|
190
190
|
end
|
191
191
|
|
192
192
|
def next_version(increment = nil)
|
@@ -267,7 +267,7 @@ module GithubGem
|
|
267
267
|
end
|
268
268
|
|
269
269
|
def gemcutter_release_task
|
270
|
-
sh "gem", 'push', "pkg/#{
|
270
|
+
sh "gem", 'push', "pkg/#{gem_package_filename}.gem"
|
271
271
|
end
|
272
272
|
|
273
273
|
# Gem release task.
|
@@ -289,6 +289,14 @@ module GithubGem
|
|
289
289
|
FileList[test_pattern].any?
|
290
290
|
end
|
291
291
|
|
292
|
+
def gem_package_filename
|
293
|
+
"#{gemspec.name}-#{gemspec.version}#{platform_suffix}"
|
294
|
+
end
|
295
|
+
|
296
|
+
def platform_suffix
|
297
|
+
"-#{gemspec.platform}" unless gemspec.platform == 'ruby'
|
298
|
+
end
|
299
|
+
|
292
300
|
# Loads the gemspec file
|
293
301
|
def load_gemspec!
|
294
302
|
@gemspec = eval(File.read(@gemspec_file))
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mordor-auditing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan-Willem Koelewijn
|
8
8
|
- Dirkjan Bussink
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mordor
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.3.
|
20
|
+
version: 0.3.5
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.3.
|
27
|
+
version: 0.3.5
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,22 +45,30 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
49
|
-
- - "<"
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
version: '2.99'
|
48
|
+
version: '3.5'
|
52
49
|
type: :development
|
53
50
|
prerelease: false
|
54
51
|
version_requirements: !ruby/object:Gem::Requirement
|
55
52
|
requirements:
|
56
53
|
- - "~>"
|
57
54
|
- !ruby/object:Gem::Version
|
58
|
-
version: '
|
59
|
-
|
55
|
+
version: '3.5'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rspec_junit_formatter
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
60
61
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
|
63
|
-
|
62
|
+
version: '0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
description: " Auditing classes based on the Mordor gem, used to audit requests
|
71
|
+
and modifications on objects\n"
|
64
72
|
email:
|
65
73
|
- janwillem.koelewijn@nedap.com
|
66
74
|
- dirkjan.bussink@nedap.com
|
@@ -68,18 +76,18 @@ executables: []
|
|
68
76
|
extensions: []
|
69
77
|
extra_rdoc_files: []
|
70
78
|
files:
|
79
|
+
- ".circleci/config.yml"
|
71
80
|
- ".gitignore"
|
72
|
-
- ".travis.yml"
|
73
81
|
- CHANGES.md
|
74
82
|
- Gemfile
|
75
83
|
- LICENSE
|
76
84
|
- README.md
|
77
85
|
- Rakefile
|
78
|
-
- auditing.gemspec
|
79
86
|
- lib/auditing.rb
|
80
87
|
- lib/auditing/modification.rb
|
81
88
|
- lib/auditing/request.rb
|
82
89
|
- lib/auditing/version.rb
|
90
|
+
- mordor-auditing.gemspec
|
83
91
|
- spec/auditing/modification_spec.rb
|
84
92
|
- spec/auditing/request_spec.rb
|
85
93
|
- spec/spec.opts
|
@@ -88,7 +96,7 @@ files:
|
|
88
96
|
homepage: http://www.nedap.com
|
89
97
|
licenses: []
|
90
98
|
metadata: {}
|
91
|
-
post_install_message:
|
99
|
+
post_install_message:
|
92
100
|
rdoc_options: []
|
93
101
|
require_paths:
|
94
102
|
- lib
|
@@ -103,9 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
111
|
- !ruby/object:Gem::Version
|
104
112
|
version: '0'
|
105
113
|
requirements: []
|
106
|
-
|
107
|
-
|
108
|
-
signing_key:
|
114
|
+
rubygems_version: 3.0.8
|
115
|
+
signing_key:
|
109
116
|
specification_version: 4
|
110
117
|
summary: mordor-auditing
|
111
118
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
bundler_args: --without optional
|
4
|
-
|
5
|
-
jdk:
|
6
|
-
- oraclejdk7
|
7
|
-
|
8
|
-
services:
|
9
|
-
- mongodb
|
10
|
-
|
11
|
-
rvm:
|
12
|
-
- 1.9.3
|
13
|
-
- 2.1.6
|
14
|
-
- 2.2.2
|
15
|
-
- jruby-19mode
|
16
|
-
- rbx-19mode
|
17
|
-
- rbx-2.5.3
|
18
|
-
|
19
|
-
matrix:
|
20
|
-
allow_failures:
|
21
|
-
- rvm: rbx-19mode
|
22
|
-
- rvm: rbx-2.5.3
|