flounder 0.16.1 → 0.16.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b60917805be8336d2b31cff15058cc30ac29ad3
4
- data.tar.gz: 36632561d92982f5f0f8389c74fa4ed967f8d728
3
+ metadata.gz: b7af4331e93d451cfb0f0533c3cab1d5c2b25a5a
4
+ data.tar.gz: b9e71279dab727864e0f8c1033fd65a77a5a57f3
5
5
  SHA512:
6
- metadata.gz: 16452e66031909b6d768c6b74dc4e84418b8eefaf87c202922f5c5c8dd77c88008bddd0d57000f72787e4923b70563e2412bb633930ecee9591e3eb7f24ac722
7
- data.tar.gz: 1b877efe3d7243f416ad09dd1d57b2037c6ac235f4882a8cc4ddd0a535e916bb7bc364d86c3a3c35c1aea34dad66f02a86ca6cfd05d10d83e9d37d1a223167c7
6
+ metadata.gz: 18b9387c8b0d112b9c8f275c1013e55a28628bc3a2c5311318ddd4f30748fe117247b5efb3e08e35b21c4de1454c932f76c8cf92bfe32daad9134ddf3582b906
7
+ data.tar.gz: 9d6d91ad2e82b677ff5c1f056ebb95e251634998be6beea1be1f1401829110c0d0c7739604a7897a7b004d3ce3c599e38221433abba5551e5fbf53d5068f4e04
data/HISTORY CHANGED
@@ -1,5 +1,6 @@
1
1
  # 0.16
2
2
  + DRY joins using #connect - one declaration of relationships, many uses.
3
+ + Timestamp with timezone
3
4
 
4
5
  # 0.15
5
6
  + Condition piece generator - use this to create OR expressions: Entity#cond
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "flounder"
5
- s.version = '0.16.1'
5
+ s.version = '0.16.2'
6
6
  s.summary = "Flounder is a way to write SQL simply in Ruby. It deals with everything BUT object relational mapping. "
7
7
  s.email = "kaspar.schiess@technologyastronauts.ch"
8
8
  s.homepage = "https://bitbucket.org/technologyastronauts/oss_flounder"
@@ -14,6 +14,7 @@ module Flounder
14
14
  OID_TIMESTAMP = 1114
15
15
  OID_DATE = 1082
16
16
  OID_TIME = 1083
17
+ OID_TIMESTAMPTZ = 1184
17
18
 
18
19
  def typecast type_oid, value
19
20
  return nil unless value
@@ -25,6 +26,8 @@ module Flounder
25
26
 
26
27
  # assert: value is not nil
27
28
  case type_oid
29
+ when OID_TIMESTAMPTZ
30
+ DateTime.parse(value)
28
31
  when OID_TIMESTAMP
29
32
  DateTime.parse(value)
30
33
  when OID_DATE
@@ -63,7 +66,7 @@ module Flounder
63
66
  return :hash if oid_hstore && oid==oid_hstore
64
67
 
65
68
  case oid
66
- when OID_TIMESTAMP
69
+ when OID_TIMESTAMP, OID_TIMESTAMPTZ
67
70
  :datetime
68
71
  when OID_DATE
69
72
  :date
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flounder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaspar Schiess
@@ -9,114 +9,114 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-30 00:00:00.000000000 Z
12
+ date: 2014-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arel
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
20
  version: '5'
21
- - - ">"
21
+ - - '>'
22
22
  - !ruby/object:Gem::Version
23
23
  version: 5.0.1
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - "~>"
28
+ - - ~>
29
29
  - !ruby/object:Gem::Version
30
30
  version: '5'
31
- - - ">"
31
+ - - '>'
32
32
  - !ruby/object:Gem::Version
33
33
  version: 5.0.1
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: pg
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.17'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.17'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: hashie
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3'
55
- - - ">="
55
+ - - '>='
56
56
  - !ruby/object:Gem::Version
57
57
  version: '3.2'
58
58
  type: :runtime
59
59
  prerelease: false
60
60
  version_requirements: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - "~>"
62
+ - - ~>
63
63
  - !ruby/object:Gem::Version
64
64
  version: '3'
65
- - - ">="
65
+ - - '>='
66
66
  - !ruby/object:Gem::Version
67
67
  version: '3.2'
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: connection_pool
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ~>
73
73
  - !ruby/object:Gem::Version
74
74
  version: '2'
75
75
  type: :runtime
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ~>
80
80
  - !ruby/object:Gem::Version
81
81
  version: '2'
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: pg-hstore
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ~>
87
87
  - !ruby/object:Gem::Version
88
88
  version: '1.2'
89
- - - ">="
89
+ - - '>='
90
90
  - !ruby/object:Gem::Version
91
91
  version: 1.2.0
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - "~>"
96
+ - - ~>
97
97
  - !ruby/object:Gem::Version
98
98
  version: '1.2'
99
- - - ">="
99
+ - - '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: 1.2.0
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: aggregate
104
104
  requirement: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - "~>"
106
+ - - ~>
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0.2'
109
- - - ">="
109
+ - - '>='
110
110
  - !ruby/object:Gem::Version
111
111
  version: 0.2.2
112
112
  type: :runtime
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - "~>"
116
+ - - ~>
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0.2'
119
- - - ">="
119
+ - - '>='
120
120
  - !ruby/object:Gem::Version
121
121
  version: 0.2.2
122
122
  description: " Flounder is the missing piece between the database and your Ruby
@@ -127,14 +127,11 @@ executables: []
127
127
  extensions: []
128
128
  extra_rdoc_files: []
129
129
  files:
130
+ - flounder.gemspec
130
131
  - Gemfile
131
132
  - Gemfile.lock
132
133
  - HACKING
133
134
  - HISTORY
134
- - LICENSE
135
- - README
136
- - flounder.gemspec
137
- - lib/flounder.rb
138
135
  - lib/flounder/connection.rb
139
136
  - lib/flounder/connection_pool.rb
140
137
  - lib/flounder/domain.rb
@@ -155,6 +152,8 @@ files:
155
152
  - lib/flounder/query/update.rb
156
153
  - lib/flounder/relation.rb
157
154
  - lib/flounder/symbol_extensions.rb
155
+ - lib/flounder.rb
156
+ - LICENSE
158
157
  - qed/applique/ae.rb
159
158
  - qed/applique/flounder.rb
160
159
  - qed/applique/setup_domain.rb
@@ -173,6 +172,7 @@ files:
173
172
  - qed/projection.md
174
173
  - qed/selects.md
175
174
  - qed/updates.md
175
+ - README
176
176
  homepage: https://bitbucket.org/technologyastronauts/oss_flounder
177
177
  licenses:
178
178
  - MIT
@@ -183,17 +183,17 @@ require_paths:
183
183
  - lib
184
184
  required_ruby_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - ">="
186
+ - - '>='
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  requirements:
191
- - - ">="
191
+ - - '>='
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.2.2
196
+ rubygems_version: 2.0.14
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: Flounder is a way to write SQL simply in Ruby. It deals with everything BUT