archiving 0.4.1 → 0.4.4

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
2
  SHA256:
3
- metadata.gz: 5a4bc5f5c7e8a7ce1705038d689bbdf34ab24e0c25a6e1b8f0688b136281104d
4
- data.tar.gz: 4e75065f21a03f1880c2be564a404b4a51844e7714f0d19712ef69fed2617f9a
3
+ metadata.gz: 90b2f1ee68e8b73bac78ccca7108a4180e88d5945605b53d2ffe8774d0f2ada9
4
+ data.tar.gz: 0db83c970d605ee641fa892ba6e48c65ce97a2736d4ef0aa6d98c9195f27af9b
5
5
  SHA512:
6
- metadata.gz: 05dd8dd98757f8262f5446aa0b545e7b3969c0dfda0ee3051d19ee8f25dd6265b2f187108dba3c0bed4a9d9a1ec6c73b43b42e53325a15fe2eaf9d3693fd19b6
7
- data.tar.gz: 66042222f70b71aa49d7453858897fc33d760fe62ce5d26f2ad8174af87651b478b9e9e64f00070b1f6097800ea6264e48f0d6134a03805f8d7616201fa65341
6
+ metadata.gz: 647f62d0506c5fff2ee46bcfa7b66f45886b53956744d7fd324d2b99025bae8b949bc0f5770594630362122e4338f935e4cc16b44695efd8c2b11b712ad3b880
7
+ data.tar.gz: f0b3fd8fc39ffbfb686a394186c135b7f1e65bdd64741a7b19637b7603fc6f1b4513a6187074728f7896e57f35335ec01491f7f88582f7d4f56bc3ee4ca5f0e8
@@ -212,7 +212,7 @@ class ArchiveTableTest < ActiveSupport::TestCase
212
212
  end
213
213
 
214
214
  test "overriding database connection for archive" do
215
- assert_not_equal LogOther.connection_config, LogOther.archive.connection_config
215
+ assert_not_equal LogOther.connection, LogOther.archive.connection
216
216
  p1 = Post.create!(title: "Post 1", tag: "news")
217
217
  l1 = LogOther.create!(note: "Oh", post: p1)
218
218
  l1.archive!
@@ -1,6 +1,8 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- require 'rails/all'
3
+ require 'rails'
4
+ require 'active_record/railtie'
5
+ require 'rails/test_unit/railtie'
4
6
 
5
7
  # Require the gems listed in Gemfile, including any gems
6
8
  # you've limited to :test, :development, or :production.
@@ -22,7 +22,7 @@ other_development:
22
22
  # Do not set this db to the same as development or production.
23
23
  test:
24
24
  adapter: mysql2
25
- host: localhost
25
+ host: 127.0.0.1
26
26
  database: archiving_test
27
27
  username: root
28
28
  password:
@@ -31,11 +31,6 @@ Dummy::Application.configure do
31
31
  # Disable request forgery protection in test environment.
32
32
  config.action_controller.allow_forgery_protection = false
33
33
 
34
- # Tell Action Mailer not to deliver emails to the real world.
35
- # The :test delivery method accumulates sent emails in the
36
- # ActionMailer::Base.deliveries array.
37
- config.action_mailer.delivery_method = :test
38
-
39
34
  # Print deprecation notices to the stderr.
40
35
  config.active_support.deprecation = :stderr
41
36
 
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archiving
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Vangberg
8
8
  - Michael Kyed
9
- autorequire:
9
+ - Henrik Bjørnskov
10
+ autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2022-02-28 00:00:00.000000000 Z
13
+ date: 2024-01-24 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: activerecord
@@ -20,7 +21,7 @@ dependencies:
20
21
  version: '4.2'
21
22
  - - "<"
22
23
  - !ruby/object:Gem::Version
23
- version: '7.0'
24
+ version: '8.0'
24
25
  type: :runtime
25
26
  prerelease: false
26
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +31,7 @@ dependencies:
30
31
  version: '4.2'
31
32
  - - "<"
32
33
  - !ruby/object:Gem::Version
33
- version: '7.0'
34
+ version: '8.0'
34
35
  - !ruby/object:Gem::Dependency
35
36
  name: mysql2
36
37
  requirement: !ruby/object:Gem::Requirement
@@ -54,7 +55,7 @@ dependencies:
54
55
  version: '4.2'
55
56
  - - "<"
56
57
  - !ruby/object:Gem::Version
57
- version: '7.0'
58
+ version: '8.0'
58
59
  type: :development
59
60
  prerelease: false
60
61
  version_requirements: !ruby/object:Gem::Requirement
@@ -64,21 +65,7 @@ dependencies:
64
65
  version: '4.2'
65
66
  - - "<"
66
67
  - !ruby/object:Gem::Version
67
- version: '7.0'
68
- - !ruby/object:Gem::Dependency
69
- name: jquery-rails
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: '0'
75
- type: :development
76
- prerelease: false
77
- version_requirements: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: '0'
68
+ version: '8.0'
82
69
  - !ruby/object:Gem::Dependency
83
70
  name: rake
84
71
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +110,7 @@ dependencies:
123
110
  version: '0'
124
111
  description: Archiving aged records to archive table
125
112
  email:
126
- - teknik@firmafon.dk
113
+ - teknik@relatel.dk
127
114
  executables: []
128
115
  extensions: []
129
116
  extra_rdoc_files: []
