thingfish-metastore-pg 0.2.0 → 0.3.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
- SHA1:
3
- metadata.gz: 4cdd72c7d05eaa055da73c33c61c3a3855afea33
4
- data.tar.gz: 24db84cda188e699a5085b0fc15563d2150eb4c6
2
+ SHA256:
3
+ metadata.gz: bbea91d5bc5bc2c41fc79a62aef03581246f0b086ea09348cb93e4c136c129d5
4
+ data.tar.gz: e122af89fe01b72edaab32ca9b7282c1c12d5dbed7c9ab7dc6589313327d71fe
5
5
  SHA512:
6
- metadata.gz: f89915de236b45a95618a7063f4f274b1577236ee95b893afb58bc1a8aebef86baf6b7dcf3f0e92d368ceec1d5b8a6b3fa9150f3a98e3397eb823bcdb18640f2
7
- data.tar.gz: 1139f3da4841b1586d99a9f4f4bb1ab748fec95cf207951f0497d017f48e67d8b09d7505329e9e81cc519a8f7efda5696c4022488a31c2b08c85a7804535a270
6
+ metadata.gz: 5748d81b1383b8444daf5d7ff17f8bdeaa13e4f1173b1499145c8c6a95c9f98778f7a13c5909e34d53271d31c4b3831cdea527a134c3b05ce1716916c6f2c4d6
7
+ data.tar.gz: 5be42426f4f26114b1926247b7bc37ce3e721906f2b76128b90dd6fee8b8e439324cadf9e5b2a724ee7ba9262bd643d6ee51aa9e6f0c94b23077d05982e3008e
Binary file
data.tar.gz.sig CHANGED
Binary file
data/History.md CHANGED
@@ -1,3 +1,16 @@
1
+ # Release History for thingfish-metastore-pg
2
+
3
+ ---
4
+
5
+
6
+ ## v0.3.0 [2021-01-02] Michael Granger <ged@FaerieMUD.org>
7
+
8
+ Enhancements:
9
+
10
+ - Disconnect any open database handles before forking.
11
+ - Ensure functionality under Ruby 2.7, 3.0.
12
+
13
+
1
14
  ## v0.2.0 [2016-11-14] Michael Granger <ged@FaerieMUD.org>
2
15
 
3
16
  Update to Configurability 3 syntax.
@@ -1,6 +1,5 @@
1
1
  .document
2
2
  .simplecov
3
- ChangeLog
4
3
  History.md
5
4
  LICENSE.md
6
5
  Manifest.txt
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Thingfish PostgreSQL Metastore
2
2
 
3
3
  home
4
- : https://bitbucket.org/projects/thingfish-metastore-pg
4
+ : https://hg.sr.ht/~ged/thingfish-metastore-pg
5
5
 
6
6
  code
7
- : https://bitbucket.org/ged/thingfish-metastore-pg
7
+ : https://hg.sr.ht/~ged/thingfish-metastore-pg
8
8
 
9
9
  github
10
10
  : https://github.com/ged/thingfish-metastore-pg
@@ -38,11 +38,11 @@ behaviors.
38
38
 
39
39
  Here's an example configuration file that enables this plugin.
40
40
 
41
- ---
42
- thingfish:
43
- metastore: pg
44
- pg_metastore:
45
- uri: postgres://thingfish:password@db.example.com/database
41
+ ---
42
+ thingfish:
43
+ metastore: pg
44
+ pg_metastore:
45
+ uri: postgres://thingfish:password@db.example.com/database
46
46
 
47
47
 
48
48
  When Thingfish starts, it will install the necessary database schema
@@ -51,7 +51,7 @@ automatically.
51
51
 
52
52
  ## License
53
53
 
54
- Copyright (c) 2014-2017, Michael Granger and Mahlon E. Smith.
54
+ Copyright (c) 2014-2020, Michael Granger and Mahlon E. Smith.
55
55
 
56
56
  All rights reserved.
57
57
 
data/Rakefile CHANGED
@@ -1,93 +1,11 @@
1
- #!/usr/bin/env rake
1
+ # -*- ruby -*-
2
+ # frozen_string_literal: true
2
3
 
