ecm_core 0.0.3
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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +26 -0
- data/app/assets/config/ecm_core_manifest.js +2 -0
- data/app/assets/javascripts/ecm/core/application.js +13 -0
- data/app/assets/javascripts/ecm/core/application/keep.js +0 -0
- data/app/assets/javascripts/ecm/core/backend/application.js +13 -0
- data/app/assets/javascripts/ecm/core/backend/application/keep.js +0 -0
- data/app/assets/javascripts/ecm_core.js +1 -0
- data/app/assets/javascripts/ecm_core_backend.js +1 -0
- data/app/assets/stylesheets/ecm/core/application.css +15 -0
- data/app/assets/stylesheets/ecm/core/application/bottom-margin.css +10 -0
- data/app/assets/stylesheets/ecm/core/backend/application.css +15 -0
- data/app/assets/stylesheets/ecm/core/backend/application/horizontal_separator.css +17 -0
- data/app/assets/stylesheets/ecm_core.css +3 -0
- data/app/assets/stylesheets/ecm_core_backend.css +3 -0
- data/app/concerns/controller/store_remote_ip_concern.rb +15 -0
- data/app/controllers/ecm/core/application_controller.rb +7 -0
- data/app/controllers/ecm/core/backend/delayed_jobs_controller.rb +11 -0
- data/app/controllers/ecm/core/backend/home_controller.rb +8 -0
- data/app/controllers/ecm/core/home_controller.rb +10 -0
- data/app/helpers/ecm/core/application_helper.rb +11 -0
- data/app/jobs/ecm/core/application_job.rb +6 -0
- data/app/mailers/ecm/core/application_mailer.rb +8 -0
- data/app/models/ecm/core/application_record.rb +7 -0
- data/app/views/layouts/ecm/core/application.html.erb +14 -0
- data/config/backend/routes.rb +5 -0
- data/config/initializers/assets.rb +4 -0
- data/config/locales/de.yml +4 -0
- data/config/routes.rb +5 -0
- data/lib/ecm/core/backend.rb +10 -0
- data/lib/ecm/core/backend/configuration.rb +28 -0
- data/lib/ecm/core/backend/engine.rb +18 -0
- data/lib/ecm/core/configuration.rb +16 -0
- data/lib/ecm/core/engine.rb +14 -0
- data/lib/ecm/core/spec_helpers/feature.rb +30 -0
- data/lib/ecm/core/version.rb +5 -0
- data/lib/ecm_core.rb +29 -0
- data/lib/generators/ecm/core/backend/install/install_generator.rb +33 -0
- data/lib/generators/ecm/core/backend/install/templates/initializer.rb +19 -0
- data/lib/generators/ecm/core/backend/install/templates/routes.source +4 -0
- data/lib/generators/ecm/core/install/install_generator.rb +19 -0
- data/lib/generators/ecm/core/install/templates/initializer.rb +7 -0
- data/lib/generators/ecm/core/install/templates/routes.source +2 -0
- data/lib/tasks/ecm_core_tasks.rake +4 -0
- metadata +341 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 83b047fd524210bdf4805feb5f7542a22399b816
|
|
4
|
+
data.tar.gz: b1e3d9af5a0ef769eb3f745b3486847eee768376
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 01f52c1abb2f506123f3c3a62dc85a56579cfd543303e9f667a9cd1618bac335618c65234c4ed2b71220cd17a0ac02e29ea46fe8a5a6a1b619058b1bfc0ea03e
|
|
7
|
+
data.tar.gz: 0fa62cba632f2615083fdf154d055bbcd4535db9e02c7f08d98302a345ae5c1af3b63c62740f4f85036b147b024e6dc0bad708b29e6e9164eb9be181b1d64632
|
data/MIT-LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright 2017 Roberto Vasquez Angel
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Ecm::Core
|
|
2
|
+
Short description and motivation.
|
|
3
|
+
|
|
4
|
+
## Usage
|
|
5
|
+
How to use my plugin.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
Add this line to your application's Gemfile:
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
gem 'ecm_core'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
And then execute:
|
|
15
|
+
```bash
|
|
16
|
+
$ bundle
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
```bash
|
|
21
|
+
$ gem install ecm_core
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Contributing
|
|
25
|
+
Contribution directions go here.
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
begin
|
|
2
|
+
require 'bundler/setup'
|
|
3
|
+
rescue LoadError
|
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
require 'rdoc/task'
|
|
8
|
+
|
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
|
11
|
+
rdoc.title = 'Ecm::Core'
|
|
12
|
+
rdoc.options << '--line-numbers'
|
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
|
18
|
+
load 'rails/tasks/engine.rake'
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
load 'rails/tasks/statistics.rake'
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
require 'bundler/gem_tasks'
|
|
26
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
+
// listed below.
|
|
3
|
+
//
|
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
6
|
+
//
|
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
|
9
|
+
//
|
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
11
|
+
// about supported directives.
|
|
12
|
+
//
|
|
13
|
+
//= require_tree ./application
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
+
// listed below.
|
|
3
|
+
//
|
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
6
|
+
//
|
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
|
9
|
+
//
|
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
11
|
+
// about supported directives.
|
|
12
|
+
//
|
|
13
|
+
//= require_tree ./application
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//= require ./ecm/core/application
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//= require ./ecm/core/backend/application
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
+
* listed below.
|
|
4
|
+
*
|
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
7
|
+
*
|
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
|
11
|
+
* It is generally better to create a new file per style scope.
|
|
12
|
+
*
|
|
13
|
+
*= require_tree ./application
|
|
14
|
+
*= require_self
|
|
15
|
+
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
.bottom-margin-1 { margin-bottom: 10px; }
|
|
2
|
+
.bottom-margin-2 { margin-bottom: 20px; }
|
|
3
|
+
.bottom-margin-3 { margin-bottom: 30px; }
|
|
4
|
+
.bottom-margin-4 { margin-bottom: 40px; }
|
|
5
|
+
.bottom-margin-5 { margin-bottom: 50px; }
|
|
6
|
+
.bottom-margin-6 { margin-bottom: 60px; }
|
|
7
|
+
.bottom-margin-7 { margin-bottom: 70px; }
|
|
8
|
+
.bottom-margin-8 { margin-bottom: 80px; }
|
|
9
|
+
.bottom-margin-9 { margin-bottom: 90px; }
|
|
10
|
+
.bottom-margin-10 { margin-bottom: 100px; }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
+
* listed below.
|
|
4
|
+
*
|
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
7
|
+
*
|
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
|
11
|
+
* It is generally better to create a new file per style scope.
|
|
12
|
+
*
|
|
13
|
+
*= require_tree ./application
|
|
14
|
+
*= require_self
|
|
15
|
+
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.horizontal-separator {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-basis: 100%;
|
|
4
|
+
align-items: center;
|
|
5
|
+
color: rgba(0, 0, 0, 0.35);
|
|
6
|
+
margin: 8px 0px;
|
|
7
|
+
}
|
|
8
|
+
.horizontal-separator::before,
|
|
9
|
+
.horizontal-separator::after {
|
|
10
|
+
content: "";
|
|
11
|
+
flex-grow: 1;
|
|
12
|
+
background: rgba(0, 0, 0, 0.35);
|
|
13
|
+
height: 1px;
|
|
14
|
+
font-size: 0px;
|
|
15
|
+
line-height: 0px;
|
|
16
|
+
margin: 0px 8px;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Ecm core</title>
|
|
5
|
+
<%= stylesheet_link_tag "ecm/core/application", media: "all" %>
|
|
6
|
+
<%= javascript_include_tag "ecm/core/application" %>
|
|
7
|
+
<%= csrf_meta_tags %>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<%= yield %>
|
|
12
|
+
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
Rails.application.config.assets.precompile += %w( ecm_core.css )
|
|
2
|
+
Rails.application.config.assets.precompile += %w( ecm_core_backend.css )
|
|
3
|
+
Rails.application.config.assets.precompile += %w( ecm_core.js )
|
|
4
|
+
Rails.application.config.assets.precompile += %w( ecm_core_backend.js )
|
data/config/routes.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require 'active_support/core_ext/module/delegation'
|
|
2
|
+
require 'active_support/core_ext/module/attribute_accessors'
|
|
3
|
+
|
|
4
|
+
module Ecm
|
|
5
|
+
module Core
|
|
6
|
+
module Backend
|
|
7
|
+
module Configuration
|
|
8
|
+
def configure
|
|
9
|
+
yield self
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
mattr_accessor :registered_controllers do
|
|
13
|
+
lambda do
|
|
14
|
+
[
|
|
15
|
+
# Ecm::Contact::Backend::FoosController
|
|
16
|
+
]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
mattr_accessor :registered_services do
|
|
21
|
+
lambda do
|
|
22
|
+
[]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Ecm
|
|
2
|
+
module Core
|
|
3
|
+
module Backend
|
|
4
|
+
class Engine < ::Rails::Engine
|
|
5
|
+
isolate_namespace Ecm::Core::Backend
|
|
6
|
+
|
|
7
|
+
config.paths['config/routes.rb'] = ['config/backend/routes.rb']
|
|
8
|
+
|
|
9
|
+
config.generators do |g|
|
|
10
|
+
g.test_framework :rspec, fixture: true
|
|
11
|
+
g.fixture_replacement :factory_girl, dir: 'spec/factories'
|
|
12
|
+
# g.form_builder :simple_form
|
|
13
|
+
# g.template_engine :haml
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'active_support/core_ext/module/delegation'
|
|
2
|
+
require 'active_support/core_ext/module/attribute_accessors'
|
|
3
|
+
|
|
4
|
+
module Ecm
|
|
5
|
+
module Core
|
|
6
|
+
module Configuration
|
|
7
|
+
def configure
|
|
8
|
+
yield self
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
mattr_accessor :base_controller do
|
|
12
|
+
'::FrontendController'
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Ecm
|
|
2
|
+
module Core
|
|
3
|
+
class Engine < ::Rails::Engine
|
|
4
|
+
isolate_namespace Ecm::Core
|
|
5
|
+
|
|
6
|
+
config.generators do |g|
|
|
7
|
+
g.test_framework :rspec, fixture: true
|
|
8
|
+
g.fixture_replacement :factory_girl, dir: 'spec/factories'
|
|
9
|
+
# g.form_builder :simple_form
|
|
10
|
+
# g.template_engine :haml
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Ecm
|
|
2
|
+
module Core
|
|
3
|
+
module SpecHelpers
|
|
4
|
+
module Feature
|
|
5
|
+
def sign_in(user)
|
|
6
|
+
visit("/#{I18n.locale}/#{I18n.t('routes.ecm_user_area_engine')}/#{I18n.t('routes.user_session')}/new")
|
|
7
|
+
fill_in 'user_session[email]', with: user.email
|
|
8
|
+
fill_in 'user_session[password]', with: user.password
|
|
9
|
+
click_button(I18n.t('helpers.submit.user_session.create'))
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def select_date_and_time(date, options = {})
|
|
13
|
+
field = options[:from]
|
|
14
|
+
select I18n.l(date, format: '%Y'), from: "#{field}_1i" #year
|
|
15
|
+
select I18n.l(date, format: '%B'), from: "#{field}_2i" #month
|
|
16
|
+
select I18n.l(date, format: '%-d'), from: "#{field}_3i" #day
|
|
17
|
+
select I18n.l(date, format: '%H'), from: "#{field}_4i" #hour
|
|
18
|
+
select I18n.l(date, format: '%M'), from: "#{field}_5i" #minute
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def select_date(date, options = {})
|
|
22
|
+
field = options[:from]
|
|
23
|
+
select I18n.l(date, format: '%Y'), from: "#{field}_1i" #year
|
|
24
|
+
select I18n.l(date, format: '%B'), from: "#{field}_2i" #month
|
|
25
|
+
select I18n.l(date, format: '%-d'), from: "#{field}_3i" #day
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
data/lib/ecm_core.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
require 'kaminari'
|
|
2
|
+
require 'bootstrap-kaminari-views'
|
|
3
|
+
require "delayed_job_active_record"
|
|
4
|
+
require "request_store_rails"
|
|
5
|
+
require "route_translator"
|
|
6
|
+
require "itsf_backend"
|
|
7
|
+
|
|
8
|
+
require "ecm/core/configuration"
|
|
9
|
+
require "ecm/core/engine"
|
|
10
|
+
|
|
11
|
+
require "ecm/core/backend"
|
|
12
|
+
|
|
13
|
+
module Ecm
|
|
14
|
+
module Core
|
|
15
|
+
extend Configuration
|
|
16
|
+
|
|
17
|
+
module RemoteIp
|
|
18
|
+
extend ActiveSupport::Concern
|
|
19
|
+
|
|
20
|
+
class_methods do
|
|
21
|
+
def remote_ip
|
|
22
|
+
RequestLocals.fetch(:remote_ip) { nil }
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
include RemoteIp
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module Ecm
|
|
2
|
+
module Core
|
|
3
|
+
module Backend
|
|
4
|
+
module Generators
|
|
5
|
+
class InstallGenerator < Rails::Generators::Base
|
|
6
|
+
desc 'Installs the initializer, routes and itsf_backend integration'
|
|
7
|
+
|
|
8
|
+
source_root File.expand_path('../templates', __FILE__)
|
|
9
|
+
|
|
10
|
+
def generate_initializer
|
|
11
|
+
copy_file 'initializer.rb', 'config/initializers/ecm_core_backend.rb'
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def generate_routes
|
|
15
|
+
route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source'))
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def add_to_itsf_backend
|
|
19
|
+
insert_into_itsf_backend_config(Ecm::Core::Backend::Engine)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
private
|
|
23
|
+
|
|
24
|
+
def insert_into_itsf_backend_config(engine_name)
|
|
25
|
+
inject_into_file 'config/initializers/001_itsf_backend.rb', after: "config.backend_engines = %w(\n" do
|
|
26
|
+
" #{engine_name}\n"
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Ecm::Core::Backend.configure do |config|
|
|
2
|
+
# Set the resources, that will be shown in the backend menu.
|
|
3
|
+
#
|
|
4
|
+
# Default: config.registered_controllers = -> {[
|
|
5
|
+
# Ecm::Core::Backend::DelayedJobsController
|
|
6
|
+
# ]}
|
|
7
|
+
#
|
|
8
|
+
config.registered_controllers = -> {[
|
|
9
|
+
Ecm::Core::Backend::DelayedJobsController
|
|
10
|
+
]}
|
|
11
|
+
|
|
12
|
+
# Set the services, that will be shown in the backend menu.
|
|
13
|
+
#
|
|
14
|
+
# Default: config.registered_services = -> {[
|
|
15
|
+
# ]}
|
|
16
|
+
#
|
|
17
|
+
config.registered_services = -> {[
|
|
18
|
+
]}
|
|
19
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Ecm
|
|
2
|
+
module Core
|
|
3
|
+
module Generators
|
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
|
5
|
+
desc 'Installs the initializer, routes and itsf_backend integration'
|
|
6
|
+
|
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
|
8
|
+
|
|
9
|
+
def generate_initializer
|
|
10
|
+
copy_file 'initializer.rb', 'config/initializers/ecm_core.rb'
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def generate_routes
|
|
14
|
+
route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source'))
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ecm_core
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.3
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Roberto Vasquez Angel
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-10-31 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rails
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 4.0.0
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 4.0.0
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: delayed_job_active_record
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: request_store_rails
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: route_translator
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: itsf_backend
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: kaminari
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :runtime
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: bootstrap-kaminari-views
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :runtime
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: sqlite3
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: capybara
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - ">="
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0'
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: factory_girl_rails
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - ">="
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '0'
|
|
146
|
+
type: :development
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - ">="
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '0'
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: guard-bundler
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - ">="
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: '0'
|
|
160
|
+
type: :development
|
|
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: guard-rspec
|
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
|
170
|
+
requirements:
|
|
171
|
+
- - ">="
|
|
172
|
+
- !ruby/object:Gem::Version
|
|
173
|
+
version: '0'
|
|
174
|
+
type: :development
|
|
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: i18n-debug
|
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
- - ">="
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: '0'
|
|
188
|
+
type: :development
|
|
189
|
+
prerelease: false
|
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
+
requirements:
|
|
192
|
+
- - ">="
|
|
193
|
+
- !ruby/object:Gem::Version
|
|
194
|
+
version: '0'
|
|
195
|
+
- !ruby/object:Gem::Dependency
|
|
196
|
+
name: launchy
|
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
|
198
|
+
requirements:
|
|
199
|
+
- - ">="
|
|
200
|
+
- !ruby/object:Gem::Version
|
|
201
|
+
version: '0'
|
|
202
|
+
type: :development
|
|
203
|
+
prerelease: false
|
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
205
|
+
requirements:
|
|
206
|
+
- - ">="
|
|
207
|
+
- !ruby/object:Gem::Version
|
|
208
|
+
version: '0'
|
|
209
|
+
- !ruby/object:Gem::Dependency
|
|
210
|
+
name: pry-rails
|
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
|
212
|
+
requirements:
|
|
213
|
+
- - ">="
|
|
214
|
+
- !ruby/object:Gem::Version
|
|
215
|
+
version: '0'
|
|
216
|
+
type: :development
|
|
217
|
+
prerelease: false
|
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
219
|
+
requirements:
|
|
220
|
+
- - ">="
|
|
221
|
+
- !ruby/object:Gem::Version
|
|
222
|
+
version: '0'
|
|
223
|
+
- !ruby/object:Gem::Dependency
|
|
224
|
+
name: rspec-rails
|
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
|
226
|
+
requirements:
|
|
227
|
+
- - ">="
|
|
228
|
+
- !ruby/object:Gem::Version
|
|
229
|
+
version: '0'
|
|
230
|
+
type: :development
|
|
231
|
+
prerelease: false
|
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
233
|
+
requirements:
|
|
234
|
+
- - ">="
|
|
235
|
+
- !ruby/object:Gem::Version
|
|
236
|
+
version: '0'
|
|
237
|
+
- !ruby/object:Gem::Dependency
|
|
238
|
+
name: rubocop
|
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
|
240
|
+
requirements:
|
|
241
|
+
- - ">="
|
|
242
|
+
- !ruby/object:Gem::Version
|
|
243
|
+
version: '0'
|
|
244
|
+
type: :development
|
|
245
|
+
prerelease: false
|
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
247
|
+
requirements:
|
|
248
|
+
- - ">="
|
|
249
|
+
- !ruby/object:Gem::Version
|
|
250
|
+
version: '0'
|
|
251
|
+
- !ruby/object:Gem::Dependency
|
|
252
|
+
name: shoulda-matchers
|
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
|
254
|
+
requirements:
|
|
255
|
+
- - ">="
|
|
256
|
+
- !ruby/object:Gem::Version
|
|
257
|
+
version: '0'
|
|
258
|
+
type: :development
|
|
259
|
+
prerelease: false
|
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
261
|
+
requirements:
|
|
262
|
+
- - ">="
|
|
263
|
+
- !ruby/object:Gem::Version
|
|
264
|
+
version: '0'
|
|
265
|
+
description:
|
|
266
|
+
email:
|
|
267
|
+
- roberto@vasquez-angel.de
|
|
268
|
+
executables: []
|
|
269
|
+
extensions: []
|
|
270
|
+
extra_rdoc_files: []
|
|
271
|
+
files:
|
|
272
|
+
- MIT-LICENSE
|
|
273
|
+
- README.md
|
|
274
|
+
- Rakefile
|
|
275
|
+
- app/assets/config/ecm_core_manifest.js
|
|
276
|
+
- app/assets/javascripts/ecm/core/application.js
|
|
277
|
+
- app/assets/javascripts/ecm/core/application/keep.js
|
|
278
|
+
- app/assets/javascripts/ecm/core/backend/application.js
|
|
279
|
+
- app/assets/javascripts/ecm/core/backend/application/keep.js
|
|
280
|
+
- app/assets/javascripts/ecm_core.js
|
|
281
|
+
- app/assets/javascripts/ecm_core_backend.js
|
|
282
|
+
- app/assets/stylesheets/ecm/core/application.css
|
|
283
|
+
- app/assets/stylesheets/ecm/core/application/bottom-margin.css
|
|
284
|
+
- app/assets/stylesheets/ecm/core/backend/application.css
|
|
285
|
+
- app/assets/stylesheets/ecm/core/backend/application/horizontal_separator.css
|
|
286
|
+
- app/assets/stylesheets/ecm_core.css
|
|
287
|
+
- app/assets/stylesheets/ecm_core_backend.css
|
|
288
|
+
- app/concerns/controller/store_remote_ip_concern.rb
|
|
289
|
+
- app/controllers/ecm/core/application_controller.rb
|
|
290
|
+
- app/controllers/ecm/core/backend/delayed_jobs_controller.rb
|
|
291
|
+
- app/controllers/ecm/core/backend/home_controller.rb
|
|
292
|
+
- app/controllers/ecm/core/home_controller.rb
|
|
293
|
+
- app/helpers/ecm/core/application_helper.rb
|
|
294
|
+
- app/jobs/ecm/core/application_job.rb
|
|
295
|
+
- app/mailers/ecm/core/application_mailer.rb
|
|
296
|
+
- app/models/ecm/core/application_record.rb
|
|
297
|
+
- app/views/layouts/ecm/core/application.html.erb
|
|
298
|
+
- config/backend/routes.rb
|
|
299
|
+
- config/initializers/assets.rb
|
|
300
|
+
- config/locales/de.yml
|
|
301
|
+
- config/routes.rb
|
|
302
|
+
- lib/ecm/core/backend.rb
|
|
303
|
+
- lib/ecm/core/backend/configuration.rb
|
|
304
|
+
- lib/ecm/core/backend/engine.rb
|
|
305
|
+
- lib/ecm/core/configuration.rb
|
|
306
|
+
- lib/ecm/core/engine.rb
|
|
307
|
+
- lib/ecm/core/spec_helpers/feature.rb
|
|
308
|
+
- lib/ecm/core/version.rb
|
|
309
|
+
- lib/ecm_core.rb
|
|
310
|
+
- lib/generators/ecm/core/backend/install/install_generator.rb
|
|
311
|
+
- lib/generators/ecm/core/backend/install/templates/initializer.rb
|
|
312
|
+
- lib/generators/ecm/core/backend/install/templates/routes.source
|
|
313
|
+
- lib/generators/ecm/core/install/install_generator.rb
|
|
314
|
+
- lib/generators/ecm/core/install/templates/initializer.rb
|
|
315
|
+
- lib/generators/ecm/core/install/templates/routes.source
|
|
316
|
+
- lib/tasks/ecm_core_tasks.rake
|
|
317
|
+
homepage: https://github.com/robotex82/ecm_code
|
|
318
|
+
licenses:
|
|
319
|
+
- MIT
|
|
320
|
+
metadata: {}
|
|
321
|
+
post_install_message:
|
|
322
|
+
rdoc_options: []
|
|
323
|
+
require_paths:
|
|
324
|
+
- lib
|
|
325
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
326
|
+
requirements:
|
|
327
|
+
- - ">="
|
|
328
|
+
- !ruby/object:Gem::Version
|
|
329
|
+
version: '0'
|
|
330
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
331
|
+
requirements:
|
|
332
|
+
- - ">="
|
|
333
|
+
- !ruby/object:Gem::Version
|
|
334
|
+
version: '0'
|
|
335
|
+
requirements: []
|
|
336
|
+
rubyforge_project:
|
|
337
|
+
rubygems_version: 2.6.11
|
|
338
|
+
signing_key:
|
|
339
|
+
specification_version: 4
|
|
340
|
+
summary: Ecm Core Module.
|
|
341
|
+
test_files: []
|