sql_output 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.
- data/VERSION +1 -1
- data/lib/sql_output.rb +15 -0
- data/sql_output.gemspec +51 -0
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/sql_output.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
module SqlOutput
|
2
|
+
|
3
|
+
def self.start
|
4
|
+
ActiveRecord::Base.logger = Logger.new(STDOUT)
|
5
|
+
ActiveRecord::Base.clear_active_connections!
|
6
|
+
reload!
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.stop
|
10
|
+
ActiveRecord::Base.logger = nil
|
11
|
+
ActiveRecord::Base.clear_active_connections!
|
12
|
+
reload!
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
data/sql_output.gemspec
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{sql_output}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Jordi Noguera"]
|
12
|
+
s.date = %q{2010-10-26}
|
13
|
+
s.description = %q{Print SQL statements generated by ActiveRecord in Rails console}
|
14
|
+
s.email = %q{jordinoguera83@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/sql_output.rb",
|
27
|
+
"sql_output.gemspec",
|
28
|
+
"test/helper.rb",
|
29
|
+
"test/test_sql_output.rb"
|
30
|
+
]
|
31
|
+
s.homepage = %q{http://github.com/jordinl/sql_output}
|
32
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
33
|
+
s.require_paths = ["lib"]
|
34
|
+
s.rubygems_version = %q{1.3.7}
|
35
|
+
s.summary = %q{SQL output in Rails console}
|
36
|
+
s.test_files = [
|
37
|
+
"test/test_sql_output.rb",
|
38
|
+
"test/helper.rb"
|
39
|
+
]
|
40
|
+
|
41
|
+
if s.respond_to? :specification_version then
|
42
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
43
|
+
s.specification_version = 3
|
44
|
+
|
45
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
+
else
|
47
|
+
end
|
48
|
+
else
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sql_output
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jordi Noguera
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- Rakefile
|
37
37
|
- VERSION
|
38
38
|
- lib/sql_output.rb
|
39
|
+
- sql_output.gemspec
|
39
40
|
- test/helper.rb
|
40
41
|
- test/test_sql_output.rb
|
41
42
|
has_rdoc: true
|