3
- begin
4
- require 'hoe'
5
- rescue LoadError
6
- abort "This Rakefile requires hoe (gem install hoe)"
7
- end
8
-
9
- GEMSPEC = 'thingfish-metastore-pg.gemspec'
10
-
11
-
12
- Hoe.plugin :mercurial
13
- Hoe.plugin :signing
14
- Hoe.plugin :deveiate
15
- Hoe.plugin :bundler
16
-
17
- Hoe.plugins.delete :rubyforge
18
-
19
- hoespec = Hoe.spec 'thingfish-metastore-pg' do |spec|
20
- spec.readme_file = 'README.md'
21
- spec.history_file = 'History.md'
22
- spec.extra_rdoc_files = FileList[ '*.rdoc', '*.md' ]
23
- spec.license 'BSD-3-Clause'
24
- spec.urls = {
25
- home: 'https://bitbucket.org/ged/thingfish-metastore-pg',
26
- code: 'https://bitbucket.org/ged/thingfish-metastore-pg',
27
- docs: 'https://deveiate.org/code/thingfish-metastore-pg',
28
- github: 'https://github.com/ged/thingfish-metastore-pg',
29
- }
30
-
31
- spec.developer 'Michael Granger', 'ged@FaerieMUD.org'
32
- spec.developer 'Mahlon E. Smith', 'mahlon@martini.nu'
33
-
34
- spec.dependency 'thingfish', '~> 0.6'
35
- spec.dependency 'loggability', '~> 0.12'
36
- spec.dependency 'configurability', '~> 3.1'
37
- spec.dependency 'sequel', '~> 4.41'
38
- spec.dependency 'pg', '~> 0.19'
39
-
40
- spec.dependency 'hoe-deveiate', '~> 0.8', :development
41
- spec.dependency 'simplecov', '~> 0.12', :development
42
-
43
- spec.require_ruby_version( '>=2.3.0' )
44
- spec.hg_sign_tags = true if spec.respond_to?( :hg_sign_tags= )
45
-
46
- self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
47
- end
48
-
49
-
50
- ENV['VERSION'] ||= hoespec.spec.version.to_s
51
-
52
- # Run the tests before checking in
53
- task 'hg:precheckin' => [ :check_history, :check_manifest, :gemspec, :spec ]
54
-
55
- # Rebuild the ChangeLog immediately before release
56
- task :prerelease => 'ChangeLog'
57
- CLOBBER.include( 'ChangeLog' )
58
-
59
- desc "Build a coverage report"
60
- task :coverage do
61
- ENV["COVERAGE"] = 'yes'
62
- Rake::Task[:spec].invoke
63
- end
64
-
65
-
66
- # Use the fivefish formatter for docs generated from development checkout
67
- if File.directory?( '.hg' )
68
- require 'rdoc/task'
69
-
70
- Rake::Task[ 'docs' ].clear
71
- RDoc::Task.new( 'docs' ) do |rdoc|
72
- rdoc.main = "README.md"
73
- rdoc.rdoc_files.include( "*.rdoc", "*.md", "ChangeLog", "lib/**/*.rb" )
74
- rdoc.generator = :fivefish
75
- rdoc.title = 'Arborist'
76
- rdoc.rdoc_dir = 'doc'
77
- end
78
- end
4
+ require 'rake/deveiate'
79
5
 
80
6
 
81
- task :gemspec => GEMSPEC
82
- file GEMSPEC => [ __FILE__, 'ChangeLog' ] do |task|
83
- spec = hoespec.spec.dup
84
- spec.files.delete( '.gemtest' )
85
- spec.signing_key = nil
86
- spec.version = "#{spec.version.bump}.0.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
87
- File.open( task.name, 'w' ) do |fh|
88
- fh.write( spec.to_ruby )
89
- end
7
+ Rake::DevEiate.setup( 'thingfish-metastore-pg' ) do |project|
8
+ project.required_ruby_version = '>= 2.5'
9
+ project.publish_to = 'deveiate:/usr/local/www/public/code'
90
10
  end
91
11
 
92
- task :default => :gemspec
93
- CLOBBER.include( GEMSPEC.to_s )
@@ -6,7 +6,7 @@ class Initial < Sequel::Migration
6
6
 
