pp_sql 0.1.0 → 0.1.1

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: cd3dfaa01fbb7627de5389a43ede8449692eca12
4
- data.tar.gz: 48fb42aef3883ec4e9c250e61f41e5092a3cd6b0
3
+ metadata.gz: 7f27b89855f77001300508a599f026baa13e5399
4
+ data.tar.gz: 7cb4493dd7d2b14cdb9403d4841edd3d240f5168
5
5
  SHA512:
6
- metadata.gz: 39c3f0b45e622129f391f768b5f572d34fecebfb4f7aa77bfbee1402d4ab2c5465afea27905b9b832ad2750bfae765c871c5924cdec6463e900efcbb97a4cdd9
7
- data.tar.gz: aa3ae462c6cfda42971006c257e6b05c9f2304f2c39f52ed6fb1fd6100feeb752cd5453d7211fd9953a55854b94e54713984e137dcc286f2b3871ac1bd51f546
6
+ metadata.gz: e8b1f3e5e92fc75bffed713b5cad6921306623bf129b06dff4256d9d333fcb1f2865245bc728624965cc390c589948b514db96f5597152f0fd924ce65b5f5b9e
7
+ data.tar.gz: 702f39163b95445dc07aaba57ea72fd8dd6772a7e918ae9756db6bcae6eef12d13abf49bfffe5ebc0d76253b97528fb01866579d8f9a82068159d8bae1a2afd7
data/README.md CHANGED
@@ -44,7 +44,7 @@ $ bundle
44
44
  ## With other formatters
45
45
 
46
46
  If you are `pry` user, or use custom output formatter, use `puts` for output whitespaces,
47
- like `puts User.all.to_sql`
47
+ like `puts User.all.to_sql`, or use `User.all.pp_sql`
48
48
 
49
49
  ## License
50
50
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -1,3 +1,3 @@
1
1
  module PpSql
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
data/lib/pp_sql.rb CHANGED
@@ -4,6 +4,10 @@ module PpSql
4
4
  _sql_formatter.format(super)
5
5
  end
6
6
 
7
+ def pp_sql
8
+ puts to_sql
9
+ end
10
+
7
11
  private
8
12
 
9
13
  def _sql_formatter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pp_sql
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
  - Kvokka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-04 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails