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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a06454a1c40dda15773fbff6ccaded3fb50bda7
4
- data.tar.gz: a65e2e88df4ac14a947d4699087cbab9152a21fc
3
+ metadata.gz: 3e0edfcb3a1721fb1fe8bef035adf4644b25c84d
4
+ data.tar.gz: 54df5599693eed759a7af12acddf56e19a1d23cd
5
5
  SHA512:
6
- metadata.gz: 67e0bdb44d5036c23b1dc0853a6d1ad5102b9c4f6ce8ba4b3c6fd0dc624245e164db3abf8391e47574fca8c4395dcb906501eed58edf9a6467374e2bea0df734
7
- data.tar.gz: 48ffd8a838edc8cfef7317cb63e183f19fce2a1b75ada83df7a2de06db676e35ca9265e35d223686967aabf300f7ed5d09e3962fa56eb85da63e9a3e15d96409
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, :database)
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.database}",
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.database
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
@@ -20,7 +20,7 @@ p
20
20
  = @database_config.host
21
21
  p
22
22
  strong Database:
23
- = @database_config.database
23
+ = @database_config.database_name
24
24
 
25
25
  = link_to 'Edit', edit_database_config_path(@database_config)
26
26
  '|
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@mail.ru"]
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
@@ -1,7 +1,6 @@
1
1
  require "easy_reports/engine"
2
2
  require "easy_reports/version"
3
3
  require "sequel"
4
- DB = Sequel.postgres
5
4
 
6
5
  module EasyReports
7
6
  end
@@ -1,3 +1,3 @@
1
1
  module EasyReports
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
data/test/dummy/Gemfile CHANGED
@@ -7,6 +7,6 @@ gem 'slim'
7
7
 
8
8
  gem 'thin'
9
9
  gem 'pg'
10
- gem 'sequel'
10
+ # gem 'sequel'
11
11
 
12
12
  # gem "rails"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- easy_reports (0.0.11)
4
+ easy_reports (0.0.14)
5
5
  pg
6
6
  rails (~> 4.1.8)
7
7
  sequel
@@ -100,7 +100,6 @@ PLATFORMS
100
100
  DEPENDENCIES
101
101
  easy_reports!
102
102
  pg
103
- sequel
104
103
  slim
105
104
  sqlite3
106
105
  thin
@@ -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
@@ -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
@@ -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: 20141213190452) do
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.string "pool"
19
+ t.integer "pool"
20
20
  t.string "username"
21
21
  t.string "password"
22
22
  t.string "host"
23
- t.string "database"
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.13
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@mail.ru
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