query_diet 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,10 @@
1
- source 'https://rubygems.org'
1
+ source :rubygems
2
2
 
3
- gem 'rails', '~> 2.3'
4
- gem 'rspec', '~> 1.3'
5
- gem 'rspec-rails', '~> 1.3'
6
- gem 'sqlite3'
7
- gem 'jeweler'
3
+ group :dev do
4
+ gem 'rails', '~> 2.3'
5
+ gem 'rspec', '~> 1.3'
6
+ gem 'rspec-rails', '~> 1.3'
7
+ gem 'sqlite3'
8
+ gem 'jeweler'
9
+ gem 'test-unit', '1.2.3'
10
+ end
data/Gemfile.lock CHANGED
@@ -1,39 +1,43 @@
1
1
  GEM
2
- remote: https://rubygems.org/
2
+ remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (2.3.11)
5
- actionpack (= 2.3.11)
6
- actionpack (2.3.11)
7
- activesupport (= 2.3.11)
4
+ actionmailer (2.3.14)
5
+ actionpack (= 2.3.14)
6
+ actionpack (2.3.14)
7
+ activesupport (= 2.3.14)
8
8
  rack (~> 1.1.0)
9
- activerecord (2.3.11)
10
- activesupport (= 2.3.11)
11
- activeresource (2.3.11)
12
- activesupport (= 2.3.11)
13
- activesupport (2.3.11)
9
+ activerecord (2.3.14)
10
+ activesupport (= 2.3.14)
11
+ activeresource (2.3.14)
12
+ activesupport (= 2.3.14)
13
+ activesupport (2.3.14)
14
14
  git (1.2.5)
15
+ hoe (3.0.8)
16
+ rake (~> 0.8)
15
17
  jeweler (1.8.4)
16
18
  bundler (~> 1.0)
17
19
  git (>= 1.2.5)
18
20
  rake
19
21
  rdoc
20
- json (1.7.3)
21
- rack (1.1.0)
22
- rails (2.3.11)
23
- actionmailer (= 2.3.11)
24
- actionpack (= 2.3.11)
25
- activerecord (= 2.3.11)
26
- activeresource (= 2.3.11)
27
- activesupport (= 2.3.11)
22
+ json (1.7.5)
23
+ rack (1.1.3)
24
+ rails (2.3.14)
25
+ actionmailer (= 2.3.14)
26
+ actionpack (= 2.3.14)
27
+ activerecord (= 2.3.14)
28
+ activeresource (= 2.3.14)
29
+ activesupport (= 2.3.14)
28
30
  rake (>= 0.8.3)
29
- rake (0.8.7)
31
+ rake (0.9.2.2)
30
32
  rdoc (3.12)
31
33
  json (~> 1.4)
32
- rspec (1.3.1)
33
- rspec-rails (1.3.3)
34
+ rspec (1.3.2)
35
+ rspec-rails (1.3.4)
34
36
  rack (>= 1.0.0)
35
- rspec (= 1.3.1)
36
- sqlite3 (1.3.4)
37
+ rspec (~> 1.3.1)
38
+ sqlite3 (1.3.6)
39
+ test-unit (1.2.3)
40
+ hoe (>= 1.5.1)
37
41
 
38
42
  PLATFORMS
39
43
  ruby
@@ -44,3 +48,4 @@ DEPENDENCIES
44
48
  rspec (~> 1.3)
45
49
  rspec-rails (~> 1.3)
46
50
  sqlite3
51
+ test-unit (= 1.2.3)
data/Rakefile CHANGED
@@ -1,16 +1,11 @@
1
1
  require 'rake'
2
- # require 'rake/testtask'
3
2
  require 'rake/rdoctask'
4
3
  require 'spec/rake/spectask'
5
4
 
6
- desc 'Default: Run all specs.'
7
- task :default => :spec
8
-
9
5
  desc "Run all specs"
10
- Spec::Rake::SpecTask.new() do |t|
11
- t.spec_opts = ['--options', "\"spec/support/spec.opts\""]
12
- t.spec_files = FileList['spec/**/*_spec.rb']
13
- end
6
+ Spec::Rake::SpecTask.new(){}
7
+
8
+ task :default => :spec
14
9
 
15
10
  desc 'Generate documentation for the query_diet gem.'
16
11
  Rake::RDocTask.new(:rdoc) do |rdoc|
@@ -34,4 +29,3 @@ begin
34
29
  rescue LoadError
35
30
  puts "Jeweler not available. Install it with: sudo gem install jeweler"
36
31
  end
37
-
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/query_diet.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "query_diet"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Henning Koch"]
12
- s.date = "2012-09-18"
12
+ s.date = "2012-09-19"
13
13
  s.description = "Rails database query counter that stays out of your way"
14
14
  s.email = "github@makandra.de"
15
15
  s.extra_rdoc_files = [
@@ -49,37 +49,22 @@ Gem::Specification.new do |s|
49
49
  "spec/app_root/script/console",
50
50
  "spec/controllers/query_diet_controller_spec.rb",
51
51
  "spec/logger_spec.rb",
52
+ "spec/spec.opts",
52
53
  "spec/spec_helper.rb",
53
- "spec/support/rcov.opts",
54
- "spec/support/spec.opts"
54
+ "spec/support/rcov.opts"
55
55
  ]
56
56
  s.homepage = "http://github.com/makandra/query_diet"
57
57
  s.require_paths = ["lib"]
