alf-sequel 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,12 @@
1
+ # 0.16.0 / 2014-02-18
2
+
3
+ * Connection#in_transaction now correctly delegates arguments to Sequel's
4
+ transaction method.
5
+
6
+ # 0.15.0 / 2013-11-01
7
+
8
+ * Entirely refactored to use alf-sql instead of hard-coded compilation.
9
+
1
10
  # 0.14.0 / 2013-10-01
2
11
 
3
12
  * Added SQL implementation of `page` and `frame`
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../alf-core
3
3
  specs:
4
- alf-core (0.15.0)
4
+ alf-core (0.16.0)
5
5
  domain (~> 1.0)
6
6
  myrrha (~> 3.0)
7
7
  path (~> 1.3)
@@ -10,8 +10,8 @@ PATH
10
10
  PATH
11
11
  remote: ../alf-sql
12
12
  specs:
13
- alf-sql (0.15.0)
14
- alf-core (~> 0.15.0)
13
+ alf-sql (0.16.0)
14
+ alf-core (= 0.16.0)
15
15
  sexpr (~> 0.6.0)
16
16
 
17
17
  GEM
@@ -1 +1 @@
1
- require_relative "alf/sequel"
1
+ require_relative "alf/sequel"
@@ -37,7 +37,11 @@ module Alf
37
37
 
38
38
  def each(&bl)
39
39
  return to_enum unless block_given?
40
- dataset.each(&bl)
40
+ if sexpr.is_table_dee?
41
+ Alf::Engine::Clip.new(dataset, AttrList[:is_table_dee], true).each(&bl)
42
+ else
43
+ dataset.each(&bl)
44
+ end
41
45
  end
42
46
 
43
47
  end # class Cog
@@ -4,8 +4,8 @@ module Alf
4
4
  module UpdateMethods
5
5
 
6
6
  # Yields the block in a transaction
7
- def in_transaction(&bl)
8
- sequel_db.transaction(&bl)
7
+ def in_transaction(*args, &bl)
8
+ sequel_db.transaction(*args, &bl)
9
9
  end
10
10
 
11
11
  def lock(name, mode, &bl)
@@ -1,3 +1,3 @@
1
- require "alf-core"
2
- require "alf-sql"
3
1
  require "sequel"
2
+ require "alf-core"
3
+ require "alf-sql"
@@ -3,7 +3,7 @@ module Alf
3
3
  module Version
4
4
 
5
5
  MAJOR = 0
6
- MINOR = 15
6
+ MINOR = 16
7
7
  TINY = 0
8
8
 
9
9
  def self.to_s
@@ -13,4 +13,4 @@ module Alf
13
13
  end
14
14
  VERSION = Version.to_s
15
15
  end
16
- end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alf-sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.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: 2013-10-31 00:00:00.000000000 Z
12
+ date: 2014-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -44,13 +44,13 @@ dependencies:
44
44
  - !ruby/object:Gem::Version
45
45
  version: '2.14'
46
46
  - !ruby/object:Gem::Dependency
47
- name: alf-core
47
+ name: sequel
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 0.15.0
53
+ version: '4.2'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,39 +58,39 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.15.0
61
+ version: '4.2'
62
62
  - !ruby/object:Gem::Dependency
63
- name: alf-sql
63
+ name: alf-core
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
- - - ~>
67
+ - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.15.0
69
+ version: 0.16.0
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
- - - ~>
75
+ - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.15.0
77
+ version: 0.16.0
78
78
  - !ruby/object:Gem::Dependency
79
- name: sequel
79
+ name: alf-sql
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - ~>
83
+ - - '='
84
84
  - !ruby/object:Gem::Version
85
- version: '4.2'
85
+ version: 0.16.0
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - ~>
91
+ - - '='
92
92
  - !ruby/object:Gem::Version
93
- version: '4.2'
93
+ version: 0.16.0
94
94
  description: This project implements an Alf adapter on top of the awesome sequel toolkit.
95
95
  email:
96
96
  - blambeau at gmail.com
@@ -157,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  segments:
159
159
  - 0
160
- hash: -1889341604392820910
160
+ hash: 3002994660447087397
161
161
  required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  none: false
163
163
  requirements:
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  segments:
168
168
  - 0
169
- hash: -1889341604392820910
169
+ hash: 3002994660447087397
170
170
  requirements: []
171
171
  rubyforge_project:
172
172
  rubygems_version: 1.8.25