chrono_model 1.2.1 → 1.2.2
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 +4 -4
- data/README.md +3 -0
- data/Rakefile +3 -2
- data/lib/chrono_model/adapter/upgrade.rb +5 -5
- data/lib/chrono_model/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa9d6f8ee80241092713836e372cf3cb568639e403511ba2c48ba33275f6c1a8
|
|
4
|
+
data.tar.gz: '055794bce8014501e3eea0a180abe04278f1aba62015d3f5b98d75499c6faba1'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 380cbab091ab178aea031fee4e8343797a5e461e98b233a8c732b7cc0f9bd584497fa3b1bcc8703f6d8b74b972aeed2a257f6aba9ca7a2d932b4e72e7c211506
|
|
7
|
+
data.tar.gz: c601c91ce05f426aef3c75b37ba9920170666523abff9b219ab09816e6c17f42146131d5ffcc89d233d5d7ec94d6ac5592e6a8160dd8207b9a48c3ff51feb629
|
data/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[![Build Status][build-status-badge]][build-status]
|
|
4
4
|
[![Code Climate][code-analysis-badge]][code-analysis]
|
|
5
5
|
[![Test Coverage][test-coverage-badge]][test-coverage]
|
|
6
|
+
[![Gem Version][gem-version-badge]][gem-version]
|
|
6
7
|
[![Inlinedocs][docs-analysis-badge]][docs-analysis]
|
|
7
8
|
|
|
8
9
|
![{A Delorean that we all love}][delorean-image]
|
|
@@ -381,6 +382,8 @@ This software is Made in Italy :it: :smile:.
|
|
|
381
382
|
[code-analysis-badge]: https://codeclimate.com/github/ifad/chronomodel.svg
|
|
382
383
|
[docs-analysis]: http://inch-ci.org/github/ifad/chronomodel
|
|
383
384
|
[docs-analysis-badge]: http://inch-ci.org/github/ifad/chronomodel.svg?branch=master
|
|
385
|
+
[gem-version]: https://rubygems.org/gems/chrono_model
|
|
386
|
+
[gem-version-badge]: https://badge.fury.io/rb/chrono_model.svg
|
|
384
387
|
[test-coverage]: https://codeclimate.com/github/ifad/chronomodel
|
|
385
388
|
[test-coverage-badge]: https://codeclimate.com/github/ifad/chronomodel/badges/coverage.svg
|
|
386
389
|
|
data/Rakefile
CHANGED
|
@@ -3,8 +3,9 @@ require "bundler/gem_tasks"
|
|
|
3
3
|
|
|
4
4
|
# RSpec
|
|
5
5
|
require 'rspec/core/rake_task'
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
RSpec::Core::RakeTask.new do |spec|
|
|
7
|
+
spec.rspec_opts = '-f doc'
|
|
8
|
+
end
|
|
8
9
|
task :default => ['testapp:create', :spec]
|
|
9
10
|
|
|
10
11
|
# Create a test Rails app in tmp/railsapp for testing the rake
|
|
@@ -2,13 +2,13 @@ module ChronoModel
|
|
|
2
2
|
class Adapter < ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
|
|
3
3
|
|
|
4
4
|
module Upgrade
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
chrono_ensure_schemas
|
|
5
|
+
def chrono_upgrade!
|
|
6
|
+
chrono_ensure_schemas
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
chrono_upgrade_structure!
|
|
9
|
+
end
|
|
11
10
|
|
|
11
|
+
private
|
|
12
12
|
# Locate tables needing a structure upgrade
|
|
13
13
|
#
|
|
14
14
|
def chrono_tables_needing_upgrade
|
data/lib/chrono_model/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chrono_model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcello Barnaba
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-05-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|