alf-rack 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +6 -6
- data/lib/alf-rack.rb +1 -1
- data/lib/alf/rack/config.rb +5 -2
- data/lib/alf/rack/version.rb +2 -2
- metadata +28 -28
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../alf-core
|
3
3
|
specs:
|
4
|
-
alf-core (0.
|
4
|
+
alf-core (0.16.0)
|
5
5
|
domain (~> 1.0)
|
6
6
|
myrrha (~> 3.0)
|
7
7
|
path (~> 1.3)
|
@@ -10,16 +10,16 @@ PATH
|
|
10
10
|
PATH
|
11
11
|
remote: ../alf-sequel
|
12
12
|
specs:
|
13
|
-
alf-sequel (0.
|
14
|
-
alf-core (
|
15
|
-
alf-sql (
|
13
|
+
alf-sequel (0.16.0)
|
14
|
+
alf-core (= 0.16.0)
|
15
|
+
alf-sql (= 0.16.0)
|
16
16
|
sequel (~> 4.2)
|
17
17
|
|
18
18
|
PATH
|
19
19
|
remote: ../alf-sql
|
20
20
|
specs:
|
21
|
-
alf-sql (0.
|
22
|
-
alf-core (
|
21
|
+
alf-sql (0.16.0)
|
22
|
+
alf-core (= 0.16.0)
|
23
23
|
sexpr (~> 0.6.0)
|
24
24
|
|
25
25
|
GEM
|
data/lib/alf-rack.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require_relative "alf/rack"
|
1
|
+
require_relative "alf/rack"
|
data/lib/alf/rack/config.rb
CHANGED
@@ -9,7 +9,10 @@ module Alf
|
|
9
9
|
option :connection_options, Hash, {}
|
10
10
|
|
11
11
|
# Enclose all requests in a single database transaction?
|
12
|
-
option :transactional, Boolean,
|
12
|
+
option :transactional, Boolean, true
|
13
|
+
|
14
|
+
# Transaction options to use
|
15
|
+
option :transaction_options, Hash, {}
|
13
16
|
|
14
17
|
# Sets the database, coercing it if required
|
15
18
|
def database=(db)
|
@@ -43,7 +46,7 @@ module Alf
|
|
43
46
|
database.connect(connection_options) do |conn|
|
44
47
|
@connection = conn
|
45
48
|
if transactional?
|
46
|
-
conn.in_transaction{ yield(conn) }
|
49
|
+
conn.in_transaction(transaction_options){ yield(conn) }
|
47
50
|
else
|
48
51
|
yield(conn)
|
49
52
|
end
|
data/lib/alf/rack/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alf-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
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:
|
12
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: path
|
@@ -59,22 +59,6 @@ dependencies:
|
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.6.2
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: alf-sequel
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.15.0
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 0.15.0
|
78
62
|
- !ruby/object:Gem::Dependency
|
79
63
|
name: sequel
|
80
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,6 +123,22 @@ dependencies:
|
|
139
123
|
- - ~>
|
140
124
|
- !ruby/object:Gem::Version
|
141
125
|
version: '2.14'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: alf-sequel
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - '='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 0.16.0
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - '='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 0.16.0
|
142
142
|
- !ruby/object:Gem::Dependency
|
143
143
|
name: rack
|
144
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,13 +172,13 @@ dependencies:
|
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: 0.4.5
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
|
-
name:
|
175
|
+
name: ruby_cop
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
177
177
|
none: false
|
178
178
|
requirements:
|
179
179
|
- - ~>
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
181
|
+
version: '1.0'
|
182
182
|
type: :runtime
|
183
183
|
prerelease: false
|
184
184
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -186,23 +186,23 @@ dependencies:
|
|
186
186
|
requirements:
|
187
187
|
- - ~>
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version:
|
189
|
+
version: '1.0'
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
|
-
name:
|
191
|
+
name: alf-core
|
192
192
|
requirement: !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
195
|
-
- -
|
195
|
+
- - '='
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
197
|
+
version: 0.16.0
|
198
198
|
type: :runtime
|
199
199
|
prerelease: false
|
200
200
|
version_requirements: !ruby/object:Gem::Requirement
|
201
201
|
none: false
|
202
202
|
requirements:
|
203
|
-
- -
|
203
|
+
- - '='
|
204
204
|
- !ruby/object:Gem::Version
|
205
|
-
version:
|
205
|
+
version: 0.16.0
|
206
206
|
description: ! 'This gems provides Rack middleware to use the full power of Alf in
|
207
207
|
web
|
208
208
|
|
@@ -261,7 +261,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
261
261
|
version: '0'
|
262
262
|
segments:
|
263
263
|
- 0
|
264
|
-
hash: -
|
264
|
+
hash: -3190338127420244511
|
265
265
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
266
|
none: false
|
267
267
|
requirements:
|
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
270
|
version: '0'
|
271
271
|
segments:
|
272
272
|
- 0
|
273
|
-
hash: -
|
273
|
+
hash: -3190338127420244511
|
274
274
|
requirements: []
|
275
275
|
rubyforge_project:
|
276
276
|
rubygems_version: 1.8.25
|