audited-timeline 1.1.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6c483ecb3a7bb7c83ef411e658272c14247fddf6
4
- data.tar.gz: 300b997f4f9d35bd45c736ffa2b509f6b6230f2b
2
+ SHA256:
3
+ metadata.gz: 59788196f5f743026dc810026a3eb753b04eacc508ca46467d4193f49df4bdb2
4
+ data.tar.gz: d1deaba66ccc18abd86f8ddabed1a49754be0d927391e12b1348f01215476493
5
5
  SHA512:
6
- metadata.gz: a9217878afed22e8c8e4f60444160ec10ac313b8ef221d2623bf8d5c4e4f3eed6326f9874ea332fc5ddf21fbdb6a9eb0db5e4e38aeffc3c06b4190753cb1f159
7
- data.tar.gz: 0d91243de21dabf01611230ab93ce25a1e494168fbfe73fbea2acad933da3d3a5fe03b60e144442b38c12d90f3f5850ec858f777181c7a7ed95069c6dfb9194d
6
+ metadata.gz: 3e5869bb9f525156e77e2d6349340493d042b3ee3bc200fbf04dbeaae2af743da0cd75052aaafc701a8d1c4429ab75fa26eccd4473ddef418b0f31d7323f8fd7
7
+ data.tar.gz: 2bbea07ced68e1e8205d2bc67aaa1fbc1d4200c2724eb123514360825a54b531ba049262b0c4531721aa6a6732831f6efb8b862b5806ac20991ceacb00368126
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
7
+ - package-ecosystem: "docker"
8
+ directory: "/"
9
+ schedule:
10
+ interval: "monthly"
@@ -0,0 +1,27 @@
1
+ name: "CodeQL"
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+ schedule:
9
+ - cron: "25 2 * * 6"
10
+
11
+ jobs:
12
+ analyze:
13
+ name: Analyze
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ actions: read
17
+ contents: read
18
+ security-events: write
19
+ steps:
20
+ - name: Checkout repository
21
+ uses: actions/checkout@v4
22
+ - name: Initialize CodeQL
23
+ uses: github/codeql-action/init@v2
24
+ - name: Autobuild
25
+ uses: github/codeql-action/autobuild@v2
26
+ - name: Perform CodeQL Analysis
27
+ uses: github/codeql-action/analyze@v2
@@ -0,0 +1,18 @@
1
+ name: Build Ruby Gem
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [master]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 3.0
18
+ - run: gem build *.gemspec
@@ -0,0 +1,27 @@
1
+ name: Build + Publish Ruby Gem
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "*"
7
+
8
+ jobs:
9
+ build:
10
+ name: Build + Publish
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: 3.0
17
+ - name: Publish to RubyGems
18
+ run: |
19
+ mkdir -p $HOME/.gem
20
+ touch $HOME/.gem/credentials
21
+ chmod 0600 $HOME/.gem/credentials
22
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
23
+ gem build *.gemspec
24
+ gem push *.gem
25
+ env:
26
+ GEM_VERSION: ${{ github.ref_name }}
27
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 3.0.0
data/Dockerfile ADDED
@@ -0,0 +1,14 @@
1
+ FROM ruby:3.0-alpine
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apk add -U \
6
+ bash less tzdata shared-mime-info build-base libc6-compat git && \
7
+ gem install bundler bundler-audit
8
+
9
+ COPY *.gemspec Gemfile Gemfile.lock VERSION ./
10
+ RUN BUNDLER_VERSION=$(grep -A 1 "BUNDLED WITH" Gemfile.lock | grep -v "BUNDLED WITH" | tr -d '[:space:]') && \
11
+ gem install "bundler:$BUNDLER_VERSION" && \
12
+ bundle install --jobs $(nproc)
13
+
14
+ COPY . ./
data/Gemfile.lock CHANGED
@@ -1,125 +1,177 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- audited-timeline (1.0.7)
5
- audited (~> 4.3.0)
4
+ audited-timeline (1.1.1)
5
+ audited (~> 4.3)
6
6
  draper (>= 2.1.0)
7
7
  rails (>= 4.0.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (4.2.7.1)
13
- actionpack (= 4.2.7.1)
14
- actionview (= 4.2.7.1)
15
- activejob (= 4.2.7.1)
12
+ actioncable (6.1.7.2)
13
+ actionpack (= 6.1.7.2)
14
+ activesupport (= 6.1.7.2)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ actionmailbox (6.1.7.2)
18
+ actionpack (= 6.1.7.2)
19
+ activejob (= 6.1.7.2)
20
+ activerecord (= 6.1.7.2)
21
+ activestorage (= 6.1.7.2)
22
+ activesupport (= 6.1.7.2)
23
+ mail (>= 2.7.1)
24
+ actionmailer (6.1.7.2)
25
+ actionpack (= 6.1.7.2)
26
+ actionview (= 6.1.7.2)
27
+ activejob (= 6.1.7.2)
28
+ activesupport (= 6.1.7.2)
16
29
  mail (~> 2.5, >= 2.5.4)
17
- rails-dom-testing (~> 1.0, >= 1.0.5)
18
- actionpack (4.2.7.1)
19
- actionview (= 4.2.7.1)
20
- activesupport (= 4.2.7.1)
21
- rack (~> 1.6)
22
- rack-test (~> 0.6.2)
23
- rails-dom-testing (~> 1.0, >= 1.0.5)
24
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
- actionview (4.2.7.1)
26
- activesupport (= 4.2.7.1)
30
+ rails-dom-testing (~> 2.0)
31
+ actionpack (6.1.7.2)
32
+ actionview (= 6.1.7.2)
33
+ activesupport (= 6.1.7.2)
34
+ rack (~> 2.0, >= 2.0.9)
35
+ rack-test (>= 0.6.3)
36
+ rails-dom-testing (~> 2.0)
37
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
38
+ actiontext (6.1.7.2)
39
+ actionpack (= 6.1.7.2)
40
+ activerecord (= 6.1.7.2)
41
+ activestorage (= 6.1.7.2)
42
+ activesupport (= 6.1.7.2)
43
+ nokogiri (>= 1.8.5)
44
+ actionview (6.1.7.2)
45
+ activesupport (= 6.1.7.2)
27
46
  builder (~> 3.1)
28
- erubis (~> 2.7.0)
29
- rails-dom-testing (~> 1.0, >= 1.0.5)
30
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
- activejob (4.2.7.1)
32
- activesupport (= 4.2.7.1)
33
- globalid (>= 0.3.0)
34
- activemodel (4.2.7.1)
35
- activesupport (= 4.2.7.1)
47
+ erubi (~> 1.4)
48
+ rails-dom-testing (~> 2.0)
49
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
50
+ activejob (6.1.7.2)
51
+ activesupport (= 6.1.7.2)
52
+ globalid (>= 0.3.6)
53
+ activemodel (6.1.7.2)
54
+ activesupport (= 6.1.7.2)
55
+ activemodel-serializers-xml (1.0.2)
56
+ activemodel (> 5.x)
57
+ activesupport (> 5.x)
36
58
  builder (~> 3.1)
37
- activerecord (4.2.7.1)
38
- activemodel (= 4.2.7.1)
39
- activesupport (= 4.2.7.1)
40
- arel (~> 6.0)
41
- activesupport (4.2.7.1)
42
- i18n (~> 0.7)
43
- json (~> 1.7, >= 1.7.7)
44
- minitest (~> 5.1)
45
- thread_safe (~> 0.3, >= 0.3.4)
46
- tzinfo (~> 1.1)
47
- arel (6.0.4)
48
- audited (4.3.0)
49
- activerecord (>= 4.0, < 5.1)
50
- rails-observers (~> 0.1.2)
51
- builder (3.2.3)
52
- concurrent-ruby (1.0.4)
53
- draper (2.1.0)
54
- actionpack (>= 3.0)
55
- activemodel (>= 3.0)
56
- activesupport (>= 3.0)
57
- request_store (~> 1.0)
58
- erubis (2.7.0)
59
- globalid (0.3.7)
60
- activesupport (>= 4.1.0)
61
- i18n (0.7.0)
62
- json (1.8.6)
63
- loofah (2.0.3)
59
+ activerecord (6.1.7.2)
60
+ activemodel (= 6.1.7.2)
61
+ activesupport (= 6.1.7.2)
62
+ activestorage (6.1.7.2)
63
+ actionpack (= 6.1.7.2)
64
+ activejob (= 6.1.7.2)
65
+ activerecord (= 6.1.7.2)
66
+ activesupport (= 6.1.7.2)
67
+ marcel (~> 1.0)
68
+ mini_mime (>= 1.1.0)
69
+ activesupport (6.1.7.2)
70
+ concurrent-ruby (~> 1.0, >= 1.0.2)
71
+ i18n (>= 1.6, < 2)
72
+ minitest (>= 5.1)
73
+ tzinfo (~> 2.0)
74
+ zeitwerk (~> 2.3)
75
+ audited (4.10.0)
76
+ activerecord (>= 4.2, < 6.2)
77
+ builder (3.2.4)
78
+ concurrent-ruby (1.2.0)
79
+ crass (1.0.6)
80
+ date (3.3.3)
81
+ draper (4.0.2)
82
+ actionpack (>= 5.0)
83
+ activemodel (>= 5.0)
84
+ activemodel-serializers-xml (>= 1.0)
85
+ activesupport (>= 5.0)
86
+ request_store (>= 1.0)
87
+ ruby2_keywords
88
+ erubi (1.12.0)
89
+ globalid (1.1.0)
90
+ activesupport (>= 5.0)
91
+ i18n (1.12.0)
92
+ concurrent-ruby (~> 1.0)
93
+ loofah (2.19.1)
94
+ crass (~> 1.0.2)
64
95
  nokogiri (>= 1.5.9)
65
- mail (2.6.4)
66
- mime-types (>= 1.16, < 4)
67
- mime-types (3.1)
68
- mime-types-data (~> 3.2015)
69
- mime-types-data (3.2016.0521)
70
- mini_portile2 (2.1.0)
71
- minitest (5.10.1)
72
- nokogiri (1.7.0.1)
73
- mini_portile2 (~> 2.1.0)
74
- rack (1.6.5)
75
- rack-test (0.6.3)
76
- rack (>= 1.0)
77
- rails (4.2.7.1)
78
- actionmailer (= 4.2.7.1)
79
- actionpack (= 4.2.7.1)
80
- actionview (= 4.2.7.1)
81
- activejob (= 4.2.7.1)
82
- activemodel (= 4.2.7.1)
83
- activerecord (= 4.2.7.1)
84
- activesupport (= 4.2.7.1)
85
- bundler (>= 1.3.0, < 2.0)
86
- railties (= 4.2.7.1)
87
- sprockets-rails
88
- rails-deprecated_sanitizer (1.0.3)
89
- activesupport (>= 4.2.0.alpha)
90
- rails-dom-testing (1.0.8)
91
- activesupport (>= 4.2.0.beta, < 5.0)
92
- nokogiri (~> 1.6)
93
- rails-deprecated_sanitizer (>= 1.0.1)
94
- rails-html-sanitizer (1.0.3)
95
- loofah (~> 2.0)
96
- rails-observers (0.1.2)
97
- activemodel (~> 4.0)
98
- railties (4.2.7.1)
99
- actionpack (= 4.2.7.1)
100
- activesupport (= 4.2.7.1)
101
- rake (>= 0.8.7)
102
- thor (>= 0.18.1, < 2.0)
103
- rake (12.0.0)
104
- request_store (1.3.2)
105
- sprockets (3.7.1)
96
+ mail (2.8.0.1)
97
+ mini_mime (>= 0.1.1)
98
+ net-imap
99
+ net-pop
100
+ net-smtp
101
+ marcel (1.0.2)
102
+ method_source (1.0.0)
103
+ mini_mime (1.1.2)
104
+ mini_portile2 (2.8.1)
105
+ minitest (5.17.0)
106
+ net-imap (0.3.4)
107
+ date
108
+ net-protocol
109
+ net-pop (0.1.2)
110
+ net-protocol
111
+ net-protocol (0.2.1)
112
+ timeout
113
+ net-smtp (0.3.3)
114
+ net-protocol
115
+ nio4r (2.5.8)
116
+ nokogiri (1.14.1)
117
+ mini_portile2 (~> 2.8.0)
118
+ racc (~> 1.4)
119
+ racc (1.6.2)
120
+ rack (2.2.6.2)
121
+ rack-test (2.0.2)
122
+ rack (>= 1.3)
123
+ rails (6.1.7.2)
124
+ actioncable (= 6.1.7.2)
125
+ actionmailbox (= 6.1.7.2)
126
+ actionmailer (= 6.1.7.2)
127
+ actionpack (= 6.1.7.2)
128
+ actiontext (= 6.1.7.2)
129
+ actionview (= 6.1.7.2)
130
+ activejob (= 6.1.7.2)
131
+ activemodel (= 6.1.7.2)
132
+ activerecord (= 6.1.7.2)
133
+ activestorage (= 6.1.7.2)
134
+ activesupport (= 6.1.7.2)
135
+ bundler (>= 1.15.0)
136
+ railties (= 6.1.7.2)
137
+ sprockets-rails (>= 2.0.0)
138
+ rails-dom-testing (2.0.3)
139
+ activesupport (>= 4.2.0)
140
+ nokogiri (>= 1.6)
141
+ rails-html-sanitizer (1.5.0)
142
+ loofah (~> 2.19, >= 2.19.1)
143
+ railties (6.1.7.2)
144
+ actionpack (= 6.1.7.2)
145
+ activesupport (= 6.1.7.2)
146
+ method_source
147
+ rake (>= 12.2)
148
+ thor (~> 1.0)
149
+ rake (13.0.6)
150
+ request_store (1.5.1)
151
+ rack (>= 1.4)
152
+ ruby2_keywords (0.0.5)
153
+ sprockets (4.2.0)
106
154
  concurrent-ruby (~> 1.0)
107
- rack (> 1, < 3)
108
- sprockets-rails (3.2.0)
109
- actionpack (>= 4.0)
110
- activesupport (>= 4.0)
155
+ rack (>= 2.2.4, < 4)
156
+ sprockets-rails (3.4.2)
157
+ actionpack (>= 5.2)
158
+ activesupport (>= 5.2)
111
159
  sprockets (>= 3.0.0)
112
- thor (0.19.4)
113
- thread_safe (0.3.5)
114
- tzinfo (1.2.2)
115
- thread_safe (~> 0.1)
160
+ thor (1.2.1)
161
+ timeout (0.3.1)
162
+ tzinfo (2.0.6)
163
+ concurrent-ruby (~> 1.0)
164
+ websocket-driver (0.7.5)
165
+ websocket-extensions (>= 0.1.0)
166
+ websocket-extensions (0.1.5)
167
+ zeitwerk (2.6.6)
116
168
 
117
169
  PLATFORMS
118
170
  ruby
119
171
 
120
172
  DEPENDENCIES
121
173
  audited-timeline!
122
- bundler (~> 1.6)
174
+ bundler
123
175
 
124
176
  BUNDLED WITH
125
- 1.14.2
177
+ 2.4.6
@@ -5,9 +5,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'audited-timeline'
8
- spec.version = File.read(File.expand_path('../VERSION', __FILE__)).strip
9
- spec.authors = ['nine.ch Development']
10
- spec.email = ['development@nine.ch']
8
+ spec.version = ENV.fetch("GEM_VERSION", [`git describe --tags --abbrev=0`, `git rev-parse --short HEAD`].map(&:chomp).join(".")).delete_prefix("v")
9
+ spec.authors = ['Nine Internet Solutions AG']
10
+ spec.email = ['support@nine.ch']
11
11
  spec.summary = 'Frontent to audited'
12
12
  spec.homepage = 'https://github.com/ninech/audited-timeline'
13
13
  spec.license = 'MIT'
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_development_dependency 'bundler', '~> 1.6'
21
+ spec.add_development_dependency "bundler"
22
22
 
23
- spec.add_runtime_dependency 'audited', '~> 4.3'
23
+ spec.add_runtime_dependency 'audited', '>= 4.0'
24
24
  spec.add_runtime_dependency 'rails', '>= 4.0.0'
25
25
  spec.add_runtime_dependency 'draper', '>= 2.1.0'
26
26
  end
@@ -0,0 +1,7 @@
1
+ version: "3"
2
+ services:
3
+ app:
4
+ build:
5
+ context: .
6
+ volumes:
7
+ - .:/app:cached
@@ -22,7 +22,7 @@ module AuditedTimeline
22
22
  end
23
23
 
24
24
  def audited_timeline_partial_for(audit)
25
- "audits/#{audit.auditable_type.underscore}.#{audit.action}"
25
+ "audits/#{audit.auditable_type.underscore}_#{audit.action}"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,43 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audited-timeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - nine.ch Development
8
- autorequire:
7
+ - Nine Internet Solutions AG
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2018-02-20 00:00:00.000000000 Z
10
+ date: 2025-02-25 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '1.6'
18
+ version: '0'
20
19
  type: :development
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - "~>"
23
+ - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '1.6'
25
+ version: '0'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: audited
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - "~>"
30
+ - - ">="
32
31
  - !ruby/object:Gem::Version
33
- version: '4.3'
32
+ version: '4.0'
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
- - - "~>"
37
+ - - ">="
39
38
  - !ruby/object:Gem::Version
40
- version: '4.3'
39
+ version: '4.0'
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: rails
43
42
  requirement: !ruby/object:Gem::Requirement
@@ -68,18 +67,22 @@ dependencies:
68
67
  version: 2.1.0
69
68
  description: audited-timeline provides timeline frontend to audited
70
69
  email:
71
- - development@nine.ch
70
+ - support@nine.ch
72
71
  executables: []
73
72
  extensions: []
74
73
  extra_rdoc_files: []
75
74
  files:
75
+ - ".github/dependabot.yml"
76
+ - ".github/workflows/codeql-analysis.yml"
77
+ - ".github/workflows/gem-build.yml"
78
+ - ".github/workflows/gem-push.yml"
76
79
  - ".ruby-gemset"
77
80
  - ".ruby-version"
81
+ - Dockerfile
78
82
  - Gemfile
79
83
  - Gemfile.lock
80
84
  - README.md
81
85
  - Rakefile
82
- - VERSION
83
86
  - app/assets/stylesheets/audited-timeline.scss
84
87
  - app/assets/stylesheets/audited-timeline/_audits.scss
85
88
  - app/assets/stylesheets/audited-timeline/_timeline.scss
@@ -92,6 +95,7 @@ files:
92
95
  - audited_timeline.gemspec
93
96
  - config/locales/audited_timeline.de.yml
94
97
  - config/locales/audited_timeline.en.yml
98
+ - docker-compose.yml
95
99
  - images/screenshot.png
96
100
  - lib/audited-timeline.rb
97
101
  - lib/audited_timeline.rb
@@ -104,7 +108,6 @@ homepage: https://github.com/ninech/audited-timeline
104
108
  licenses:
105
109
  - MIT
106
110
  metadata: {}
107
- post_install_message:
108
111
  rdoc_options: []
109
112
  require_paths:
110
113
  - lib
@@ -119,9 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
122
  - !ruby/object:Gem::Version
120
123
  version: '0'
121
124
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.5.1
124
- signing_key:
125
+ rubygems_version: 3.6.2
125
126
  specification_version: 4
126
127
  summary: Frontent to audited
127
128
  test_files: []
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.1.1