schema-evolution-manager 0.9.62 → 0.9.64

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: 4eaacc9ec6c587ca4bc7ff6c41e2794a35f7e06637a7ee7e19005837fb7eb17c
4
- data.tar.gz: d1d4cf31830b9a1b5ec94f647420a8c36c52a122e50651c56e94473fe7fae590
3
+ metadata.gz: 4d9394110802161aba64390e9a68f845adb26f5438f37c1a41d1b75d4ecb95a0
4
+ data.tar.gz: 6a8ffe4bd1e194f791f67916648097907f3dd842bff5cd1482b1edc2904a2a38
5
5
  SHA512:
6
- metadata.gz: d611b940f9b4ccedba7f3e2f1f8567a5b7841ef8873f2cdbabb73ada1c58b3997034a08b2ef4d786a44ba21e4f697b440949e802ebe88c9956cba4d5a9063a6a
7
- data.tar.gz: cc46f0c934f3f96e6dc2499da8d591359094cc195d639335f9cc8a38f6087481fbb19ed04fb8e9dd062f665803fb52a2402eafb66313a3dde9cbc573db688211
6
+ metadata.gz: a24d357e87d12ba19228eee60827f640c1bb10b696280ac7c2a872e54497e3ee9741969937568fd4bc0e5c22d9b9d4f6015564e260b5f71603f1102b14918c6b
7
+ data.tar.gz: d3475db67f244c1a9b2d9bd1d5dcf2d87c7b7336db44d6a355dee110b01e9f4e66c74d13e28a8ff5b9fd91db3e93633b1702366c81fea577a7e8c5c09cbe7ff0
data/README.md CHANGED
@@ -149,7 +149,7 @@ There are three ways to install schema evolution manager:
149
149
 
150
150
  git clone git@github.com:mbryzek/schema-evolution-manager.git
151
151
  cd schema-evolution-manager
152
- git checkout 0.9.62
152
+ git checkout 0.9.64
153
153
  ruby ./configure.rb
154
154
  sudo ./install.rb
155
155
 
data/bin/sem-add CHANGED
@@ -23,18 +23,18 @@ SchemaEvolutionManager::Preconditions.check_state(file.match(/\.sql/i), "File[#{
23
23
  scripts_dir = SchemaEvolutionManager::Config.load.scripts_dir
24
24
  SchemaEvolutionManager::Library.ensure_dir!(scripts_dir)
25
25
 
26
- contents = IO.read(file)
27
- now = Time.now.utc.strftime('%Y%m%d-%H%M%S')
28
- target = File.join(scripts_dir, "#{now}.sql")
26
+ # A second already holding a script takes the next free one rather than
27
+ # waiting for the clock: names stay unique and in the order they were added.
28
+ stamp = Time.now.utc
29
+ target = File.join(scripts_dir, "#{stamp.strftime('%Y%m%d-%H%M%S')}.sql")
29
30
 
30
31
  while File.exist?(target)
31
- sleep 0.1
32
- now = Time.now.utc.strftime('%Y%m%d-%H%M%S')
33
- target = File.join(scripts_dir, "#{now}.sql")
32
+ stamp += 1
33
+ target = File.join(scripts_dir, "#{stamp.strftime('%Y%m%d-%H%M%S')}.sql")
34
34
  end
35
35
 
36
36
  puts "Adding #{target}"
37
- SchemaEvolutionManager::Library.system_or_error(["mv", "--", file, target])
37
+ FileUtils.mv(file, target)
38
38
  SchemaEvolutionManager::Library.system_or_error(["git", "add", "--", target])
39
39
 
40
40
  puts "File staged in git. You need to commit and push"
@@ -3,7 +3,7 @@ module SchemaEvolutionManager
3
3
 
4
4
  module SemVersion
5
5
 
6
- VERSION ||= '0.9.62'
6
+ VERSION ||= '0.9.64'
7
7
 
8
8
  end
9
9
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema-evolution-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.62
4
+ version: 0.9.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bryzek
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-10-26 00:00:00.000000000 Z
10
+ date: 2026-10-31 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: '["Michael Bryzek"]'
13
13
  email: mbryzek@alum.mit.edu
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 4.0.17
76
+ rubygems_version: 4.0.23
77
77
  specification_version: 4
78
78
  summary: Schema evolution manager is a simple schema migration tool for postgresql
79
79
  databases.