old_sql 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/old_sql/shell_report_facade.rb +1 -1
- metadata +2 -2
@@ -4,6 +4,7 @@ module OldSql
|
|
4
4
|
template = File.read("#{OldSql::ReportDesign::Parser.report_design_path}/../reports.yml")
|
5
5
|
report_config = YAML.load(Erubis::Eruby.new(template).result)[report]
|
6
6
|
|
7
|
+
Rails.env = env
|
7
8
|
set_logger
|
8
9
|
set_connection(env)
|
9
10
|
|
@@ -69,7 +70,6 @@ module OldSql
|
|
69
70
|
|
70
71
|
def self.set_connection(env)
|
71
72
|
dbconfig = YAML::load(File.open(Rails.root.join("config/database.yml")))
|
72
|
-
puts dbconfig
|
73
73
|
ActiveRecord::Base.establish_connection(dbconfig[env])
|
74
74
|
end
|
75
75
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: old_sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.
|
5
|
+
version: 1.7.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Eddie Gonzales
|
@@ -182,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
182
|
requirements:
|
183
183
|
- - ">="
|
184
184
|
- !ruby/object:Gem::Version
|
185
|
-
hash:
|
185
|
+
hash: -649145696799695810
|
186
186
|
segments:
|
187
187
|
- 0
|
188
188
|
version: "0"
|