upknit 0.9.5 → 0.9.6

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: 3e8d73a76c54d9fcad93870f62f978454c05f8f537c76a93a88290cce2b0f85f
4
- data.tar.gz: 8a3b4992fa9d1a1cc3304bbcfd051ccdf33afffccbd61f83b1bc7ede02ee12e2
3
+ metadata.gz: cb98edaf9da6480d13d4797ecac865a58af1c9469aff8bea7bf8784df5d69374
4
+ data.tar.gz: 89504a40bc4f64d2de144262328012e9282713bd37b30c64ed2b15f62b22cfa5
5
5
  SHA512:
6
- metadata.gz: f35861448f747d11a1910285e2426c7489f57bedaad2ae00acf5b943fdeea293685096807cbec4e34a003ac4fd2157605ee08ca74fd22ca50f51fbd823e40405
7
- data.tar.gz: 2201859e638d8beb0c19c6ce17a98300c954f630dacd9e100912afa40885c2488e95cf9a19552f14fd0954875936377298a548177d982ee6f64320d239d82641
6
+ metadata.gz: 81fab41880246d4806b5c2a499e90bdcfddbe690d51e9a64a0a579936cc48eb3cabbcbd812db6081623f304b7d792ec40d9df9efb48a6ba262da190147717740
7
+ data.tar.gz: 0f9eecf24ce8708d29949c88b05e04ad7064d5a87e40336f00c856d5cbf0ee3f54f4265e50329b3e9f81a978f79de1a1c15d0aa0935139bd54e8c8a84b2a4449
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ![CircleCI](https://img.shields.io/circleci/project/github/sakuro/upknit.svg)
2
+
1
3
  # Upknit
2
4
 
3
5
  Adding this gem to a Rails application with PostgreSQL automatically enables UUID primary key.
@@ -1,14 +1,12 @@
1
1
  require 'active_record/connection_adapters/postgresql_adapter'
2
2
 
3
- # An extension to {ActiveRecord::ConnectionAdapters::PostgresqlAdapter}.
4
- #
5
- # When included, this module adds two methods to support UUID extension
6
- # * #enable_uuid
7
- # * #uuid_extension
8
3
  module Upknit
9
4
  module ConnectionExtension
5
+ # An extension to ActiveRecord::ConnectionAdapters::PostgresqlAdapter
6
+ #
7
+ # When included, this module adds two methods to support UUID extension.
10
8
  module PostgreSQL
11
- # Enables a extension which adds UUID function to the system.
9
+ # Enables an extension which adds UUID function to the system.
12
10
  # @return [void]
13
11
  def enable_uuid
14
12
  enable_extension(uuid_extension)
@@ -2,6 +2,9 @@ require 'active_record/tasks/postgresql_database_tasks'
2
2
 
3
3
  module Upknit
4
4
  module EnableUuidExtensionOnCreate
5
+ # An extension to ActiveRecord::Tasks::PostgreSQLDatabaseTasks
6
+ #
7
+ # When prepended, this module enhances .create to enable UUID.
5
8
  module PostgreSQL
6
9
  def create(master_established=false)
7
10
  super
@@ -2,6 +2,7 @@ require 'active_support/concern'
2
2
  require 'upknit/connection_extension'
3
3
 
4
4
  module Upknit
5
+ # A module to add an initializer for setting AR's default primary key type to UUID
5
6
  module SetDefaultPrimaryKeyToUuid
6
7
  extend ActiveSupport::Concern
7
8
 
@@ -1,6 +1,7 @@
1
1
  require 'rails/generators/generated_attribute'
2
2
 
3
3
  module Upknit
4
+ # A module which let migrations declare UUID type on references
4
5
  module SetDefaultReferenceTypeToUuid
5
6
  def options_for_migration
6
7
  super.tap do |options|
@@ -1,3 +1,3 @@
1
1
  module Upknit
2
- VERSION = '0.9.5'.freeze
2
+ VERSION = '0.9.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upknit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - OZAWA Sakuro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-21 00:00:00.000000000 Z
11
+ date: 2018-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails