periscope_rails 0.0.6 → 0.0.7

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- periscope_rails (0.0.6)
4
+ periscope_rails (0.0.7)
5
5
  activesupport (~> 3.0)
6
6
  rails (~> 3.0)
7
7
 
@@ -54,6 +54,7 @@ class PeriscopeController < ActionController::Base
54
54
  end
55
55
  rescue Exception => e
56
56
  puts "Warning: Periscope was unable to cost this query (1): #{command}" unless e.message == "OK"
57
+ raise e if e.message.include?("Command blocked")
57
58
  end
58
59
  active_record.transaction do #execution
59
60
  rows = active_record.connection.select_all(command)
@@ -10,7 +10,7 @@ module PeriscopeRails
10
10
  @@db_password = nil
11
11
 
12
12
  @@block_expensive_queries = true
13
- @@max_rows = 1000
13
+ @@max_rows = 500
14
14
  @@max_size = @@max_rows * 500
15
15
 
16
16
  def self.set_password(password)
@@ -1,3 +1,3 @@
1
1
  module PeriscopeRails
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.summary = "Rails API for Periscope Database Viewer"
12
12
  s.description = "Periscope allows you to query your production database. The gem provides the API for Periscope to communicate with your Rails app."
13
13
  s.files = Dir["{app,lib,config}/**/*"] + ["MIT-LICENSE", "Rakefile", "Gemfile", "README.rdoc"]
14
- s.version = "0.0.6"
14
+ s.version = "0.0.7"
15
15
 
16
16
  s.add_dependency "activesupport" , "~> 3.0"
17
17
  s.add_dependency "rails" , "~> 3.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: periscope_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-15 00:00:00.000000000Z
13
+ date: 2012-05-16 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
- requirement: &27484104 !ruby/object:Gem::Requirement
17
+ requirement: &26868516 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *27484104
25
+ version_requirements: *26868516
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rails
28
- requirement: &27483816 !ruby/object:Gem::Requirement
28
+ requirement: &26868216 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *27483816
36
+ version_requirements: *26868216
37
37
  description: Periscope allows you to query your production database. The gem provides
38
38
  the API for Periscope to communicate with your Rails app.
39
39
  email: