diff --git a/Gemfile b/Gemfile index cf017f8af..2339722ba 100644 --- a/Gemfile +++ b/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 diff --git a/Gemfile.lock b/Gemfile.lock index 6e73077e9..74de822f1 100644 --- a/Gemfile.lock +++ b/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)! diff --git a/lib/assets/.keep b/app/assets/images/depp/.keep similarity index 100% rename from lib/assets/.keep rename to app/assets/images/depp/.keep diff --git a/vendor/gems/depp/app/assets/images/depp/bg-alpha.png b/app/assets/images/depp/bg-alpha.png similarity index 100% rename from vendor/gems/depp/app/assets/images/depp/bg-alpha.png rename to app/assets/images/depp/bg-alpha.png diff --git a/vendor/gems/depp/app/assets/images/depp/bg-development.png b/app/assets/images/depp/bg-development.png similarity index 100% rename from vendor/gems/depp/app/assets/images/depp/bg-development.png rename to app/assets/images/depp/bg-development.png diff --git a/vendor/gems/depp/app/assets/images/depp/bg-staging.png b/app/assets/images/depp/bg-staging.png similarity index 100% rename from vendor/gems/depp/app/assets/images/depp/bg-staging.png rename to app/assets/images/depp/bg-staging.png diff --git a/vendor/gems/depp/app/assets/images/depp/favicon.ico b/app/assets/images/depp/favicon.ico similarity index 100% rename from vendor/gems/depp/app/assets/images/depp/favicon.ico rename to app/assets/images/depp/favicon.ico diff --git a/vendor/gems/depp/app/assets/javascripts/depp/application.coffee b/app/assets/javascripts/depp/application.coffee similarity index 100% rename from vendor/gems/depp/app/assets/javascripts/depp/application.coffee rename to app/assets/javascripts/depp/application.coffee diff --git a/vendor/gems/depp/app/assets/stylesheets/depp/application.scss b/app/assets/stylesheets/depp/application.scss similarity index 100% rename from vendor/gems/depp/app/assets/stylesheets/depp/application.scss rename to app/assets/stylesheets/depp/application.scss diff --git a/vendor/gems/depp/app/assets/stylesheets/depp/custom-boostrap.scss b/app/assets/stylesheets/depp/custom-boostrap.scss similarity index 100% rename from vendor/gems/depp/app/assets/stylesheets/depp/custom-boostrap.scss rename to app/assets/stylesheets/depp/custom-boostrap.scss diff --git a/vendor/gems/depp/app/assets/stylesheets/depp/general.sass b/app/assets/stylesheets/depp/general.sass similarity index 100% rename from vendor/gems/depp/app/assets/stylesheets/depp/general.sass rename to app/assets/stylesheets/depp/general.sass diff --git a/vendor/gems/depp/app/assets/stylesheets/depp/overwrites.sass b/app/assets/stylesheets/depp/overwrites.sass similarity index 100% rename from vendor/gems/depp/app/assets/stylesheets/depp/overwrites.sass rename to app/assets/stylesheets/depp/overwrites.sass diff --git a/vendor/gems/depp/app/controllers/depp/application_controller.rb b/app/controllers/depp/application_controller.rb similarity index 100% rename from vendor/gems/depp/app/controllers/depp/application_controller.rb rename to app/controllers/depp/application_controller.rb diff --git a/vendor/gems/depp/app/controllers/depp/contacts_controller.rb b/app/controllers/depp/contacts_controller.rb similarity index 100% rename from vendor/gems/depp/app/controllers/depp/contacts_controller.rb rename to app/controllers/depp/contacts_controller.rb diff --git a/vendor/gems/depp/app/controllers/depp/domains_controller.rb b/app/controllers/depp/domains_controller.rb similarity index 100% rename from vendor/gems/depp/app/controllers/depp/domains_controller.rb rename to app/controllers/depp/domains_controller.rb diff --git a/vendor/gems/depp/app/controllers/depp/keyrelays_controller.rb b/app/controllers/depp/keyrelays_controller.rb similarity index 100% rename from vendor/gems/depp/app/controllers/depp/keyrelays_controller.rb rename to app/controllers/depp/keyrelays_controller.rb diff --git a/vendor/gems/depp/app/controllers/depp/polls_controller.rb b/app/controllers/depp/polls_controller.rb similarity index 100% rename from vendor/gems/depp/app/controllers/depp/polls_controller.rb rename to app/controllers/depp/polls_controller.rb diff --git a/vendor/gems/depp/app/controllers/depp/xml_consoles_controller.rb b/app/controllers/depp/xml_consoles_controller.rb similarity index 100% rename from vendor/gems/depp/app/controllers/depp/xml_consoles_controller.rb rename to app/controllers/depp/xml_consoles_controller.rb diff --git a/vendor/gems/depp/app/helpers/depp/application_helper.rb b/app/helpers/depp/application_helper.rb similarity index 90% rename from vendor/gems/depp/app/helpers/depp/application_helper.rb rename to app/helpers/depp/application_helper.rb index 7c325f63f..de11f9f3d 100644 --- a/vendor/gems/depp/app/helpers/depp/application_helper.rb +++ b/app/helpers/depp/application_helper.rb @@ -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 diff --git a/vendor/gems/depp/app/assets/images/depp/.keep b/app/models/depp/concerns/.keep similarity index 100% rename from vendor/gems/depp/app/assets/images/depp/.keep rename to app/models/depp/concerns/.keep diff --git a/vendor/gems/depp/app/models/depp/contact.rb b/app/models/depp/contact.rb similarity index 100% rename from vendor/gems/depp/app/models/depp/contact.rb rename to app/models/depp/contact.rb diff --git a/vendor/gems/depp/app/models/depp/dnskey.rb b/app/models/depp/dnskey.rb similarity index 100% rename from vendor/gems/depp/app/models/depp/dnskey.rb rename to app/models/depp/dnskey.rb diff --git a/vendor/gems/depp/app/models/depp/domain.rb b/app/models/depp/domain.rb similarity index 100% rename from vendor/gems/depp/app/models/depp/domain.rb rename to app/models/depp/domain.rb diff --git a/vendor/gems/depp/app/models/depp/keyrelay.rb b/app/models/depp/keyrelay.rb similarity index 100% rename from vendor/gems/depp/app/models/depp/keyrelay.rb rename to app/models/depp/keyrelay.rb diff --git a/vendor/gems/depp/app/models/depp/user.rb b/app/models/depp/user.rb similarity index 100% rename from vendor/gems/depp/app/models/depp/user.rb rename to app/models/depp/user.rb diff --git a/vendor/gems/depp/app/views/depp/contacts/_form.haml b/app/views/depp/contacts/_form.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/_form.haml rename to app/views/depp/contacts/_form.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/check.haml b/app/views/depp/contacts/check.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/check.haml rename to app/views/depp/contacts/check.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/delete.haml b/app/views/depp/contacts/delete.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/delete.haml rename to app/views/depp/contacts/delete.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/edit.haml b/app/views/depp/contacts/edit.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/edit.haml rename to app/views/depp/contacts/edit.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/form_partials/_address.haml b/app/views/depp/contacts/form_partials/_address.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/form_partials/_address.haml rename to app/views/depp/contacts/form_partials/_address.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/form_partials/_code.haml b/app/views/depp/contacts/form_partials/_code.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/form_partials/_code.haml rename to app/views/depp/contacts/form_partials/_code.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/form_partials/_disclose.haml b/app/views/depp/contacts/form_partials/_disclose.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/form_partials/_disclose.haml rename to app/views/depp/contacts/form_partials/_disclose.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/form_partials/_general.haml b/app/views/depp/contacts/form_partials/_general.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/form_partials/_general.haml rename to app/views/depp/contacts/form_partials/_general.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/form_partials/_legal_document.haml b/app/views/depp/contacts/form_partials/_legal_document.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/form_partials/_legal_document.haml rename to app/views/depp/contacts/form_partials/_legal_document.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/index.haml b/app/views/depp/contacts/index.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/index.haml rename to app/views/depp/contacts/index.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/info_index.haml b/app/views/depp/contacts/info_index.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/info_index.haml rename to app/views/depp/contacts/info_index.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/new.haml b/app/views/depp/contacts/new.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/new.haml rename to app/views/depp/contacts/new.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/partials/_address.haml b/app/views/depp/contacts/partials/_address.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/partials/_address.haml rename to app/views/depp/contacts/partials/_address.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/partials/_disclose.haml b/app/views/depp/contacts/partials/_disclose.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/partials/_disclose.haml rename to app/views/depp/contacts/partials/_disclose.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/partials/_general.haml b/app/views/depp/contacts/partials/_general.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/partials/_general.haml rename to app/views/depp/contacts/partials/_general.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/partials/_statuses.haml b/app/views/depp/contacts/partials/_statuses.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/partials/_statuses.haml rename to app/views/depp/contacts/partials/_statuses.haml diff --git a/vendor/gems/depp/app/views/depp/contacts/show.haml b/app/views/depp/contacts/show.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/contacts/show.haml rename to app/views/depp/contacts/show.haml diff --git a/vendor/gems/depp/app/views/depp/domains/_check_form.haml b/app/views/depp/domains/_check_form.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/_check_form.haml rename to app/views/depp/domains/_check_form.haml diff --git a/vendor/gems/depp/app/views/depp/domains/_form.haml b/app/views/depp/domains/_form.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/_form.haml rename to app/views/depp/domains/_form.haml diff --git a/vendor/gems/depp/app/views/depp/domains/check.haml b/app/views/depp/domains/check.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/check.haml rename to app/views/depp/domains/check.haml diff --git a/vendor/gems/depp/app/views/depp/domains/check_index.haml b/app/views/depp/domains/check_index.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/check_index.haml rename to app/views/depp/domains/check_index.haml diff --git a/vendor/gems/depp/app/views/depp/domains/delete.haml b/app/views/depp/domains/delete.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/delete.haml rename to app/views/depp/domains/delete.haml diff --git a/vendor/gems/depp/app/views/depp/domains/edit.haml b/app/views/depp/domains/edit.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/edit.haml rename to app/views/depp/domains/edit.haml diff --git a/vendor/gems/depp/app/views/depp/domains/form_partials/_contacts.haml b/app/views/depp/domains/form_partials/_contacts.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/form_partials/_contacts.haml rename to app/views/depp/domains/form_partials/_contacts.haml diff --git a/vendor/gems/depp/app/views/depp/domains/form_partials/_dnskeys.haml b/app/views/depp/domains/form_partials/_dnskeys.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/form_partials/_dnskeys.haml rename to app/views/depp/domains/form_partials/_dnskeys.haml diff --git a/vendor/gems/depp/app/views/depp/domains/form_partials/_general.haml b/app/views/depp/domains/form_partials/_general.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/form_partials/_general.haml rename to app/views/depp/domains/form_partials/_general.haml diff --git a/vendor/gems/depp/app/views/depp/domains/form_partials/_nameservers.haml b/app/views/depp/domains/form_partials/_nameservers.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/form_partials/_nameservers.haml rename to app/views/depp/domains/form_partials/_nameservers.haml diff --git a/vendor/gems/depp/app/views/depp/domains/form_partials/_statuses.haml b/app/views/depp/domains/form_partials/_statuses.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/form_partials/_statuses.haml rename to app/views/depp/domains/form_partials/_statuses.haml diff --git a/vendor/gems/depp/app/views/depp/domains/index.haml b/app/views/depp/domains/index.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/index.haml rename to app/views/depp/domains/index.haml diff --git a/vendor/gems/depp/app/views/depp/domains/info.haml b/app/views/depp/domains/info.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/info.haml rename to app/views/depp/domains/info.haml diff --git a/vendor/gems/depp/app/views/depp/domains/new.haml b/app/views/depp/domains/new.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/new.haml rename to app/views/depp/domains/new.haml diff --git a/vendor/gems/depp/app/views/depp/domains/partials/_contacts.haml b/app/views/depp/domains/partials/_contacts.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/partials/_contacts.haml rename to app/views/depp/domains/partials/_contacts.haml diff --git a/vendor/gems/depp/app/views/depp/domains/partials/_dnskeys.haml b/app/views/depp/domains/partials/_dnskeys.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/partials/_dnskeys.haml rename to app/views/depp/domains/partials/_dnskeys.haml diff --git a/vendor/gems/depp/app/views/depp/domains/partials/_general.haml b/app/views/depp/domains/partials/_general.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/partials/_general.haml rename to app/views/depp/domains/partials/_general.haml diff --git a/vendor/gems/depp/app/views/depp/domains/partials/_nameservers.haml b/app/views/depp/domains/partials/_nameservers.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/partials/_nameservers.haml rename to app/views/depp/domains/partials/_nameservers.haml diff --git a/vendor/gems/depp/app/views/depp/domains/partials/_statuses.haml b/app/views/depp/domains/partials/_statuses.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/partials/_statuses.haml rename to app/views/depp/domains/partials/_statuses.haml diff --git a/vendor/gems/depp/app/views/depp/domains/renew.haml b/app/views/depp/domains/renew.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/renew.haml rename to app/views/depp/domains/renew.haml diff --git a/vendor/gems/depp/app/views/depp/domains/renew_index.haml b/app/views/depp/domains/renew_index.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/renew_index.haml rename to app/views/depp/domains/renew_index.haml diff --git a/vendor/gems/depp/app/views/depp/domains/transfer.haml b/app/views/depp/domains/transfer.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/transfer.haml rename to app/views/depp/domains/transfer.haml diff --git a/vendor/gems/depp/app/views/depp/domains/transfer_index.haml b/app/views/depp/domains/transfer_index.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/domains/transfer_index.haml rename to app/views/depp/domains/transfer_index.haml diff --git a/vendor/gems/depp/app/views/depp/keyrelays/show.haml b/app/views/depp/keyrelays/show.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/keyrelays/show.haml rename to app/views/depp/keyrelays/show.haml diff --git a/vendor/gems/depp/app/views/depp/polls/show.haml b/app/views/depp/polls/show.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/polls/show.haml rename to app/views/depp/polls/show.haml diff --git a/vendor/gems/depp/app/views/depp/shared/_epp_results.haml b/app/views/depp/shared/_epp_results.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/shared/_epp_results.haml rename to app/views/depp/shared/_epp_results.haml diff --git a/vendor/gems/depp/app/views/depp/shared/_error_messages.haml b/app/views/depp/shared/_error_messages.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/shared/_error_messages.haml rename to app/views/depp/shared/_error_messages.haml diff --git a/vendor/gems/depp/app/views/depp/shared/_errors.haml b/app/views/depp/shared/_errors.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/shared/_errors.haml rename to app/views/depp/shared/_errors.haml diff --git a/vendor/gems/depp/app/views/depp/shared/_flash.haml b/app/views/depp/shared/_flash.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/shared/_flash.haml rename to app/views/depp/shared/_flash.haml diff --git a/vendor/gems/depp/app/views/depp/shared/_flash_messages.haml b/app/views/depp/shared/_flash_messages.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/shared/_flash_messages.haml rename to app/views/depp/shared/_flash_messages.haml diff --git a/vendor/gems/depp/app/views/depp/shared/_nav.haml b/app/views/depp/shared/_nav.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/shared/_nav.haml rename to app/views/depp/shared/_nav.haml diff --git a/vendor/gems/depp/app/views/depp/shared/_title.haml b/app/views/depp/shared/_title.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/shared/_title.haml rename to app/views/depp/shared/_title.haml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/check.xml b/app/views/depp/xml_consoles/epp_requests/contact/check.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/check.xml rename to app/views/depp/xml_consoles/epp_requests/contact/check.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/check_multiple.xml b/app/views/depp/xml_consoles/epp_requests/contact/check_multiple.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/check_multiple.xml rename to app/views/depp/xml_consoles/epp_requests/contact/check_multiple.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/create.xml b/app/views/depp/xml_consoles/epp_requests/contact/create.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/create.xml rename to app/views/depp/xml_consoles/epp_requests/contact/create.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/delete.xml b/app/views/depp/xml_consoles/epp_requests/contact/delete.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/delete.xml rename to app/views/depp/xml_consoles/epp_requests/contact/delete.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/info.xml b/app/views/depp/xml_consoles/epp_requests/contact/info.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/info.xml rename to app/views/depp/xml_consoles/epp_requests/contact/info.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/update_chg.xml b/app/views/depp/xml_consoles/epp_requests/contact/update_chg.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/contact/update_chg.xml rename to app/views/depp/xml_consoles/epp_requests/contact/update_chg.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/check.xml b/app/views/depp/xml_consoles/epp_requests/domain/check.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/check.xml rename to app/views/depp/xml_consoles/epp_requests/domain/check.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/create.xml b/app/views/depp/xml_consoles/epp_requests/domain/create.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/create.xml rename to app/views/depp/xml_consoles/epp_requests/domain/create.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/delete.xml b/app/views/depp/xml_consoles/epp_requests/domain/delete.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/delete.xml rename to app/views/depp/xml_consoles/epp_requests/domain/delete.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/info.xml b/app/views/depp/xml_consoles/epp_requests/domain/info.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/info.xml rename to app/views/depp/xml_consoles/epp_requests/domain/info.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/renew.xml b/app/views/depp/xml_consoles/epp_requests/domain/renew.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/renew.xml rename to app/views/depp/xml_consoles/epp_requests/domain/renew.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/transfer.xml b/app/views/depp/xml_consoles/epp_requests/domain/transfer.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/transfer.xml rename to app/views/depp/xml_consoles/epp_requests/domain/transfer.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/update.xml b/app/views/depp/xml_consoles/epp_requests/domain/update.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/domain/update.xml rename to app/views/depp/xml_consoles/epp_requests/domain/update.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/keyrelay/keyrelay.xml b/app/views/depp/xml_consoles/epp_requests/keyrelay/keyrelay.xml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/epp_requests/keyrelay/keyrelay.xml rename to app/views/depp/xml_consoles/epp_requests/keyrelay/keyrelay.xml diff --git a/vendor/gems/depp/app/views/depp/xml_consoles/show.haml b/app/views/depp/xml_consoles/show.haml similarity index 100% rename from vendor/gems/depp/app/views/depp/xml_consoles/show.haml rename to app/views/depp/xml_consoles/show.haml diff --git a/config/locales/en.yml b/config/locales/en.yml index a37b33f22..26d21880b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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' + diff --git a/vendor/gems/depp/config/locales/et.yml b/config/locales/et.yml similarity index 100% rename from vendor/gems/depp/config/locales/et.yml rename to config/locales/et.yml diff --git a/config/routes.rb b/config/routes.rb index bed010b1c..8ea55674a 100644 --- a/config/routes.rb +++ b/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 diff --git a/vendor/gems/depp/lib/depp/sorted_country.rb b/lib/sorted_country.rb similarity index 100% rename from vendor/gems/depp/lib/depp/sorted_country.rb rename to lib/sorted_country.rb diff --git a/vendor/gems/depp/Gemfile b/vendor/gems/depp/Gemfile deleted file mode 100644 index e718cb8a9..000000000 --- a/vendor/gems/depp/Gemfile +++ /dev/null @@ -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] - diff --git a/vendor/gems/depp/Gemfile.lock b/vendor/gems/depp/Gemfile.lock deleted file mode 100644 index 8bd574ea6..000000000 --- a/vendor/gems/depp/Gemfile.lock +++ /dev/null @@ -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)! diff --git a/vendor/gems/depp/MIT-LICENSE b/vendor/gems/depp/MIT-LICENSE deleted file mode 100644 index d8af697eb..000000000 --- a/vendor/gems/depp/MIT-LICENSE +++ /dev/null @@ -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. diff --git a/vendor/gems/depp/README.md b/vendor/gems/depp/README.md deleted file mode 100644 index a52f532cb..000000000 --- a/vendor/gems/depp/README.md +++ /dev/null @@ -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 - diff --git a/vendor/gems/depp/Rakefile b/vendor/gems/depp/Rakefile deleted file mode 100644 index 64fdcb6f0..000000000 --- a/vendor/gems/depp/Rakefile +++ /dev/null @@ -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 diff --git a/vendor/gems/depp/TODO b/vendor/gems/depp/TODO deleted file mode 100644 index 8e16354c5..000000000 --- a/vendor/gems/depp/TODO +++ /dev/null @@ -1 +0,0 @@ -* add config/application.yml default with rake task diff --git a/vendor/gems/depp/app/models/depp/concerns/.keep b/vendor/gems/depp/app/models/depp/concerns/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/app/views/layouts/depp/application.haml b/vendor/gems/depp/app/views/layouts/depp/application.haml deleted file mode 100644 index bf149da3d..000000000 --- a/vendor/gems/depp/app/views/layouts/depp/application.haml +++ /dev/null @@ -1,42 +0,0 @@ -%html{lang: I18n.locale.to_s} - %head - %meta{charset: "utf-8"}/ - %meta{content: "IE=edge", "http-equiv" => "X-UA-Compatible"}/ - %meta{content: "width=device-width, initial-scale=1", name: "viewport"}/ - %meta{content: "EPP-Client", name: "description"}/ - %meta{content: "Gitlab LTD", name: "author"}/ - = csrf_meta_tags - = stylesheet_link_tag 'depp/application', media: 'all', 'data-turbolinks-track' => true - = javascript_include_tag 'depp/application', 'data-turbolinks-track' => true - = favicon_link_tag 'favicon.ico' - = yield :window_title - %body{:style => env_style} - / Static navbar - .navbar.navbar-default.navbar-static-top{role: "navigation"} - .container - .navbar-header - %button.navbar-toggle{"data-target" => ".navbar-collapse", "data-toggle" => "collapse", type: "button"} - %span.sr-only Toggle navigation - %span.icon-bar - %span.icon-bar - %span.icon-bar - = link_to 'EPP Client', root_path, class: 'navbar-brand' - .navbar-collapse.collapse - %ul.nav.navbar-nav - - active_class = %w(domains check renew tranfer keyrelays).include?(params[:controller]) ? 'active' :nil - %li{class: active_class}= link_to t(:domains), domains_path - - - active_class = ['contacts'].include?(params[:controller]) ? 'active' :nil - %li{class: active_class}= link_to t(:contacts), contacts_path - - - active_class = ['xml_consoles'].include?(params[:controller]) ? 'active' :nil - %li{class: active_class}= link_to t(:xml_console), xml_console_path - - %ul.nav.navbar-nav.navbar-right - %li= link_to t(:log_out, user: depp_current_user.tag), '/logout' - / /.nav-collapse - - .container - = render 'depp/shared/flash' - = render 'depp/shared/epp_results' - = yield diff --git a/vendor/gems/depp/bin/rails b/vendor/gems/depp/bin/rails deleted file mode 100755 index 613b3076a..000000000 --- a/vendor/gems/depp/bin/rails +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env ruby -# This command will automatically be run -# when you run "rails" with Rails 4 gems installed from the root of your application. - -ENGINE_ROOT = File.expand_path('../..', __FILE__) -ENGINE_PATH = File.expand_path('../../lib/depp/engine', __FILE__) - -# Set up gems listed in the Gemfile. -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) - -require 'rails/all' -require 'rails/engine/commands' diff --git a/vendor/gems/depp/config/locales/en.yml b/vendor/gems/depp/config/locales/en.yml deleted file mode 100644 index ea9ffa3da..000000000 --- a/vendor/gems/depp/config/locales/en.yml +++ /dev/null @@ -1,126 +0,0 @@ -en: - 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' diff --git a/vendor/gems/depp/config/routes.rb b/vendor/gems/depp/config/routes.rb deleted file mode 100644 index f47cde33b..000000000 --- a/vendor/gems/depp/config/routes.rb +++ /dev/null @@ -1,41 +0,0 @@ -Depp::Engine.routes.draw do - 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 diff --git a/vendor/gems/depp/depp.gemspec b/vendor/gems/depp/depp.gemspec deleted file mode 100644 index 3b59cc979..000000000 --- a/vendor/gems/depp/depp.gemspec +++ /dev/null @@ -1,49 +0,0 @@ -$LOAD_PATH.push File.expand_path("../lib", __FILE__) - -# Maintain your gem's version: -require "depp/version" - -# Describe your gem and declare its dependencies: -Gem::Specification.new do |s| - s.name = "depp" - s.version = Depp::VERSION - s.authors = ["Priit Tark", "Martin Lensment"] - s.email = ["priit@gitlab.eu", "martin@gitlab.eu"] - s.homepage = "https://github.com/domify/depp" - s.summary = "EPP/REPP client build as Rails engine." - s.description = "EPP/REPP client build as Rails engine." - s.license = "MIT" - - s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] - s.test_files = Dir["test/**/*"] - - s.add_dependency "rails", ">= 4.2.1" - - # load env - s.add_dependency "figaro", ">= 1.1.0" - - # html - s.add_dependency "haml-rails", ">= 0.9.0" - - # style - s.add_dependency "sass-rails", ">= 5.0.0" - - # js - s.add_dependency "uglifier", ">= 2.6.1" # minifies js - s.add_dependency "coffee-rails", ">= 4.1.0" # coffeescript support - s.add_dependency "jquery-rails", ">= 4.0.3" # jquery - - # epp api - # s.add_dependency "epp", "~> 1.4.2", github: 'gitlabeu/epp' - s.add_dependency "epp-xml", '>= 0.10.4' - s.add_dependency "nokogiri", '>= 1.6.6.2' - - # registry related - s.add_dependency "countries", '>= 0.9.3' - s.add_dependency "coderay", '>= 1.1.0' - s.add_dependency "uuidtools", '>= 2.1.4' - - s.add_dependency "kaminari", '~> 0.16.3' - - # s.add_development_dependency "sqlite3" -end diff --git a/vendor/gems/depp/lib/depp.rb b/vendor/gems/depp/lib/depp.rb deleted file mode 100644 index 2134fb7cc..000000000 --- a/vendor/gems/depp/lib/depp.rb +++ /dev/null @@ -1,5 +0,0 @@ -require "depp/engine" - -module Depp - DEPP_RECORDS_ON_PAGE = 20 -end diff --git a/vendor/gems/depp/lib/depp/engine.rb b/vendor/gems/depp/lib/depp/engine.rb deleted file mode 100644 index d68b3c93f..000000000 --- a/vendor/gems/depp/lib/depp/engine.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'epp-xml' -require 'countries' -require 'depp/sorted_country' -require 'coderay' - -module Depp - class Engine < ::Rails::Engine - isolate_namespace Depp - end -end diff --git a/vendor/gems/depp/lib/depp/version.rb b/vendor/gems/depp/lib/depp/version.rb deleted file mode 100644 index e2b711832..000000000 --- a/vendor/gems/depp/lib/depp/version.rb +++ /dev/null @@ -1,3 +0,0 @@ -module Depp - VERSION = "0.0.2" -end diff --git a/vendor/gems/depp/lib/tasks/depp_tasks.rake b/vendor/gems/depp/lib/tasks/depp_tasks.rake deleted file mode 100644 index 9659f1e61..000000000 --- a/vendor/gems/depp/lib/tasks/depp_tasks.rake +++ /dev/null @@ -1,4 +0,0 @@ -# desc "Explaining what the task does" -# task :depp do -# # Task goes here -# end diff --git a/vendor/gems/depp/test/depp_test.rb b/vendor/gems/depp/test/depp_test.rb deleted file mode 100644 index 9d298f550..000000000 --- a/vendor/gems/depp/test/depp_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DeppTest < ActiveSupport::TestCase - test "truth" do - assert_kind_of Module, Depp - end -end diff --git a/vendor/gems/depp/test/dummy/README.rdoc b/vendor/gems/depp/test/dummy/README.rdoc deleted file mode 100644 index dd4e97e22..000000000 --- a/vendor/gems/depp/test/dummy/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/vendor/gems/depp/test/dummy/Rakefile b/vendor/gems/depp/test/dummy/Rakefile deleted file mode 100644 index ba6b733dd..000000000 --- a/vendor/gems/depp/test/dummy/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -# Add your own tasks in files placed in lib/tasks ending in .rake, -# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. - -require File.expand_path('../config/application', __FILE__) - -Rails.application.load_tasks diff --git a/vendor/gems/depp/test/dummy/app/assets/images/.keep b/vendor/gems/depp/test/dummy/app/assets/images/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/test/dummy/app/assets/javascripts/application.js b/vendor/gems/depp/test/dummy/app/assets/javascripts/application.js deleted file mode 100644 index 8913b40f6..000000000 --- a/vendor/gems/depp/test/dummy/app/assets/javascripts/application.js +++ /dev/null @@ -1,13 +0,0 @@ -// This is a manifest file that'll be compiled into application.js, which will include all the files -// listed below. -// -// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, -// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. -// -// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the -// compiled file. -// -// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require_tree . diff --git a/vendor/gems/depp/test/dummy/app/assets/stylesheets/application.css b/vendor/gems/depp/test/dummy/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b348..000000000 --- a/vendor/gems/depp/test/dummy/app/assets/stylesheets/application.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * This is a manifest file that'll be compiled into application.css, which will include all the files - * listed below. - * - * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. - * - * You're free to add application-wide styles to this file and they'll appear at the bottom of the - * compiled file so the styles you add here take precedence over styles defined in any styles - * defined in the other CSS/SCSS files in this directory. It is generally better to create a new - * file per style scope. - * - *= require_tree . - *= require_self - */ diff --git a/vendor/gems/depp/test/dummy/app/controllers/application_controller.rb b/vendor/gems/depp/test/dummy/app/controllers/application_controller.rb deleted file mode 100644 index d83690e1b..000000000 --- a/vendor/gems/depp/test/dummy/app/controllers/application_controller.rb +++ /dev/null @@ -1,5 +0,0 @@ -class ApplicationController < ActionController::Base - # Prevent CSRF attacks by raising an exception. - # For APIs, you may want to use :null_session instead. - protect_from_forgery with: :exception -end diff --git a/vendor/gems/depp/test/dummy/app/controllers/concerns/.keep b/vendor/gems/depp/test/dummy/app/controllers/concerns/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/test/dummy/app/helpers/application_helper.rb b/vendor/gems/depp/test/dummy/app/helpers/application_helper.rb deleted file mode 100644 index de6be7945..000000000 --- a/vendor/gems/depp/test/dummy/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/vendor/gems/depp/test/dummy/app/mailers/.keep b/vendor/gems/depp/test/dummy/app/mailers/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/test/dummy/app/models/.keep b/vendor/gems/depp/test/dummy/app/models/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/test/dummy/app/models/concerns/.keep b/vendor/gems/depp/test/dummy/app/models/concerns/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/test/dummy/app/views/layouts/application.html.erb b/vendor/gems/depp/test/dummy/app/views/layouts/application.html.erb deleted file mode 100644 index 593a778ba..000000000 --- a/vendor/gems/depp/test/dummy/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Dummy - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/vendor/gems/depp/test/dummy/bin/bundle b/vendor/gems/depp/test/dummy/bin/bundle deleted file mode 100755 index 66e9889e8..000000000 --- a/vendor/gems/depp/test/dummy/bin/bundle +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -load Gem.bin_path('bundler', 'bundle') diff --git a/vendor/gems/depp/test/dummy/bin/rails b/vendor/gems/depp/test/dummy/bin/rails deleted file mode 100755 index 5191e6927..000000000 --- a/vendor/gems/depp/test/dummy/bin/rails +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/vendor/gems/depp/test/dummy/bin/rake b/vendor/gems/depp/test/dummy/bin/rake deleted file mode 100755 index 17240489f..000000000 --- a/vendor/gems/depp/test/dummy/bin/rake +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/vendor/gems/depp/test/dummy/bin/setup b/vendor/gems/depp/test/dummy/bin/setup deleted file mode 100755 index acdb2c138..000000000 --- a/vendor/gems/depp/test/dummy/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/vendor/gems/depp/test/dummy/config.ru b/vendor/gems/depp/test/dummy/config.ru deleted file mode 100644 index bd83b2541..000000000 --- a/vendor/gems/depp/test/dummy/config.ru +++ /dev/null @@ -1,4 +0,0 @@ -# This file is used by Rack-based servers to start the application. - -require ::File.expand_path('../config/environment', __FILE__) -run Rails.application diff --git a/vendor/gems/depp/test/dummy/config/application.rb b/vendor/gems/depp/test/dummy/config/application.rb deleted file mode 100644 index 880c067dd..000000000 --- a/vendor/gems/depp/test/dummy/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -Bundler.require(*Rails.groups) -require "depp" - -module Dummy - class Application < Rails::Application - # Settings in config/environments/* take precedence over those specified here. - # Application configuration should go into files in config/initializers - # -- all .rb files in that directory are automatically loaded. - - # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. - # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. - # config.time_zone = 'Central Time (US & Canada)' - - # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. - # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] - # config.i18n.default_locale = :de - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end - diff --git a/vendor/gems/depp/test/dummy/config/boot.rb b/vendor/gems/depp/test/dummy/config/boot.rb deleted file mode 100644 index 6266cfc50..000000000 --- a/vendor/gems/depp/test/dummy/config/boot.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Set up gems listed in the Gemfile. -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__) - -require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) -$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__) diff --git a/vendor/gems/depp/test/dummy/config/database.yml b/vendor/gems/depp/test/dummy/config/database.yml deleted file mode 100644 index 1c1a37ca8..000000000 --- a/vendor/gems/depp/test/dummy/config/database.yml +++ /dev/null @@ -1,25 +0,0 @@ -# SQLite version 3.x -# gem install sqlite3 -# -# Ensure the SQLite 3 gem is defined in your Gemfile -# gem 'sqlite3' -# -default: &default - adapter: sqlite3 - pool: 5 - timeout: 5000 - -development: - <<: *default - database: db/development.sqlite3 - -# Warning: The database defined as "test" will be erased and -# re-generated from your development database when you run "rake". -# Do not set this db to the same as development or production. -test: - <<: *default - database: db/test.sqlite3 - -production: - <<: *default - database: db/production.sqlite3 diff --git a/vendor/gems/depp/test/dummy/config/environment.rb b/vendor/gems/depp/test/dummy/config/environment.rb deleted file mode 100644 index ee8d90dc6..000000000 --- a/vendor/gems/depp/test/dummy/config/environment.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Load the Rails application. -require File.expand_path('../application', __FILE__) - -# Initialize the Rails application. -Rails.application.initialize! diff --git a/vendor/gems/depp/test/dummy/config/environments/development.rb b/vendor/gems/depp/test/dummy/config/environments/development.rb deleted file mode 100644 index b55e2144b..000000000 --- a/vendor/gems/depp/test/dummy/config/environments/development.rb +++ /dev/null @@ -1,41 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # In the development environment your application's code is reloaded on - # every request. This slows down response time but is perfect for development - # since you don't have to restart the web server when you make code changes. - config.cache_classes = false - - # Do not eager load code on boot. - config.eager_load = false - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false - - # Print deprecation notices to the Rails logger. - config.active_support.deprecation = :log - - # Raise an error on page load if there are pending migrations. - config.active_record.migration_error = :page_load - - # Debug mode disables concatenation and preprocessing of assets. - # This option may cause significant delays in view rendering with a large - # number of complex assets. - config.assets.debug = true - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # Adds additional error checking when serving assets at runtime. - # Checks for improperly declared sprockets dependencies. - # Raises helpful error messages. - config.assets.raise_runtime_errors = true - - # Raises error for missing translations - # config.action_view.raise_on_missing_translations = true -end diff --git a/vendor/gems/depp/test/dummy/config/environments/production.rb b/vendor/gems/depp/test/dummy/config/environments/production.rb deleted file mode 100644 index 5c1b32e48..000000000 --- a/vendor/gems/depp/test/dummy/config/environments/production.rb +++ /dev/null @@ -1,79 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # Code is not reloaded between requests. - config.cache_classes = true - - # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both threaded web servers - # and those relying on copy on write to perform better. - # Rake tasks automatically ignore this option for performance. - config.eager_load = true - - # Full error reports are disabled and caching is turned on. - config.consider_all_requests_local = false - config.action_controller.perform_caching = true - - # Enable Rack::Cache to put a simple HTTP cache in front of your application - # Add `rack-cache` to your Gemfile before enabling this. - # For large-scale production use, consider using a caching reverse proxy like - # NGINX, varnish or squid. - # config.action_dispatch.rack_cache = true - - # Disable serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier - # config.assets.css_compressor = :sass - - # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # Specifies the header that your server uses for sending files. - # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache - # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX - - # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # Prepend all log lines with the following tags. - # config.log_tags = [ :subdomain, :uuid ] - - # Use a different logger for distributed setups. - # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) - - # Use a different cache store in production. - # config.cache_store = :mem_cache_store - - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.action_controller.asset_host = 'http://assets.example.com' - - # Ignore bad email addresses and do not raise email delivery errors. - # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false - - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true - - # Send deprecation notices to registered listeners. - config.active_support.deprecation = :notify - - # Use default logging formatter so that PID and timestamp are not suppressed. - config.log_formatter = ::Logger::Formatter.new - - # Do not dump schema after migrations. - config.active_record.dump_schema_after_migration = false -end diff --git a/vendor/gems/depp/test/dummy/config/environments/test.rb b/vendor/gems/depp/test/dummy/config/environments/test.rb deleted file mode 100644 index 1c19f08b2..000000000 --- a/vendor/gems/depp/test/dummy/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # The test environment is used exclusively to run your application's - # test suite. You never need to work with it otherwise. Remember that - # your test database is "scratch space" for the test suite and is wiped - # and recreated between test runs. Don't rely on the data there! - config.cache_classes = true - - # Do not eager load code on boot. This avoids loading your whole application - # just for the purpose of running a single test. If you are using a tool that - # preloads Rails for running tests, you may have to set it to true. - config.eager_load = false - - # Configure static file server for tests with Cache-Control for performance. - config.serve_static_files = true - config.static_cache_control = 'public, max-age=3600' - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - - # Raise exceptions instead of rendering exception templates. - config.action_dispatch.show_exceptions = false - - # Disable request forgery protection in test environment. - config.action_controller.allow_forgery_protection = false - - # Tell Action Mailer not to deliver emails to the real world. - # The :test delivery method accumulates sent emails in the - # ActionMailer::Base.deliveries array. - config.action_mailer.delivery_method = :test - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # Print deprecation notices to the stderr. - config.active_support.deprecation = :stderr - - # Raises error for missing translations - # config.action_view.raise_on_missing_translations = true -end diff --git a/vendor/gems/depp/test/dummy/config/initializers/assets.rb b/vendor/gems/depp/test/dummy/config/initializers/assets.rb deleted file mode 100644 index 01ef3e663..000000000 --- a/vendor/gems/depp/test/dummy/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/vendor/gems/depp/test/dummy/config/initializers/backtrace_silencers.rb b/vendor/gems/depp/test/dummy/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cdf3..000000000 --- a/vendor/gems/depp/test/dummy/config/initializers/backtrace_silencers.rb +++ /dev/null @@ -1,7 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. -# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } - -# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. -# Rails.backtrace_cleaner.remove_silencers! diff --git a/vendor/gems/depp/test/dummy/config/initializers/cookies_serializer.rb b/vendor/gems/depp/test/dummy/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458de..000000000 --- a/vendor/gems/depp/test/dummy/config/initializers/cookies_serializer.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Be sure to restart your server when you modify this file. - -Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/vendor/gems/depp/test/dummy/config/initializers/filter_parameter_logging.rb b/vendor/gems/depp/test/dummy/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1e7..000000000 --- a/vendor/gems/depp/test/dummy/config/initializers/filter_parameter_logging.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] diff --git a/vendor/gems/depp/test/dummy/config/initializers/inflections.rb b/vendor/gems/depp/test/dummy/config/initializers/inflections.rb deleted file mode 100644 index ac033bf9d..000000000 --- a/vendor/gems/depp/test/dummy/config/initializers/inflections.rb +++ /dev/null @@ -1,16 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new inflection rules using the following format. Inflections -# are locale specific, and you may define rules for as many different -# locales as you wish. All of these examples are active by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' -# inflect.uncountable %w( fish sheep ) -# end - -# These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym 'RESTful' -# end diff --git a/vendor/gems/depp/test/dummy/config/initializers/mime_types.rb b/vendor/gems/depp/test/dummy/config/initializers/mime_types.rb deleted file mode 100644 index dc1899682..000000000 --- a/vendor/gems/depp/test/dummy/config/initializers/mime_types.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf diff --git a/vendor/gems/depp/test/dummy/config/initializers/session_store.rb b/vendor/gems/depp/test/dummy/config/initializers/session_store.rb deleted file mode 100644 index e766b67b1..000000000 --- a/vendor/gems/depp/test/dummy/config/initializers/session_store.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Be sure to restart your server when you modify this file. - -Rails.application.config.session_store :cookie_store, key: '_dummy_session' diff --git a/vendor/gems/depp/test/dummy/config/initializers/wrap_parameters.rb b/vendor/gems/depp/test/dummy/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e95f..000000000 --- a/vendor/gems/depp/test/dummy/config/initializers/wrap_parameters.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# This file contains settings for ActionController::ParamsWrapper which -# is enabled by default. - -# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] if respond_to?(:wrap_parameters) -end - -# To enable root element in JSON for ActiveRecord objects. -# ActiveSupport.on_load(:active_record) do -# self.include_root_in_json = true -# end diff --git a/vendor/gems/depp/test/dummy/config/locales/en.yml b/vendor/gems/depp/test/dummy/config/locales/en.yml deleted file mode 100644 index 065395716..000000000 --- a/vendor/gems/depp/test/dummy/config/locales/en.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Files in the config/locales directory are used for internationalization -# and are automatically loaded by Rails. If you want to use locales other -# than English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t 'hello' -# -# In views, this is aliased to just `t`: -# -# <%= t('hello') %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# To learn more, please read the Rails Internationalization guide -# available at http://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world" diff --git a/vendor/gems/depp/test/dummy/config/routes.rb b/vendor/gems/depp/test/dummy/config/routes.rb deleted file mode 100644 index 620c2d782..000000000 --- a/vendor/gems/depp/test/dummy/config/routes.rb +++ /dev/null @@ -1,4 +0,0 @@ -Rails.application.routes.draw do - - mount Depp::Engine => "/depp" -end diff --git a/vendor/gems/depp/test/dummy/config/secrets.yml b/vendor/gems/depp/test/dummy/config/secrets.yml deleted file mode 100644 index cb0c1bdfe..000000000 --- a/vendor/gems/depp/test/dummy/config/secrets.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Your secret key is used for verifying the integrity of signed cookies. -# If you change this key, all old signed cookies will become invalid! - -# Make sure the secret is at least 30 characters and all random, -# no regular words or you'll be exposed to dictionary attacks. -# You can use `rake secret` to generate a secure secret key. - -# Make sure the secrets in this file are kept private -# if you're sharing your code publicly. - -development: - secret_key_base: c011b0c80f810476a5141330eebf338821a3eddfbb71297021bc77c828eda3f6c7bc25a5b2efcdd1f9bc902f6704444189135123efe967289c2f77347a4895e1 - -test: - secret_key_base: 815fb11f0cd80bedd5505e0e85717645c1e715fcc24029d8c0c763bd41a372d7b80f1a2252cc99a37870c2bcb2b363fd4e25d715ecb9ec50256147f5eb1e25ba - -# Do not keep production secrets in the repository, -# instead read values from the environment. -production: - secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/vendor/gems/depp/test/dummy/lib/assets/.keep b/vendor/gems/depp/test/dummy/lib/assets/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/test/dummy/log/.keep b/vendor/gems/depp/test/dummy/log/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/test/dummy/public/404.html b/vendor/gems/depp/test/dummy/public/404.html deleted file mode 100644 index b612547fc..000000000 --- a/vendor/gems/depp/test/dummy/public/404.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The page you were looking for doesn't exist (404) - - - - - - -
-
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/vendor/gems/depp/test/dummy/public/422.html b/vendor/gems/depp/test/dummy/public/422.html deleted file mode 100644 index a21f82b3b..000000000 --- a/vendor/gems/depp/test/dummy/public/422.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The change you wanted was rejected (422) - - - - - - -
-
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/vendor/gems/depp/test/dummy/public/500.html b/vendor/gems/depp/test/dummy/public/500.html deleted file mode 100644 index 061abc587..000000000 --- a/vendor/gems/depp/test/dummy/public/500.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - We're sorry, but something went wrong (500) - - - - - - -
-
-

We're sorry, but something went wrong.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/vendor/gems/depp/test/dummy/public/favicon.ico b/vendor/gems/depp/test/dummy/public/favicon.ico deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/test/integration/navigation_test.rb b/vendor/gems/depp/test/integration/navigation_test.rb deleted file mode 100644 index 97a94c9bb..000000000 --- a/vendor/gems/depp/test/integration/navigation_test.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'test_helper' - -class NavigationTest < ActionDispatch::IntegrationTest - fixtures :all - - # test "the truth" do - # assert true - # end -end - diff --git a/vendor/gems/depp/test/test_helper.rb b/vendor/gems/depp/test/test_helper.rb deleted file mode 100644 index a3177bf35..000000000 --- a/vendor/gems/depp/test/test_helper.rb +++ /dev/null @@ -1,20 +0,0 @@ -# Configure Rails Environment -ENV["RAILS_ENV"] = "test" - -require File.expand_path("../../test/dummy/config/environment.rb", __FILE__) -ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)] -ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__) -require "rails/test_help" - -# Filter out Minitest backtrace while allowing backtrace from other libraries -# to be shown. -Minitest.backtrace_filter = Minitest::BacktraceFilter.new - -# Load support files -Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } - -# Load fixtures from the engine -if ActiveSupport::TestCase.respond_to?(:fixture_path=) - ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) - ActiveSupport::TestCase.fixtures :all -end diff --git a/vendor/gems/depp/vendor/assets/javascripts/.keep b/vendor/gems/depp/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/gems/depp/vendor/assets/javascripts/jquery.nested_attributes.coffee b/vendor/gems/depp/vendor/assets/javascripts/jquery.nested_attributes.coffee deleted file mode 100644 index f3d11cf97..000000000 --- a/vendor/gems/depp/vendor/assets/javascripts/jquery.nested_attributes.coffee +++ /dev/null @@ -1,293 +0,0 @@ -### -Authors: Nick Giancola (@patbenatar), Brendan Loudermilk (@bloudermilk) -Homepage: https://github.com/patbenatar/jquery-nested_attributes -### -$ = jQuery - -methods = - init: (options) -> - $el = $(@) - throw "Can't initialize more than one item at a time" if $el.length > 1 - if $el.data("nestedAttributes") - throw "Can't initialize on this element more than once" - instance = new NestedAttributes($el, options) - $el.data("nestedAttributes", instance) - return $el - add: -> - $el = $(@) - unless $el.data("nestedAttributes")? - throw "You are trying to call instance methods without initializing first" - $el.data("nestedAttributes").addItem() - return $el - -$.fn.nestedAttributes = (method) -> - if methods[method]? - return methods[method].apply @, Array.prototype.slice.call(arguments, 1) - else if typeof method == 'object' || !method - return methods.init.apply(@, arguments) - else - $.error("Method #{method} does not exist on jQuery.nestedAttributes") - -class NestedAttributes - - RELEVANT_INPUTS_SELECTOR: ":input[name][name!=\"\"]" - - settings: - collectionName: false # If not provided, we will autodetect - bindAddTo: false # Required - removeOnLoadIf: false - collectIdAttributes: true - beforeAdd: false - afterAdd: false - beforeMove: false - afterMove: false - beforeDestroy: false - afterDestroy: false - destroySelector: '.destroy' - deepClone: true - $clone: null - - ###################### - ## ## - ## Initialization ## - ## ## - ###################### - - constructor: ($el, options) -> - - # This plugin gets called on the container - @$container = $el - - # Merge default options - @options = $.extend({}, @settings, options) - - # If the user provided a jQuery object to bind the "Add" - # bind it now or forever hold your peace. - @options.bindAddTo.click(@addClick) if @options.bindAddTo - - # Cache all the items - @$items = @$container.children() - - # If the user didn't provide a collectionName, autodetect it - unless @options.collectionName - @autodetectCollectionName() - - # Initialize existing items - @$items.each (i, el) => - $item = $(el) - - # If the user wants us to attempt to collect Rail's ID attributes, do it now - # Using the default rails helpers, ID attributes will wind up right after their - # propper containers in the form. - if @options.collectIdAttributes and $item.is('input') - # Move the _id field into its proper container - $item.appendTo($item.prev()) - # Remove it from the $items collection - @$items = @$items.not($item) - else - # Try to find and bind the destroy link if the user wanted one - @bindDestroy($item) - - # Now that we've collected ID attributes - @hideIfAlreadyDestroyed $(item) for item in @$items - - # Remove any items on load if the client implements a check and the check passes - if @options.removeOnLoadIf - @$items.each (i, el) => - $el = $(el) - if $el.call(true, @options.removeOnLoadIf, i) - $el.remove() - - - ######################## - ## ## - ## Instance Methods ## - ## ## - ######################## - - autodetectCollectionName: -> - pattern = /\[(.[^\]]*)_attributes\]/ - try - match = pattern.exec(@$items.first().find("#{@RELEVANT_INPUTS_SELECTOR}:first").attr('name'))[1] - if match != null - @options.collectionName = match - else - throw "Regex error" - catch error - console.log "Error detecting collection name", error - - addClick: (event) => - - @addItem() - - # Don't let the link do anything - event.preventDefault() - - addItem: -> - # Piece together an item - newIndex = @$items.length - $newClone = @applyIndexToItem(@extractClone(), newIndex) - - # Give the user a chance to make their own changes before we insert - if (@options.beforeAdd) - - # Stop the add process if the callback returns false - return false if !@options.beforeAdd.call(undefined, $newClone, newIndex) - - # Insert the new item after the last item - @$container.append($newClone) - - # Give the user a chance to make their own changes after insertion - @options.afterAdd.call(undefined, $newClone, newIndex) if (@options.afterAdd) - - # Add this item to the items list - @refreshItems() - - extractClone: -> - - # Are we restoring from an already created clone? - if @$restorableClone - - $record = @$restorableClone - - @$restorableClone = null - - else - $record = @options.$clone || @$items.first() - - # Make a deep clone (bound events and data) - $record = $record.clone(@options.deepClone) - - @bindDestroy($record) if @options.$clone or !@options.deepClone - - # Empty out the values of text inputs and selects - $record.find(':text, textarea, select').val('') - - # Reset checkboxes and radios - $record.find(':checkbox, :radio').attr("checked", false) - - # Empty out any hidden [id] or [_destroy] fields - $record.find('input[name$="\\[id\\]"]').remove() - $record.find('input[name$="\\[_destroy\\]"]').remove() - - # Make sure it's not hidden as we return. - # It would be hidden in the case where we're duplicating an - # already removed item for its template. - return $record.show() - - applyIndexToItem: ($item, index) -> - collectionName = @options.collectionName - - $item.find(@RELEVANT_INPUTS_SELECTOR).each (i, el) => - - $el = $(el) - - idRegExp = new RegExp("_#{collectionName}_attributes_\\d+_") - idReplacement = "_#{collectionName}_attributes_#{index}_" - nameRegExp = new RegExp("\\[#{collectionName}_attributes\\]\\[\\d+\\]") - nameReplacement = "[#{collectionName}_attributes][#{index}]" - - newID = $el.attr('id').replace(idRegExp, idReplacement) if $el.attr('id') - newName = $el.attr('name').replace(nameRegExp, nameReplacement) - - $el.attr - id: newID - name: newName - - $item.find('label[for]').each (i, el) => - $el = $(el) - try - forRegExp = new RegExp("_#{collectionName}_attributes_\\d+_") - forReplacement = "_#{collectionName}_attributes_#{index}_" - newFor = $el.attr('for').replace(forRegExp, forReplacement) - $el.attr('for', newFor) - catch error - console.log "Error updating label", error - - return $item - - hideIfAlreadyDestroyed: ($item) -> - $destroyField = $item.find("[name$='[_destroy]']") - if $destroyField.length && $destroyField.val() == "true" - @destroy $item - - # Hides a item from the user and marks it for deletion in the - # DOM by setting _destroy to true if the record already exists. If it - # is a new escalation, we simple delete the item - destroyClick: (event) => - event.preventDefault() - @destroy $(event.target).parentsUntil(@$container).last() - - destroy: ($item) -> - # If you're about to delete the last one, - # cache a clone of it first so we have something to show - # the next time user hits add - @$restorableClone = @extractClone() unless @$items.length-1 - - index = @indexForItem($item) - itemIsNew = $item.find('input[name$="\\[id\\]"]').length == 0 - - if (@options.beforeDestroy) - - # Stop the destroy process if the callback returns false - return false if !@options.beforeDestroy.call(undefined, $item, index, itemIsNew) - - # Add a blank item row if none are visible after this deletion - @addItem() unless @$items.filter(':visible').length-1 - - if itemIsNew - - $item.remove() - - else - - # Hide the item - $item.hide() - - # Add the _destroy field - otherFieldName = $item.find(':input[name]:first').attr('name') - attributePosition = otherFieldName.lastIndexOf('[') - destroyFieldName = "#{otherFieldName.substring(0, attributePosition)}[_destroy]" - # First look for an existing _destroy field - $destroyField = $item.find("input[name='#{destroyFieldName}']") - # If it doesn't exist, create it - if $destroyField.length == 0 - $destroyField = $("") - $item.append($destroyField) - $destroyField.val(true).change() - - @options.afterDestroy.call($item, index, itemIsNew) if (@options.afterDestroy) - - # Remove this item from the items list - @refreshItems() - - # Rename the remaining items - @resetIndexes() - - indexForItem: ($item) -> - regExp = new RegExp("\\[#{@options.collectionName}_attributes\\]\\[\\d+\\]") - name = $item.find("#{@RELEVANT_INPUTS_SELECTOR}:first").attr('name') - return parseInt(name.match(regExp)[0].split('][')[1].slice(0, -1), 10) - - refreshItems: -> - @$items = @$container.children() - - # Sets the proper association indices and labels to all items - # Used when removing items - resetIndexes: -> - @$items.each (i, el) => - $el = $(el) - - # Make sure this is actually a new position - oldIndex = @indexForItem($el) - return true if (i == oldIndex) - - @options.beforeMove.call($el, i, oldIndex) if (@options.beforeMove) - - # Change the number to the new index - @applyIndexToItem($el, i) - - @options.afterMove.call($el, i, oldIndex) if (@options.afterMove) - - bindDestroy: ($item) -> - $item.find(@options.destroySelector).click(@destroyClick) if (@options.destroySelector) diff --git a/vendor/gems/depp/vendor/assets/stylesheets/.keep b/vendor/gems/depp/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29bb..000000000