sequel_bitemporal 0.8.6 → 0.8.7

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
  SHA1:
3
- metadata.gz: da30635c93f697ffa73f2d8de2ff9f5fdaef6d5a
4
- data.tar.gz: cb7e8e67c49db3021b41783be19afb29e1b62e4b
3
+ metadata.gz: e6ceef30532508ab4b24ce154fb5d1f8c583b4cb
4
+ data.tar.gz: b4b0f467b224ae49e5a364eb847ae600dd17efbc
5
5
  SHA512:
6
- metadata.gz: a36ca71c07f927b9426d5ad3bed86dcb7e3e04e81e21ee0f54c8655887d8044e78b8284dee721f827b44122ba1a567b95c7fc4fe394b0a8a7637ae6571273fab
7
- data.tar.gz: ea977f5d0dba283b01b72cce00f659c895f2d1a9104bf29fa7b888678bf76e6057830bb519268b853f1c7a38b797fa556c7e39bdf968f845f5ed55bf62ac07b4
6
+ metadata.gz: 042a681c1ed64b5a5ab4afc08fdcd9d432e8952b5812c46e89c810f02ddc5e974020925b23a8e627d7b8c6b0617cf53df63f2de72ae32398d05de792b7f30d55
7
+ data.tar.gz: f74d5a8e11dba813cad25ad33d9d8ef7469b7953d4cc80cf55e1a68b5994c498cbc81777c284da9c456fa1f8775ec4449cbf60d7eb7f5412b01424b826a13712
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.3.1
data/README.md CHANGED
@@ -38,6 +38,12 @@ Usage
38
38
 
39
39
  * Look at the specs for more usage patterns.
40
40
 
41
+ Thanks
42
+ ------
43
+
44
+ Thanks to Evgeniy L (fiscal-cliff on github) for his contributions:
45
+ - skip plugin initialization process if versions table does not exist
46
+
41
47
  License
42
48
  -------
43
49
 
@@ -42,6 +42,7 @@ module Sequel
42
42
  def self.configure(master, opts = {})
43
43
  version = opts[:version_class]
44
44
  raise Error, "please specify version class to use for bitemporal plugin" unless version
45
+ return version.db.log_info("Version table does not exist for #{version.name}") unless version.db.table_exists?(version.table_name)
45
46
  missing = bitemporal_version_columns - version.columns
46
47
  raise Error, "bitemporal plugin requires the following missing column#{"s" if missing.size>1} on version class: #{missing.join(", ")}" unless missing.empty?
47
48
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "sequel_bitemporal"
6
- s.version = "0.8.6"
6
+ s.version = "0.8.7"
7
7
  s.authors = ["Joseph HALTER", "Jonathan TRON"]
8
8
  s.email = ["joseph.halter@thetalentbox.com", "jonathan.tron@thetalentbox.com"]
9
9
  s.homepage = "https://github.com/TalentBox/sequel_bitemporal"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_bitemporal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph HALTER
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-03 00:00:00.000000000 Z
12
+ date: 2016-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.4.5.1
123
+ rubygems_version: 2.5.1
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Bitemporal versioning for sequel.