brut 0.0.23 → 0.0.24

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: 661bfefb9cded225579d7faae56e20458a403a26e2d336c7cd6c6c7cba832b4d
4
- data.tar.gz: d09d29af185d03035d0f4256bc1d42f784c3b7ad3f6f0aadb8caf3fa41464c44
3
+ metadata.gz: 66debd5e3492d152f6e1284b9d207c288b8ae4369a632a2d66c4a9c79cb32c35
4
+ data.tar.gz: 9587bfb3d5baac04b9add2fac1d5da24db0230c985162fde5216f56212d7880c
5
5
  SHA512:
6
- metadata.gz: a942224c334d13e01f869f75ec80aaa0cf46089d5d93c39ad9e297d5518d28f1487ba028e47bd9dea745503a9a34becdb458ef00c485759930a099182f3f1e47
7
- data.tar.gz: 9264c21ebd224c64c73d157b54020e2cab1f0c2779d5b9df8cd34746a08aa0b62b6898941df49d53ca8ddb9b93066b7e723e9775917e3a551decbdbbe4f8000f
6
+ metadata.gz: c977cb67e52844a531a0f865a82766fe651d3a310c8875d2e7c5206a1d07443152560323c46b2be42e93284e5d07dc05c44421cf223afd7143c6456f72f03999
7
+ data.tar.gz: 86e156145eac29a767b934da1ca0d4f6020971c100ed122963492567788d7ccf82ec9534b570871784abc893d1e98bd5795cd296dd3a3a102eec5e3b6fe11ed2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brut (0.0.23)
4
+ brut (0.0.24)
5
5
  concurrent-ruby
6
6
  i18n
7
7
  irb
data/lib/brut/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Brut
2
2
  # @!visibility private
3
- VERSION = "0.0.23"
3
+ VERSION = "0.0.24"
4
4
  end
@@ -20,16 +20,17 @@ module Sequel
20
20
 
21
21
 
22
22
  if args.last.is_a?(Hash)
23
+ name = args.first
23
24
  if name != "schema_migrations" && name != "schema_info"
24
25
  if args.last[:comment]
25
26
  run %{
26
- comment on table #{args.first} is #{literal args.last[:comment]}
27
+ comment on table #{name} is #{literal args.last[:comment]}
27
28
  }
28
29
  else
29
- raise ArgumentError, "Table #{args.first} must have a comment"
30
+ raise ArgumentError, "Table #{name} must have a comment"
30
31
  end
31
32
  if args.last[:external_id]
32
- add_column args.first, :external_id, :citext, unique: true
33
+ add_column name, :external_id, :citext, unique: true
33
34
  end
34
35
  end
35
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Bryant Copeland