dumped_railers 0.4.1 → 0.5.0

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: ad9f2b4ac74c2d926442a9292907bf0201cfe2dc01f48e6a1c115514360b730a
4
- data.tar.gz: 515e61e954e02489ae21218f121e593389d1f1602ad5c532fcc53e02ae112237
3
+ metadata.gz: 449991bfd3b66c55b2892fb55ba182ef4c6dfcfff70a5a2e91ca866b4482adfe
4
+ data.tar.gz: 680b841f7540bf6ff56b786109bde4212f71383ff6cb1147a156a76a832e6710
5
5
  SHA512:
6
- metadata.gz: 0fd8c272b5c0f630bc08ec446ada9d1bdb96eeeb353d3c1bd20df515e045a157508070eba600fbcf3e927c804a2fe4e1b18307210d19067f961eeeaa26729a83
7
- data.tar.gz: adf932812767e149015efafc1007ba069f88001304601538046146137abe4ab9aa3c686948140e122713237221f68b73f085367a06b49bfcbd162585aa0d880f
6
+ metadata.gz: 8ba925ee06f3769d74e93cf20b508a01fb8cf1809792525b8f2b506c8c726187223b1b1977f015060daef6bd6fe54b309cbf64df812b143422c6133f10f3ca24
7
+ data.tar.gz: ba3bc362b0642c5c77b2a931ac5b32bf134ff841fd3bee868e21df1a2343b7249252f64234185664223311a2156ce87c2b679aa73975f88370ebf2795ed18dff
@@ -0,0 +1,26 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ fail-fast: true
12
+ matrix:
13
+ ruby_version: ['3.3', '3.2']
14
+ rails_version: ['7.2', '7.1', '7.0', '6.1']
15
+ env:
16
+ BUNDLE_GEMFILE: gemfiles/Gemfile.rails_${{ matrix.rails_version }}
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby_version }}
24
+ bundler-cache: true
25
+ rubygems: 'latest'
26
+ - run: bundle exec rake spec
data/CHANGELOG.md CHANGED
@@ -54,3 +54,11 @@
54
54
  - Preprocessors now require arguments (`model`, `attributes`) in this order. Before version < 0.4, it was (`attributes`, `model`)
55
55
  - Attributes needs to be updated destructively within preprocessors. Return values are no longer required reflect the changes.
56
56
 
57
+ ## [0.4.1]
58
+ ### Fixed
59
+ - Run all the `before` callbacks before any of the record import starts, `after` callbacks after all the import.
60
+
61
+ ## [0.5.0]
62
+ ### Changed
63
+ - require std gems (e.g. ostruct, forwardable). Users of dumped_railers are no longer need to require them.
64
+ - Added CI support against Ruby 3.3, 3.2, together with Rails 7.x, while dropping Ruby < 3.2, Rails < 6.1
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # DumpedRailers <img src='https://user-images.githubusercontent.com/23026542/101830310-aaf10000-3b77-11eb-9e0a-d14e45b27760.png' width=40>
2
- [![Build Status](https://travis-ci.com/fursich/dumped_railers.svg?branch=main)](https://travis-ci.com/fursich/dumped_railers) [![Gem Version](https://badge.fury.io/rb/dumped_railers.svg)](https://badge.fury.io/rb/dumped_railers)
2
+ [![Build Status](https://github.com/fursich/dumped_railers/actions/workflows/ci.yml/badge.svg)](https://github.com/fursich/dumped_railers/actions/workflows/ci.yml/badge.svg) [![Gem Version](https://badge.fury.io/rb/dumped_railers.svg)](https://badge.fury.io/rb/dumped_railers)
3
3
 
4
4
  Helping you take a snapshot of ActiveRecord models in Rails-compatible fixture format, and re-importing them wherever necessary without destroying current data you have.
5
5
 
@@ -26,11 +26,11 @@ Gem::Specification.new do |spec|
26
26
  spec.require_paths = ['lib']
27
27
 
28
28
  spec.add_development_dependency 'bundler', '~> 2.0'
29
- spec.add_development_dependency 'rake', '~> 12.3.3'
30
- spec.add_development_dependency 'rspec', '~> 3.10'
29
+ spec.add_development_dependency 'rake'
30
+ spec.add_development_dependency 'rspec'
31
31
  spec.add_development_dependency 'sqlite3'
32
- spec.add_development_dependency 'activerecord', '>= 5.2'
33
- spec.add_development_dependency 'database_cleaner-active_record', '~> 1.8'
32
+ spec.add_development_dependency 'activerecord'
33
+ spec.add_development_dependency 'database_cleaner-active_record', '~> 2.0'
34
34
  spec.add_development_dependency 'pry'
35
35
  spec.add_development_dependency 'pry-byebug'
36
36
  spec.add_development_dependency 'pry-doc'
@@ -1,6 +1,7 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in dumped_railers.gemspec
4
- gem 'activerecord', '6.1.1'
4
+ gem 'activerecord', '6.1.7'
5
+ gem 'sqlite3', '~> 1.5'
5
6
 
6
7
  gemspec path: '../'
@@ -1,6 +1,7 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in dumped_railers.gemspec
4
- gem 'activerecord', '5.2.4.4'
4
+ gem 'activerecord', '7.0.8'
5
+ gem 'sqlite3', '~> 1.7'
5
6
 
6
7
  gemspec path: '../'
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in dumped_railers.gemspec
4
+ gem 'activerecord', '~> 7.1.0'
5
+ gem 'sqlite3', '~> 1.7'
6
+
7
+ gemspec path: '../'
@@ -1,6 +1,7 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in dumped_railers.gemspec
4
- gem 'activerecord', '6.0.3.4'
4
+ gem 'activerecord', '7.2.1'
5
+ gem 'sqlite3', '~> 1.7'
5
6
 
6
7
  gemspec path: '../'
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'forwardable'
4
+ require 'ostruct'
3
5
  module DumpedRailers
4
6
  module Configuration
5
7
  extend Forwardable
@@ -1,3 +1,3 @@
1
1
  module DumpedRailers
2
- VERSION = '0.4.1'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumped_railers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koji Onishi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-25 00:00:00.000000000 Z
11
+ date: 2024-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,30 +28,30 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 12.3.3
33
+ version: '0'
34
34
  type: :development
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: 12.3.3
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.10'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.10'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '5.2'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '5.2'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: database_cleaner-active_record
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.8'
89
+ version: '2.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.8'
96
+ version: '2.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -145,9 +145,9 @@ executables: []
145
145
  extensions: []
146
146
  extra_rdoc_files: []
147
147
  files:
148
+ - ".github/workflows/ci.yml"
148
149
  - ".gitignore"
149
150
  - ".rspec"
150
- - ".travis.yml"
151
151
  - CHANGELOG.md
152
152
  - Gemfile
153
153
  - LICENSE.txt
@@ -156,9 +156,10 @@ files:
156
156
  - bin/console
157
157
  - bin/setup
158
158
  - dumped_railers.gemspec
159
- - gemfiles/Gemfile.rails_5.2
160
- - gemfiles/Gemfile.rails_6.0
161
159
  - gemfiles/Gemfile.rails_6.1
160
+ - gemfiles/Gemfile.rails_7.0
161
+ - gemfiles/Gemfile.rails_7.1
162
+ - gemfiles/Gemfile.rails_7.2
162
163
  - lib/dumped_railers.rb
163
164
  - lib/dumped_railers/configuration.rb
164
165
  - lib/dumped_railers/dump.rb
@@ -179,7 +180,7 @@ metadata:
179
180
  homepage_uri: https://github.com/fursich/dumped_railers
180
181
  source_code_uri: https://github.com/fursich/dumped_railers
181
182
  changelog_uri: https://github.com/fursich/dumped_railers/CHANGELOG.md
182
- post_install_message:
183
+ post_install_message:
183
184
  rdoc_options: []
184
185
  require_paths:
185
186
  - lib
@@ -194,8 +195,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
195
  - !ruby/object:Gem::Version
195
196
  version: '0'
196
197
  requirements: []
197
- rubygems_version: 3.1.4
198
- signing_key:
198
+ rubygems_version: 3.5.11
199
+ signing_key:
199
200
  specification_version: 4
200
201
  summary: A flexible fixture importer/exporter, that can transport ActiveRecord data
201
202
  in fixture format
data/.travis.yml DELETED
@@ -1,17 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- before_install: gem install bundler
5
- rvm:
6
- - 3.0.0
7
- - 2.7.2
8
- - 2.6.6
9
- - 2.5.8
10
- gemfile:
11
- - gemfiles/Gemfile.rails_6.1
12
- - gemfiles/Gemfile.rails_6.0
13
- - gemfiles/Gemfile.rails_5.2
14
- jobs:
15
- exclude:
16
- - rvm: 3.0.0
17
- gemfile: gemfiles/Gemfile.rails_5.2