paper_trail_history 0.1.2 → 0.1.3

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: 610995c7d553d9d0297dd185308472f16747173affa787d2fc31bcac0fd08707
4
- data.tar.gz: 2537b34e9d014b62071d700f8ff002970993ec2ca7adb69d60071faf21b3ca14
3
+ metadata.gz: 8b3e54f1afaacc531556a2a10d0bfde605e5e8e9bc02c4571d11d5fd1349cd00
4
+ data.tar.gz: e0f5777f1c40623e7ffa1cedff478b3b850c47e1418a1c52c4658b071c1a59a0
5
5
  SHA512:
6
- metadata.gz: d21d583f1bd7d035c751c8362de1d77e49df19d1a01970e8fd49c973f9c98f84451c7fcbca8a19ec2d712b37c4a4a85600cb5776814813f8b891e7bceef2e010
7
- data.tar.gz: cf3bf56a5e65c21281bef09e298ea1038af99c39cf5899675adcf9dbe910a23591229f5b92e7e357461f2dc37155071454ba9bf7cb2b86c5b7b4a94e3e76391a
6
+ metadata.gz: 82be7c5bab02749ab38277d18a9b2d7062100eaed096e80a2d495c6f820f066faf0afe69742ff8022387998af446960bdd815b360d0676453cf4cd734b082ffc
7
+ data.tar.gz: b6870227f27cac3e3cfe18c61d5e3386453b2874f2840843119e20fa2a1c945f48b5ae980e77546b8261997eb91d18321ace95b2b8d83bee82481268feb59ac9
data/README.md CHANGED
@@ -37,7 +37,7 @@ end
37
37
  ## Prerequisites
38
38
 
39
39
  This engine requires:
40
- - Rails >= 8.0.2
40
+ - Rails >= 7.2
41
41
  - PaperTrail >= 15.0 (configured with `has_paper_trail` in your models)
42
42
 
43
43
  Make sure you have PaperTrail properly configured in your Rails application before using this engine.
@@ -89,7 +89,24 @@ You can restore any version (except create events) by:
89
89
 
90
90
  ## Development
91
91
 
92
- ### Setting up the Test Environment
92
+ ### Quick Start
93
+
94
+ After cloning the repository, run the setup script to get started:
95
+
96
+ ```bash
97
+ # Automated setup - installs dependencies, sets up database, runs tests
98
+ bin/setup
99
+ ```
100
+
101
+ This script will:
102
+ - Install bundler and project dependencies
103
+ - Set up the test dummy app with database and seed data
104
+ - Run initial tests to verify everything works
105
+ - Run the linter to check code quality
106
+
107
+ ### Manual Setup (Alternative)
108
+
109
+ If you prefer manual setup:
93
110
 
94
111
  ```bash
95
112
  # Install dependencies
@@ -97,9 +114,9 @@ bundle install
97
114
 
98
115
  # Set up test database with sample data
99
116
  cd test/dummy
100
- bundle exec rails db:create RAILS_ENV=test
101
- bundle exec rails db:migrate RAILS_ENV=test
102
- bundle exec rails db:seed RAILS_ENV=test
117
+ bundle install --gemfile=../../Gemfile
118
+ bundle exec rails db:prepare
119
+ bundle exec rails db:seed
103
120
  cd ../..
104
121
  ```
105
122
 
@@ -140,7 +157,10 @@ bundle exec rake test TEST="test/integration/**/*_test.rb"
140
157
  The `test/dummy` directory contains a full Rails application with sample models and data for testing:
141
158
 
142
159
  ```bash
143
- # Start the development server
160
+ # Start the development server (from project root)
161
+ bin/dummy
162
+
163
+ # Alternative: manual approach
144
164
  cd test/dummy && bundle exec rails server
145
165
 
146
166
  # Visit the engine interface
@@ -158,9 +178,9 @@ The dummy app includes:
158
178
  For comprehensive compatibility testing, use the provided Gemfiles:
159
179
 
160
180
  ```bash
161
- # Test against Rails 7.1
162
- BUNDLE_GEMFILE=gemfiles/rails_7.1.gemfile bundle install
163
- BUNDLE_GEMFILE=gemfiles/rails_7.1.gemfile bundle exec rake test
181
+ # Test against Rails 7.2
182
+ BUNDLE_GEMFILE=gemfiles/rails_7.2.gemfile bundle install
183
+ BUNDLE_GEMFILE=gemfiles/rails_7.2.gemfile bundle exec rake test
164
184
 
165
185
  # Test against Rails 8.0
166
186
  BUNDLE_GEMFILE=gemfiles/rails_8.0.gemfile bundle install
@@ -186,3 +206,7 @@ The project uses GitHub Actions to test against multiple Ruby and Rails versions
186
206
  ## License
187
207
 
188
208
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
209
+
210
+ ---
211
+
212
+ Kindly supported by [aifinyo AG](https://aifinyo.de)
@@ -14,7 +14,7 @@
14
14
  </head>
15
15
  <body>
16
16
  <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
17
- <div class="container">
17
+ <div class="container-fluid">
18
18
  <%= link_to "Paper Trail History", root_path, class: "navbar-brand" %>
19
19
 
20
20
  <div class="navbar-nav ms-auto">
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  </nav>
25
25
 
26
- <div class="container mt-4">
26
+ <div class="container-fluid mt-4">
27
27
  <% if notice %>
28
28
  <div class="alert alert-success alert-dismissible fade show" role="alert">
29
29
  <%= notice %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PaperTrailHistory
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_trail_history
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Deutscher
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-08-07 00:00:00.000000000 Z
10
+ date: 2025-08-13 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: paper_trail