audited-timeline 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 729b7942b09b53f96532a76d7a1f3d2de17868f6
4
- data.tar.gz: 3abfee54ca04c5d62d16c1ba6ce543972b5052f6
2
+ SHA256:
3
+ metadata.gz: 06b654a5ea78a07243f036a36c5804c5908df602965ee987557a5a42a6639b93
4
+ data.tar.gz: e61899a6cb6a900a951655cee8c1a43127913ce7ac3be8aec603cab38862661a
5
5
  SHA512:
6
- metadata.gz: 4ff18cef6d1f97cc191001ee6025fec2402501446ff2383ceba6fff01ba43554ac2ff9d2a37d042affc39585fa335296a58d9e2cc2fafba1c455b992860abc87
7
- data.tar.gz: 0a701dfbf48b579078b9ca5f6405f431ee600fc31bdb86e1edea2aafc22f2b17a2a8e42da39f85450a36813364161886bd26125892a8d19f7d6097aa0e6a438a
6
+ metadata.gz: c6dba43b5bc4f6fa95b638afe7d565b8cbb5810239042ad5153c0cfee2723b04b60349ff54d9859c45da296031cc2a4d498c55fa41298d0c4527e71c92093ed6
7
+ data.tar.gz: 361832db6a2eb6554b7fc1fa3c2d0f394525433aae1a2d8d92d46e9c958b099d0ee6ad0cb7a67d3dd8e797daffc8b513023d707981ab8788e438e1979a6618e1
@@ -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@v3
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@v2
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@v2
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.2.0
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,7 +5,7 @@ $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
8
+ spec.version = ENV.fetch("GEM_VERSION", [`git describe --tags --abbrev=0`, `git rev-parse --short HEAD`].map(&:chomp).join(".")).delete_prefix("v")
9
9
  spec.authors = ['nine.ch Development']
10
10
  spec.email = ['development@nine.ch']
11
11
  spec.summary = 'Frontent to audited'
@@ -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.0'
23
+ spec.add_runtime_dependency 'audited', '~> 4.3'
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,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audited-timeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nine.ch Development
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-25 00:00:00.000000000 Z
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: audited
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 4.3.0
33
+ version: '4.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 4.3.0
40
+ version: '4.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -73,13 +73,17 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - ".github/dependabot.yml"
77
+ - ".github/workflows/codeql-analysis.yml"
78
+ - ".github/workflows/gem-build.yml"
79
+ - ".github/workflows/gem-push.yml"
76
80
  - ".ruby-gemset"
77
81
  - ".ruby-version"
82
+ - Dockerfile
78
83
  - Gemfile
79
84
  - Gemfile.lock
80
85
  - README.md
81
86
  - Rakefile
82
- - VERSION
83
87
  - app/assets/stylesheets/audited-timeline.scss
84
88
  - app/assets/stylesheets/audited-timeline/_audits.scss
85
89
  - app/assets/stylesheets/audited-timeline/_timeline.scss
@@ -92,6 +96,7 @@ files:
92
96
  - audited_timeline.gemspec
93
97
  - config/locales/audited_timeline.de.yml
94
98
  - config/locales/audited_timeline.en.yml
99
+ - docker-compose.yml
95
100
  - images/screenshot.png
96
101
  - lib/audited-timeline.rb
97
102
  - lib/audited_timeline.rb
@@ -119,8 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
124
  - !ruby/object:Gem::Version
120
125
  version: '0'
121
126
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.4.5
127
+ rubygems_version: 3.4.1
124
128
  signing_key:
125
129
  specification_version: 4
126
130
  summary: Frontent to audited
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.1.0