flounder 0.12.0 → 0.12.1

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: 89027cfd2718cdb12b179408c60d7597333b8f35
4
- data.tar.gz: 94b4670b43b45137c6c7d111ded56903b1dc514d
3
+ metadata.gz: e69174de167de70dbf0357305fa02c71164c8bea
4
+ data.tar.gz: 278919200dee79e529c0ed56aa4dce90db7aed69
5
5
  SHA512:
6
- metadata.gz: cc55bcecfa205bd8c7897b2a1b71201cc8fcc06907ac2d10f7609230a23bfde2e7fe9e765a2ed300722a3e78b49b758a4815b50f5411eb318353ee72394290d1
7
- data.tar.gz: 60b493884663840097701f8bfb8f9707c214e5a2ac85c05f25ec36d1ab144f567e928618d317f1c5fe0f5c1c24997241fe8f76126226d825b2667510ede96313
6
+ metadata.gz: f64f07a05f24cc5bc2f2460285f495300ea2e4e6a0474d4b7e3d896ccca6e1852b252b3c4f710fa2ff7f9a1d1ce71b06bb72c68dde6b6e2b2bcad6b158375d57
7
+ data.tar.gz: 5076c7c51a2e30eb9a19c69f9139ab56c4db7b0cfcfa27acdccd8b3ddc591947a69bdf7adc90efed1ef7b72cebf66bfce6e5432193cd4297b323c5c20356b850
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flounder (0.11.7)
5
- aggregate
4
+ flounder (0.12.0)
5
+ aggregate (~> 0.2, >= 0.2.2)
6
6
  arel (~> 5, > 5.0.1)
7
7
  connection_pool (~> 2)
8
8
  hashie (~> 3, >= 3.2)
data/HISTORY CHANGED
@@ -1,5 +1,6 @@
1
1
  # 0.12
2
- + domain#stats keeps a histogram of execution times.
2
+ + domain#stats keeps a histogram of execution times.
3
+ + entity#fields without argument returns all fields.
3
4
 
4
5
  # 0.11
5
6
 
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.12.0'
5
+ s.version = '0.12.1'
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"
@@ -58,7 +58,7 @@ module Flounder
58
58
  Field.new(self, name, table[name])
59
59
  end
60
60
  def fields *names
61
- names.map { |name| self[name] }
61
+ (names.empty? ? column_names : names).map { |name| self[name] }
62
62
  end
63
63
 
64
64
  def inspect
data/qed/entities.md CHANGED
@@ -8,6 +8,12 @@ You can get an array of field values.
8
8
  users.fields(:id, :name).assert == [:id, :name].map { |f| users[f] }
9
9
  ~~~
10
10
 
11
+ You can get an array of all field values.
12
+
13
+ ~~~ruby
14
+ users.fields.assert == users.column_names.map { |f| users[f] }
15
+ ~~~
16
+
11
17
  These very same field names print nicely for debugging.
12
18
 
13
19
  ~~~ruby
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.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaspar Schiess
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-18 00:00:00.000000000 Z
12
+ date: 2014-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arel