58
- s.rubygems_version = "1.3.9.5"
58
+ s.rubygems_version = "1.8.21"
59
59
  s.summary = "Rails database query counter that stays out of your way"
60
60
 
61
61
  if s.respond_to? :specification_version then
62
62
  s.specification_version = 3
63
63
 
64
64
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
65
- s.add_runtime_dependency(%q<rails>, ["~> 2.3"])
66
- s.add_runtime_dependency(%q<rspec>, ["~> 1.3"])
67
- s.add_runtime_dependency(%q<rspec-rails>, ["~> 1.3"])
68
- s.add_runtime_dependency(%q<sqlite3>, [">= 0"])
69
- s.add_runtime_dependency(%q<jeweler>, [">= 0"])
70
65
  else
71
- s.add_dependency(%q<rails>, ["~> 2.3"])
72
- s.add_dependency(%q<rspec>, ["~> 1.3"])
73
- s.add_dependency(%q<rspec-rails>, ["~> 1.3"])
74
- s.add_dependency(%q<sqlite3>, [">= 0"])
75
- s.add_dependency(%q<jeweler>, [">= 0"])
76
66
  end
77
67
  else
78
- s.add_dependency(%q<rails>, ["~> 2.3"])
79
- s.add_dependency(%q<rspec>, ["~> 1.3"])
80
- s.add_dependency(%q<rspec-rails>, ["~> 1.3"])
81
- s.add_dependency(%q<sqlite3>, [">= 0"])
82
- s.add_dependency(%q<jeweler>, [">= 0"])
83
68
  end
84
69
  end
85
70
 
@@ -4,7 +4,6 @@ describe QueryDietController do
4
4
  integrate_views
5
5
 
6
6
  describe 'widget' do
7
-
8
7
  it "should be automatically included in a HTML page" do
9
8
  get :two_queries
10
9
  response.body.should have_tag('div#query_diet')
@@ -37,7 +36,5 @@ describe QueryDietController do
37
36
  get :no_query
38
37
  response.body.should have_tag('div#query_diet', :text => "78 / 43500ms")
39
38
  end
40
-
41
39
  end
42
-
43
40
  end
data/spec/spec_helper.rb CHANGED
@@ -1,11 +1,14 @@
1
- $: << File.join(File.dirname(__FILE__), "/../lib" )
1
+ $LOAD_PATH << File.expand_path('../../lib', __FILE__)
2
2
 
3
3
  # Set the default environment to sqlite3's in_memory database
4
4
  ENV['RAILS_ENV'] ||= 'in_memory'
5
5
 
6
6
  # Load the Rails environment and testing framework
7
- require "#{File.dirname(__FILE__)}/app_root/config/environment"
8
- require "#{File.dirname(__FILE__)}/../lib/query_diet"
7
+ require File.expand_path('../app_root/config/environment', __FILE__)
8
+ require 'query_diet'
9
+
10
+ MissingSourceFile::REGEXPS << [/^cannot load such file -- (.+)$/i, 1] # Ruby 1.9 vs Rails 2.3 fix
11
+
9
12
  require 'spec/rails'
10
13
 
11
14
  # Undo changes to RAILS_ENV
@@ -19,4 +22,3 @@ Spec::Runner.configure do |config|
19
22
  config.use_transactional_fixtures = true
20
23
  config.use_instantiated_fixtures = false
21
24
  end
22
-
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_diet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henning Koch
@@ -15,82 +15,9 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-09-18 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- name: rails
24
- type: :runtime
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- hash: 5
31
- segments:
32
- - 2
33
- - 3
34
- version: "2.3"
35
- requirement: *id001
36
- - !ruby/object:Gem::Dependency
37
- prerelease: false
38
- name: rspec
39
- type: :runtime
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 9
46
- segments:
47
- - 1
48
- - 3
49
- version: "1.3"
50
- requirement: *id002
51
- - !ruby/object:Gem::Dependency
52
- prerelease: false
53
- name: rspec-rails
54
- type: :runtime
55
- version_requirements: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 9
61
- segments:
62
- - 1
63
- - 3
64
- version: "1.3"
65
- requirement: *id003
66
- - !ruby/object:Gem::Dependency
67
- prerelease: false
68
- name: sqlite3
69
- type: :runtime
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
79
- requirement: *id004
80
- - !ruby/object:Gem::Dependency
81
- prerelease: false
82
- name: jeweler
83
- type: :runtime
84
- version_requirements: &id005 !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
93
- requirement: *id005
18
+ date: 2012-09-19 00:00:00 Z
19
+ dependencies: []
20
+
94
21
  description: Rails database query counter that stays out of your way
95
22
  email: github@makandra.de
96
23
  executables: []
@@ -133,10 +60,9 @@ files:
133
60
  - spec/app_root/script/console
134
61
  - spec/controllers/query_diet_controller_spec.rb
135
62
  - spec/logger_spec.rb
63
+ - spec/spec.opts
136
64
  - spec/spec_helper.rb
137
65
  - spec/support/rcov.opts
138
- - spec/support/spec.opts
139
- has_rdoc: true
140
66
  homepage: http://github.com/makandra/query_diet
141
67
  licenses: []
142
68
 
@@ -166,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
92
  requirements: []
167
93
 
168
94
  rubyforge_project:
169
- rubygems_version: 1.3.9.5
95
+ rubygems_version: 1.8.21
170
96
  signing_key:
171
97
  specification_version: 3
172
98
  summary: Rails database query counter that stays out of your way
File without changes