easy_reports 0.0.25 → 0.0.26

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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/easy_reports/dashboard/dashboard_content.css +2 -13
  3. data/app/controllers/easy_reports/databases_controller.rb +53 -0
  4. data/app/controllers/easy_reports/reports_controller.rb +11 -10
  5. data/app/forms/easy_reports/report_form.rb +22 -0
  6. data/app/helpers/easy_reports/databases_helper.rb +4 -0
  7. data/app/models/easy_reports/database.rb +11 -0
  8. data/app/models/easy_reports/report.rb +2 -0
  9. data/app/services/easy_reports/database_mediator.rb +11 -12
  10. data/app/views/easy_reports/dashboard/show.html.slim +8 -8
  11. data/app/views/easy_reports/{database_configs → databases}/_form.html.slim +6 -6
  12. data/app/views/easy_reports/databases/edit.html.slim +8 -0
  13. data/app/views/easy_reports/databases/index.html.slim +35 -0
  14. data/app/views/easy_reports/databases/new.html.slim +5 -0
  15. data/app/views/easy_reports/databases/show.html.slim +27 -0
  16. data/app/views/easy_reports/reports/_form.html.slim +15 -13
  17. data/app/views/layouts/easy_reports/application.html.slim +2 -2
  18. data/app/views/shared/_header.html.slim +3 -20
  19. data/config/initializers/simple_form.rb +145 -0
  20. data/config/initializers/simple_form_bootstrap.rb +45 -0
  21. data/config/locales/simple_form.en.yml +26 -0
  22. data/config/routes.rb +2 -2
  23. data/db/migrate/{20141213173509_create_easy_reports_database_configs.rb → 20141213173509_create_easy_reports_databases.rb} +3 -3
  24. data/db/migrate/20150131195101_add_config_id_to_reports.rb +5 -0
  25. data/easy_reports.gemspec +9 -5
  26. data/lib/easy_reports.rb +8 -5
  27. data/lib/easy_reports/version.rb +1 -1
  28. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  29. data/test/dummy/Gemfile.lock +5 -1
  30. data/test/dummy/db/migrate/{20141214161417_create_easy_reports_reports.easy_reports.rb → 20150131203555_create_easy_reports_reports.easy_reports.rb} +1 -1
  31. data/test/dummy/db/migrate/{20141214161418_create_easy_reports_database_configs.easy_reports.rb → 20150131203556_create_easy_reports_databases.easy_reports.rb} +4 -4
  32. data/test/dummy/db/migrate/20150131203557_add_config_id_to_reports.easy_reports.rb +6 -0
  33. data/test/dummy/db/schema.rb +4 -3
  34. metadata +58 -26
  35. data/app/assets/stylesheets/easy_reports/dashboard/sidebar.css +0 -10
  36. data/app/controllers/easy_reports/database_configs_controller.rb +0 -53
  37. data/app/helpers/easy_reports/database_configs_helper.rb +0 -4
  38. data/app/models/easy_reports/database_config.rb +0 -4
  39. data/app/views/easy_reports/database_configs/edit.html.slim +0 -8
  40. data/app/views/easy_reports/database_configs/index.html.slim +0 -35
  41. data/app/views/easy_reports/database_configs/new.html.slim +0 -5
  42. data/app/views/easy_reports/database_configs/show.html.slim +0 -27
  43. data/app/views/shared/_sidebar.html.slim +0 -90
  44. data/test/controllers/easy_reports/database_configs_controller_test.rb +0 -51
@@ -0,0 +1,145 @@
1
+ # Use this setup block to configure all options available in SimpleForm.
2
+ SimpleForm.setup do |config|
3
+ # Wrappers are used by the form builder to generate a
4
+ # complete input. You can remove any component from the
5
+ # wrapper, change the order or even add your own to the
6
+ # stack. The options given below are used to wrap the
7
+ # whole input.
8
+ config.wrappers :default, class: :input,
9
+ hint_class: :field_with_hint, error_class: :field_with_errors do |b|
10
+ ## Extensions enabled by default
11
+ # Any of these extensions can be disabled for a
12
+ # given input by passing: `f.input EXTENSION_NAME => false`.
13
+ # You can make any of these extensions optional by
14
+ # renaming `b.use` to `b.optional`.
15
+
16
+ # Determines whether to use HTML5 (:email, :url, ...)
17
+ # and required attributes
18
+ b.use :html5
19
+
20
+ # Calculates placeholders automatically from I18n
21
+ # You can also pass a string as f.input placeholder: "Placeholder"
22
+ b.use :placeholder
23
+
24
+ ## Optional extensions
25
+ # They are disabled unless you pass `f.input EXTENSION_NAME => :lookup`
26
+ # to the input. If so, they will retrieve the values from the model
27
+ # if any exists. If you want to enable the lookup for any of those
28
+ # extensions by default, you can change `b.optional` to `b.use`.
29
+
30
+ # Calculates maxlength from length validations for string inputs
31
+ b.optional :maxlength
32
+
33
+ # Calculates pattern from format validations for string inputs
34
+ b.optional :pattern
35
+
36
+ # Calculates min and max from length validations for numeric inputs
37
+ b.optional :min_max
38
+
39
+ # Calculates readonly automatically from readonly attributes
40
+ b.optional :readonly
41
+
42
+ ## Inputs
43
+ b.use :label_input
44
+ b.use :hint, wrap_with: { tag: :span, class: :hint }
45
+ b.use :error, wrap_with: { tag: :span, class: :error }
46
+ end
47
+
48
+ # The default wrapper to be used by the FormBuilder.
49
+ config.default_wrapper = :default
50
+
51
+ # Define the way to render check boxes / radio buttons with labels.
52
+ # Defaults to :nested for bootstrap config.
53
+ # inline: input + label
54
+ # nested: label > input
55
+ config.boolean_style = :nested
56
+
57
+ # Default class for buttons
58
+ config.button_class = 'btn'
59
+
60
+ # Method used to tidy up errors. Specify any Rails Array method.
61
+ # :first lists the first message for each field.
62
+ # Use :to_sentence to list all errors for each field.
63
+ # config.error_method = :first
64
+
65
+ # Default tag used for error notification helper.
66
+ config.error_notification_tag = :div
67
+
68
+ # CSS class to add for error notification helper.
69
+ config.error_notification_class = 'alert alert-error'
70
+
71
+ # ID to add for error notification helper.
72
+ # config.error_notification_id = nil
73
+
74
+ # Series of attempts to detect a default label method for collection.
75
+ # config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
76
+
77
+ # Series of attempts to detect a default value method for collection.
78
+ # config.collection_value_methods = [ :id, :to_s ]
79
+
80
+ # You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
81
+ # config.collection_wrapper_tag = nil
82
+
83
+ # You can define the class to use on all collection wrappers. Defaulting to none.
84
+ # config.collection_wrapper_class = nil
85
+
86
+ # You can wrap each item in a collection of radio/check boxes with a tag,
87
+ # defaulting to :span. Please note that when using :boolean_style = :nested,
88
+ # SimpleForm will force this option to be a label.
89
+ # config.item_wrapper_tag = :span
90
+
91
+ # You can define a class to use in all item wrappers. Defaulting to none.
92
+ # config.item_wrapper_class = nil
93
+
94
+ # How the label text should be generated altogether with the required text.
95
+ # config.label_text = lambda { |label, required| "#{required} #{label}" }
96
+
97
+ # You can define the class to use on all labels. Default is nil.
98
+ config.label_class = 'control-label'
99
+
100
+ # You can define the class to use on all forms. Default is simple_form.
101
+ # config.form_class = :simple_form
102
+
103
+ # You can define which elements should obtain additional classes
104
+ # config.generate_additional_classes_for = [:wrapper, :label, :input]
105
+
106
+ # Whether attributes are required by default (or not). Default is true.
107
+ # config.required_by_default = true
108
+
109
+ # Tell browsers whether to use the native HTML5 validations (novalidate form option).
110
+ # These validations are enabled in SimpleForm's internal config but disabled by default
111
+ # in this configuration, which is recommended due to some quirks from different browsers.
112
+ # To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
113
+ # change this configuration to true.
114
+ config.browser_validations = false
115
+
116
+ # Collection of methods to detect if a file type was given.
117
+ # config.file_methods = [ :mounted_as, :file?, :public_filename ]
118
+
119
+ # Custom mappings for input types. This should be a hash containing a regexp
120
+ # to match as key, and the input type that will be used when the field name
121
+ # matches the regexp as value.
122
+ # config.input_mappings = { /count/ => :integer }
123
+
124
+ # Custom wrappers for input types. This should be a hash containing an input
125
+ # type as key and the wrapper that will be used for all inputs with specified type.
126
+ # config.wrapper_mappings = { string: :prepend }
127
+
128
+ # Default priority for time_zone inputs.
129
+ # config.time_zone_priority = nil
130
+
131
+ # Default priority for country inputs.
132
+ # config.country_priority = nil
133
+
134
+ # When false, do not use translations for labels.
135
+ # config.translate_labels = true
136
+
137
+ # Automatically discover new inputs in Rails' autoload path.
138
+ # config.inputs_discovery = true
139
+
140
+ # Cache SimpleForm inputs discovery
141
+ # config.cache_discovery = !Rails.env.development?
142
+
143
+ # Default class for inputs
144
+ # config.input_class = nil
145
+ end
@@ -0,0 +1,45 @@
1
+ # Use this setup block to configure all options available in SimpleForm.
2
+ SimpleForm.setup do |config|
3
+ config.wrappers :bootstrap, tag: 'div', class: 'control-group', error_class: 'error' do |b|
4
+ b.use :html5
5
+ b.use :placeholder
6
+ b.use :label
7
+ b.wrapper tag: 'div', class: 'controls' do |ba|
8
+ ba.use :input
9
+ ba.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
10
+ ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
11
+ end
12
+ end
13
+
14
+ config.wrappers :prepend, tag: 'div', class: "control-group", error_class: 'error' do |b|
15
+ b.use :html5
16
+ b.use :placeholder
17
+ b.use :label
18
+ b.wrapper tag: 'div', class: 'controls' do |input|
19
+ input.wrapper tag: 'div', class: 'input-prepend' do |prepend|
20
+ prepend.use :input
21
+ end
22
+ input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
23
+ input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
24
+ end
25
+ end
26
+
27
+ config.wrappers :append, tag: 'div', class: "control-group", error_class: 'error' do |b|
28
+ b.use :html5
29
+ b.use :placeholder
30
+ b.use :label
31
+ b.wrapper tag: 'div', class: 'controls' do |input|
32
+ input.wrapper tag: 'div', class: 'input-append' do |append|
33
+ append.use :input
34
+ end
35
+ input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
36
+ input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
37
+ end
38
+ end
39
+
40
+ # Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
41
+ # Check the Bootstrap docs (http://twitter.github.com/bootstrap)
42
+ # to learn about the different styles for forms and inputs,
43
+ # buttons and other elements.
44
+ config.default_wrapper = :bootstrap
45
+ end
@@ -0,0 +1,26 @@
1
+ en:
2
+ simple_form:
3
+ "yes": 'Yes'
4
+ "no": 'No'
5
+ required:
6
+ text: 'required'
7
+ mark: '*'
8
+ # You can uncomment the line below if you need to overwrite the whole required html.
9
+ # When using html, text and mark won't be used.
10
+ # html: '<abbr title="required">*</abbr>'
11
+ error_notification:
12
+ default_message: "Please review the problems below:"
13
+ # Labels and hints examples
14
+ # labels:
15
+ # defaults:
16
+ # password: 'Password'
17
+ # user:
18
+ # new:
19
+ # email: 'E-mail to sign in.'
20
+ # edit:
21
+ # email: 'E-mail.'
22
+ # hints:
23
+ # defaults:
24
+ # username: 'User name to sign in.'
25
+ # password: 'No special characters, please.'
26
+
data/config/routes.rb CHANGED
@@ -2,7 +2,7 @@ EasyReports::Engine.routes.draw do
2
2
 
3
3
  root to: 'dashboard#show'
4
4
  get 'dashboard', to: 'dashboard#show', as: 'dashboard'
5
- resource :report
5
+ resources :reports
6
6
 
7
- resources :database_configs
7
+ resources :databases
8
8
  end
@@ -1,6 +1,6 @@
1
- class CreateEasyReportsDatabaseConfigs < ActiveRecord::Migration
1
+ class CreateEasyReportsDatabases < ActiveRecord::Migration
2
2
  def change
3
- create_table :easy_reports_database_configs do |t|
3
+ create_table :easy_reports_databases do |t|
4
4
  t.string :adapter
5
5
  t.string :encoding
6
6
  t.integer :pool
@@ -8,7 +8,7 @@ class CreateEasyReportsDatabaseConfigs < ActiveRecord::Migration
8
8
  t.string :password
9
9
  t.string :host
10
10
  t.integer :port
11
- t.string :database_name
11
+ t.string :name
12
12
 
13
13
  t.timestamps
14
14
  end
@@ -0,0 +1,5 @@
1
+ class AddConfigIdToReports < ActiveRecord::Migration
2
+ def change
3
+ add_column :easy_reports_reports, :database_id, :integer
4
+ end
5
+ end
data/easy_reports.gemspec CHANGED
@@ -25,12 +25,16 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.7"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
- spec.add_dependency 'slim'
28
+
29
+ spec.add_dependency 'backbone-rails'
30
+ spec.add_dependency 'bootstrap-select-rails'
31
+ spec.add_dependency 'jquery-rails'
32
+ spec.add_dependency 'less-rails'
29
33
  spec.add_dependency 'pg'
34
+ spec.add_dependency 'sequel'
35
+ spec.add_dependency 'simple_form'
36
+ # spec.add_dependency 'skim'
37
+ spec.add_dependency 'slim-rails'
30
38
  spec.add_dependency 'therubyracer'
31
- spec.add_dependency 'less-rails'
32
- spec.add_dependency 'jquery-rails'
33
39
  spec.add_dependency 'twitter-bootstrap-rails'
34
- spec.add_dependency 'bootstrap-select-rails'
35
- spec.add_dependency 'sequel'
36
40
  end
data/lib/easy_reports.rb CHANGED
@@ -1,13 +1,16 @@
1
1
  require 'easy_reports/engine'
2
2
  require 'easy_reports/version'
3
- require 'sequel'
3
+
4
+ require 'bootstrap-select-rails'
5
+ require 'backbone-rails'
6
+ require 'jquery-rails'
7
+ require 'less-rails'
4
8
  require 'pg'
9
+ require 'sequel'
10
+ require 'slim'
11
+ require 'simple_form'
5
12
  require 'therubyracer'
6
- require 'less-rails'
7
- require 'jquery-rails'
8
13
  require 'twitter-bootstrap-rails'
9
- require 'bootstrap-select-rails'
10
- require 'slim'
11
14
 
12
15
  module EasyReports
13
16
  end
@@ -1,3 +1,3 @@
1
1
  module EasyReports
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
@@ -0,0 +1,13 @@
1
+ <%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
2
+ <%%= f.error_notification %>
3
+
4
+ <div class="form-inputs">
5
+ <%- attributes.each do |attribute| -%>
6
+ <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
7
+ <%- end -%>
8
+ </div>
9
+
10
+ <div class="form-actions">
11
+ <%%= f.button :submit %>
12
+ </div>
13
+ <%% end %>
@@ -1,13 +1,14 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- easy_reports (0.0.23)
4
+ easy_reports (0.0.25)
5
5
  bootstrap-select-rails
6
6
  jquery-rails
7
7
  less-rails
8
8
  pg
9
9
  rails (~> 4.1.8)
10
10
  sequel
11
+ simple_form
11
12
  slim
12
13
  therubyracer
13
14
  twitter-bootstrap-rails
@@ -88,6 +89,9 @@ GEM
88
89
  rake (10.4.2)
89
90
  ref (1.0.5)
90
91
  sequel (4.18.0)
92
+ simple_form (3.0.2)
93
+ actionpack (~> 4.0)
94
+ activemodel (~> 4.0)
91
95
  slim (3.0.1)
92
96
  temple (~> 0.7.3)
93
97
  tilt (>= 1.3.3, < 2.1)
@@ -1,4 +1,4 @@
1
- # This migration comes from easy_reports (originally 20141207141745)
1
+ # This migration comes from easy_reports (originally 20141207141745)
2
2
  class CreateEasyReportsReports < ActiveRecord::Migration
3
3
  def change
4
4
  create_table :easy_reports_reports do |t|
@@ -1,7 +1,7 @@
1
- # This migration comes from easy_reports (originally 20141213173509)
2
- class CreateEasyReportsDatabaseConfigs < ActiveRecord::Migration
1
+ # This migration comes from easy_reports (originally 20141213173509)
2
+ class CreateEasyReportsDatabases < ActiveRecord::Migration
3
3
  def change
4
- create_table :easy_reports_database_configs do |t|
4
+ create_table :easy_reports_databases do |t|
5
5
  t.string :adapter
6
6
  t.string :encoding
7
7
  t.integer :pool
@@ -9,7 +9,7 @@ class CreateEasyReportsDatabaseConfigs < ActiveRecord::Migration
9
9
  t.string :password
10
10
  t.string :host
11
11
  t.integer :port
12
- t.string :database_name
12
+ t.string :name
13
13
 
14
14
  t.timestamps
15
15
  end
@@ -0,0 +1,6 @@
1
+ # This migration comes from easy_reports (originally 20150131195101)
2
+ class AddConfigIdToReports < ActiveRecord::Migration
3
+ def change
4
+ add_column :easy_reports_reports, :database_id, :integer
5
+ end
6
+ end
@@ -11,9 +11,9 @@
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: 20141214161418) do
14
+ ActiveRecord::Schema.define(version: 20150131203557) do
15
15
 
16
- create_table "easy_reports_database_configs", force: true do |t|
16
+ create_table "easy_reports_databases", force: true do |t|
17
17
  t.string "adapter"
18
18
  t.string "encoding"
19
19
  t.integer "pool"
@@ -21,7 +21,7 @@ ActiveRecord::Schema.define(version: 20141214161418) do
21
21
  t.string "password"
22
22
  t.string "host"
23
23
  t.integer "port"
24
- t.string "database_name"
24
+ t.string "name"
25
25
  t.datetime "created_at"
26
26
  t.datetime "updated_at"
27
27
  end
@@ -31,6 +31,7 @@ ActiveRecord::Schema.define(version: 20141214161418) do
31
31
  t.text "description"
32
32
  t.datetime "created_at"
33
33
  t.datetime "updated_at"
34
+ t.integer "database_id"
34
35
  end
35
36
 
36
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_reports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davydenkov Mihail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-18 00:00:00.000000000 Z
11
+ date: 2015-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: slim
56
+ name: backbone-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pg
70
+ name: bootstrap-select-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: therubyracer
84
+ name: jquery-rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: jquery-rails
112
+ name: pg
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: twitter-bootstrap-rails
126
+ name: sequel
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: bootstrap-select-rails
140
+ name: simple_form
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -151,7 +151,35 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: sequel
154
+ name: slim-rails
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: therubyracer
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: twitter-bootstrap-rails
155
183
  requirement: !ruby/object:Gem::Requirement
156
184
  requirements:
157
185
  - - ">="
@@ -187,25 +215,25 @@ files:
187
215
  - app/assets/stylesheets/easy_reports/application.css
188
216
  - app/assets/stylesheets/easy_reports/bootstrap_and_overrides.css.less
189
217
  - app/assets/stylesheets/easy_reports/dashboard/dashboard_content.css
190
- - app/assets/stylesheets/easy_reports/dashboard/sidebar.css
191
218
  - app/assets/stylesheets/easy_reports/database_configs.css
192
219
  - app/assets/stylesheets/easy_reports/reports.css
193
220
  - app/controllers/easy_reports/application_controller.rb
194
221
  - app/controllers/easy_reports/dashboard_controller.rb
195
- - app/controllers/easy_reports/database_configs_controller.rb
222
+ - app/controllers/easy_reports/databases_controller.rb
196
223
  - app/controllers/easy_reports/reports_controller.rb
224
+ - app/forms/easy_reports/report_form.rb
197
225
  - app/helpers/easy_reports/application_helper.rb
198
- - app/helpers/easy_reports/database_configs_helper.rb
226
+ - app/helpers/easy_reports/databases_helper.rb
199
227
  - app/helpers/easy_reports/reports_helper.rb
200
- - app/models/easy_reports/database_config.rb
228
+ - app/models/easy_reports/database.rb
201
229
  - app/models/easy_reports/report.rb
202
230
  - app/services/easy_reports/database_mediator.rb
203
231
  - app/views/easy_reports/dashboard/show.html.slim
