pg_space_cadet 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +5 -0
  2. data/pg_space_cadet.gemspec +2 -2
  3. metadata +2 -2
data/README.md CHANGED
@@ -36,10 +36,13 @@ ChessGame instances are space cadets.
36
36
  Before ActiveRecord creates a ChessGame space cadet, it uses postgreSQL's uuid\_generate\_v4 to create a UUID. The lowest 31 bits of the UUID are used to make a shared ActiveRecord default id.
37
37
 
38
38
  The uuids table gains a chess\_games row as in:
39
+
39
40
  id source_name uuid
40
41
  746042992 my_space_cadets 7770a54c-7f08-4817-877e-43e1ac77b670
41
42
  569967860 chess_games 274ead56-7c8f-4c8d-ad21-35d4a1f904f4
43
+
42
44
  The chess\_games table gains a row like:
45
+
43
46
  id moves ambiguities move_number ...
44
47
  569967860 e2e4 1 ...
45
48
 
@@ -81,6 +84,7 @@ The specs assume that the chess\_games table exists in the postgreSQL database.
81
84
  The specs do not update the database (transactions with rollback).
82
85
 
83
86
  Note, to prepare the database for testing:
87
+
84
88
  irb prompt> load 'spec/support/space_cadet.rb'
85
89
  irb prompt> up
86
90
  irb prompt> exit
@@ -88,6 +92,7 @@ Note, to prepare the database for testing:
88
92
  The author uses DbVisualizer 9.0.5 and irb to try out the space cadets.
89
93
 
90
94
  Note, to find the gem installation directory:
95
+
91
96
  irb prompt> require 'space_cadet_wrapper'
92
97
  irb prompt> $".grep(/pg_space_cadet/)[0]
93
98
  irb prompt> exit
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pg_space_cadet'
3
- s.version = '0.7.2'
4
- s.date = '2013-03-21'
3
+ s.version = '0.7.3'
4
+ s.date = '2013-03-22'
5
5
  s.summary = "for space cadet augmented ActiveRecord::Base's, ruby ObjectSpace like object_id's as default ActiveRecord id's based on UUID's"
6
6
  s.description = "pg_space_cadet is a simple hack for postgreSQL and ActiveRecord which provides a uuids table of distributable identities of space cadets -- ActiveRecord::Base instances which use the SpaceCadetWrapper. Each space cadet has a default ActiveRecord id unique in the set of all local space cadets; a space cadet's id is derived from its uuid - UUID's are by design universally distributable."
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_space_cadet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-21 00:00:00.000000000 Z
12
+ date: 2013-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pg