activerecord-oracle_enhanced-adapter 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -13,7 +13,7 @@ elsif RUBY_ENGINE == 'jruby'
13
13
  puts "==> Running specs with JRuby version #{JRUBY_VERSION}"
14
14
  end
15
15
 
16
- ENV['RAILS_GEM_VERSION'] ||= '3.1-master'
16
+ ENV['RAILS_GEM_VERSION'] ||= '3.2-master'
17
17
  NO_COMPOSITE_PRIMARY_KEYS = true if ENV['RAILS_GEM_VERSION'] >= '2.3.5' || ENV['RAILS_GEM_VERSION'] =~ /^2\.3\.1\d$/
18
18
 
19
19
  puts "==> Running specs with Rails version #{ENV['RAILS_GEM_VERSION']}"
@@ -23,6 +23,7 @@ require 'active_record'
23
23
  if ENV['RAILS_GEM_VERSION'] >= '3.0'
24
24
  require 'action_dispatch'
25
25
  require 'active_support/core_ext/module/attribute_accessors'
26
+ require 'active_support/core_ext/class/attribute_accessors'
26
27
 
27
28
  if ENV['RAILS_GEM_VERSION'] =~ /^3.0.0.beta/
28
29
  require "rails/log_subscriber"
@@ -50,19 +51,7 @@ module LoggerSpecHelper
50
51
  @logger = MockLogger.new
51
52
  @old_logger = ActiveRecord::Base.logger
52
53
 
53
- if ENV['RAILS_GEM_VERSION'] =~ /^3.0.0.beta/
54
- queue = ActiveSupport::Notifications::Fanout.new
55
- @notifier = ActiveSupport::Notifications::Notifier.new(queue)
56
-
57
- Rails::LogSubscriber.colorize_logging = false
58
-
59
- ActiveRecord::Base.logger = @logger
60
- @old_notifier = ActiveSupport::Notifications.notifier
61
- ActiveSupport::Notifications.notifier = @notifier
62
-
63
- Rails::LogSubscriber.add(:active_record, ActiveRecord::Railties::LogSubscriber.new)
64
-
65
- elsif ENV['RAILS_GEM_VERSION'] >= '3.0'
54
+ if ENV['RAILS_GEM_VERSION'] >= '3.0'
66
55
  @notifier = ActiveSupport::Notifications::Fanout.new
67
56
 
68
57
  ActiveSupport::LogSubscriber.colorize_logging = false
@@ -72,7 +61,9 @@ module LoggerSpecHelper
72
61
  ActiveSupport::Notifications.notifier = @notifier
73
62
 
74
63
  ActiveRecord::LogSubscriber.attach_to(:active_record)
75
-
64
+ if ENV['RAILS_GEM_VERSION'] >= '3.2'
65
+ ActiveSupport::Notifications.subscribe("sql.active_record", ActiveRecord::ExplainSubscriber.new)
66
+ end
76
67
  else # ActiveRecord 2.x
77
68
  if ActiveRecord::Base.respond_to?(:connection_pool)
78
69
  ActiveRecord::Base.connection_pool.clear_reloadable_connections!
metadata CHANGED
@@ -1,185 +1,152 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: activerecord-oracle_enhanced-adapter
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.4.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 4
9
- - 0
10
- version: 1.4.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Raimonds Simanovskis
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-08-09 00:00:00 +03:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- type: :development
24
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-01-27 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jeweler
16
+ requirement: &2153250780 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 1
30
- segments:
31
- - 1
32
- - 5
33
- - 1
20
+ - !ruby/object:Gem::Version
34
21
  version: 1.5.1
35
- name: jeweler
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- prerelease: false
39
22
  type: :development
40
- requirement: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: *2153250780
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &2153250120 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
29
+ requirements:
43
30
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 11
46
- segments:
47
- - 2
48
- - 4
49
- version: "2.4"
50
- name: rspec
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- prerelease: false
31
+ - !ruby/object:Gem::Version
32
+ version: '2.4'
54
33
  type: :development
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
- version: "0"
64
- name: activerecord
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
34
  prerelease: false
68
- type: :development
69
- requirement: &id004 !ruby/object:Gem::Requirement
35
+ version_requirements: *2153250120
36
+ - !ruby/object:Gem::Dependency
37
+ name: activerecord
38
+ requirement: &2153249460 !ruby/object:Gem::Requirement
70
39
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 3
75
- segments:
76
- - 0
77
- version: "0"
78
- name: activemodel
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- prerelease: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
82
44
  type: :development
83
- requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
92
- name: activesupport
93
- version_requirements: *id005
94
- - !ruby/object:Gem::Dependency
95
45
  prerelease: false
96
- type: :development
97
- requirement: &id006 !ruby/object:Gem::Requirement
46
+ version_requirements: *2153249460
47
+ - !ruby/object:Gem::Dependency
48
+ name: activemodel
49
+ requirement: &2153248740 !ruby/object:Gem::Requirement
98
50
  none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- hash: 3
103
- segments:
104
- - 0
105
- version: "0"
106
- name: actionpack
107
- version_requirements: *id006
108
- - !ruby/object:Gem::Dependency
109
- prerelease: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
110
55
  type: :development
111
- requirement: &id007 !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ version_requirements: *2153248740
58
+ - !ruby/object:Gem::Dependency
59
+ name: activesupport
60
+ requirement: &2153244840 !ruby/object:Gem::Requirement
112
61
  none: false
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- hash: 3
117
- segments:
118
- - 0
119
- version: "0"
120
- name: railties
121
- version_requirements: *id007
122
- - !ruby/object:Gem::Dependency
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
123
67
  prerelease: false
68
+ version_requirements: *2153244840
69
+ - !ruby/object:Gem::Dependency
70
+ name: actionpack
71
+ requirement: &2153243500 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
124
77
  type: :development
125
- requirement: &id008 !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ version_requirements: *2153243500
80
+ - !ruby/object:Gem::Dependency
81
+ name: railties
82
+ requirement: &2153241780 !ruby/object:Gem::Requirement
126
83
  none: false
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- hash: 3
131
- segments:
132
- - 0
133
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *2153241780
91
+ - !ruby/object:Gem::Dependency
134
92
  name: arel
135
- version_requirements: *id008
136
- - !ruby/object:Gem::Dependency
93
+ requirement: &2153241160 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
137
100
  prerelease: false
101
+ version_requirements: *2153241160
102
+ - !ruby/object:Gem::Dependency
103
+ name: journey
104
+ requirement: &2153239560 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
138
110
  type: :development
139
- requirement: &id009 !ruby/object:Gem::Requirement
111
+ prerelease: false
112
+ version_requirements: *2153239560
113
+ - !ruby/object:Gem::Dependency
114
+ name: ruby-plsql
115
+ requirement: &2153238020 !ruby/object:Gem::Requirement
140
116
  none: false
141
- requirements:
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- hash: 7
145
- segments:
146
- - 0
147
- - 4
148
- - 4
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
149
120
  version: 0.4.4
150
- name: ruby-plsql
151
- version_requirements: *id009
152
- - !ruby/object:Gem::Dependency
153
- prerelease: false
154
121
  type: :development
155
- requirement: &id010 !ruby/object:Gem::Requirement
122
+ prerelease: false
123
+ version_requirements: *2153238020
124
+ - !ruby/object:Gem::Dependency
125
+ name: ruby-oci8
126
+ requirement: &2153237300 !ruby/object:Gem::Requirement
156
127
  none: false
157
- requirements:
158
- - - ~>
159
- - !ruby/object:Gem::Version
160
- hash: 7
161
- segments:
162
- - 2
163
- - 0
164
- - 4
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
165
131
  version: 2.0.4
166
- name: ruby-oci8
167
- version_requirements: *id010
168
- description: |
169
- Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases.
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *2153237300
135
+ description: ! 'Oracle "enhanced" ActiveRecord adapter contains useful additional
136
+ methods for working with new and legacy Oracle databases.
137
+
170
138
  This adapter is superset of original ActiveRecord Oracle adapter.
171
139
 
140
+ '
172
141
  email: raimonds.simanovskis@gmail.com
173
142
  executables: []
174
-
175
143
  extensions: []
176
-
177
- extra_rdoc_files:
144
+ extra_rdoc_files:
178
145
  - README.md
179
- files:
146
+ files:
180
147
  - .rspec
181
148
  - Gemfile
182
- - History.txt
149
+ - History.md
183
150
  - License.txt
184
151
  - README.md
185
152
  - RUNNING_TESTS.md
@@ -222,41 +189,34 @@ files:
222
189
  - spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb
223
190
  - spec/active_record/connection_adapters/oracle_enhanced_structure_dump_spec.rb
224
191
  - spec/spec_helper.rb
225
- has_rdoc: true
226
192
  homepage: http://github.com/rsim/oracle-enhanced
227
193
  licenses: []
228
-
229
194
  post_install_message:
230
195
  rdoc_options: []
231
-
232
- require_paths:
196
+ require_paths:
233
197
  - lib
234
- required_ruby_version: !ruby/object:Gem::Requirement
198
+ required_ruby_version: !ruby/object:Gem::Requirement
235
199
  none: false
236
- requirements:
237
- - - ">="
238
- - !ruby/object:Gem::Version
239
- hash: 3
240
- segments:
200
+ requirements:
201
+ - - ! '>='
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ segments:
241
205
  - 0
242
- version: "0"
243
- required_rubygems_version: !ruby/object:Gem::Requirement
206
+ hash: -576454282826115937
207
+ required_rubygems_version: !ruby/object:Gem::Requirement
244
208
  none: false
245
- requirements:
246
- - - ">="
247
- - !ruby/object:Gem::Version
248
- hash: 3
249
- segments:
250
- - 0
251
- version: "0"
209
+ requirements:
210
+ - - ! '>='
211
+ - !ruby/object:Gem::Version
212
+ version: '0'
252
213
  requirements: []
253
-
254
214
  rubyforge_project:
255
- rubygems_version: 1.6.2
215
+ rubygems_version: 1.8.6
256
216
  signing_key:
257
217
  specification_version: 3
258
218
  summary: Oracle enhanced adapter for ActiveRecord
259
- test_files:
219
+ test_files:
260
220
  - spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
261
221
  - spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb
262
222
  - spec/active_record/connection_adapters/oracle_enhanced_context_index_spec.rb