schema-evolution-manager 0.9.61 → 0.9.63

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: 60215e02faf6492f2a4e0b263008b6038f95d3ff824417fb6ce615296342ea5f
4
- data.tar.gz: e9450f3c24a2f54b3f25566c1152a6454de7e7b2eb4750dd0a8021b273b014c6
3
+ metadata.gz: cfc05e0cabfc2ddca61430981e38b00ab9a90b4a490cdd5cb78c2768ed0e0091
4
+ data.tar.gz: b7a183491fec9cbd654d28e47660b7dd9b41a525084f3a53242e6bd177c35ed3
5
5
  SHA512:
6
- metadata.gz: 6673d52ee37258fee586cd320799eeff9e6477d963a98c79f737f1fc8f44009dcbc076ed26dc8e900ef970e79516d1d115d125b6ec4d23da45d1b5903508ca8b
7
- data.tar.gz: 3081446f6663a18bf00523332c0d9363e9b3322c9a900561205e1d90509698f4a6899824087a202ba9fdc5f6487fd9ab475574fbca246c7c0e156f691ceb700a
6
+ metadata.gz: 59627b228047c46d68c03fdb57013d2a5321ac317ff15bea732e1e05f8f24e819a751af97f01752ed77742d2d175d449fd5448903fedd5e186b9d76da2d6abd4
7
+ data.tar.gz: a39c2cbd1f912ba7b14dd59292095506391a5b0ba6c3b222bf7b635c55904ada20ef4fd60fb45a50c9707335993e25b2187d517f780fc171fe891295c2cc41f7
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.61
152
+ git checkout 0.9.63
153
153
  ruby ./configure.rb
154
154
  sudo ./install.rb
155
155
 
data/bin/sem-add CHANGED
@@ -23,14 +23,14 @@ 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}"
data/bin/sem-dist CHANGED
@@ -33,11 +33,13 @@ tar_cmd = `which gnutar 2> /dev/null`.strip
33
33
  tar_opts = []
34
34
  if tar_cmd == ""
35
35
  tar_cmd = "tar"
36
- # Use --no-xattrs to prevent extended attributes from being archived (works in create mode)
37
- # Also use --no-mac-metadata to prevent AppleDouble files
38
- if system("tar", "--no-xattrs", "-cf", "/dev/null", "/dev/null", :err => File::NULL)
39
- tar_opts = ["--no-xattrs", "--no-mac-metadata"]
40
- end
36
+ # --no-xattrs keeps extended attributes out of the archive and
37
+ # --no-mac-metadata keeps out AppleDouble files. Each is probed on its
38
+ # own: GNU tar accepts --no-xattrs but rejects --no-mac-metadata, which
39
+ # only BSD tar knows.
40
+ tar_opts = ["--no-xattrs", "--no-mac-metadata"].select { |opt|
41
+ system("tar", opt, "-cf", "/dev/null", "/dev/null", [:out, :err] => File::NULL)
42
+ }
41
43
  end
42
44
 
43
45
  if args.tag
@@ -3,7 +3,7 @@ module SchemaEvolutionManager
3
3
 
4
4
  module SemVersion
5
5
 
6
- VERSION ||= '0.9.61'
6
+ VERSION ||= '0.9.63'
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.61
4
+ version: 0.9.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bryzek
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-10-09 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.