mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Init depp refactor
This commit is contained in:
parent
f3c9e0aecc
commit
3fe47973e6
156 changed files with 191 additions and 1662 deletions
3
Gemfile
3
Gemfile
|
@ -64,8 +64,7 @@ gem 'deep_cloneable', '~> 2.1.1'
|
|||
# id + mid login
|
||||
gem 'digidoc_client', '~> 0.2.1'
|
||||
|
||||
# epp + repp client
|
||||
gem 'depp', path: 'vendor/gems/depp'
|
||||
# epp
|
||||
gem 'epp', '~> 1.4.2', github: 'gitlabeu/epp'
|
||||
|
||||
# for importing legacy db
|
||||
|
|
19
Gemfile.lock
19
Gemfile.lock
|
@ -27,24 +27,6 @@ GIT
|
|||
nokogiri (~> 1.6.0)
|
||||
ruby_parser (~> 3.5)
|
||||
|
||||
PATH
|
||||
remote: vendor/gems/depp
|
||||
specs:
|
||||
depp (0.0.2)
|
||||
coderay (>= 1.1.0)
|
||||
coffee-rails (>= 4.1.0)
|
||||
countries (>= 0.9.3)
|
||||
epp-xml (>= 0.10.4)
|
||||
figaro (>= 1.1.0)
|
||||
haml-rails (>= 0.9.0)
|
||||
jquery-rails (>= 4.0.3)
|
||||
kaminari (~> 0.16.3)
|
||||
nokogiri (>= 1.6.6.2)
|
||||
rails (>= 4.2.1)
|
||||
sass-rails (>= 5.0.0)
|
||||
uglifier (>= 2.6.1)
|
||||
uuidtools (>= 2.1.4)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
|
@ -513,7 +495,6 @@ DEPENDENCIES
|
|||
countries (~> 0.10.0)
|
||||
database_cleaner (~> 1.3.0)
|
||||
deep_cloneable (~> 2.1.1)
|
||||
depp!
|
||||
devise (~> 3.4.1)
|
||||
digidoc_client (~> 0.2.1)
|
||||
epp (~> 1.4.2)!
|
||||
|
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
@ -21,7 +21,7 @@ module Depp
|
|||
|
||||
def pagination_details
|
||||
params[:page] ||= 1
|
||||
limit = ENV['depp_records_on_page'] || DEPP_RECORDS_ON_PAGE
|
||||
limit = ENV['depp_records_on_page'] || 20
|
||||
offset = ((params[:page].to_i - 1) * limit.to_i)
|
||||
[limit, offset]
|
||||
end
|
|
@ -512,3 +512,131 @@ en:
|
|||
switch_to: Switch to
|
||||
admin_menu: Admin
|
||||
domain_transfer_was_approved: 'Domain transfer was approved, associated contacts are: %{contacts}'
|
||||
|
||||
# DEPP
|
||||
activemodel:
|
||||
errors:
|
||||
models:
|
||||
'depp/user':
|
||||
attributes:
|
||||
base:
|
||||
failed_to_open_connection_to_epp_server: 'Failed to open connection to EPP server!'
|
||||
authorization_error: 'Authorization error'
|
||||
invalid_cert: 'Invalid certificate'
|
||||
tag:
|
||||
blank: "Username can't be blank"
|
||||
password:
|
||||
blank: "Password can't be blank"
|
||||
|
||||
username: 'Username'
|
||||
password: 'Password'
|
||||
log_in: 'Log in'
|
||||
log_out: 'Log out (%{user})'
|
||||
domain_name: 'Domain name'
|
||||
domains: 'Domains'
|
||||
register: 'Register'
|
||||
check: 'Check'
|
||||
contacts: 'Contacts'
|
||||
domain_info: 'Domain info'
|
||||
domain_details: 'Domain details'
|
||||
xml_console: 'XML Console'
|
||||
info: 'Info'
|
||||
register: 'Register'
|
||||
send_epp_request: 'Send EPP Request'
|
||||
registrant: 'Registrant'
|
||||
created_at: 'Created at'
|
||||
valid_to: 'Valid to'
|
||||
updated_at: 'Updated at'
|
||||
tech_contacts: 'Tech contacts'
|
||||
name: 'Name'
|
||||
type: 'Type'
|
||||
code: 'Code'
|
||||
nameservers: 'Nameservers'
|
||||
hostname: 'Hostname'
|
||||
ipv4: 'IPv4'
|
||||
ipv6: 'IPv6'
|
||||
dnskeys: 'DNS Keys'
|
||||
flag: 'Flag'
|
||||
protocol: 'Protocol'
|
||||
algorithm: 'Algorithm'
|
||||
public_key: 'Public key'
|
||||
ds_key_tag: 'DS key tag'
|
||||
ds_algorithm: 'DS algorithm'
|
||||
ds_digest_type: 'DS digest type'
|
||||
ds_digest: 'DS digest'
|
||||
statuses: 'Statuses'
|
||||
status: 'Status'
|
||||
description: 'Description'
|
||||
check_domain: 'Check domain'
|
||||
result: 'Result'
|
||||
available: 'Available'
|
||||
reason: 'Reason'
|
||||
contact_code: 'Code'
|
||||
add_another: 'Add another'
|
||||
delete: 'Delete'
|
||||
contact_type: 'Contact type'
|
||||
edit_domain: 'Edit domain'
|
||||
new_domain: 'New domain'
|
||||
edit: 'Edit'
|
||||
delete: 'Delete'
|
||||
are_you_sure: 'Are you sure?'
|
||||
renew: 'Renew'
|
||||
renew_domain: 'Renew domain'
|
||||
cur_exp_date: 'curExpDate'
|
||||
transfer: 'Transfer'
|
||||
query: 'Query'
|
||||
transfer_domain: 'Transfer domain'
|
||||
reject: 'Reject'
|
||||
approve: 'Approve'
|
||||
contact_info: 'Contact info'
|
||||
contact_id: 'Contact ID'
|
||||
address: 'Address'
|
||||
street: 'Street'
|
||||
city: 'City'
|
||||
messages: 'Messages (%{count})'
|
||||
message: 'Message'
|
||||
message_no: 'Message #%{id}'
|
||||
queue_date: 'Queue date'
|
||||
messages_in_queue: 'Messages in queue'
|
||||
you_have_no_new_messages: 'You have no new messages'
|
||||
message_id: 'Message ID'
|
||||
trStatus: 'Status'
|
||||
reID: 'Transfer from'
|
||||
reDate: 'Transfer requested at'
|
||||
acID: 'Transfer to'
|
||||
acDate: 'Accept date'
|
||||
exDate: 'Valid to'
|
||||
dequeue: 'Dequeue'
|
||||
are_you_sure_you_want_to_delete_domain: 'Are you sure you want to delete domain %{domain}?'
|
||||
keyrelay: 'Keyrelay'
|
||||
expiry_relative: 'Expiry relative'
|
||||
expiry_absolute: 'Expiry absolute'
|
||||
upload_key: 'Upload key'
|
||||
legal_document: 'Legal document'
|
||||
delete_domain: 'Delete domain'
|
||||
index: 'Index'
|
||||
ident: 'Ident'
|
||||
email: 'E-mail'
|
||||
value: 'Value'
|
||||
phone: 'Phone'
|
||||
org_name: Org name
|
||||
ident_type: Ident code
|
||||
country: Country
|
||||
period: Period
|
||||
birthday_format: 'Insert birthday in format: YYYY-MM-DD'
|
||||
your_session_has_timed_out: 'Your session has timed out. Please log in again.'
|
||||
certificate_loaded: 'Certificate (already loaded)'
|
||||
private_key_loaded: 'Private key (already loaded)'
|
||||
credentials: 'Credentials'
|
||||
pki: 'PKI'
|
||||
zip: Postcode
|
||||
contact_details: Contact Details
|
||||
general: General
|
||||
id_card: 'ID Card'
|
||||
m_id: 'M-ID'
|
||||
destroyed: It was successfully deleted.
|
||||
not_found: Not found
|
||||
no_connection_to_registry: Connection issue to the registry server! Please try again later.
|
||||
domain_not_found: 'Domain was not found'
|
||||
new_contact: 'New contact'
|
||||
|
||||
|
|
141
config/routes.rb
141
config/routes.rb
|
@ -15,10 +15,69 @@ Rails.application.routes.draw do
|
|||
get 'error/:command', to: 'errors#error'
|
||||
end
|
||||
|
||||
mount Repp::API => '/'
|
||||
namespace :registrar do
|
||||
resources :invoices
|
||||
|
||||
devise_scope :user do
|
||||
get 'login' => 'sessions#login'
|
||||
get 'login/mid' => 'sessions#login_mid'
|
||||
post 'login/mid' => 'sessions#mid'
|
||||
post 'login/mid_status' => 'sessions#mid_status'
|
||||
|
||||
post 'sessions' => 'sessions#create'
|
||||
post 'mid' => 'sessions#mid'
|
||||
get 'logout' => '/devise/sessions#destroy'
|
||||
end
|
||||
|
||||
# authenticated :user do
|
||||
# root to: 'domains#index', as: :authenticated_root
|
||||
# end
|
||||
|
||||
root to: redirect('/registrar/depp')
|
||||
|
||||
resources :domains do
|
||||
collection do
|
||||
post 'update', as: 'update'
|
||||
post 'destroy', as: 'destroy'
|
||||
get 'renew'
|
||||
match 'transfer', via: [:post, :get]
|
||||
get 'edit'
|
||||
get 'info'
|
||||
get 'check'
|
||||
get 'delete'
|
||||
end
|
||||
end
|
||||
|
||||
resources :contacts do
|
||||
member do
|
||||
get 'delete'
|
||||
end
|
||||
|
||||
collection do
|
||||
get 'check'
|
||||
end
|
||||
end
|
||||
|
||||
resource :poll do
|
||||
collection do
|
||||
post 'confirm_keyrelay'
|
||||
post 'confirm_transfer'
|
||||
end
|
||||
end
|
||||
|
||||
resource :keyrelay
|
||||
|
||||
resource :xml_console do
|
||||
collection do
|
||||
get 'load_xml'
|
||||
end
|
||||
end
|
||||
|
||||
root 'polls#show'
|
||||
end
|
||||
|
||||
## ADMIN ROUTES
|
||||
namespace(:admin) do
|
||||
namespace :admin do
|
||||
resources :keyrelays
|
||||
|
||||
resources :zonefiles
|
||||
|
@ -78,29 +137,6 @@ Rails.application.routes.draw do
|
|||
root 'dashboards#show'
|
||||
end
|
||||
|
||||
namespace(:registrar) do
|
||||
resources :invoices
|
||||
|
||||
devise_scope :user do
|
||||
get 'login' => 'sessions#login'
|
||||
get 'login/mid' => 'sessions#login_mid'
|
||||
post 'login/mid' => 'sessions#mid'
|
||||
post 'login/mid_status' => 'sessions#mid_status'
|
||||
|
||||
post 'sessions' => 'sessions#create'
|
||||
post 'mid' => 'sessions#mid'
|
||||
get 'logout' => '/devise/sessions#destroy'
|
||||
end
|
||||
|
||||
# authenticated :user do
|
||||
# root to: 'domains#index', as: :authenticated_root
|
||||
# end
|
||||
|
||||
root to: redirect('/registrar/depp')
|
||||
end
|
||||
|
||||
mount Depp::Engine, at: '/registrar/depp', as: 'depp'
|
||||
|
||||
devise_for :users
|
||||
|
||||
devise_scope :user do
|
||||
|
@ -108,59 +144,4 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
root to: redirect('login')
|
||||
|
||||
# The priority is based upon order of creation: first created -> highest priority.
|
||||
# See how all your routes lay out with "rake routes".
|
||||
|
||||
# You can have the root of your site routed with "root"
|
||||
# root 'admin/domains#index'
|
||||
|
||||
# Example of regular route:
|
||||
# get 'products/:id' => 'catalog#view'
|
||||
|
||||
# Example of named route that can be invoked with purchase_url(id: product.id)
|
||||
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
||||
|
||||
# Example resource route (maps HTTP verbs to controller actions automatically):
|
||||
# resources :products
|
||||
|
||||
# Example resource route with options:
|
||||
# resources :products do
|
||||
# member do
|
||||
# get 'short'
|
||||
# post 'toggle'
|
||||
# end
|
||||
#
|
||||
# collection do
|
||||
# get 'sold'
|
||||
# end
|
||||
# end
|
||||
|
||||
# Example resource route with sub-resources:
|
||||
# resources :products do
|
||||
# resources :comments, :sales
|
||||
# resource :seller
|
||||
# end
|
||||
|
||||
# Example resource route with more complex sub-resources:
|
||||
# resources :products do
|
||||
# resources :comments
|
||||
# resources :sales do
|
||||
# get 'recent', on: :collection
|
||||
# end
|
||||
# end
|
||||
|
||||
# Example resource route with concerns:
|
||||
# concern :toggleable do
|
||||
# post 'toggle'
|
||||
# end
|
||||
# resources :posts, concerns: :toggleable
|
||||
# resources :photos, concerns: :toggleable
|
||||
|
||||
# Example resource route within a namespace:
|
||||
# namespace :admin do
|
||||
# # Directs /admin/products/* to Admin::ProductsController
|
||||
# # (app/controllers/admin/products_controller.rb)
|
||||
# resources :products
|
||||
# end
|
||||
end
|
||||
|
|
17
vendor/gems/depp/Gemfile
vendored
17
vendor/gems/depp/Gemfile
vendored
|
@ -1,17 +0,0 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
# Declare your gem's dependencies in depp.gemspec.
|
||||
# Bundler will treat runtime dependencies like base dependencies, and
|
||||
# development dependencies will be added by default to the :development group.
|
||||
gemspec
|
||||
|
||||
gem 'epp', '~> 1.4.2', github: 'gitlabeu/epp'
|
||||
|
||||
# Declare any dependencies that are still in development here instead of in
|
||||
# your gemspec. These might include edge Rails or gems from your path or
|
||||
# Git. Remember to move these dependencies to your gemspec before releasing
|
||||
# your gem to rubygems.org.
|
||||
|
||||
# To use a debugger
|
||||
# gem 'byebug', group: [:development, :test]
|
||||
|
182
vendor/gems/depp/Gemfile.lock
vendored
182
vendor/gems/depp/Gemfile.lock
vendored
|
@ -1,182 +0,0 @@
|
|||
GIT
|
||||
remote: git://github.com/gitlabeu/epp.git
|
||||
revision: 505c3f2739eb1da918e54111aecfb138a822739d
|
||||
specs:
|
||||
epp (1.4.2)
|
||||
hpricot
|
||||
libxml-ruby
|
||||
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
depp (0.0.2)
|
||||
coderay (>= 1.1.0)
|
||||
coffee-rails (>= 4.1.0)
|
||||
countries (>= 0.9.3)
|
||||
epp-xml (>= 0.10.4)
|
||||
figaro (>= 1.1.0)
|
||||
haml-rails (>= 0.9.0)
|
||||
jquery-rails (>= 4.0.3)
|
||||
nokogiri (>= 1.6.6.2)
|
||||
rails (>= 4.2.1)
|
||||
sass-rails (>= 5.0.0)
|
||||
uglifier (>= 2.6.1)
|
||||
uuidtools (>= 2.1.4)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
actionmailer (4.2.1)
|
||||
actionpack (= 4.2.1)
|
||||
actionview (= 4.2.1)
|
||||
activejob (= 4.2.1)
|
||||
mail (~> 2.5, >= 2.5.4)
|
||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||
actionpack (4.2.1)
|
||||
actionview (= 4.2.1)
|
||||
activesupport (= 4.2.1)
|
||||
rack (~> 1.6)
|
||||
rack-test (~> 0.6.2)
|
||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
||||
actionview (4.2.1)
|
||||
activesupport (= 4.2.1)
|
||||
builder (~> 3.1)
|
||||
erubis (~> 2.7.0)
|
||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
||||
activejob (4.2.1)
|
||||
activesupport (= 4.2.1)
|
||||
globalid (>= 0.3.0)
|
||||
activemodel (4.2.1)
|
||||
activesupport (= 4.2.1)
|
||||
builder (~> 3.1)
|
||||
activerecord (4.2.1)
|
||||
activemodel (= 4.2.1)
|
||||
activesupport (= 4.2.1)
|
||||
arel (~> 6.0)
|
||||
activesupport (4.2.1)
|
||||
i18n (~> 0.7)
|
||||
json (~> 1.7, >= 1.7.7)
|
||||
minitest (~> 5.1)
|
||||
thread_safe (~> 0.3, >= 0.3.4)
|
||||
tzinfo (~> 1.1)
|
||||
arel (6.0.0)
|
||||
builder (3.2.2)
|
||||
coderay (1.1.0)
|
||||
coffee-rails (4.1.0)
|
||||
coffee-script (>= 2.2.0)
|
||||
railties (>= 4.0.0, < 5.0)
|
||||
coffee-script (2.3.0)
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.9.1)
|
||||
countries (0.11.3)
|
||||
currencies (~> 0.4.2)
|
||||
i18n_data (~> 0.6.0)
|
||||
currencies (0.4.2)
|
||||
epp-xml (0.10.4)
|
||||
activesupport (~> 4.1)
|
||||
builder (~> 3.2)
|
||||
erubis (2.7.0)
|
||||
execjs (2.4.0)
|
||||
figaro (1.1.0)
|
||||
thor (~> 0.14)
|
||||
globalid (0.3.3)
|
||||
activesupport (>= 4.1.0)
|
||||
haml (4.0.6)
|
||||
tilt
|
||||
haml-rails (0.9.0)
|
||||
actionpack (>= 4.0.1)
|
||||
activesupport (>= 4.0.1)
|
||||
haml (>= 4.0.6, < 5.0)
|
||||
html2haml (>= 1.0.1)
|
||||
railties (>= 4.0.1)
|
||||
hike (1.2.3)
|
||||
hpricot (0.8.6)
|
||||
html2haml (2.0.0)
|
||||
erubis (~> 2.7.0)
|
||||
haml (~> 4.0.0)
|
||||
nokogiri (~> 1.6.0)
|
||||
ruby_parser (~> 3.5)
|
||||
i18n (0.7.0)
|
||||
i18n_data (0.6.3)
|
||||
jquery-rails (4.0.3)
|
||||
rails-dom-testing (~> 1.0)
|
||||
railties (>= 4.2.0)
|
||||
thor (>= 0.14, < 2.0)
|
||||
json (1.8.2)
|
||||
libxml-ruby (2.8.0)
|
||||
loofah (2.0.1)
|
||||
nokogiri (>= 1.5.9)
|
||||
mail (2.6.3)
|
||||
mime-types (>= 1.16, < 3)
|
||||
mime-types (2.4.3)
|
||||
mini_portile (0.6.2)
|
||||
minitest (5.5.1)
|
||||
multi_json (1.11.0)
|
||||
nokogiri (1.6.6.2)
|
||||
mini_portile (~> 0.6.0)
|
||||
rack (1.6.0)
|
||||
rack-test (0.6.3)
|
||||
rack (>= 1.0)
|
||||
rails (4.2.1)
|
||||
actionmailer (= 4.2.1)
|
||||
actionpack (= 4.2.1)
|
||||
actionview (= 4.2.1)
|
||||
activejob (= 4.2.1)
|
||||
activemodel (= 4.2.1)
|
||||
activerecord (= 4.2.1)
|
||||
activesupport (= 4.2.1)
|
||||
bundler (>= 1.3.0, < 2.0)
|
||||
railties (= 4.2.1)
|
||||
sprockets-rails
|
||||
rails-deprecated_sanitizer (1.0.3)
|
||||
activesupport (>= 4.2.0.alpha)
|
||||
rails-dom-testing (1.0.6)
|
||||
activesupport (>= 4.2.0.beta, < 5.0)
|
||||
nokogiri (~> 1.6.0)
|
||||
rails-deprecated_sanitizer (>= 1.0.1)
|
||||
rails-html-sanitizer (1.0.2)
|
||||
loofah (~> 2.0)
|
||||
railties (4.2.1)
|
||||
actionpack (= 4.2.1)
|
||||
activesupport (= 4.2.1)
|
||||
rake (>= 0.8.7)
|
||||
thor (>= 0.18.1, < 2.0)
|
||||
rake (10.4.2)
|
||||
ruby_parser (3.6.5)
|
||||
sexp_processor (~> 4.1)
|
||||
sass (3.4.13)
|
||||
sass-rails (5.0.1)
|
||||
railties (>= 4.0.0, < 5.0)
|
||||
sass (~> 3.1)
|
||||
sprockets (>= 2.8, < 4.0)
|
||||
sprockets-rails (>= 2.0, < 4.0)
|
||||
tilt (~> 1.1)
|
||||
sexp_processor (4.5.0)
|
||||
sprockets (2.12.3)
|
||||
hike (~> 1.2)
|
||||
multi_json (~> 1.0)
|
||||
rack (~> 1.0)
|
||||
tilt (~> 1.1, != 1.3.0)
|
||||
sprockets-rails (2.2.4)
|
||||
actionpack (>= 3.0)
|
||||
activesupport (>= 3.0)
|
||||
sprockets (>= 2.8, < 4.0)
|
||||
thor (0.19.1)
|
||||
thread_safe (0.3.5)
|
||||
tilt (1.4.1)
|
||||
tzinfo (1.2.2)
|
||||
thread_safe (~> 0.1)
|
||||
uglifier (2.7.1)
|
||||
execjs (>= 0.3.0)
|
||||
json (>= 1.8.0)
|
||||
uuidtools (2.1.5)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
depp!
|
||||
epp (~> 1.4.2)!
|
20
vendor/gems/depp/MIT-LICENSE
vendored
20
vendor/gems/depp/MIT-LICENSE
vendored
|
@ -1,20 +0,0 @@
|
|||
Copyright 2015 Priit Tark
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
vendor/gems/depp/README.md
vendored
23
vendor/gems/depp/README.md
vendored
|
@ -1,23 +0,0 @@
|
|||
Depp
|
||||
====
|
||||
|
||||
EPP/REPP Rails engine
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Add Depp and epp to your Gemfile:
|
||||
|
||||
gem 'depp', github: 'domify/depp'
|
||||
gem 'epp', '~> 1.4.2', github: 'gitlabeu/epp'
|
||||
|
||||
Mount Depp to your application routes, example:
|
||||
|
||||
mount Depp::Engine, at: '/depp'
|
||||
|
||||
Depp requires login_url helper, example in routes:
|
||||
|
||||
get '/login', to: 'sessions#login', as: 'login'
|
||||
|
||||
Depp requires current_user helper in controller
|
||||
|
33
vendor/gems/depp/Rakefile
vendored
33
vendor/gems/depp/Rakefile
vendored
|
@ -1,33 +0,0 @@
|
|||
begin
|
||||
require 'bundler/setup'
|
||||
rescue LoadError
|
||||
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
||||
end
|
||||
|
||||
require 'rdoc/task'
|
||||
|
||||
RDoc::Task.new(:rdoc) do |rdoc|
|
||||
rdoc.rdoc_dir = 'rdoc'
|
||||
rdoc.title = 'Depp'
|
||||
rdoc.options << '--line-numbers'
|
||||
rdoc.rdoc_files.include('README.rdoc')
|
||||
rdoc.rdoc_files.include('lib/**/*.rb')
|
||||
end
|
||||
|
||||
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
||||
load 'rails/tasks/engine.rake'
|
||||
|
||||
load 'rails/tasks/statistics.rake'
|
||||
|
||||
Bundler::GemHelper.install_tasks
|
||||
|
||||
require 'rake/testtask'
|
||||
|
||||
Rake::TestTask.new(:test) do |t|
|
||||
t.libs << 'lib'
|
||||
t.libs << 'test'
|
||||
t.pattern = 'test/**/*_test.rb'
|
||||
t.verbose = false
|
||||
end
|
||||
|
||||
task default: :test
|
1
vendor/gems/depp/TODO
vendored
1
vendor/gems/depp/TODO
vendored
|
@ -1 +0,0 @@
|
|||
* add config/application.yml default with rake task
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue