records_rip 0.4.0 → 0.4.1

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: 8fecd3e94adbd056f3f663df95e1b82cb833c8286df376b0429693d57b05b3e0
4
- data.tar.gz: 5640b2b8b6004984ecebfbaf2adbb6f8f25d38e094e1833cc3295748114c9c0c
3
+ metadata.gz: e0270e3f287af0c04f5cd1470d37b78eac09116476374a6b617a22d95d87aead
4
+ data.tar.gz: cbfa4725736248a0c01cf779c69107415bf891579b1378a712025059869bfd66
5
5
  SHA512:
6
- metadata.gz: 5357c054043a34603c920f8a48aca5f051bbecd276510187cbb094497725511f6bf4c7a0fdb7ec51fe7e8051244068512c25d046242bdc06e3471b3d9272b077
7
- data.tar.gz: e5bc1f6e9fea4caeb38a772592d965f5b8e28ea396902e73b470fce7b5765d6dbada047bede91e5d36e5a1d2f41f82adf6f47353dae29cf2dbcda1ebe18544f3
6
+ metadata.gz: 368bdf8d3323a631c3eec35125655c405e58694d1148282c9de69a8e44099a0e49de6e41b0ad91cdf4008357d971f4db4daf21009f601c37ee30ea6a3dbd8123
7
+ data.tar.gz: a4c42adb7a59b811acf1dbe10c8e23497a1101a70de305fd1c08c5d865d5a796338f85016b10060afea85ff16ff9fc1bd4b4bc2394a5e041739d2cd73d34f653
data/.travis.yml CHANGED
@@ -29,5 +29,20 @@ sudo: required
29
29
  before_install:
30
30
  - gem update bundler
31
31
 
32
+ gemfile:
33
+ - gemfiles/ar_4.2.gemfile
34
+ - gemfiles/ar_5.1.gemfile
35
+ - gemfiles/ar_5.2.gemfile
36
+ matrix:
37
+ exclude:
38
+ # optimization: don't test intermediate rubies (see above)
39
+ - rvm: 2.4.5
40
+ gemfile: gemfiles/ar_4.2.gemfile
41
+ - rvm: 2.4.5
42
+ gemfile: gemfiles/ar_5.1.gemfile
43
+ - rvm: 2.4.5
44
+ gemfile: gemfiles/ar_5.2.gemfile
45
+ fast_finish: true
46
+
32
47
  addons:
33
- postgresql: "9.4"
48
+ postgresql: "9.4"
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- records_rip (0.4.0)
5
- activesupport (>= 4.2, < 6.0)
4
+ records_rip (0.4.1)
5
+ activerecord (>= 4.2, < 6.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -20,7 +20,7 @@ GEM
20
20
  tzinfo (~> 1.1)
21
21
  arel (9.0.0)
22
22
  concurrent-ruby (1.1.4)
23
- i18n (1.2.0)
23
+ i18n (1.3.0)
24
24
  concurrent-ruby (~> 1.0)
25
25
  minitest (5.11.3)
26
26
  rake (12.3.2)
@@ -33,7 +33,6 @@ PLATFORMS
33
33
  ruby
34
34
 
35
35
  DEPENDENCIES
36
- activerecord
37
36
  bundler
38
37
  minitest
39
38
  rake
data/README.md CHANGED
@@ -15,6 +15,13 @@ Add this line to your application’s Gemfile:
15
15
  gem 'records_rip'
16
16
  ```
17
17
 
18
+ Add a tombs table to your database:
19
+
20
+ ```sh
21
+ rails generate records_rip:install
22
+ rake db:migrate
23
+ ```
24
+
18
25
  Add `rest_in_peace` to the models you want to visit the tomb.
19
26
 
20
27
  ```ruby
@@ -49,6 +56,12 @@ User.tomb(name: 'Great Smith').to_a
49
56
  # => [#<RecordsRip::Tomb id: 1, item_type: "User", item_id: 1, epitaph: "{\"id\"=>1, \"name\"=>\"Great Smith\"}">]
50
57
  ```
51
58
 
59
+ ## Greater libraries
60
+
61
+ If you need perfect audit logs, I recommend you to use paper_trail gem.
62
+
63
+ - [paper_trail](https://github.com/paper-trail-gem/paper_trail)
64
+
52
65
  ## Contributing
53
66
 
54
67
  Everyone is encouraged to help improve this project. Here are a few ways you can help:
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 4.2.10"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 5.1.5"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 5.2.1"
4
+
5
+ gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module RecordsRip
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/records_rip.gemspec CHANGED
@@ -31,11 +31,10 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ["lib"]
33
33
 
34
- spec.add_dependency "activesupport", [">= 4.2", "< 6.0"]
34
+ spec.add_dependency "activerecord", [">= 4.2", "< 6.0"]
35
35
 
36
36
  spec.add_development_dependency "bundler"
37
37
  spec.add_development_dependency "rake"
38
38
  spec.add_development_dependency "minitest"
39
- spec.add_development_dependency "activerecord"
40
39
  spec.add_development_dependency "sqlite3"
41
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: records_rip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ts-3156
@@ -11,7 +11,7 @@ cert_chain: []
11
11
  date: 2018-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activesupport
14
+ name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -72,20 +72,6 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
- - !ruby/object:Gem::Dependency
76
- name: activerecord
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
75
  - !ruby/object:Gem::Dependency
90
76
  name: sqlite3
91
77
  requirement: !ruby/object:Gem::Requirement
@@ -116,6 +102,9 @@ files:
116
102
  - Rakefile
117
103
  - bin/console
118
104
  - bin/setup
105
+ - gemfiles/ar_4.2.gemfile
106
+ - gemfiles/ar_5.1.gemfile
107
+ - gemfiles/ar_5.2.gemfile
119
108
  - lib/generators/records_rip/install/install_generator.rb
120
109
  - lib/generators/records_rip/install/templates/create_tombs.rb.erb
121
110
  - lib/records_rip.rb