shiba 0.6.2 → 0.6.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
  SHA256:
3
- metadata.gz: fcf633bdbda3fec0f7267cd7fd6f4e45387d896494219d9845285192f4469396
4
- data.tar.gz: 32bc8c263d7f8c90dcbdf2de0343b8fe88b6f16ed151198349ba7592c887d6e5
3
+ metadata.gz: 9083e20b5b6a8c301dbbde3192d12283acc206e78ca44700633c1309f1195c38
4
+ data.tar.gz: 945dc6ac807a435f1042cfa85e9af3a2b14f048ee121b22d884818552fd22384
5
5
  SHA512:
6
- metadata.gz: 103651208b62361c1613699ba7ada9e97ddf3654743c0426537880e53adcb6fd8e4209741e706ca74d55e39696acce8e3ff79ba585edd5d042b51f3325a217f4
7
- data.tar.gz: 0463d0ad5b7795b7e43e1bea24fd1e815411945c37c851fbf61a0b7a7145630a2731435fdfc83805cc255173cceb17b0cc3deb2de2b6528732da25679980fa99
6
+ metadata.gz: 82b5fa051c41de65c77649d056d760246fa3186063fcbe1e27b3ee8795ed5473840306c8c24a1722c9b6c9b46240b5c3d0745da97c272114daba8ca29711f1c2
7
+ data.tar.gz: 313d07378c950b0d44dbd5200aafd7542def410001b65dc2287d4787a4e0f820c13a615cace356f7782e19db92b0370cbcbf923fe089dde3e3ef0e605595a581
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shiba (0.6.2)
4
+ shiba (0.6.3)
5
5
  activesupport
6
6
  mysql2
7
7
  pg
data/lib/shiba/console.rb CHANGED
@@ -125,7 +125,7 @@ module Shiba
125
125
  def explain(query)
126
126
  query = query.to_sql if query.respond_to?(:to_sql)
127
127
  Shiba.configure(connection_options)
128
- analyzer = Shiba::Analyzer.new(nil, null, stats, { 'sql' => query })
128
+ analyzer = Shiba::Analyzer.new(nil, stats, { 'sql' => query })
129
129
  result = analyzer.analyze.first
130
130
  end
131
131
 
@@ -146,10 +146,6 @@ module Shiba
146
146
  @stats ||= Shiba::TableStats.new(Shiba.index_config, Shiba.connection, {})
147
147
  end
148
148
 
149
- def null
150
- @null ||= File.open(File::NULL, "w")
151
- end
152
-
153
149
  def puts(message)
154
150
  out = @context.respond_to?(:puts) ? @context : $stdout
155
151
  out.puts(message)
@@ -162,4 +158,4 @@ end
162
158
 
163
159
  if defined?(Pry) || defined?(IRB)
164
160
  TOPLEVEL_BINDING.eval('self').extend Shiba::Console
165
- end
161
+ end
data/lib/shiba/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shiba
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shiba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff