activerecord_snapshot_view 0.11.7 → 0.11.8

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.
Files changed (3) hide show
  1. data/README.rdoc +4 -1
  2. data/VERSION +1 -1
  3. metadata +4 -4
@@ -23,7 +23,10 @@ there are class methods to get the different table names, and manipulate the ver
23
23
  * <tt>Foo.table_name</tt> : current active or working table name
24
24
  * <tt>Foo.working_table_name</tt> : current working table name
25
25
  * <tt>Foo.active_table_name</tt> : current active table name
26
- * <tt>Foo.new_version(&block)</tt> : run +block+ to create a new version of the table. during execution of the block <tt>Foo.table_name</tt> will return the working table name. if +block+ completes without raising an exception, or if the exception is an ActiveRecord::SnapshotView::SaveWork, then the working table will become permanently globally active
26
+ * <tt>Foo.new_version(&block)</tt> : run +block+ to create a new version of the table
27
+ * <tt>Foo.updated_version(&block)</tt> : copy all data from the active table to the working table, then run +block+ to update the working version
28
+
29
+ during the execution of +block+ in +new_version+ or +updated_version+ <tt>Foo.table_name</tt> returns the working table name. if +block+ completes without raising an exception, or if the exception is an ActiveRecord::SnapshotView::SaveWork, then the working table becomes permanently globally active
27
30
 
28
31
  the active table name is maintained as a row in an automatically created auxilliary table,
29
32
  [<tt>foos_switch</tt> in the case of <tt>Foo</tt>], and this is updated in a transaction
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.7
1
+ 0.11.8
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_snapshot_view
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 35
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 7
10
- version: 0.11.7
9
+ - 8
10
+ version: 0.11.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - mccraig mccraig of the clan mccraig
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-04 00:00:00 +01:00
18
+ date: 2011-02-02 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency