lite-archive 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: cea659ac104f7809310d6f98631349067b942c6c5b9c2fcbbec3c387863ebf8a
4
- data.tar.gz: '006095e6223f4abbdd48c6c36ccfb8b955b0d8665ae793674b9f6db4ec46ae08'
3
+ metadata.gz: 6ae94a3221795e257a1006b97f1767d323e6ab228d8db1e96f058aa7543c7bfb
4
+ data.tar.gz: 0e32473ec68a788d6b97140e5ca38c70b5bc41f80f64afc63b76cf771b551aff
5
5
  SHA512:
6
- metadata.gz: c388d87391c0a0dd4e55d072fddb75663ab537e740ad97da3bb4dbdfc2a108db952f2bc024a63ba500426eaac1b31de18bf18786fddc58b8e9c75645bd5b121d
7
- data.tar.gz: 4d8e2ae754e208b3dc35b4906e96d6b6cad160299d5dc0ba2250386038aae9f47b188d6b539c55e997871b48853c68685dcd295eb6835c7ed29f8804420f13da
6
+ metadata.gz: 5433996f33421d704bcf3d38edf9f80569166a2d792247e099e279b1bf62269471a4f47f59246cf5dd003f4b06cd7baf19d26c04b9ad1fc20cd85a7fbf78cc8a
7
+ data.tar.gz: 27823bf54b46c332963f8a1d768742bb4c2f570112312e2aeca268bc1735c3003867b08077cc22c98700a7ed62c031bb87cc63a4607a6cf6857ce7d0bf26c192
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
+ ## [1.0.2] - 2019-07-08
9
+ ### Added
10
+ - Require rails/railtie in railtie
11
+
8
12
  ## [1.0.1] - 2019-07-01
9
13
  ### Changed
10
14
  - Rename `timestamp` to `archival_timestamp`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-archive (1.0.1)
4
+ lite-archive (1.0.2)
5
5
  activerecord
6
6
  activesupport
7
7
 
data/README.md CHANGED
@@ -49,17 +49,23 @@ An `archived_at` column must be added to tables where you do not want records de
49
49
  If the table does not have this column, records will be destroy instead of archived.
50
50
 
51
51
  ```ruby
52
- class AddArchivedAtColumns < ActiveRecord::Migration
52
+ class AddArchivedAtColumn < ActiveRecord::Migration
53
53
  def change
54
54
  # Adds archived_at automatically (if all_records_archivable is set to true)
55
55
  t.timestamp
56
56
 
57
+ # - or -
58
+
57
59
  # Adds archived_at timestamp
58
60
  t.timestamp archive: true
59
61
 
62
+ # - or -
63
+
60
64
  # Does NOT add archived_at timestamp
61
65
  t.timestamp archive: false
62
66
 
67
+ # - or -
68
+
63
69
  # Manual column (null constraint must be false)
64
70
  add_column :your_model, :archived_at, :datetime
65
71
  end
@@ -103,7 +109,7 @@ User.unarchived.all #=> Returns only unarchived records
103
109
 
104
110
  ## Port
105
111
 
106
- `Lite::Archive` is compatible port of [ActiveArchive](https://github.com/drexed/active_archive).
112
+ `Lite::Archive` is a compatible port of [ActiveArchive](https://github.com/drexed/active_archive).
107
113
 
108
114
  Switching is as easy as renaming `ActiveArchive` to `Lite::Archive`.
109
115
 
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'rails/railtie'
4
+
3
5
  module Lite
4
6
  module Archive
5
7
  class Railtie < ::Rails::Railtie
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Archive
5
5
 
6
- VERSION ||= '1.0.1'
6
+ VERSION ||= '1.0.2'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-01 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord