easy_reports 0.0.22 → 0.0.24

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.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +21 -21
  3. data/Gemfile +19 -19
  4. data/MIT-LICENSE +20 -20
  5. data/README.md +31 -31
  6. data/Rakefile +10 -10
  7. data/app/assets/javascripts/application.js +10 -10
  8. data/app/assets/javascripts/bootstrap.js +3 -3
  9. data/app/assets/javascripts/easy_reports/application.js +17 -16
  10. data/app/assets/javascripts/easy_reports/database_configs.js +2 -2
  11. data/app/assets/javascripts/easy_reports/reports.js +2 -2
  12. data/app/assets/stylesheets/application.css +8 -8
  13. data/app/assets/stylesheets/easy_reports/application.css +17 -16
  14. data/app/assets/stylesheets/easy_reports/bootstrap_and_overrides.css.less +29 -29
  15. data/app/assets/stylesheets/easy_reports/dashboard/dashboard_content.css +0 -0
  16. data/app/assets/stylesheets/easy_reports/dashboard/sidebar.css +135 -0
  17. data/app/assets/stylesheets/easy_reports/database_configs.css +4 -4
  18. data/app/assets/stylesheets/easy_reports/reports.css +4 -4
  19. data/app/controllers/easy_reports/application_controller.rb +4 -4
  20. data/app/controllers/easy_reports/dashboard_controller.rb +17 -0
  21. data/app/controllers/easy_reports/database_configs_controller.rb +53 -53
  22. data/app/controllers/easy_reports/reports_controller.rb +56 -57
  23. data/app/helpers/easy_reports/application_helper.rb +4 -4
  24. data/app/helpers/easy_reports/database_configs_helper.rb +4 -4
  25. data/app/helpers/easy_reports/reports_helper.rb +4 -4
  26. data/app/models/easy_reports/database_config.rb +4 -4
  27. data/app/models/easy_reports/report.rb +4 -4
  28. data/app/services/easy_reports/database_mediator.rb +36 -18
  29. data/app/views/easy_reports/dashboard/show.html.slim +3 -0
  30. data/app/views/easy_reports/database_configs/_form.html.slim +33 -33
  31. data/app/views/easy_reports/database_configs/edit.html.slim +8 -8
  32. data/app/views/easy_reports/database_configs/index.html.slim +35 -35
  33. data/app/views/easy_reports/database_configs/new.html.slim +5 -5
  34. data/app/views/easy_reports/database_configs/show.html.slim +27 -27
  35. data/app/views/easy_reports/reports/_form.html.slim +17 -15
  36. data/app/views/easy_reports/reports/edit.html.slim +8 -8
  37. data/app/views/easy_reports/reports/index.html.slim +26 -26
  38. data/app/views/easy_reports/reports/new.html.slim +5 -5
  39. data/app/views/easy_reports/reports/show.html.slim +12 -12
  40. data/app/views/layouts/easy_reports/application.html.slim +15 -0
  41. data/app/views/shared/_header.html.slim +60 -0
  42. data/app/views/shared/_sidebar.html.slim +58 -0
  43. data/bin/rails +12 -12
  44. data/config/locales/en.bootstrap.yml +23 -23
  45. data/config/routes.rb +8 -8
  46. data/db/migrate/20141207141745_create_easy_reports_reports.rb +10 -10
  47. data/db/migrate/20141213173509_create_easy_reports_database_configs.rb +16 -16
  48. data/easy_reports.gemspec +36 -35
  49. data/lib/easy_reports.rb +13 -11
  50. data/lib/easy_reports/engine.rb +5 -5
  51. data/lib/easy_reports/version.rb +3 -3
  52. data/lib/tasks/easy_reports_tasks.rake +4 -4
  53. data/test/controllers/easy_reports/database_configs_controller_test.rb +51 -51
  54. data/test/controllers/easy_reports/reports_controller_test.rb +51 -51
  55. data/test/dummy/Gemfile +16 -16
  56. data/test/dummy/Gemfile.lock +129 -129
  57. data/test/dummy/Rakefile +6 -6
  58. data/test/dummy/app/assets/javascripts/application.js +13 -13
  59. data/test/dummy/app/assets/javascripts/bootstrap.js +4 -4
  60. data/test/dummy/app/assets/stylesheets/application.css +15 -15
  61. data/test/dummy/app/assets/stylesheets/bootstrap_and_overrides.css.less +29 -29
  62. data/test/dummy/app/controllers/application_controller.rb +5 -5
  63. data/test/dummy/app/helpers/application_helper.rb +2 -2
  64. data/test/dummy/app/views/layouts/application.html.erb +14 -14
  65. data/test/dummy/bin/bundle +3 -3
  66. data/test/dummy/bin/rails +4 -4
  67. data/test/dummy/bin/rake +4 -4
  68. data/test/dummy/config.ru +4 -4
  69. data/test/dummy/config/application.rb +23 -23
  70. data/test/dummy/config/boot.rb +5 -5
  71. data/test/dummy/config/database.yml +25 -25
  72. data/test/dummy/config/environment.rb +5 -5
  73. data/test/dummy/config/environments/development.rb +37 -37
  74. data/test/dummy/config/environments/production.rb +82 -82
  75. data/test/dummy/config/environments/test.rb +39 -39
  76. data/test/dummy/config/initializers/assets.rb +8 -8
  77. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -7
  78. data/test/dummy/config/initializers/cookies_serializer.rb +2 -2
  79. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -4
  80. data/test/dummy/config/initializers/inflections.rb +16 -16
  81. data/test/dummy/config/initializers/mime_types.rb +4 -4
  82. data/test/dummy/config/initializers/session_store.rb +3 -3
  83. data/test/dummy/config/initializers/wrap_parameters.rb +14 -14
  84. data/test/dummy/config/locales/en.bootstrap.yml +23 -23
  85. data/test/dummy/config/locales/en.yml +23 -23
  86. data/test/dummy/config/routes.rb +4 -4
  87. data/test/dummy/config/secrets.yml +22 -22
  88. data/test/dummy/db/migrate/20141214161417_create_easy_reports_reports.easy_reports.rb +11 -11
  89. data/test/dummy/db/migrate/20141214161418_create_easy_reports_database_configs.easy_reports.rb +17 -17
  90. data/test/dummy/public/404.html +67 -67
  91. data/test/dummy/public/422.html +67 -67
  92. data/test/dummy/public/500.html +66 -66
  93. data/test/fixtures/easy_reports/database_configs.yml +19 -19
  94. data/test/fixtures/easy_reports/reports.yml +9 -9
  95. data/test/helpers/easy_reports/database_configs_helper_test.rb +6 -6
  96. data/test/helpers/easy_reports/reports_helper_test.rb +6 -6
  97. data/test/models/easy_reports/database_config_test.rb +9 -9
  98. data/test/models/easy_reports/report_test.rb +9 -9
  99. metadata +24 -5
  100. data/app/assets/stylesheets/scaffold.css +0 -56
  101. data/app/views/layouts/easy_reports/application.html.erb +0 -14
@@ -1,8 +1,8 @@
1
- h1 Editing database_config
2
-
3
- == render 'form'
4
-
5
- = link_to 'Show', @database_config
6
- '|
7
- = link_to 'Back', database_configs_path
8
-
1
+ h1 Editing database_config
2
+
3
+ == render 'form'
4
+
5
+ = link_to 'Show', @database_config
6
+ '|
7
+ = link_to 'Back', database_configs_path
8
+
@@ -1,35 +1,35 @@
1
- h1 Listing database_configs
2
-
3
- table
4
- thead
5
- tr
6
- th Adapter
7
- th Encoding
8
- th Pool
9
- th Username
10
- th Password
11
- th Host
12
- th Port
13
- th Database name
14
- th
15
- th
16
- th
17
-
18
- tbody
19
- - @database_configs.each do |database_config|
20
- tr
21
- td = database_config.adapter
22
- td = database_config.encoding
23
- td = database_config.pool
24
- td = database_config.username
25
- td = database_config.password
26
- td = database_config.host
27
- td = database_config.port
28
- td = database_config.database_name
29
- td = link_to 'Show', database_config
30
- td = link_to 'Edit', edit_database_config_path(database_config)
31
- td = link_to 'Destroy', database_config, data: {:confirm => 'Are you sure?'}, :method => :delete
32
-
33
- br
34
-
35
- = link_to 'New Database config', new_database_config_path
1
+ h1 Listing database_configs
2
+
3
+ table
4
+ thead
5
+ tr
6
+ th Adapter
7
+ th Encoding
8
+ th Pool
9
+ th Username
10
+ th Password
11
+ th Host
12
+ th Port
13
+ th Database name
14
+ th
15
+ th
16
+ th
17
+
18
+ tbody
19
+ - @database_configs.each do |database_config|
20
+ tr
21
+ td = database_config.adapter
22
+ td = database_config.encoding
23
+ td = database_config.pool
24
+ td = database_config.username
25
+ td = database_config.password
26
+ td = database_config.host
27
+ td = database_config.port
28
+ td = database_config.database_name
29
+ td = link_to 'Show', database_config
30
+ td = link_to 'Edit', edit_database_config_path(database_config)
31
+ td = link_to 'Destroy', database_config, data: {:confirm => 'Are you sure?'}, :method => :delete
32
+
33
+ br
34
+
35
+ = link_to 'New Database config', new_database_config_path
@@ -1,5 +1,5 @@
1
- h1 New database_config
2
-
3
- == render 'form'
4
-
5
- = link_to 'Back', database_configs_path
1
+ h1 New database_config
2
+
3
+ == render 'form'
4
+
5
+ = link_to 'Back', database_configs_path
@@ -1,27 +1,27 @@
1
- p#notice = notice
2
-
3
- p
4
- strong Adapter:
5
- = @database_config.adapter
6
- p
7
- strong Encoding:
8
- = @database_config.encoding
9
- p
10
- strong Pool:
11
- = @database_config.pool
12
- p
13
- strong Username:
14
- = @database_config.username
15
- p
16
- strong Password:
17
- = @database_config.password
18
- p
19
- strong Host:
20
- = @database_config.host
21
- p
22
- strong Database:
23
- = @database_config.database_name
24
-
25
- = link_to 'Edit', edit_database_config_path(@database_config)
26
- '|
27
- = link_to 'Back', database_configs_path
1
+ p#notice = notice
2
+
3
+ p
4
+ strong Adapter:
5
+ = @database_config.adapter
6
+ p
7
+ strong Encoding:
8
+ = @database_config.encoding
9
+ p
10
+ strong Pool:
11
+ = @database_config.pool
12
+ p
13
+ strong Username:
14
+ = @database_config.username
15
+ p
16
+ strong Password:
17
+ = @database_config.password
18
+ p
19
+ strong Host:
20
+ = @database_config.host
21
+ p
22
+ strong Database:
23
+ = @database_config.database_name
24
+
25
+ = link_to 'Edit', edit_database_config_path(@database_config)
26
+ '|
27
+ = link_to 'Back', database_configs_path
@@ -1,15 +1,17 @@
1
- = form_for @report do |f|
2
- - if @report.errors.any?
3
- #error_explanation
4
- h2 = "#{pluralize(@report.errors.count, "error")} prohibited this report from being saved:"
5
- ul
6
- - @report.errors.full_messages.each do |message|
7
- li = message
8
-
9
- .field
10
- = f.label :title
11
- = f.text_field :title
12
- .field
13
- = f.label :description
14
- = f.text_area :description
15
- .actions = f.submit 'Save'
1
+ = form_for @report do |f|
2
+ - if @report.errors.any?
3
+ #error_explanation
4
+ h2 = "#{pluralize(@report.errors.count, "error")} prohibited this report from being saved:"
5
+ ul
6
+ - @report.errors.full_messages.each do |message|
7
+ li = message
8
+
9
+ .field
10
+ select.selectpicker
11
+ .field
12
+ = f.label :title
13
+ = f.text_field :title
14
+ .field
15
+ = f.label :description
16
+ = f.text_area :description
17
+ .actions = f.submit 'Save'
@@ -1,8 +1,8 @@
1
- h1 Editing report
2
-
3
- == render 'form'
4
-
5
- = link_to 'Show', @report
6
- '|
7
- = link_to 'Back', reports_path
8
-
1
+ h1 Editing report
2
+
3
+ == render 'form'
4
+
5
+ = link_to 'Show', @report
6
+ '|
7
+ = link_to 'Back', reports_path
8
+
@@ -1,26 +1,26 @@
1
- h1 Listing reports
2
-
3
- table
4
- thead
5
- tr
6
- th Title
7
- th Description
8
- th
9
- th
10
- th
11
-
12
- tbody
13
- - @reports.each do |report|
14
- tr
15
- td = report.title
16
- td = report.description
17
- td = link_to 'Show', report
18
- td = link_to 'Edit', edit_report_path(report)
19
- td = link_to 'Destroy', report, data: {:confirm => 'Are you sure?'}, :method => :delete
20
-
21
- br
22
-
23
- = link_to 'New Report', new_report_path
24
-
25
- - @table_list.each do |table|
26
- p = table
1
+ h1 Listing reports
2
+
3
+ table
4
+ thead
5
+ tr
6
+ th Title
7
+ th Description
8
+ th
9
+ th
10
+ th
11
+
12
+ tbody
13
+ - @reports.each do |report|
14
+ tr
15
+ td = report.title
16
+ td = report.description
17
+ td = link_to 'Show', report
18
+ td = link_to 'Edit', edit_report_path(report)
19
+ td = link_to 'Destroy', report, data: {:confirm => 'Are you sure?'}, :method => :delete
20
+
21
+ br
22
+
23
+ = link_to 'New Report', new_report_path
24
+
25
+ - @table_list.each do |table|
26
+ p = table
@@ -1,5 +1,5 @@
1
- h1 New report
2
-
3
- == render 'form'
4
-
5
- = link_to 'Back', reports_path
1
+ h1 New report
2
+
3
+ = render 'form'
4
+
5
+ = link_to 'Back', reports_path
@@ -1,12 +1,12 @@
1
- p#notice = notice
2
-
3
- p
4
- strong Title:
5
- = @report.title
6
- p
7
- strong Description:
8
- = @report.description
9
-
10
- = link_to 'Edit', edit_report_path(@report)
11
- '|
12
- = link_to 'Back', reports_path
1
+ p#notice = notice
2
+
3
+ p
4
+ strong Title:
5
+ = @report.title
6
+ p
7
+ strong Description:
8
+ = @report.description
9
+
10
+ = link_to 'Edit', edit_report_path(@report)
11
+ '|
12
+ = link_to 'Back', reports_path
@@ -0,0 +1,15 @@
1
+ doctype html
2
+ html
3
+ head
4
+ title EasyReports
5
+ = stylesheet_link_tag "easy_reports/application", media: "all"
6
+ = javascript_include_tag "easy_reports/application"
7
+ = csrf_meta_tags
8
+ body
9
+ .header
10
+ = render 'shared/header'
11
+ .sidebar
12
+ = render 'shared/sidebar'
13
+ .container-fluid style="width: 90%"
14
+ = yield
15
+
@@ -0,0 +1,60 @@
1
+ nav.navbar.navbar-default
2
+ .container-fluid
3
+ /! Brand and toggle get grouped for better mobile display
4
+ .navbar-header
5
+ button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"
6
+ span.sr-only Toggle navigation
7
+ span.icon-bar
8
+ span.icon-bar
9
+ span.icon-bar
10
+ a.navbar-brand href="#" Easy Reports
11
+ /! Collect the nav links, forms, and other content for toggling
12
+ #bs-example-navbar-collapse-1.collapse.navbar-collapse
13
+ ul.nav.navbar-nav
14
+ li.active
15
+ a href="#"
16
+ | Link
17
+ span.sr-only (current)
18
+ li
19
+ a href="#" Link
20
+ li.dropdown
21
+ a.dropdown-toggle aria-expanded="false" data-toggle="dropdown" href="#" role="button"
22
+ | Dropdown
23
+ span.caret
24
+ ul.dropdown-menu role="menu"
25
+ li
26
+ a href="#" Action
27
+ li
28
+ a href="#" Another action
29
+ li
30
+ a href="#" Something else here
31
+ li.divider
32
+ li
33
+ a href="#" Separated link
34
+ li.divider
35
+ li
36
+ a href="#" One more separated link
37
+ form.navbar-form.navbar-left role="search"
38
+ .form-group
39
+ input.form-control placeholder="Search" type="text" /
40
+ button.btn.btn-default type="submit" Submit
41
+ ul.nav.navbar-nav.navbar-right
42
+ li
43
+ a href="#" Link
44
+ li.dropdown
45
+ a.dropdown-toggle aria-expanded="false" data-toggle="dropdown" href="#" role="button"
46
+ | Dropdown
47
+ span.caret
48
+ ul.dropdown-menu role="menu"
49
+ li
50
+ a href="#" Action
51
+ li
52
+ a href="#" Another action
53
+ li
54
+ a href="#" Something else here
55
+ li.divider
56
+ li
57
+ a href="#" Separated link
58
+ /! /.navbar-collapse
59
+ /! /.container-fluid
60
+
@@ -0,0 +1,58 @@
1
+ html
2
+ head
3
+ body
4
+ .area
5
+ nav.main-menu
6
+ ul
7
+ li
8
+ a href="#"
9
+ i.fa.fa-home.fa-2x
10
+ span.nav-text
11
+ | Dashboard
12
+ li.has-subnav
13
+ a href="#"
14
+ i.fa.fa-laptop.fa-2x
15
+ span.nav-text
16
+ | UI Components
17
+ li.has-subnav
18
+ a href="#"
19
+ i.fa.fa-list.fa-2x
20
+ span.nav-text
21
+ | Forms
22
+ li.has-subnav
23
+ a href="#"
24
+ i.fa.fa-folder-open.fa-2x
25
+ span.nav-text
26
+ | Pages
27
+ li
28
+ a href="#"
29
+ i.fa.fa-bar-chart-o.fa-2x
30
+ span.nav-text
31
+ | Graphs and Statistics
32
+ li
33
+ a href="#"
34
+ i.fa.fa-font.fa-2x
35
+ span.nav-text
36
+ | Typography and Icons
37
+ li
38
+ a href="#"
39
+ i.fa.fa-table.fa-2x
40
+ span.nav-text
41
+ | Tables
42
+ li
43
+ a href="#"
44
+ i.fa.fa-map-marker.fa-2x
45
+ span.nav-text
46
+ | Maps
47
+ li
48
+ a href="#"
49
+ i.fa.fa-info.fa-2x
50
+ span.nav-text
51
+ | Documentation
52
+ ul.logout
53
+ li
54
+ a href="#"
55
+ i.fa.fa-power-off.fa-2x
56
+ span.nav-text
57
+ | Logout
58
+
data/bin/rails CHANGED
@@ -1,12 +1,12 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
3
-
4
- ENGINE_ROOT = File.expand_path('../..', __FILE__)
5
- ENGINE_PATH = File.expand_path('../../lib/easy_reports/engine', __FILE__)
6
-
7
- # Set up gems listed in the Gemfile.
8
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
9
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
10
-
11
- require 'rails/all'
12
- require 'rails/engine/commands'
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
3
+
4
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
5
+ ENGINE_PATH = File.expand_path('../../lib/easy_reports/engine', __FILE__)
6
+
7
+ # Set up gems listed in the Gemfile.
8
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
9
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
10
+
11
+ require 'rails/all'
12
+ require 'rails/engine/commands'