7
7
  def up
8
8
  create_schema( :thingfish, if_not_exists: true )
9
- create_table( :thingfish__metadata ) do
9
+ create_table( :metadata ) do
10
10
  uuid :oid, primary_key: true
11
11
  text :format, null: false
12
12
  int :extent, null: false
@@ -17,7 +17,7 @@ class Initial < Sequel::Migration
17
17
  end
18
18
 
19
19
  def down
20
- drop_table( :thingfish__metadata )
20
+ drop_table( :metadata )
21
21
  end
22
22
  end
23
23
 
@@ -1,5 +1,5 @@
1
1
  # -*- ruby -*-
2
- #encoding: utf-8
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'loggability'
5
5
  require 'configurability'
@@ -24,10 +24,10 @@ class Thingfish::Metastore::PG < Thingfish::Metastore
24
24
 
25
25
 
26
26
  # Package version
27
- VERSION = '0.2.0'
27
+ VERSION = '0.3.0'
28
28
 
29
29
  # Version control revision
30
- REVISION = %q$Revision: 257c0fa94884 $
30
+ REVISION = %q$Revision$
31
31
 
32
32
  # The data directory that contains migration files.
33
33
  DATADIR = if ENV['THINGFISH_METASTORE_PG_DATADIR']
@@ -40,6 +40,9 @@ class Thingfish::Metastore::PG < Thingfish::Metastore
40
40
  end
41
41
 
42
42
 
43
+ autoload :Metadata, 'thingfish/metastore/pg/metadata'
44
+
45
+
43
46
  # Loggability API -- use a separate logger
44
47
  log_as :thingfish_metastore_pg
45
48
 
@@ -65,12 +68,18 @@ class Thingfish::Metastore::PG < Thingfish::Metastore
65
68
  ### Set up the metastore database and migrate to the latest version.
66
69
  def self::setup_database
67
70
  Sequel.extension :pg_json_ops
71
+ Sequel::Model.require_valid_table = false
68
72
 
69
73
  self.db = Sequel.connect( self.uri )
70
74
 
71
75
  self.db.logger = Loggability[ Thingfish::Metastore::PG ]
72
76
  self.db.sql_log_level = :debug
73
- self.db.extension( :pg_json )
77
+ self.db.log_warn_duration = self.slow_query_seconds
78
+
79
+ self.db.extension :pg_streaming
80
+ self.db.extension :pg_inet
81
+ self.db.extension :pg_json
82
+ self.db.stream_all_queries = true
74
83
  self.db.log_warn_duration = self.slow_query_seconds
75
84
 
76
85
  # Ensure the database is current.
@@ -105,8 +114,7 @@ class Thingfish::Metastore::PG < Thingfish::Metastore
105
114
 
106
115
  ### Set up the metastore.
107
116
  def initialize( * ) # :notnew:
108
- require 'thingfish/metastore/pg/metadata'
109
- Thingfish::Metastore::PG::Metadata.db = self.class.db
117
+ Thingfish::Metastore::PG::Metadata.dataset = self.class.db[:metadata]
110
118
  @model = Thingfish::Metastore::PG::Metadata
111
119
  end
112
120
 
@@ -293,5 +301,11 @@ class Thingfish::Metastore::PG < Thingfish::Metastore
293
301
  return ds
294
302
  end
295
303
 
304
+
305
+ # Register a hook to make the database connection fork-safe.
306
+ Strelka.before_fork do
307
+ self.db&.disconnect
308
+ end
309
+
296
310
  end # class Thingfish::Metastore::PG
297
311
 
@@ -1,5 +1,5 @@
1
1
  # -*- ruby -*-
2
- #encoding: utf-8
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'sequel/model'
5
5
 
@@ -8,7 +8,7 @@ require 'thingfish/metastore/pg' unless defined?( Thingfish::Metastore::PG )
8
8
 
9
9
 
10
10
  # A row of metadata describing an asset in a Thingfish store.
11
- class Thingfish::Metastore::PG::Metadata < Sequel::Model( :thingfish__metadata )
11
+ class Thingfish::Metastore::PG::Metadata < Sequel::Model( :metadata )
12
12
  include Thingfish::Normalization
