pg_typecast 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/ext/pg_typecast.c +4 -4
  3. data/pg_typecast.gemspec +17 -23
  4. metadata +37 -58
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -24,7 +24,7 @@ int64_t client_tzoffset(int64_t local, int isdst) {
24
24
  return (int64_t)(local + (isdst ? 3600 : 0) - mktime(&tm));
25
25
  }
26
26
 
27
- VALUE typecast_timestamp(const char *data, uint64_t len) {
27
+ static VALUE typecast_timestamp(const char *data, uint64_t len) {
28
28
  struct tm tm;
29
29
  int64_t epoch, adjust, offset;
30
30
 
@@ -64,11 +64,11 @@ VALUE typecast_timestamp(const char *data, uint64_t len) {
64
64
  return rb_str_new(data, len);
65
65
  }
66
66
 
67
- VALUE typecast_date(const char *data, uint64_t len) {
67
+ static VALUE typecast_date(const char *data, uint64_t len) {
68
68
  return rb_funcall(typecast_timestamp(data, len), rb_intern("to_date"), 0);
69
69
  }
70
70
 
71
- inline VALUE typecast(const char* data, uint64_t len, int pgtype) {
71
+ static VALUE typecast(const char* data, uint64_t len, int pgtype) {
72
72
  size_t bytea_len;
73
73
  unsigned char* bytea;
74
74
  VALUE rv;
@@ -103,7 +103,7 @@ inline VALUE typecast(const char* data, uint64_t len, int pgtype) {
103
103
  }
104
104
  }
105
105
 
106
- VALUE result_each(VALUE self) {
106
+ static VALUE result_each(VALUE self) {
107
107
  int r, c, rows, cols, *types, failed;
108
108
  PGresult *res;
109
109
  Data_Get_Struct(self, PGresult, res);
@@ -1,46 +1,40 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{pg_typecast}
8
- s.version = "0.1.2"
7
+ s.name = "pg_typecast"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bharanee Rathna"]
12
- s.date = %q{2010-09-17}
13
- s.description = %q{Extensions to pg gem supporting typecasting.}
12
+ s.date = "2012-07-29"
13
+ s.description = "Extensions to pg gem supporting typecasting."
14
14
  s.email = ["deepfryed@gmail.com"]
15
15
  s.extensions = ["ext/extconf.rb"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
- "README.rdoc"
18
+ "README.rdoc"
19
19
  ]
20
20
  s.files = [
21
21
  "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "ext/extconf.rb",
26
- "ext/pg_typecast.c",
27
- "pg_typecast.gemspec",
28
- "test/helper.rb",
29
- "test/test_types.rb"
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "ext/extconf.rb",
26
+ "ext/pg_typecast.c",
27
+ "pg_typecast.gemspec",
28
+ "test/helper.rb",
29
+ "test/test_types.rb"
30
30
  ]
31
- s.homepage = %q{http://github.com/deepfryed/pg_typecast}
32
- s.rdoc_options = ["--charset=UTF-8"]
31
+ s.homepage = "http://github.com/deepfryed/pg_typecast"
33
32
  s.require_paths = ["lib"]
34
33
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
35
- s.rubygems_version = %q{1.3.7}
36
- s.summary = %q{Extensions to pg gem supporting typecasting.}
37
- s.test_files = [
38
- "test/helper.rb",
39
- "test/test_types.rb"
40
- ]
34
+ s.rubygems_version = "1.8.24"
35
+ s.summary = "Extensions to pg gem supporting typecasting."
41
36
 
42
37
  if s.respond_to? :specification_version then
43
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
38
  s.specification_version = 3
45
39
 
46
40
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,50 +1,42 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pg_typecast
3
- version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Bharanee Rathna
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2010-09-17 00:00:00 +10:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-07-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: pg
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 59
30
- segments:
31
- - 0
32
- - 9
33
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 0.9.0
35
22
  type: :runtime
36
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.9.0
37
30
  description: Extensions to pg gem supporting typecasting.
38
- email:
31
+ email:
39
32
  - deepfryed@gmail.com
40
33
  executables: []
41
-
42
- extensions:
34
+ extensions:
43
35
  - ext/extconf.rb
44
- extra_rdoc_files:
36
+ extra_rdoc_files:
45
37
  - LICENSE
46
38
  - README.rdoc
47
- files:
39
+ files:
48
40
  - LICENSE
49
41
  - README.rdoc
50
42
  - Rakefile
@@ -54,42 +46,29 @@ files:
54
46
  - pg_typecast.gemspec
55
47
  - test/helper.rb
56
48
  - test/test_types.rb
57
- has_rdoc: true
58
49
  homepage: http://github.com/deepfryed/pg_typecast
59
50
  licenses: []
60
-
61
51
  post_install_message:
62
- rdoc_options:
63
- - --charset=UTF-8
64
- require_paths:
52
+ rdoc_options: []
53
+ require_paths:
65
54
  - lib
66
- required_ruby_version: !ruby/object:Gem::Requirement
55
+ required_ruby_version: !ruby/object:Gem::Requirement
67
56
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 49
72
- segments:
73
- - 1
74
- - 9
75
- - 1
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
76
60
  version: 1.9.1
77
- required_rubygems_version: !ruby/object:Gem::Requirement
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
62
  none: false
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- hash: 3
83
- segments:
84
- - 0
85
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
86
67
  requirements: []
87
-
88
68
  rubyforge_project:
89
- rubygems_version: 1.3.7
69
+ rubygems_version: 1.8.24
90
70
  signing_key:
91
71
  specification_version: 3
92
72
  summary: Extensions to pg gem supporting typecasting.
93
- test_files:
94
- - test/helper.rb
95
- - test/test_types.rb
73
+ test_files: []
74
+ has_rdoc: