swift-db-mysql 0.2.0 → 0.2.1

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.1 (2012-08-09)
2
+
3
+ * Build fixes for Fedora.
4
+
1
5
  == 0.2.0 (2012-07-30)
2
6
 
3
7
  * cleaup & remove rb_gc_mark outside the mark phase.
@@ -21,15 +21,17 @@ lib_paths = %w(
21
21
  /opt/local/lib
22
22
  /opt/local/lib/mysql5/mysql
23
23
  /sw/lib
24
+ /usr/lib64/mysql
25
+ /usr/lib32/mysql
24
26
  )
25
27
 
26
- (inc_paths << ENV['SMY_INCLUDE_DIRS']).compact!
27
- (lib_paths << ENV['SMY_LIBRARY_DIRS']).compact!
28
+ uuid_inc, uuid_lib = dir_config('uuid', '/usr/include/uuid', '/usr/lib')
29
+ mysql_inc, mysql_lib = dir_config('mysql')
28
30
 
29
- find_header('mysql.h', *inc_paths) or raise 'unable to locate mysql headers set SMY_INCLUDE_DIRS'
30
- find_header('uuid/uuid.h', *inc_paths) or raise 'unable to locate uuid headers set SMY_INCLUDE_DIRS'
31
+ find_header 'uuid.h', *inc_paths.dup.unshift(uuid_inc).compact
32
+ find_header 'mysql.h', *inc_paths.dup.unshift(mysql_inc).compact
31
33
 
32
- find_library('mysqlclient', 'main', *lib_paths) or raise 'unable to locate mysql lib set SMY_LIBRARY_DIRS'
33
- find_library('uuid', 'main', *lib_paths) or raise 'unable to locate uuid lib set SMY_LIBRARY_DIRS'
34
+ find_library 'uuid', 'main', *lib_paths.dup.unshift(uuid_lib).compact
35
+ find_library 'mysqlclient', 'main', *lib_paths.dup.unshift(mysql_lib).compact
34
36
 
35
37
  create_makefile('swift_db_mysql_ext')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swift-db-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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: 2012-07-30 00:00:00.000000000 Z
12
+ date: 2012-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -37,9 +37,9 @@ extra_rdoc_files: []
37
37
  files:
38
38
  - ext/swift/db/mysql/datetime.c
39
39
  - ext/swift/db/mysql/main.c
40
- - ext/swift/db/mysql/result.c
41
40
  - ext/swift/db/mysql/typecast.c
42
41
  - ext/swift/db/mysql/statement.c
42
+ - ext/swift/db/mysql/result.c
43
43
  - ext/swift/db/mysql/common.c
44
44
  - ext/swift/db/mysql/adapter.c
45
45
  - ext/swift/db/mysql/typecast.h