13
13
 
14
14
  # Allow instances to be created with a primary key
@@ -147,6 +147,7 @@ class Thingfish::Metastore::PG::Metadata < Sequel::Model( :thingfish__metadata )
147
147
 
148
148
  ### Proxy method -- fetch a value from the metadata hash if it exists.
149
149
  def method_missing( sym, *args, &block )
150
+ return super if sym == :user_metadata
150
151
  return self.user_metadata[ sym.to_s ] || super
151
152
  end
152
153
 
@@ -49,6 +49,8 @@ module Thingfish::MetastorePGSpecHelpers
49
49
  context.before( :all ) do
50
50
  if ((db_uri = ENV[ TESTDB_ENV_VAR ]))
51
51
  Thingfish::Metastore::PG.configure( uri: db_uri )
52
+ # Loggability.format_with( :color )
53
+ # Loggability.level = :debug
52
54
  end
53
55
  end
54
56
 
@@ -90,20 +92,30 @@ end # module Thingfish::Metastore::PG::SpecHelpers
90
92
 
91
93
 
92
94
  ### Mock with RSpec
93
- RSpec.configure do |c|
95
+ RSpec.configure do |config|
94
96
  include Thingfish::SpecHelpers
95
97
  include Thingfish::SpecHelpers::Constants
96
98
 
97
- c.run_all_when_everything_filtered = true
98
- c.filter_run :focus
99
- # c.order = 'random'
100
- c.mock_with( :rspec ) do |mock|
101
- mock.syntax = :expect
99
+ config.expect_with :rspec do |expectations|
100
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
101
+ expectations.syntax = :expect
102
102
  end
103
103
 
104
- c.include( Loggability::SpecHelpers )
105
- c.include( Thingfish::SpecHelpers )
106
- c.include( Thingfish::MetastorePGSpecHelpers )
104
+ config.mock_with :rspec do |mocks|
105
+ mocks.verify_partial_doubles = true
106
+ end
107
+
108
+ config.run_all_when_everything_filtered = true
109
+ config.filter_run_when_matching :focus
110
+ config.order = :random
111
+ config.example_status_persistence_file_path = 'spec/.state'
112
+ config.disable_monkey_patching!
113
+ # config.warnings = true # Sequel is too noisy
114
+ config.profile_examples = 5
115
+
116
+ config.include( Loggability::SpecHelpers )
117
+ config.include( Thingfish::SpecHelpers )
118
+ config.include( Thingfish::MetastorePGSpecHelpers )
107
119
  end
108
120
 
109
121
  # vim: set nosta noet ts=4 sw=4:
@@ -8,7 +8,7 @@ require 'rspec'
8
8
  require 'thingfish/behaviors'
9
9
  require 'thingfish/metastore/pg'
10
10
 
11
- describe Thingfish::Metastore::PG, db: true do
11
+ RSpec.describe Thingfish::Metastore::PG, db: true do
12
12
 
13
13
  it_should_behave_like "a Thingfish metastore"
14
14
 
metadata CHANGED
@@ -1,101 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thingfish-metastore-pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
8
8
  - Mahlon E. Smith
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANnZWQx
15
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
16
- HhcNMTYwODIwMTgxNzQyWhcNMTcwODIwMTgxNzQyWjA+MQwwCgYDVQQDDANnZWQx
17
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
18
- ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
19
- 83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
20
- ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46+QevV8iE+UmbkU75V7Dy1JCaUOyizEt
21
- TH5UHsOtUU7k9TYARt/TgYZKuaoAMZZd5qyVqhF1vV+7/Qzmp89NGflXf2xY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UgoH7R05MJ+8LTcy3HGrB3a0vTafjm8OY7Xpa0LJDoN
30
+ JDqxK321VIHyTibbKeA1hWSE6ljlQDvFbTqiCj3Ulp1jTv3TOlvRl8fqcfhxUJI0
31
+ +5Q82jJODjEN+GaWs0V+NlrbU94cXwS2PH5dXogftB5YYA5Ex8A0ikZ73xns4Hdo
32
+ XxdLdd92F5ovxA23j/rKe/IDwqr6FpDkU3nPXH/Qp0TVGv9zZnVJc/Z6ChkuWj8z
33
+ pW7JAyyiiHZgKKDReDrA2LA7Zs3o/7KA6UtUH0FHf8LYhcK+pfHk6RtjRe65ffw+
34
+ MCh97sQ/Z/MOusb5+QddBmB+k8EicXyGNl4b5L4XpL7fIQu+Y96TB3JEJlShxFD9
35
+ k9FjI4d9EP54gS/4
38
36
  -----END CERTIFICATE-----
