dm-nested-transactions 0.0.1 → 0.0.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.
- data/README +1 -1
- data/VERSION +1 -1
- data/lib/dm-nested-transactions.rb +3 -0
- metadata +3 -3
data/README
CHANGED
|
@@ -9,4 +9,4 @@ Install:
|
|
|
9
9
|
Usage:
|
|
10
10
|
repository.adapter.extend(DataMapper::NestedTransactinos)
|
|
11
11
|
|
|
12
|
-
There's a rails/init.rb file that automatically does the above for you.
|
|
12
|
+
There's a rails/init.rb file that automatically does the above for you. If you are using rails, you probably also want xaviershay-dm-rails since dm-rails 10.2 is broken with transactions.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
# we need a nested transaction or not, and adds a new NestedTransaction
|
|
6
6
|
# transaction primitive that issues savepoint commands rather than begin/commit.
|
|
7
7
|
|
|
8
|
+
require 'dm-core'
|
|
9
|
+
require 'data_objects'
|
|
10
|
+
|
|
8
11
|
module DataMapper
|
|
9
12
|
module Resource
|
|
10
13
|
def transaction(&block)
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.0.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Xavier Shay
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-03-
|
|
17
|
+
date: 2010-03-10 00:00:00 +13:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies: []
|
|
20
20
|
|