activeadmin-audit 0.1.2 → 0.1.4

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
2
  SHA1:
3
- metadata.gz: f2b060d0423ab708b35e493e0cd10d1d7525038b
4
- data.tar.gz: 5901e6f7fa2fa884ecaafd644a038a963f6d1d33
3
+ metadata.gz: 72d11f2f969b1d6c717ad63f768213cb3ce69362
4
+ data.tar.gz: bd519936732aa6bb13b65e1e3adc5d6456c9a5f7
5
5
  SHA512:
6
- metadata.gz: 05b2fdb9d7a18c3c314e039244101f0db75be0f76f0fb41a746125d7f80730fdb9e362f30dd050a369b38df4be37143eb0fec2cc7e6626dd15fd9ad2977a6cb4
7
- data.tar.gz: 8892514ec414c8535a6705a17927e6093b37073d896aab94ae596731785b67e8066e4bc6cd9f386f601ec582bf871ae0d8dd461a51c51e8076d614144f740785
6
+ metadata.gz: 1b6339452f8417cddf2ad2931ae68cdbda273196bfb4dba11ed3388959580c8de386e2010b2900f3c8365f6055f25f6e22f47cf7e063965a69843016651e68d1
7
+ data.tar.gz: 53e8e7803af612094027c50a96f5db0f37d58a6a87d8e6c9c3d1c66a0fd2d4f1ee52cb9b56ef8f1c1f137b70b05256fbff6b0900023a788d32804cd3496b0563
@@ -1,24 +1,18 @@
1
- sudo: false
1
+ ---
2
2
  language: ruby
3
-
4
3
  rvm:
5
- - 2.1.5
6
- - 2.2.4
7
- - 2.3.1
8
- - ruby-head
9
-
10
- matrix:
11
- allow_failures:
12
- - rvm: ruby-head
13
- fast_finish: true
14
-
15
- before_install: gem update --remote bundler
4
+ - 2.3.4
5
+ - 2.4.1
6
+ before_install:
7
+ - gem update --remote bundler
16
8
  install:
17
- - bundle install --retry=3
9
+ - bundle install --retry=3
18
10
  script:
19
- - bundle exec rake dummy:prepare
20
- - bundle exec rspec
21
-
11
+ - bundle exec rake dummy:prepare
12
+ - bundle exec rspec
13
+ gemfile:
14
+ - gemfiles/rails_4.2.9_active_admin_1.0.0_paper_trail_7.1.2.gemfile
15
+ - gemfiles/rails_5.1.2_active_admin_1.0.0_paper_trail_7.1.2.gemfile
22
16
  addons:
23
17
  code_climate:
24
- repo_token: fa6eecd14a238a6a4326b5b001bab6b0acf5170da237779800fa4935ad1c0026
18
+ repo_token: fa6eecd14a238a6a4326b5b001bab6b0acf5170da237779800fa4935ad1c0026
@@ -0,0 +1,44 @@
1
+ require 'yaml'
2
+
3
+ ruby_versions = %w(2.3.4 2.4.1)
4
+
5
+ rails_versions = %w(4.2.9 5.1.2)
6
+ activeadmin_versions = %w(1.0.0)
7
+ paper_trail_versions = %w(7.1.2)
8
+
9
+ rails_versions.each do |rails_version|
10
+ activeadmin_versions.each do |activeadmin_version|
11
+ paper_trail_versions.each do |paper_trail_version|
12
+ appraise "rails_#{rails_version}_active_admin_#{activeadmin_version}_paper_trail_#{paper_trail_version}" do
13
+ gem 'rails', rails_version
14
+ gem 'activeadmin', activeadmin_version
15
+ gem 'paper_trail', paper_trail_version
16
+ end
17
+ end
18
+ end
19
+ end
20
+
21
+ travis = ::YAML.dump(
22
+ 'language' => 'ruby',
23
+ 'rvm' => ruby_versions,
24
+ 'before_install' => [
25
+ 'gem update --remote bundler',
26
+ ],
27
+ 'install' => [
28
+ 'bundle install --retry=3'
29
+ ],
30
+ 'script' => [
31
+ 'bundle exec rake dummy:prepare',
32
+ 'bundle exec rspec',
33
+ ],
34
+ 'gemfile' => Dir.glob('gemfiles/*.gemfile'),
35
+ 'addons' => {
36
+ 'code_climate' => {
37
+ 'repo_token' => 'fa6eecd14a238a6a4326b5b001bab6b0acf5170da237779800fa4935ad1c0026'
38
+ }
39
+ }
40
+ )
41
+
42
+ ::File.open('.travis.yml', 'w+') do |file|
43
+ file.write(travis)
44
+ end
data/README.md CHANGED
@@ -43,6 +43,12 @@ The generator adds these core files, among others:
43
43
  config/initializers/active_admin_audit.rb
44
44
  ```
45
45
 
46
+ Then you have to install migrations to persist papper trails:
47
+
48
+ ```
49
+ rake active_admin_audit:install:migrations
50
+ ```
51
+
46
52
  ## Usage
47
53
 
48
54
  Copy and apply migrations
@@ -100,6 +106,15 @@ After checking out the repo, run `bin/setup` to install dependencies. You can al
100
106
 
101
107
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
102
108
 
109
+ We test this gem against different versions of `ActiveAdmin` using [appraisal](https://github.com/thoughtbot/appraisal) gem.
110
+ To regenerate gemfiles run:
111
+
112
+ $ appraisal install
113
+
114
+ To run specs against all versions:
115
+
116
+ $ appraisal rake spec
117
+
103
118
  ## Contributing
104
119
 
105
120
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/activeadmin-audit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -19,10 +19,11 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_dependency 'activeadmin', '>= 1.0.0.pre1'
23
- spec.add_dependency 'paper_trail', '~> 5.0'
22
+ spec.add_dependency 'activeadmin', '>= 1.0.0'
23
+ spec.add_dependency 'paper_trail', '>= 5.2.3'
24
24
  spec.add_dependency 'rails', '>= 4.0.0'
25
25
 
26
+ spec.add_development_dependency 'appraisal', '2.1.0'
26
27
  spec.add_development_dependency 'bundler', '~> 1.12'
27
28
  spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
28
29
  spec.add_development_dependency 'database_cleaner', '~> 1.5.0'
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "4.2.9"
6
+ gem "activeadmin", "1.0.0"
7
+ gem "paper_trail", "7.1.2"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,256 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ activeadmin-audit (0.1.4)
5
+ activeadmin (>= 1.0.0)
6
+ paper_trail (>= 5.2.3)
7
+ rails (>= 4.0.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (4.2.9)
13
+ actionpack (= 4.2.9)
14
+ actionview (= 4.2.9)
15
+ activejob (= 4.2.9)
16
+ mail (~> 2.5, >= 2.5.4)
17
+ rails-dom-testing (~> 1.0, >= 1.0.5)
18
+ actionpack (4.2.9)
19
+ actionview (= 4.2.9)
20
+ activesupport (= 4.2.9)
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.9)
26
+ activesupport (= 4.2.9)
27
+ 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.3)
31
+ activeadmin (1.0.0)
32
+ arbre (>= 1.1.1)
33
+ bourbon
34
+ coffee-rails
35
+ formtastic (~> 3.1)
36
+ formtastic_i18n
37
+ inherited_resources (~> 1.7)
38
+ jquery-rails
39
+ jquery-ui-rails
40
+ kaminari (>= 0.15, < 2.0)
41
+ railties (>= 4.2, < 5.2)
42
+ ransack (~> 1.3)
43
+ sass-rails
44
+ sprockets (< 4.1)
45
+ activejob (4.2.9)
46
+ activesupport (= 4.2.9)
47
+ globalid (>= 0.3.0)
48
+ activemodel (4.2.9)
49
+ activesupport (= 4.2.9)
50
+ builder (~> 3.1)
51
+ activerecord (4.2.9)
52
+ activemodel (= 4.2.9)
53
+ activesupport (= 4.2.9)
54
+ arel (~> 6.0)
55
+ activesupport (4.2.9)
56
+ i18n (~> 0.7)
57
+ minitest (~> 5.1)
58
+ thread_safe (~> 0.3, >= 0.3.4)
59
+ tzinfo (~> 1.1)
60
+ appraisal (2.1.0)
61
+ bundler
62
+ rake
63
+ thor (>= 0.14.0)
64
+ arbre (1.1.1)
65
+ activesupport (>= 3.0.0)
66
+ arel (6.0.4)
67
+ bourbon (4.3.4)
68
+ sass (~> 3.4)
69
+ thor (~> 0.19)
70
+ builder (3.2.3)
71
+ codeclimate-test-reporter (0.6.0)
72
+ simplecov (>= 0.7.1, < 1.0.0)
73
+ coffee-rails (4.2.2)
74
+ coffee-script (>= 2.2.0)
75
+ railties (>= 4.0.0)
76
+ coffee-script (2.4.1)
77
+ coffee-script-source
78
+ execjs
79
+ coffee-script-source (1.12.2)
80
+ concurrent-ruby (1.0.5)
81
+ database_cleaner (1.5.3)
82
+ diff-lcs (1.3)
83
+ docile (1.1.5)
84
+ erubis (2.7.0)
85
+ execjs (2.7.0)
86
+ factory_girl (4.8.0)
87
+ activesupport (>= 3.0.0)
88
+ factory_girl_rails (4.8.0)
89
+ factory_girl (~> 4.8.0)
90
+ railties (>= 3.0.0)
91
+ ffi (1.9.18)
92
+ formtastic (3.1.5)
93
+ actionpack (>= 3.2.13)
94
+ formtastic_i18n (0.6.0)
95
+ globalid (0.4.0)
96
+ activesupport (>= 4.2.0)
97
+ has_scope (0.7.1)
98
+ actionpack (>= 4.1, < 5.2)
99
+ activesupport (>= 4.1, < 5.2)
100
+ i18n (0.8.6)
101
+ inherited_resources (1.7.2)
102
+ actionpack (>= 3.2, < 5.2.x)
103
+ has_scope (~> 0.6)
104
+ railties (>= 3.2, < 5.2.x)
105
+ responders
106
+ jquery-rails (4.3.1)
107
+ rails-dom-testing (>= 1, < 3)
108
+ railties (>= 4.2.0)
109
+ thor (>= 0.14, < 2.0)
110
+ jquery-ui-rails (6.0.1)
111
+ railties (>= 3.2.16)
112
+ json (2.1.0)
113
+ kaminari (1.0.1)
114
+ activesupport (>= 4.1.0)
115
+ kaminari-actionview (= 1.0.1)
116
+ kaminari-activerecord (= 1.0.1)
117
+ kaminari-core (= 1.0.1)
118
+ kaminari-actionview (1.0.1)
119
+ actionview
120
+ kaminari-core (= 1.0.1)
121
+ kaminari-activerecord (1.0.1)
122
+ activerecord
123
+ kaminari-core (= 1.0.1)
124
+ kaminari-core (1.0.1)
125
+ loofah (2.0.3)
126
+ nokogiri (>= 1.5.9)
127
+ mail (2.6.6)
128
+ mime-types (>= 1.16, < 4)
129
+ mime-types (3.1)
130
+ mime-types-data (~> 3.2015)
131
+ mime-types-data (3.2016.0521)
132
+ mini_portile2 (2.2.0)
133
+ minitest (5.10.3)
134
+ nokogiri (1.8.0)
135
+ mini_portile2 (~> 2.2.0)
136
+ paper_trail (7.1.2)
137
+ activerecord (>= 4.0, < 5.2)
138
+ request_store (~> 1.1)
139
+ pg (0.18.4)
140
+ polyamorous (1.3.1)
141
+ activerecord (>= 3.0)
142
+ rack (1.6.8)
143
+ rack-test (0.6.3)
144
+ rack (>= 1.0)
145
+ rails (4.2.9)
146
+ actionmailer (= 4.2.9)
147
+ actionpack (= 4.2.9)
148
+ actionview (= 4.2.9)
149
+ activejob (= 4.2.9)
150
+ activemodel (= 4.2.9)
151
+ activerecord (= 4.2.9)
152
+ activesupport (= 4.2.9)
153
+ bundler (>= 1.3.0, < 2.0)
154
+ railties (= 4.2.9)
155
+ sprockets-rails
156
+ rails-deprecated_sanitizer (1.0.3)
157
+ activesupport (>= 4.2.0.alpha)
158
+ rails-dom-testing (1.0.8)
159
+ activesupport (>= 4.2.0.beta, < 5.0)
160
+ nokogiri (~> 1.6)
161
+ rails-deprecated_sanitizer (>= 1.0.1)
162
+ rails-html-sanitizer (1.0.3)
163
+ loofah (~> 2.0)
164
+ railties (4.2.9)
165
+ actionpack (= 4.2.9)
166
+ activesupport (= 4.2.9)
167
+ rake (>= 0.8.7)
168
+ thor (>= 0.18.1, < 2.0)
169
+ rake (10.5.0)
170
+ ransack (1.8.3)
171
+ actionpack (>= 3.0)
172
+ activerecord (>= 3.0)
173
+ activesupport (>= 3.0)
174
+ i18n
175
+ polyamorous (~> 1.3)
176
+ rb-fsevent (0.10.2)
177
+ rb-inotify (0.9.10)
178
+ ffi (>= 0.5.0, < 2)
179
+ request_store (1.3.2)
180
+ responders (2.4.0)
181
+ actionpack (>= 4.2.0, < 5.3)
182
+ railties (>= 4.2.0, < 5.3)
183
+ rspec (3.6.0)
184
+ rspec-core (~> 3.6.0)
185
+ rspec-expectations (~> 3.6.0)
186
+ rspec-mocks (~> 3.6.0)
187
+ rspec-core (3.6.0)
188
+ rspec-support (~> 3.6.0)
189
+ rspec-expectations (3.6.0)
190
+ diff-lcs (>= 1.2.0, < 2.0)
191
+ rspec-support (~> 3.6.0)
192
+ rspec-mocks (3.6.0)
193
+ diff-lcs (>= 1.2.0, < 2.0)
194
+ rspec-support (~> 3.6.0)
195
+ rspec-rails (3.6.1)
196
+ actionpack (>= 3.0)
197
+ activesupport (>= 3.0)
198
+ railties (>= 3.0)
199
+ rspec-core (~> 3.6.0)
200
+ rspec-expectations (~> 3.6.0)
201
+ rspec-mocks (~> 3.6.0)
202
+ rspec-support (~> 3.6.0)
203
+ rspec-support (3.6.0)
204
+ sass (3.5.1)
205
+ sass-listen (~> 4.0.0)
206
+ sass-listen (4.0.0)
207
+ rb-fsevent (~> 0.9, >= 0.9.4)
208
+ rb-inotify (~> 0.9, >= 0.9.7)
209
+ sass-rails (5.0.6)
210
+ railties (>= 4.0.0, < 6)
211
+ sass (~> 3.1)
212
+ sprockets (>= 2.8, < 4.0)
213
+ sprockets-rails (>= 2.0, < 4.0)
214
+ tilt (>= 1.1, < 3)
215
+ simplecov (0.15.0)
216
+ docile (~> 1.1.0)
217
+ json (>= 1.8, < 3)
218
+ simplecov-html (~> 0.10.0)
219
+ simplecov-html (0.10.2)
220
+ sprockets (3.7.1)
221
+ concurrent-ruby (~> 1.0)
222
+ rack (> 1, < 3)
223
+ sprockets-rails (3.2.1)
224
+ actionpack (>= 4.0)
225
+ activesupport (>= 4.0)
226
+ sprockets (>= 3.0.0)
227
+ temping (3.9.0)
228
+ activerecord (>= 3.1)
229
+ activesupport (>= 3.1)
230
+ thor (0.20.0)
231
+ thread_safe (0.3.6)
232
+ tilt (2.0.8)
233
+ tzinfo (1.2.3)
234
+ thread_safe (~> 0.1)
235
+
236
+ PLATFORMS
237
+ ruby
238
+
239
+ DEPENDENCIES
240
+ activeadmin (= 1.0.0)
241
+ activeadmin-audit!
242
+ appraisal (= 2.1.0)
243
+ bundler (~> 1.12)
244
+ codeclimate-test-reporter (~> 0.4)
245
+ database_cleaner (~> 1.5.0)
246
+ factory_girl_rails
247
+ paper_trail (= 7.1.2)
248
+ pg (~> 0.18.1)
249
+ rails (= 4.2.9)
250
+ rake (~> 10.0)
251
+ rspec (~> 3.3, >= 3.3.0)
252
+ rspec-rails (~> 3.3)
253
+ temping (~> 3.7, >= 3.3.0)
254
+
255
+ BUNDLED WITH
256
+ 1.15.4
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "5.1.2"
6
+ gem "activeadmin", "1.0.0"
7
+ gem "paper_trail", "7.1.2"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,263 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ activeadmin-audit (0.1.4)
5
+ activeadmin (>= 1.0.0)
6
+ paper_trail (>= 5.2.3)
7
+ rails (>= 4.0.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actioncable (5.1.2)
13
+ actionpack (= 5.1.2)
14
+ nio4r (~> 2.0)
15
+ websocket-driver (~> 0.6.1)
16
+ actionmailer (5.1.2)
17
+ actionpack (= 5.1.2)
18
+ actionview (= 5.1.2)
19
+ activejob (= 5.1.2)
20
+ mail (~> 2.5, >= 2.5.4)
21
+ rails-dom-testing (~> 2.0)
22
+ actionpack (5.1.2)
23
+ actionview (= 5.1.2)
24
+ activesupport (= 5.1.2)
25
+ rack (~> 2.0)
26
+ rack-test (~> 0.6.3)
27
+ rails-dom-testing (~> 2.0)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
+ actionview (5.1.2)
30
+ activesupport (= 5.1.2)
31
+ builder (~> 3.1)
32
+ erubi (~> 1.4)
33
+ rails-dom-testing (~> 2.0)
34
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
+ activeadmin (1.0.0)
36
+ arbre (>= 1.1.1)
37
+ bourbon
38
+ coffee-rails
39
+ formtastic (~> 3.1)
40
+ formtastic_i18n
41
+ inherited_resources (~> 1.7)
42
+ jquery-rails
43
+ jquery-ui-rails
44
+ kaminari (>= 0.15, < 2.0)
45
+ railties (>= 4.2, < 5.2)
46
+ ransack (~> 1.3)
47
+ sass-rails
48
+ sprockets (< 4.1)
49
+ activejob (5.1.2)
50
+ activesupport (= 5.1.2)
51
+ globalid (>= 0.3.6)
52
+ activemodel (5.1.2)
53
+ activesupport (= 5.1.2)
54
+ activerecord (5.1.2)
55
+ activemodel (= 5.1.2)
56
+ activesupport (= 5.1.2)
57
+ arel (~> 8.0)
58
+ activesupport (5.1.2)
59
+ concurrent-ruby (~> 1.0, >= 1.0.2)
60
+ i18n (~> 0.7)
61
+ minitest (~> 5.1)
62
+ tzinfo (~> 1.1)
63
+ appraisal (2.1.0)
64
+ bundler
65
+ rake
66
+ thor (>= 0.14.0)
67
+ arbre (1.1.1)
68
+ activesupport (>= 3.0.0)
69
+ arel (8.0.0)
70
+ bourbon (4.3.4)
71
+ sass (~> 3.4)
72
+ thor (~> 0.19)
73
+ builder (3.2.3)
74
+ codeclimate-test-reporter (0.6.0)
75
+ simplecov (>= 0.7.1, < 1.0.0)
76
+ coffee-rails (4.2.2)
77
+ coffee-script (>= 2.2.0)
78
+ railties (>= 4.0.0)
79
+ coffee-script (2.4.1)
80
+ coffee-script-source
81
+ execjs
82
+ coffee-script-source (1.12.2)
83
+ concurrent-ruby (1.0.5)
84
+ database_cleaner (1.5.3)
85
+ diff-lcs (1.3)
86
+ docile (1.1.5)
87
+ erubi (1.6.1)
88
+ execjs (2.7.0)
89
+ factory_girl (4.8.0)
90
+ activesupport (>= 3.0.0)
91
+ factory_girl_rails (4.8.0)
92
+ factory_girl (~> 4.8.0)
93
+ railties (>= 3.0.0)
94
+ ffi (1.9.18)
95
+ formtastic (3.1.5)
96
+ actionpack (>= 3.2.13)
97
+ formtastic_i18n (0.6.0)
98
+ globalid (0.4.0)
99
+ activesupport (>= 4.2.0)
100
+ has_scope (0.7.1)
101
+ actionpack (>= 4.1, < 5.2)
102
+ activesupport (>= 4.1, < 5.2)
103
+ i18n (0.8.6)
104
+ inherited_resources (1.7.2)
105
+ actionpack (>= 3.2, < 5.2.x)
106
+ has_scope (~> 0.6)
107
+ railties (>= 3.2, < 5.2.x)
108
+ responders
109
+ jquery-rails (4.3.1)
110
+ rails-dom-testing (>= 1, < 3)
111
+ railties (>= 4.2.0)
112
+ thor (>= 0.14, < 2.0)
113
+ jquery-ui-rails (6.0.1)
114
+ railties (>= 3.2.16)
115
+ json (2.1.0)
116
+ kaminari (1.0.1)
117
+ activesupport (>= 4.1.0)
118
+ kaminari-actionview (= 1.0.1)
119
+ kaminari-activerecord (= 1.0.1)
120
+ kaminari-core (= 1.0.1)
121
+ kaminari-actionview (1.0.1)
122
+ actionview
123
+ kaminari-core (= 1.0.1)
124
+ kaminari-activerecord (1.0.1)
125
+ activerecord
126
+ kaminari-core (= 1.0.1)
127
+ kaminari-core (1.0.1)
128
+ loofah (2.0.3)
129
+ nokogiri (>= 1.5.9)
130
+ mail (2.6.6)
131
+ mime-types (>= 1.16, < 4)
132
+ method_source (0.8.2)
133
+ mime-types (3.1)
134
+ mime-types-data (~> 3.2015)
135
+ mime-types-data (3.2016.0521)
136
+ mini_portile2 (2.2.0)
137
+ minitest (5.10.3)
138
+ nio4r (2.1.0)
139
+ nokogiri (1.8.0)
140
+ mini_portile2 (~> 2.2.0)
141
+ paper_trail (7.1.2)
142
+ activerecord (>= 4.0, < 5.2)
143
+ request_store (~> 1.1)
144
+ pg (0.18.4)
145
+ polyamorous (1.3.1)
146
+ activerecord (>= 3.0)
147
+ rack (2.0.3)
148
+ rack-test (0.6.3)
149
+ rack (>= 1.0)
150
+ rails (5.1.2)
151
+ actioncable (= 5.1.2)
152
+ actionmailer (= 5.1.2)
153
+ actionpack (= 5.1.2)
154
+ actionview (= 5.1.2)
155
+ activejob (= 5.1.2)
156
+ activemodel (= 5.1.2)
157
+ activerecord (= 5.1.2)
158
+ activesupport (= 5.1.2)
159
+ bundler (>= 1.3.0, < 2.0)
160
+ railties (= 5.1.2)
161
+ sprockets-rails (>= 2.0.0)
162
+ rails-dom-testing (2.0.3)
163
+ activesupport (>= 4.2.0)
164
+ nokogiri (>= 1.6)
165
+ rails-html-sanitizer (1.0.3)
166
+ loofah (~> 2.0)
167
+ railties (5.1.2)
168
+ actionpack (= 5.1.2)
169
+ activesupport (= 5.1.2)
170
+ method_source
171
+ rake (>= 0.8.7)
172
+ thor (>= 0.18.1, < 2.0)
173
+ rake (10.5.0)
174
+ ransack (1.8.3)
175
+ actionpack (>= 3.0)
176
+ activerecord (>= 3.0)
177
+ activesupport (>= 3.0)
178
+ i18n
179
+ polyamorous (~> 1.3)
180
+ rb-fsevent (0.10.2)
181
+ rb-inotify (0.9.10)
182
+ ffi (>= 0.5.0, < 2)
183
+ request_store (1.3.2)
184
+ responders (2.4.0)
185
+ actionpack (>= 4.2.0, < 5.3)
186
+ railties (>= 4.2.0, < 5.3)
187
+ rspec (3.6.0)
188
+ rspec-core (~> 3.6.0)
189
+ rspec-expectations (~> 3.6.0)
190
+ rspec-mocks (~> 3.6.0)
191
+ rspec-core (3.6.0)
192
+ rspec-support (~> 3.6.0)
193
+ rspec-expectations (3.6.0)
194
+ diff-lcs (>= 1.2.0, < 2.0)
195
+ rspec-support (~> 3.6.0)
196
+ rspec-mocks (3.6.0)
197
+ diff-lcs (>= 1.2.0, < 2.0)
198
+ rspec-support (~> 3.6.0)
199
+ rspec-rails (3.6.1)
200
+ actionpack (>= 3.0)
201
+ activesupport (>= 3.0)
202
+ railties (>= 3.0)
203
+ rspec-core (~> 3.6.0)
204
+ rspec-expectations (~> 3.6.0)
205
+ rspec-mocks (~> 3.6.0)
206
+ rspec-support (~> 3.6.0)
207
+ rspec-support (3.6.0)
208
+ sass (3.5.1)
209
+ sass-listen (~> 4.0.0)
210
+ sass-listen (4.0.0)
211
+ rb-fsevent (~> 0.9, >= 0.9.4)
212
+ rb-inotify (~> 0.9, >= 0.9.7)
213
+ sass-rails (5.0.6)
214
+ railties (>= 4.0.0, < 6)
215
+ sass (~> 3.1)
216
+ sprockets (>= 2.8, < 4.0)
217
+ sprockets-rails (>= 2.0, < 4.0)
218
+ tilt (>= 1.1, < 3)
219
+ simplecov (0.15.0)
220
+ docile (~> 1.1.0)
221
+ json (>= 1.8, < 3)
222
+ simplecov-html (~> 0.10.0)
223
+ simplecov-html (0.10.2)
224
+ sprockets (3.7.1)
225
+ concurrent-ruby (~> 1.0)
226
+ rack (> 1, < 3)
227
+ sprockets-rails (3.2.1)
228
+ actionpack (>= 4.0)
229
+ activesupport (>= 4.0)
230
+ sprockets (>= 3.0.0)
231
+ temping (3.9.0)
232
+ activerecord (>= 3.1)
233
+ activesupport (>= 3.1)
234
+ thor (0.20.0)
235
+ thread_safe (0.3.6)
236
+ tilt (2.0.8)
237
+ tzinfo (1.2.3)
238
+ thread_safe (~> 0.1)
239
+ websocket-driver (0.6.5)
240
+ websocket-extensions (>= 0.1.0)
241
+ websocket-extensions (0.1.2)
242
+
243
+ PLATFORMS
244
+ ruby
245
+
246
+ DEPENDENCIES
247
+ activeadmin (= 1.0.0)
248
+ activeadmin-audit!
249
+ appraisal (= 2.1.0)
250
+ bundler (~> 1.12)
251
+ codeclimate-test-reporter (~> 0.4)
252
+ database_cleaner (~> 1.5.0)
253
+ factory_girl_rails
254
+ paper_trail (= 7.1.2)
255
+ pg (~> 0.18.1)
256
+ rails (= 5.1.2)
257
+ rake (~> 10.0)
258
+ rspec (~> 3.3, >= 3.3.0)
259
+ rspec-rails (~> 3.3)
260
+ temping (~> 3.7, >= 3.3.0)
261
+
262
+ BUNDLED WITH
263
+ 1.15.4
@@ -16,7 +16,7 @@ module ActiveAdmin
16
16
  end
17
17
 
18
18
  ActiveAdmin.before_load do |config|
19
- config.before_filter :set_paper_trail_whodunnit
19
+ config.before_action :set_paper_trail_whodunnit
20
20
  end
21
21
  end
22
22
 
@@ -105,7 +105,7 @@ module ActiveAdmin
105
105
  end
106
106
 
107
107
  def cache_version_additional_objects_and_changes
108
- @version_additional_objects_and_changes_cache ||= paper_trail.merge_metadata({})
108
+ @version_additional_objects_and_changes_cache ||= paper_trail.merge_metadata_into({})
109
109
  end
110
110
 
111
111
  def clear_version_cache
@@ -130,4 +130,4 @@ module ActiveAdmin
130
130
  end
131
131
  end
132
132
  end
133
- end
133
+ end
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module Audit
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Emelyanov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2017-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.pre1
19
+ version: 1.0.0
20
20
  type: :runtime
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.0.0.pre1
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: paper_trail
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: 5.2.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: '5.0'
40
+ version: 5.2.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 4.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: appraisal
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 2.1.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -200,6 +214,7 @@ files:
200
214
  - ".gitignore"
201
215
  - ".rspec"
202
216
  - ".travis.yml"
217
+ - Appraisals
203
218
  - CODE_OF_CONDUCT.md
204
219
  - Gemfile
205
220
  - LICENSE.txt
@@ -217,6 +232,10 @@ files:
217
232
  - bin/rails
218
233
  - bin/setup
219
234
  - db/migrate/20141219113159_create_versions.rb
235
+ - gemfiles/rails_4.2.9_active_admin_1.0.0_paper_trail_7.1.2.gemfile
236
+ - gemfiles/rails_4.2.9_active_admin_1.0.0_paper_trail_7.1.2.gemfile.lock
237
+ - gemfiles/rails_5.1.2_active_admin_1.0.0_paper_trail_7.1.2.gemfile
238
+ - gemfiles/rails_5.1.2_active_admin_1.0.0_paper_trail_7.1.2.gemfile.lock
220
239
  - lib/active_admin/audit.rb
221
240
  - lib/active_admin/audit/configuration.rb
222
241
  - lib/active_admin/audit/controller_helper.rb
@@ -249,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
268
  version: '0'
250
269
  requirements: []
251
270
  rubyforge_project:
252
- rubygems_version: 2.6.8
271
+ rubygems_version: 2.6.13
253
272
  signing_key:
254
273
  specification_version: 4
255
274
  summary: PaperTrail based audit for ActiveAdmin