39
- date: 2017-01-16 00:00:00.000000000 Z
37
+ date: 2021-01-02 00:00:00.000000000 Z
40
38
  dependencies:
41
39
  - !ruby/object:Gem::Dependency
42
- name: thingfish
40
+ name: pg
43
41
  requirement: !ruby/object:Gem::Requirement
44
42
  requirements:
45
43
  - - "~>"
46
44
  - !ruby/object:Gem::Version
47
- version: '0.6'
45
+ version: '1.2'
48
46
  type: :runtime
49
47
  prerelease: false
50
48
  version_requirements: !ruby/object:Gem::Requirement
51
49
  requirements:
52
50
  - - "~>"
53
51
  - !ruby/object:Gem::Version
54
- version: '0.6'
52
+ version: '1.2'
55
53
  - !ruby/object:Gem::Dependency
56
- name: loggability
54
+ name: pluggability
57
55
  requirement: !ruby/object:Gem::Requirement
58
56
  requirements:
59
57
  - - "~>"
60
58
  - !ruby/object:Gem::Version
61
- version: '0.12'
59
+ version: '0.7'
62
60
  type: :runtime
63
61
  prerelease: false
64
62
  version_requirements: !ruby/object:Gem::Requirement
65
63
  requirements:
66
64
  - - "~>"
67
65
  - !ruby/object:Gem::Version
68
- version: '0.12'
66
+ version: '0.7'
69
67
  - !ruby/object:Gem::Dependency
70
- name: configurability
68
+ name: sequel
71
69
  requirement: !ruby/object:Gem::Requirement
72
70
  requirements:
73
71
  - - "~>"
74
72
  - !ruby/object:Gem::Version
75
- version: '3.1'
73
+ version: '5.30'
76
74
  type: :runtime
77
75
  prerelease: false
78
76
  version_requirements: !ruby/object:Gem::Requirement
79
77
  requirements:
80
78
  - - "~>"
81
79
  - !ruby/object:Gem::Version
82
- version: '3.1'
80
+ version: '5.30'
83
81
  - !ruby/object:Gem::Dependency
84
- name: sequel
82
+ name: sequel_pg
85
83
  requirement: !ruby/object:Gem::Requirement
86
84
  requirements:
87
85
  - - "~>"
88
86
  - !ruby/object:Gem::Version
89
- version: '4.41'
87
+ version: '1.12'
90
88
  type: :runtime
91
89
  prerelease: false
92
90
  version_requirements: !ruby/object:Gem::Requirement
93
91
  requirements:
94
92
  - - "~>"
95
93
  - !ruby/object:Gem::Version
96
- version: '4.41'
94
+ version: '1.12'
97
95
  - !ruby/object:Gem::Dependency
98
- name: pg
96
+ name: strelka
99
97
  requirement: !ruby/object:Gem::Requirement
100
98
  requirements:
101
99
  - - "~>"
@@ -109,106 +107,44 @@ dependencies:
109
107
  - !ruby/object:Gem::Version
110
108
  version: '0.19'
111
109
  - !ruby/object:Gem::Dependency
112
- name: hoe-mercurial
110
+ name: rake-deveiate
113
111
  requirement: !ruby/object:Gem::Requirement
114
112
  requirements:
115
113
  - - "~>"
116
114
  - !ruby/object:Gem::Version
117
- version: '1.4'
115
+ version: '0.13'
118
116
  type: :development
119
117
  prerelease: false
120
118
  version_requirements: !ruby/object:Gem::Requirement
121
119
  requirements:
122
120
  - - "~>"
123
121
  - !ruby/object:Gem::Version