204
- - app/views/easy_reports/database_configs/_form.html.slim
205
- - app/views/easy_reports/database_configs/edit.html.slim
206
- - app/views/easy_reports/database_configs/index.html.slim
207
- - app/views/easy_reports/database_configs/new.html.slim
208
- - app/views/easy_reports/database_configs/show.html.slim
232
+ - app/views/easy_reports/databases/_form.html.slim
233
+ - app/views/easy_reports/databases/edit.html.slim
234
+ - app/views/easy_reports/databases/index.html.slim
235
+ - app/views/easy_reports/databases/new.html.slim
236
+ - app/views/easy_reports/databases/show.html.slim
209
237
  - app/views/easy_reports/reports/_form.html.slim
210
238
  - app/views/easy_reports/reports/edit.html.slim
211
239
  - app/views/easy_reports/reports/index.html.slim
@@ -213,18 +241,21 @@ files:
213
241
  - app/views/easy_reports/reports/show.html.slim
214
242
  - app/views/layouts/easy_reports/application.html.slim
215
243
  - app/views/shared/_header.html.slim
216
- - app/views/shared/_sidebar.html.slim
217
244
  - bin/rails
245
+ - config/initializers/simple_form.rb
246
+ - config/initializers/simple_form_bootstrap.rb
218
247
  - config/locales/en.bootstrap.yml
248
+ - config/locales/simple_form.en.yml
219
249
  - config/routes.rb
220
250
  - db/migrate/20141207141745_create_easy_reports_reports.rb
221
- - db/migrate/20141213173509_create_easy_reports_database_configs.rb
251
+ - db/migrate/20141213173509_create_easy_reports_databases.rb
252
+ - db/migrate/20150131195101_add_config_id_to_reports.rb
222
253
  - easy_reports.gemspec
223
254
  - lib/easy_reports.rb
224
255
  - lib/easy_reports/engine.rb
225
256
  - lib/easy_reports/version.rb
226
257
  - lib/tasks/easy_reports_tasks.rake
227
- - test/controllers/easy_reports/database_configs_controller_test.rb
258
+ - lib/templates/erb/scaffold/_form.html.erb
228
259
  - test/controllers/easy_reports/reports_controller_test.rb
229
260
  - test/dummy/Gemfile
230
261
  - test/dummy/Gemfile.lock
@@ -264,8 +295,9 @@ files:
264
295
  - test/dummy/config/locales/en.yml
265
296
  - test/dummy/config/routes.rb
266
297
  - test/dummy/config/secrets.yml
267
- - test/dummy/db/migrate/20141214161417_create_easy_reports_reports.easy_reports.rb
268
- - test/dummy/db/migrate/20141214161418_create_easy_reports_database_configs.easy_reports.rb
298
+ - test/dummy/db/migrate/20150131203555_create_easy_reports_reports.easy_reports.rb
299
+ - test/dummy/db/migrate/20150131203556_create_easy_reports_databases.easy_reports.rb
300
+ - test/dummy/db/migrate/20150131203557_add_config_id_to_reports.easy_reports.rb
269
301
  - test/dummy/db/schema.rb
270
302
  - test/dummy/lib/assets/.keep
271
303
  - test/dummy/log/.keep
@@ -304,7 +336,6 @@ signing_key:
304
336
  specification_version: 4
305
337
  summary: Add reports dashboard in your rails app
306
338
  test_files:
307
- - test/controllers/easy_reports/database_configs_controller_test.rb
308
339
  - test/controllers/easy_reports/reports_controller_test.rb
309
340
  - test/dummy/Gemfile
310
341
  - test/dummy/Gemfile.lock
@@ -344,8 +375,9 @@ test_files:
344
375
  - test/dummy/config/locales/en.yml
345
376
  - test/dummy/config/routes.rb
346
377
  - test/dummy/config/secrets.yml
347
- - test/dummy/db/migrate/20141214161417_create_easy_reports_reports.easy_reports.rb
348
- - test/dummy/db/migrate/20141214161418_create_easy_reports_database_configs.easy_reports.rb
378
+ - test/dummy/db/migrate/20150131203555_create_easy_reports_reports.easy_reports.rb
379
+ - test/dummy/db/migrate/20150131203556_create_easy_reports_databases.easy_reports.rb
380
+ - test/dummy/db/migrate/20150131203557_add_config_id_to_reports.easy_reports.rb
349
381
  - test/dummy/db/schema.rb
350
382
  - test/dummy/lib/assets/.keep
351
383
  - test/dummy/log/.keep