activerecord 2.3.8.pre1 → 2.3.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord might be problematic. Click here for more details.

@@ -220,20 +220,20 @@ module ActiveRecord
220
220
  SQL
221
221
 
222
222
  execute(sql, name).map do |row|
223
- row[0]
223
+ row['name']
224
224
  end
225
225
  end
226
226
 
227
227
  def columns(table_name, name = nil) #:nodoc:
228
228
  table_structure(table_name).map do |field|
229
- SQLiteColumn.new(field['name'], field['dflt_value'], field['type'], field['notnull'] == "0")
229
+ SQLiteColumn.new(field['name'], field['dflt_value'], field['type'], field['notnull'].to_i == 0)
230
230
  end
231
231
  end
232
232
 
233
233
  def indexes(table_name, name = nil) #:nodoc:
234
234
  execute("PRAGMA index_list(#{quote_table_name(table_name)})", name).map do |row|
235
235
  index = IndexDefinition.new(table_name, row['name'])
236
- index.unique = row['unique'] != '0'
236
+ index.unique = row['unique'].to_i != 0
237
237
  index.columns = execute("PRAGMA index_info('#{index.name}')").map { |col| col['name'] }
238
238
  index
239
239
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 2
7
7
  - 3
8
8
  - 8
9
- - pre1
10
- version: 2.3.8.pre1
9
+ version: 2.3.8
11
10
  platform: ruby
12
11
  authors:
13
12
  - David Heinemeier Hansson
@@ -29,8 +28,7 @@ dependencies:
29
28
  - 2
30
29
  - 3
31
30
  - 8
32
- - pre1
33
- version: 2.3.8.pre1
31
+ version: 2.3.8
34
32
  type: :runtime
35
33
  version_requirements: *id001
36
34
  description: Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL.
@@ -410,13 +408,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
410
408
  version: "0"
411
409
  required_rubygems_version: !ruby/object:Gem::Requirement
412
410
  requirements:
413
- - - ">"
411
+ - - ">="
414
412
  - !ruby/object:Gem::Version
415
413
  segments:
416
- - 1
417
- - 3
418
- - 1
419
- version: 1.3.1
414
+ - 0
415
+ version: "0"
420
416
  requirements: []
421
417
 
422
418
  rubyforge_project: activerecord