easy_reports 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/easy_reports/database_configs_controller.rb +1 -1
- data/app/services/easy_reports/database_mediator.rb +1 -1
- data/app/views/easy_reports/database_configs/index.html.slim +2 -2
- data/app/views/easy_reports/database_configs/show.html.slim +1 -1
- data/easy_reports.gemspec +1 -1
- data/lib/easy_reports.rb +0 -1
- data/lib/easy_reports/version.rb +1 -1
- data/test/dummy/Gemfile +1 -1
- data/test/dummy/Gemfile.lock +1 -2
- data/test/dummy/db/migrate/20141214161417_create_easy_reports_reports.easy_reports.rb +11 -0
- data/test/dummy/db/migrate/20141214161418_create_easy_reports_database_configs.easy_reports.rb +17 -0
- data/test/dummy/db/schema.rb +4 -3
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e0edfcb3a1721fb1fe8bef035adf4644b25c84d
|
4
|
+
data.tar.gz: 54df5599693eed759a7af12acddf56e19a1d23cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f274d16a17d97ebf70abf2d993040fed144d0988da3f71dbab64dd9741af52599537ba4d47dd8a323cf2a31727a45ed3de959135bd9ba615d66cea551c6076fd
|
7
|
+
data.tar.gz: 90481a71ed0538ff66b60fde04ec9dba212869fa89a70df8727c8eb920625122b453e915f92a3efffe4ec2572b391ee19d25a01a5e6d792012a6648b426b7be8
|
@@ -47,7 +47,7 @@ module EasyReports
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def database_config_params
|
50
|
-
params.require(:database_config).permit(:adapter, :encoding, :pool, :username, :password, :host, :
|
50
|
+
params.require(:database_config).permit(:adapter, :encoding, :pool, :username, :password, :host, :database_name)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
@@ -7,7 +7,7 @@ module EasyReports
|
|
7
7
|
db_config = EasyReports::DatabaseConfig.last
|
8
8
|
|
9
9
|
@db = ::Sequel.connect(
|
10
|
-
"#{db_config.adapter}://#{db_config.username}:#{db_config.password}@#{db_config.host}:#{db_config.port}/#{db_config.
|
10
|
+
"#{db_config.adapter}://#{db_config.username}:#{db_config.password}@#{db_config.host}:#{db_config.port}/#{db_config.database_name}",
|
11
11
|
:max_connections => db_config.pool, :logger => Logger.new('log/db.log'))
|
12
12
|
end
|
13
13
|
|
@@ -9,7 +9,7 @@ table
|
|
9
9
|
th Username
|
10
10
|
th Password
|
11
11
|
th Host
|
12
|
-
th Database
|
12
|
+
th Database name
|
13
13
|
th
|
14
14
|
th
|
15
15
|
th
|
@@ -23,7 +23,7 @@ table
|
|
23
23
|
td = database_config.username
|
24
24
|
td = database_config.password
|
25
25
|
td = database_config.host
|
26
|
-
td = database_config.
|
26
|
+
td = database_config.database_name
|
27
27
|
td = link_to 'Show', database_config
|
28
28
|
td = link_to 'Edit', edit_database_config_path(database_config)
|
29
29
|
td = link_to 'Destroy', database_config, data: {:confirm => 'Are you sure?'}, :method => :delete
|
data/easy_reports.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.name = "easy_reports"
|
11
11
|
spec.version = EasyReports::VERSION
|
12
12
|
spec.authors = ["Davydenkov Mihail"]
|
13
|
-
spec.email = ["davydenkov_m@
|
13
|
+
spec.email = ["davydenkov_m@gmail.com"]
|
14
14
|
spec.summary = %q{Add reports dashboard in your rails app}
|
15
15
|
spec.description = %q{Rails engine for interactive charts for rails apps.}
|
16
16
|
spec.homepage = "http://github.com/DavydenkovM/easy_reports.git"
|
data/lib/easy_reports.rb
CHANGED
data/lib/easy_reports/version.rb
CHANGED
data/test/dummy/Gemfile
CHANGED
data/test/dummy/Gemfile.lock
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
# This migration comes from easy_reports (originally 20141207141745)
|
2
|
+
class CreateEasyReportsReports < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :easy_reports_reports do |t|
|
5
|
+
t.string :title
|
6
|
+
t.text :description
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/test/dummy/db/migrate/20141214161418_create_easy_reports_database_configs.easy_reports.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# This migration comes from easy_reports (originally 20141213173509)
|
2
|
+
class CreateEasyReportsDatabaseConfigs < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :easy_reports_database_configs do |t|
|
5
|
+
t.string :adapter
|
6
|
+
t.string :encoding
|
7
|
+
t.integer :pool
|
8
|
+
t.string :username
|
9
|
+
t.string :password
|
10
|
+
t.string :host
|
11
|
+
t.integer :port
|
12
|
+
t.string :database_name
|
13
|
+
|
14
|
+
t.timestamps
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,16 +11,17 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20141214161418) do
|
15
15
|
|
16
16
|
create_table "easy_reports_database_configs", force: true do |t|
|
17
17
|
t.string "adapter"
|
18
18
|
t.string "encoding"
|
19
|
-
t.
|
19
|
+
t.integer "pool"
|
20
20
|
t.string "username"
|
21
21
|
t.string "password"
|
22
22
|
t.string "host"
|
23
|
-
t.
|
23
|
+
t.integer "port"
|
24
|
+
t.string "database_name"
|
24
25
|
t.datetime "created_at"
|
25
26
|
t.datetime "updated_at"
|
26
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_reports
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davydenkov Mihail
|
@@ -96,7 +96,7 @@ dependencies:
|
|
96
96
|
version: '0'
|
97
97
|
description: Rails engine for interactive charts for rails apps.
|
98
98
|
email:
|
99
|
-
- davydenkov_m@
|
99
|
+
- davydenkov_m@gmail.com
|
100
100
|
executables:
|
101
101
|
- rails
|
102
102
|
extensions: []
|
@@ -181,6 +181,8 @@ files:
|
|
181
181
|
- test/dummy/config/locales/en.yml
|
182
182
|
- test/dummy/config/routes.rb
|
183
183
|
- test/dummy/config/secrets.yml
|
184
|
+
- test/dummy/db/migrate/20141214161417_create_easy_reports_reports.easy_reports.rb
|
185
|
+
- test/dummy/db/migrate/20141214161418_create_easy_reports_database_configs.easy_reports.rb
|
184
186
|
- test/dummy/db/schema.rb
|
185
187
|
- test/dummy/lib/assets/.keep
|
186
188
|
- test/dummy/log/.keep
|
@@ -256,6 +258,8 @@ test_files:
|
|
256
258
|
- test/dummy/config/locales/en.yml
|
257
259
|
- test/dummy/config/routes.rb
|
258
260
|
- test/dummy/config/secrets.yml
|
261
|
+
- test/dummy/db/migrate/20141214161417_create_easy_reports_reports.easy_reports.rb
|
262
|
+
- test/dummy/db/migrate/20141214161418_create_easy_reports_database_configs.easy_reports.rb
|
259
263
|
- test/dummy/db/schema.rb
|
260
264
|
- test/dummy/lib/assets/.keep
|
261
265
|
- test/dummy/log/.keep
|