124
- version: '1.4'
122
+ version: '0.13'
125
123
  - !ruby/object:Gem::Dependency
126
- name: hoe-deveiate
124
+ name: rdoc-generator-fivefish
127
125
  requirement: !ruby/object:Gem::Requirement
128
126
  requirements:
129
127
  - - "~>"
130
128
  - !ruby/object:Gem::Version
131
- version: '0.8'
129
+ version: '0.4'
132
130
  type: :development
133
131
  prerelease: false
134
132
  version_requirements: !ruby/object:Gem::Requirement
135
133
  requirements:
136
134
  - - "~>"
137
135
  - !ruby/object:Gem::Version
138
- version: '0.8'
139
- - !ruby/object:Gem::Dependency
140
- name: hoe-highline
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '0.2'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '0.2'
153
- - !ruby/object:Gem::Dependency
154
- name: simplecov
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.12'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '0.12'
167
- - !ruby/object:Gem::Dependency
168
- name: rdoc
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '4.0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '4.0'
181
- - !ruby/object:Gem::Dependency
182
- name: hoe
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '3.15'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '3.15'
195
- description: |-
196
- This is a metadata storage plugin for the Thingfish digital asset manager. It
197
- provides persistent storage for uploaded data to a PostgreSQL table.
136
+ version: '0.4'
137
+ description: This is a metadata storage plugin for the Thingfish digital asset manager.
138
+ It provides persistent storage for uploaded data to a PostgreSQL table.
198
139
  email:
199
140
  - ged@FaerieMUD.org
200
141
  - mahlon@martini.nu
201
142
  executables: []
202
143
  extensions: []
203
- extra_rdoc_files:
204
- - History.md
205
- - LICENSE.md
206
- - Manifest.txt
207
- - README.md
144
+ extra_rdoc_files: []
208
145
  files:
209
146
  - ".document"
210
147
  - ".simplecov"
211
- - ChangeLog
212
148
  - History.md
213
149
  - LICENSE.md
214
150
  - Manifest.txt
@@ -219,30 +155,32 @@ files:
219
155
  - lib/thingfish/metastore/pg/metadata.rb
220
156
  - spec/spec_helper.rb
221
157
  - spec/thingfish/metastore/pg_spec.rb
222
- homepage: https://bitbucket.org/ged/thingfish-metastore-pg
158
+ homepage: https://hg.sr.ht/~ged/thingfish-metastore-pg
223
159
  licenses:
224
160
  - BSD-3-Clause
225
- metadata: {}
226
- post_install_message:
227
- rdoc_options:
228
- - "--main"
229
- - README.md
161
+ metadata:
162
+ homepage_uri: https://hg.sr.ht/~ged/thingfish-metastore-pg
163
+ documentation_uri: https://deveiate.org/code/thingfish-metastore-pg
164
+ changelog_uri: https://deveiate.org/code/thingfish-metastore-pg/History_md.html
165
+ source_uri: https://hg.sr.ht/~ged/thingfish-metastore-pg
166
+ bug_tracker_uri: https://todo.sr.ht/~ged/thingfish-metastore-pg
167
+ post_install_message:
168
+ rdoc_options: []
230
169
  require_paths:
231
170
  - lib
232
171
  required_ruby_version: !ruby/object:Gem::Requirement
233
172
  requirements:
234
173
  - - ">="
235
174
  - !ruby/object:Gem::Version
236
- version: 2.3.0
175
+ version: '2.5'
237
176
  required_rubygems_version: !ruby/object:Gem::Requirement
238
177
  requirements:
239
178
  - - ">="
240
179
  - !ruby/object:Gem::Version
241
180
  version: '0'
242
181
  requirements: []
243
- rubyforge_project:
244
- rubygems_version: 2.6.8
245
- signing_key:
182
+ rubygems_version: 3.2.3
183
+ signing_key:
246
184
  specification_version: 4
247
- summary: This is a metadata storage plugin for the Thingfish digital asset manager
185
+ summary: This is a metadata storage plugin for the Thingfish digital asset manager.
248
186
  test_files: []
metadata.gz.sig CHANGED
Binary file
data/ChangeLog DELETED
@@ -1,95 +0,0 @@
1
- 2016-06-27 Michael Granger <ged@FaerieMUD.org>
2
-
3
- * .gems, .ruby-gemset, .ruby-version, .rvmrc, Gemfile, History.md,
4
- History.rdoc, README.md, README.rdoc, Rakefile, thingfish-metastore-
5
- pg.gemspec:
6
- Update build env
7
- [0a1c87687905] [tip]
8
-
9
- 2015-12-14 Michael Granger <ged@FaerieMUD.org>
10
-
11
- * lib/thingfish/metastore/pg.rb,
12
- lib/thingfish/metastore/pg/metadata.rb:
13
- Consider user metadata for ordering, too
14
- [d69c38e41d05] [github/master]
15
-
16
- 2015-12-10 Michael Granger <ged@FaerieMUD.org>
17
-
18
- * lib/thingfish/metastore/pg.rb:
19
- Don't raise a NoMethodError on missing metadata keys
20
- [99ac5402317a]
21
-
22
- * Rakefile:
23
- Use latest semantic versioning for the gemspec
24
- [7c7236fda1e2]
25
-
26
- 2015-11-02 Mahlon E. Smith <mahlon@martini.nu>
27
-
28
- * lib/thingfish/metastore/pg.rb:
29
- Rename obsoleted metastore API to correct name.
30
- [993664929f87]
31
-
32
- * LICENSE.rdoc, README.rdoc, Rakefile:
33
- Fix README and LICENSE file.
34
- [e9c83aeb5889]
35
-
36
- 2015-04-01 Mahlon E. Smith <mahlon@martini.nu>
37
-
38
- * .gems, .rvm.gems, .rvmrc:
39
- Bump development default ruby version, rename rvm gems file.
40
- [3e762af58fc9]
41
-
42
- 2015-01-29 Michael Granger <ged@FaerieMUD.org>
43
-
44
- * lib/thingfish/metastore/pg.rb:
45
- Fix the #apply_search_order method
46
- [41dec81585a4]
47
-
48
- * lib/thingfish/metastore/pg.rb:
49
- Make the return from #search not use a lazy enumerator.
50
-
51
- It was an interesting experiment, but I don't think it's going to
52
- work without retooling the handler to support enumerators.
53
- [7e3215bec4f4]
54
-
55
- * lib/thingfish/metastore/pg/metadata.rb:
56
- Ensure the "uploadaddress" is a string
57
- [e367a26e6d3b]
58
-
59
- * lib/thingfish/metastore/pg.rb:
60
- Rearrange the config methods.
61
-
62
- The `::configure` method needs to be below the methods it calls in
63
- case it's called upon definition.
64
- [485bf6854980]
65
-
66
- * .hgignore:
67
- Ignore the package directory.
68
- [21423daeb9ce]
69
-
70
- 2015-01-28 Michael Granger <ged@FaerieMUD.org>
71
-
72
- * data/thingfish-metastore-pg/migrations/20150114_initial.rb,
73
- lib/thingfish/metastore/pg.rb,
74
- lib/thingfish/metastore/pg/metadata.rb, spec/spec_helper.rb:
75
- Add initial Thingfish::Metastore API
76
- [3b0d1b844ad6]
77
-
78
- * .hgignore, .pryrc, Manifest.txt:
79
- Update some project files
80
- [95106fe17011]
81
-
82
- 2015-01-14 Michael Granger <ged@FaerieMUD.org>
83
-
84
- * .rvm.gems, data/thingfish-metastore-
85
- pg/migrations/20150114_initial.rb, lib/thingfish/metastore/pg.rb,
86
- spec/spec_helper.rb, spec/thingfish/metastore/pg_spec.rb:
87
- Got the schema loading and spec helpers set up
88
- [62f8eaf03619]
89
-
90
- * .document, .gitignore, .hgignore, .pryrc, .rvm.gems, .rvmrc,
91
- .simplecov, History.rdoc, LICENSE.rdoc, README.rdoc, Rakefile,
92
- lib/thingfish/metastore/pg.rb, spec/spec_helper.rb,
93
- spec/thingfish/metastore/pg_spec.rb:
94
- Initial boilerplate
95
- [d4cb46c1f0b5]