sequel_transaction 0.0.4 → 0.1.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 291725d79047d1a1f4c80c0656bc5bb2fea694fb
|
4
|
+
data.tar.gz: 3c1b86850814c5b9b94c65be0e43948a3fc5e170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75a01655c78712c1b25e8d6b6e49c303bc99d821b7cb52497b9aa4931678b3967202f0d69128c7cc549e254b3cbca6f751be5e187f52fe64b35ed6c4bd3dfbf8
|
7
|
+
data.tar.gz: 7125283eb1c2ebae2c89a5d2a6a24bd92eff9f5c633921c52fa30de33bea0010d50bf94442e494677bda49541645b5e05c1e131abd242995bdee2fd49011fd6d
|
data/Rakefile
CHANGED
@@ -63,6 +63,12 @@ describe Rack::SequelTransaction do
|
|
63
63
|
dataset.must_be :empty?
|
64
64
|
end
|
65
65
|
|
66
|
+
it 'adds connection to env' do
|
67
|
+
expect_call 200
|
68
|
+
subject.call env
|
69
|
+
env['transaction.connection'].must_equal connection
|
70
|
+
end
|
71
|
+
|
66
72
|
%w{ GET HEAD OPTIONS }.each do |method|
|
67
73
|
# shouldn't be modifying anything on these types of requests; modifying for assertion purposes
|
68
74
|
|
@@ -87,6 +93,12 @@ describe Rack::SequelTransaction do
|
|
87
93
|
subject.call env
|
88
94
|
dataset.wont_be :empty?
|
89
95
|
end
|
96
|
+
|
97
|
+
it 'wont set connection on env' do
|
98
|
+
expect_call 200
|
99
|
+
subject.call env
|
100
|
+
env['transaction.connection'].must_be_nil
|
101
|
+
end
|
90
102
|
end
|
91
103
|
end
|
92
104
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel_transaction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vyrak.bunleang@gmail.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|