@@ -189,7 +176,7 @@ files:
189
176
  homepage: https://github.com/firmafon/archiving
190
177
  licenses: []
191
178
  metadata: {}
192
- post_install_message:
179
+ post_install_message:
193
180
  rdoc_options: []
194
181
  require_paths:
195
182
  - lib
@@ -204,59 +191,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
191
  - !ruby/object:Gem::Version
205
192
  version: '0'
206
193
  requirements: []
207
- rubygems_version: 3.1.6
208
- signing_key:
194
+ rubygems_version: 3.3.26
195
+ signing_key:
209
196
  specification_version: 4
210
197
  summary: MySQL Archive Tables
211
198
  test_files:
199
+ - test/archive_table_test.rb
212
200
  - test/archiving_test.rb
213
- - test/dummy/app/models/postrw.rb
214
- - test/dummy/app/models/log_other.rb
201
+ - test/dummy/README.rdoc
202
+ - test/dummy/Rakefile
203
+ - test/dummy/app/assets/javascripts/application.js
204
+ - test/dummy/app/assets/stylesheets/application.css
205
+ - test/dummy/app/controllers/application_controller.rb
206
+ - test/dummy/app/helpers/application_helper.rb
215
207
  - test/dummy/app/models/log_day.rb
216
208
  - test/dummy/app/models/log_line.rb
209
+ - test/dummy/app/models/log_other.rb
217
210
  - test/dummy/app/models/post.rb
218
- - test/dummy/app/controllers/application_controller.rb
211
+ - test/dummy/app/models/postrw.rb
219
212
  - test/dummy/app/views/layouts/application.html.erb
220
- - test/dummy/app/assets/javascripts/application.js
221
- - test/dummy/app/assets/stylesheets/application.css
222
- - test/dummy/app/helpers/application_helper.rb
223
- - test/dummy/test/unit/post_test.rb
224
- - test/dummy/bin/rake
225
213
  - test/dummy/bin/bundle
226
214
  - test/dummy/bin/rails
227
- - test/dummy/config/routes.rb
228
- - test/dummy/config/locales/en.yml
229
- - test/dummy/config/environments/production.rb
230
- - test/dummy/config/environments/development.rb
231
- - test/dummy/config/environments/test.rb
232
- - test/dummy/config/environment.rb
215
+ - test/dummy/bin/rake
233
216
  - test/dummy/config/application.rb
234
- - test/dummy/config/database.yml
235
217
  - test/dummy/config/boot.rb
218
+ - test/dummy/config/database.yml
219
+ - test/dummy/config/environment.rb
220
+ - test/dummy/config/environments/development.rb
221
+ - test/dummy/config/environments/production.rb
222
+ - test/dummy/config/environments/test.rb
236
223
  - test/dummy/config/initializers/backtrace_silencers.rb
237
- - test/dummy/config/initializers/mime_types.rb
238
224
  - test/dummy/config/initializers/filter_parameter_logging.rb
225
+ - test/dummy/config/initializers/inflections.rb
226
+ - test/dummy/config/initializers/mime_types.rb
227
+ - test/dummy/config/initializers/secret_token.rb
239
228
  - test/dummy/config/initializers/session_store.rb
240
229
  - test/dummy/config/initializers/wrap_parameters.rb
241
- - test/dummy/config/initializers/secret_token.rb
242
- - test/dummy/config/initializers/inflections.rb
230
+ - test/dummy/config/locales/en.yml
231
+ - test/dummy/config/routes.rb
243
232
  - test/dummy/config.ru
244
- - test/dummy/script/rails
245
- - test/dummy/Rakefile
246
- - test/dummy/public/favicon.ico
247
- - test/dummy/public/422.html
248
- - test/dummy/public/500.html
249
- - test/dummy/public/404.html
250
- - test/dummy/db/schema.rb
251
- - test/dummy/db/migrate/20140414124125_create_postable_on_log_day.rb
252
- - test/dummy/db/migrate/20190711112558_create_postrws.rb
253
233
  - test/dummy/db/migrate/20140220134827_create_posts.rb
254
- - test/dummy/db/migrate/20161103093656_create_log_other.rb
234
+ - test/dummy/db/migrate/20140220140852_posts_archive.rb
235
+ - test/dummy/db/migrate/20140220140952_posts_tag.rb
255
236
  - test/dummy/db/migrate/20140317201702_create_logs.rb
237
+ - test/dummy/db/migrate/20140414124125_create_postable_on_log_day.rb
238
+ - test/dummy/db/migrate/20161103093656_create_log_other.rb
256
239
  - test/dummy/db/migrate/20161103100644_create_log_other_archive.rb
257
- - test/dummy/db/migrate/20140220140952_posts_tag.rb
258
- - test/dummy/db/migrate/20140220140852_posts_archive.rb
259
- - test/dummy/README.rdoc
240
+ - test/dummy/db/migrate/20190711112558_create_postrws.rb
241
+ - test/dummy/db/schema.rb
242
+ - test/dummy/public/404.html
243
+ - test/dummy/public/422.html
244
+ - test/dummy/public/500.html
245
+ - test/dummy/public/favicon.ico
246
+ - test/dummy/script/rails
247
+ - test/dummy/test/unit/post_test.rb
260
248
  - test/migrations_test.rb
261
- - test/archive_table_test.rb
262
249
  - test/test_helper.rb