simple_data_migrations 0.2.2 → 0.3.0

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: 5a9dab9a1490896394e1bc6e7928a4afc584724ad5751459e5f66f0186ed5218
4
- data.tar.gz: f95e605165f0884ce79dab15876a86f03bb227f8108bd25116fdae7b6f2b6ea8
3
+ metadata.gz: be7681c592f7a43abcce4f3d753c1bedea1be3b24b34c9e30390c80374b9b746
4
+ data.tar.gz: 551596458fd05cb34d613e27f8a5922663b3323fc5e7e35c356e5daf0287a35f
5
5
  SHA512:
6
- metadata.gz: b4faa8b9514997aacee39ce38cf52399a6a66699068e96d15ba52cec47fe8a9d74c46a7dae241ee20fd085db978eba44e473c1b9e7eb08e17f45c0ab68403951
7
- data.tar.gz: bfed665de55dd220191f14fc2c18f04d2cc9bba72d83a0b070e054f56f60ad4f82af83f1d45eed9e12a95da8db9610009b34e26909489cbf677da4c9a42e13ba
6
+ metadata.gz: 303bdda9fd8839006426dabf66dc102738cd9d8996766169143becc800fb6ce0716793acfc6917842288330b92e9c6d5030cb19c329fccdba8146df84e40b558
7
+ data.tar.gz: 7cfb19e3bb1be193a6f7b856a9830f4109e8f40a9a3712f8b39c875d94743fd161f2fb42b2c81fd846c56c3b933bbb8726b8e0127bfc40bd5b53dfd3f52212db
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.3.0] - 2025-10-22
2
+
3
+ - Removed benchmark gem dependency
4
+
1
5
  ## [0.2.2] - 2022-01-11
2
6
 
3
7
  - Fixed migration salt value
data/Gemfile CHANGED
@@ -5,5 +5,5 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in simple_data_migrations.gemspec
6
6
  gemspec
7
7
 
8
- gem "rake", "~> 13.0"
9
- gem "minitest", "~> 5.0"
8
+ gem "rake", ">= 13.0"
9
+ gem "minitest", ">= 5.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,58 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ simple_data_migrations (0.3.0)
5
+ activerecord (>= 6.0)
6
+ thor (>= 1.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (8.1.0)
12
+ activesupport (= 8.1.0)
13
+ activerecord (8.1.0)
14
+ activemodel (= 8.1.0)
15
+ activesupport (= 8.1.0)
16
+ timeout (>= 0.4.0)
17
+ activesupport (8.1.0)
18
+ base64
19
+ bigdecimal
20
+ concurrent-ruby (~> 1.0, >= 1.3.1)
21
+ connection_pool (>= 2.2.5)
22
+ drb
23
+ i18n (>= 1.6, < 2)
24
+ json
25
+ logger (>= 1.4.2)
26
+ minitest (>= 5.1)
27
+ securerandom (>= 0.3)
28
+ tzinfo (~> 2.0, >= 2.0.5)
29
+ uri (>= 0.13.1)
30
+ base64 (0.3.0)
31
+ bigdecimal (3.3.1)
32
+ concurrent-ruby (1.3.5)
33
+ connection_pool (2.5.4)
34
+ drb (2.2.3)
35
+ i18n (1.14.7)
36
+ concurrent-ruby (~> 1.0)
37
+ json (2.15.1)
38
+ logger (1.7.0)
39
+ minitest (5.26.0)
40
+ rake (13.3.0)
41
+ securerandom (0.4.1)
42
+ thor (1.4.0)
43
+ timeout (0.4.3)
44
+ tzinfo (2.0.6)
45
+ concurrent-ruby (~> 1.0)
46
+ uri (1.0.4)
47
+
48
+ PLATFORMS
49
+ ruby
50
+ x86_64-linux
51
+
52
+ DEPENDENCIES
53
+ minitest (>= 5.0)
54
+ rake (>= 13.0)
55
+ simple_data_migrations!
56
+
57
+ BUNDLED WITH
58
+ 2.7.2
data/README.md CHANGED
@@ -16,7 +16,7 @@ Install by creating db migration file:
16
16
 
17
17
  `bin/rails generate simple_data_migrations:install` and then run `bin/rails db:migrate`
18
18
 
19
- Generate sample data migration file by `bin/rails generate simple_data_migrations:template`
19
+ Generate sample data migration file by `bin/rails generate simple_data_migrations:template migration-name`
20
20
 
21
21
  Status can be displayed by `bin/rails data:migrate:status`
22
22
  And executed by `bin/rails data:migrate`
@@ -29,7 +29,9 @@ In case of multiple concurrent task invocations, the first run will succeed but
29
29
 
30
30
  ## Development
31
31
 
32
- TODO: add configuration
32
+ TODO:
33
+ * add configuration
34
+ * add tests
33
35
 
34
36
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
35
37
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleDataMigrations
4
- VERSION = "0.2.2"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "benchmark"
4
3
  require "thor/shell/basic"
5
4
 
6
5
  require_relative "simple_data_migrations/version"
@@ -37,10 +36,12 @@ module SimpleDataMigrations
37
36
 
38
37
  non_run_scripts.each do |filename|
39
38
  Thor::Shell::Basic.new.say("Running data migration: #{filename}")
40
- time = Benchmark.measure do
41
- load Utils.root.join(filename)
42
- end
43
- measure = "%.4fs" % time.real
39
+
40
+ started_at = Process.clock_gettime(Process::CLOCK_MONOTONIC)
41
+ load Utils.root.join(filename)
42
+ duration = Process.clock_gettime(Process::CLOCK_MONOTONIC) - started_at
43
+
44
+ measure = "%.4fs" % duration
44
45
  Thor::Shell::Basic.new.say("Finished in #{measure}")
45
46
  end
46
47
  end
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "simple_data_migrations"
7
7
  spec.version = SimpleDataMigrations::VERSION
8
8
  spec.authors = ["Wojciech Wnętrzak"]
9
- spec.email = ["w.wnetrzak@gmail.com"]
9
+ spec.email = ["wojtek@wnetrzak.pl"]
10
10
 
11
11
  spec.summary = "Data migrations"
12
12
  spec.description = "Data migrations (mainly for Rails)"
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_data_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech Wnętrzak
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -40,13 +39,14 @@ dependencies:
40
39
  version: '1.0'
41
40
  description: Data migrations (mainly for Rails)
42
41
  email:
43
- - w.wnetrzak@gmail.com
42
+ - wojtek@wnetrzak.pl
44
43
  executables: []
45
44
  extensions: []
46
45
  extra_rdoc_files: []
47
46
  files:
48
47
  - CHANGELOG.md
49
48
  - Gemfile
49
+ - Gemfile.lock
50
50
  - LICENSE.txt
51
51
  - README.md
52
52
  - Rakefile
@@ -70,7 +70,6 @@ metadata:
70
70
  homepage_uri: https://github.com/tiramizoo/simple_data_migrations
71
71
  source_code_uri: https://github.com/tiramizoo/simple_data_migrations
72
72
  changelog_uri: https://github.com/tiramizoo/simple_data_migrations/CHANGELOG.md
73
- post_install_message:
74
73
  rdoc_options: []
75
74
  require_paths:
76
75
  - lib
@@ -85,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
84
  - !ruby/object:Gem::Version
86
85
  version: '0'
87
86
  requirements: []
88
- rubygems_version: 3.3.4
89
- signing_key:
87
+ rubygems_version: 3.7.2
90
88
  specification_version: 4
91
89
  summary: Data migrations
92
90
  test_files: []