sqlstmt 0.1.23 → 0.1.24

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: c62b6b314f8166b09aa756bf5187ced3bafd3f76
4
- data.tar.gz: 76a85f0bb7f6ed3590c263b951d8c14d45a7c296
3
+ metadata.gz: b3186df18978412482910248da3c0132f6a5e0ac
4
+ data.tar.gz: 43eda0436e5ffa469e9bd2abe2afe04e71d83951
5
5
  SHA512:
6
- metadata.gz: 326221c6169b58e6eb80f0449a33018f973d9b8ac41eda5cf0013f840194878963a046c10431c936767f541d341f349733fb2a2f2bb217b278f889de1db8b2d5
7
- data.tar.gz: 958f8438832fab8137d3417844d7bc1f7bdceb7a2d0b6d8452a5af056e7351ffa2a3414652ffd71c818d975d5650ce472c86a19d99e1774173a3a2f696550c27
6
+ metadata.gz: a8ece4b732299a6c16621aa34455353ae174d74b25ddd74c4fb7d39da7a5c4f4123a8fae4287d057942c5d3a506b47e89419f664e2b176136ebf57fbaa00d8b6
7
+ data.tar.gz: ad04c575e78642c57687cbd77c11dfd77fc0dacbbb0775d29d5c7ef3bf9655cea1dbbc2136ca65038dc5749e66ec1e4cb34a03b3284de11a2f54f55e922fb990
data/lib/sqlstmt/query.rb CHANGED
@@ -65,6 +65,7 @@ class Query
65
65
  verify_minimum_requirements
66
66
  build_stmt
67
67
  end
68
+ alias_method :to_sql, :to_s
68
69
 
69
70
  def includes_table?(table_to_find)
70
71
  retval = @tables.find { |table| table_names_match?(table, table_to_find) }
data/test/select.dt.rb CHANGED
@@ -14,7 +14,7 @@ class TestSelect < DohTest::TestGroup
14
14
  assert_raises(SqlStmt::Error) { Select.new.table('target').to_s }
15
15
  assert_raises(SqlStmt::Error) { Select.new.table('target').no_where.to_s }
16
16
  assert_raises(SqlStmt::Error) { Select.new.table('target').optional_where.to_s }
17
- assert_equal('SELECT blah FROM target', Select.new.table('target').optional_where.field('blah').to_s)
17
+ assert_equal('SELECT blah FROM target', Select.new.table('target').optional_where.field('blah').to_sql)
18
18
  end
19
19
 
20
20
  def test_stuff
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlstmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makani Mason
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-16 00:00:00.000000000 Z
12
+ date: 2014-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dohutil