flounder 0.18.2 → 0.18.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f60fabc94bf34a924e2415c6afeef19c98d565c9
4
- data.tar.gz: 831d3c9e63fcecc02fc7b82f8814159358341435
3
+ metadata.gz: 000e2bacbb00518bad55beff484a34fddf2bad90
4
+ data.tar.gz: cef0c32ba9086ebf32fae131b99747c19a58839a
5
5
  SHA512:
6
- metadata.gz: eb48e10532ba0c3febdc3aa57c4d1671ab24b8990c6e16539f11a91971c2ac1fc5e3440ea5e51710fd1a58155bf9903668c5480b87f7cffa1d43bcd04c971a55
7
- data.tar.gz: feffebf6cf853a97f1d240c4cebcf482bd9f77084efe6dbdcc38079e3a12dd2cf9c2c13736e9001d22abf04c31f9d3c8bec551c67b75cfed68df6fe82cd0e417
6
+ metadata.gz: 7f2cf21c18f09391606b9c00110eab5534ccc6a9ec18b3a507a68cf567b9f6e909dd658408568391bf748474fce45502debb6ac579cde1f32b884f850481a9f6
7
+ data.tar.gz: ab0b21e881cadd1caeec275b75f91f7386fa1e673eab24ac1495562a7d7f4161f52f6fdd02258ac9d146af39852a8937f7c69584e17e1222b8f68c043a2c2fe0
data/Gemfile.lock CHANGED
@@ -4,10 +4,12 @@ PATH
4
4
  flounder (0.18.1)
5
5
  aggregate (~> 0.2, >= 0.2.2)
6
6
  arel (~> 5, > 5.0.1)
7
+ blankslate
7
8
  connection_pool (~> 2)
8
9
  hashie (~> 3, >= 3.2)
9
10
  pg (~> 0.17)
10
11
  pg-hstore (~> 1.2, >= 1.2.0)
12
+ virtus
11
13
 
12
14
  GEM
13
15
  remote: https://rubygems.org/
@@ -17,21 +19,57 @@ GEM
17
19
  aggregate (0.2.2)
18
20
  ansi (1.4.3)
19
21
  arel (5.0.1.20140414130214)
22
+ axiom-types (0.0.5)
23
+ descendants_tracker (~> 0.0.1)
24
+ ice_nine (~> 0.9)
25
+ backports (3.6.3)
26
+ blankslate (3.1.3)
20
27
  brass (1.2.1)
21
- connection_pool (2.1.0)
28
+ coercible (0.2.0)
29
+ backports (~> 3.0, >= 3.1.0)
30
+ descendants_tracker (~> 0.0.1)
31
+ connection_pool (2.0.0)
32
+ descendants_tracker (0.0.4)
33
+ thread_safe (~> 0.3, >= 0.3.1)
34
+ diff-lcs (1.2.5)
35
+ equalizer (0.0.9)
22
36
  facets (2.9.3)
23
- hashie (3.3.2)
37
+ flexmock (1.3.3)
38
+ hashie (3.3.1)
39
+ ice_nine (0.11.0)
24
40
  pg (0.17.1)
25
41
  pg-hstore (1.2.0)
26
42
  qed (2.9.1)
27
43
  ansi
28
44
  brass
29
45
  facets (>= 2.8)
46
+ rspec (3.1.0)
47
+ rspec-core (~> 3.1.0)
48
+ rspec-expectations (~> 3.1.0)
49
+ rspec-mocks (~> 3.1.0)
50
+ rspec-core (3.1.7)
51
+ rspec-support (~> 3.1.0)
52
+ rspec-expectations (3.1.2)
53
+ diff-lcs (>= 1.2.0, < 2.0)
54
+ rspec-support (~> 3.1.0)
55
+ rspec-mocks (3.1.3)
56
+ rspec-support (~> 3.1.0)
57
+ rspec-support (3.1.2)
58
+ ruby-prof (0.15.2)
59
+ thread_safe (0.3.4)
60
+ virtus (1.0.0)
61
+ axiom-types (~> 0.0.5)
62
+ coercible (~> 0.2)
63
+ descendants_tracker (~> 0.0.1)
64
+ equalizer (~> 0.0.7)
30
65
 
31
66
  PLATFORMS
32
67
  ruby
33
68
 
34
69
  DEPENDENCIES
35
70
  ae
71
+ flexmock
36
72
  flounder!
37
73
  qed
74
+ rspec
75
+ ruby-prof
data/HISTORY CHANGED
@@ -1,6 +1,7 @@
1
1
  # 0.18
2
2
  + Allows usage of relation names in where clauses.
3
3
  + Remaps entity oids automatically if a mismatch exists.
4
+ * Bug fixes and completing the interface
4
5
 
5
6
  # 0.17
6
7
  + A call to order_by fully replaces previously set ordering.
data/flounder.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "flounder"
5
- s.version = '0.18.2'
5
+ s.version = '0.18.3'
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"
@@ -36,6 +36,10 @@ module Flounder
36
36
  entity.relations *a
37
37
  end
38
38
 
39
+ def fields *a
40
+ a.map { |n| self[n] }
41
+ end
42
+
39
43
  def inspect
40
44
  "<Flounder/Entity/Alias #{entity.name}(#{entity.table_name}) as (#{plural}, #{singular}))>"
41
45
  end
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.18.2
4
+ version: 0.18.3
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-12-01 00:00:00.000000000 Z
12
+ date: 2014-12-02 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
@@ -217,4 +217,3 @@ test_files:
217
217
  - qed/projection.md
218
218
  - qed/selects.md
219
219
  - qed/updates.md
220
- has_rdoc: