table-flip 0.1.0 → 0.1.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: d9f088ee1392f2b62dc4d99059856a71d67c0d8f
4
- data.tar.gz: bc017bfd6ebb09481c557fbdb414e9d7c676535c
3
+ metadata.gz: c3eff479f677d65477de44fadcd1db9717c2da46
4
+ data.tar.gz: 6f8b401086a51cfea01d7877653940ab1325cc7d
5
5
  SHA512:
6
- metadata.gz: 2c093761df2c569822b7bffb2599a35cefc9b35d6b3d5f029a9e80b9b840f671476bb3d192e4ef39f8d0e37568c92052b525401551b9c39d833b7dc7f7ed832e
7
- data.tar.gz: efa61bce9a0c6370b8de23f0fc4a30842237be56c73e67d25a172a268ccf59e27b3f3d0d52f2073ef13535dc21bfb7d8517bf7dab33f224d7f047faea78c6233
6
+ metadata.gz: 5c4fbf274e237c02702220ca151479ea03022d9c2dfe0cd4c75cf68bc512e624e35b5e3aa3f16a6f03f5d86abc04af877c4678ac036784fb736ae640a402f0cf
7
+ data.tar.gz: 832901aa61cce70922adf8ec3589261dc03d3439a4144c660de3989f292ad76ac85f4a15e697d73bc5f0a7e8162de3841c0f613aa3187fc2b1033fc136bb507c
data/README.md CHANGED
@@ -10,7 +10,7 @@ you're using [Sequel](http://sequel.jeremyevans.net/) as your ORM.
10
10
  Add this line to your application's Gemfile:
11
11
 
12
12
  ```ruby
13
- gem "table-flip"
13
+ gem "table_flip"
14
14
  ```
15
15
 
16
16
  And then execute:
@@ -37,7 +37,7 @@ class TableFlip
37
37
  end
38
38
 
39
39
  def non_empty_tables
40
- @non_empty_tables ||= tables.select { |table| @db[table].count > 0 }
40
+ @non_empty_tables ||= tables.select { |table| @db[table].limit(1).any? }
41
41
  end
42
42
 
43
43
  def tables
@@ -1,5 +1,5 @@
1
1
  module Table
2
2
  module Flip
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table-flip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Appleton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-01 00:00:00.000000000 Z
11
+ date: 2015-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler