mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
Merge branch 'master' of github.com:domify/registry
Conflicts: app/controllers/epp/sessions_controller.rb
This commit is contained in:
commit
f20113bf9f
40 changed files with 337 additions and 251 deletions
25
.rubocop.yml
25
.rubocop.yml
|
@ -60,6 +60,11 @@ Style/NilComparison:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/**/*'
|
- 'spec/**/*'
|
||||||
|
|
||||||
|
# let's save space in spec
|
||||||
|
Style/AlignHash:
|
||||||
|
Exclude:
|
||||||
|
- 'spec/**/*'
|
||||||
|
|
||||||
# No need to force reduce to use |a, e| as parameters.
|
# No need to force reduce to use |a, e| as parameters.
|
||||||
# Configuration parameters: Methods.
|
# Configuration parameters: Methods.
|
||||||
Style/SingleLineBlockParams:
|
Style/SingleLineBlockParams:
|
||||||
|
@ -90,3 +95,23 @@ Style/NumericLiterals:
|
||||||
# Too often suggest wrong syntax in subarray, this should be fix in rubocop first
|
# Too often suggest wrong syntax in subarray, this should be fix in rubocop first
|
||||||
Style/WordArray:
|
Style/WordArray:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
# Ok to use parallel assigment such as: var1, var2 = [], []
|
||||||
|
Style/ParallelAssignment:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
# not working perfectly or not important enough to care
|
||||||
|
Style/EmptyLinesAroundBlockBody:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
# The ABC size is a calculated magnitude, so this number can be a Fixnum or a Float.
|
||||||
|
Metrics/AbcSize:
|
||||||
|
Max: 35
|
||||||
|
|
||||||
|
# Very strange intention requirement, disabled for now
|
||||||
|
Style/FirstParameterIndentation:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
# old school regex // works fine
|
||||||
|
Style/RegexpLiteral:
|
||||||
|
Enabled: false
|
||||||
|
|
2
.spring.rb
Normal file
2
.spring.rb
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Spring.watch 'config/application.yml'
|
||||||
|
eee
|
60
Gemfile
60
Gemfile
|
@ -8,7 +8,7 @@ end if Bundler::VERSION < '2'
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
# core
|
# core
|
||||||
gem 'rails', '4.2.1'
|
gem 'rails', '4.2.3'
|
||||||
gem 'iso8601', '~> 0.8.2' # for dates and times
|
gem 'iso8601', '~> 0.8.2' # for dates and times
|
||||||
gem 'hashie-forbidden_attributes', '~> 0.1.1'
|
gem 'hashie-forbidden_attributes', '~> 0.1.1'
|
||||||
|
|
||||||
|
@ -19,7 +19,9 @@ gem 'figaro', '~> 1.1.0'
|
||||||
gem 'pg', '~> 0.18.0'
|
gem 'pg', '~> 0.18.0'
|
||||||
gem 'ransack', '~> 1.5.1' # for searching
|
gem 'ransack', '~> 1.5.1' # for searching
|
||||||
# with polymorphic fix
|
# with polymorphic fix
|
||||||
gem 'paper_trail', github: 'airblade/paper_trail', ref: 'a453811226ec4ea59753ba6b827e390ced2fc140'
|
gem 'paper_trail',
|
||||||
|
github: 'airblade/paper_trail',
|
||||||
|
ref: 'a453811226ec4ea59753ba6b827e390ced2fc140'
|
||||||
gem 'rails-settings-cached', '~> 0.4.1' # for settings
|
gem 'rails-settings-cached', '~> 0.4.1' # for settings
|
||||||
|
|
||||||
# html-xml
|
# html-xml
|
||||||
|
@ -28,7 +30,7 @@ gem 'nokogiri', '~> 1.6.6.2' # For XML parsing
|
||||||
|
|
||||||
# style
|
# style
|
||||||
gem 'sass-rails', '~> 5.0.3' # sass style
|
gem 'sass-rails', '~> 5.0.3' # sass style
|
||||||
gem 'bootstrap-sass', '~> 3.3.4.1' # bootstrap style
|
gem 'bootstrap-sass', '~> 3.3.5.1' # bootstrap style
|
||||||
|
|
||||||
# js
|
# js
|
||||||
gem 'uglifier', '~> 2.7.1' # minifies js
|
gem 'uglifier', '~> 2.7.1' # minifies js
|
||||||
|
@ -48,11 +50,11 @@ gem 'select2-rails', '~> 3.5.9.3' # for autocomplete
|
||||||
gem 'bootstrap-datepicker-rails', '~> 1.3.1.1' # datepicker
|
gem 'bootstrap-datepicker-rails', '~> 1.3.1.1' # datepicker
|
||||||
|
|
||||||
# rights
|
# rights
|
||||||
gem 'devise', '~> 3.4.1' # authenitcation
|
gem 'devise', '~> 3.5.1' # authenitcation
|
||||||
gem 'cancancan', '~> 1.9.2' # autharization
|
gem 'cancancan', '~> 1.11.0' # autharization
|
||||||
|
|
||||||
# rest api
|
# rest api
|
||||||
gem 'grape', '~> 0.10.1'
|
gem 'grape', '~> 0.12.0'
|
||||||
gem 'jbuilder', '~> 2.2.6' # json api
|
gem 'jbuilder', '~> 2.2.6' # json api
|
||||||
|
|
||||||
# registry specfic
|
# registry specfic
|
||||||
|
@ -70,7 +72,7 @@ gem 'data_migrate',
|
||||||
gem 'newrelic_rpm', '~> 3.12.0.288'
|
gem 'newrelic_rpm', '~> 3.12.0.288'
|
||||||
|
|
||||||
# country listing
|
# country listing
|
||||||
gem 'countries', '~> 0.10.0'
|
gem 'countries', '~> 0.11.4'
|
||||||
|
|
||||||
# cloning activerecord objects
|
# cloning activerecord objects
|
||||||
gem 'deep_cloneable', '~> 2.1.1'
|
gem 'deep_cloneable', '~> 2.1.1'
|
||||||
|
@ -98,18 +100,21 @@ gem 'jquery-ui-rails', '~> 5.0.3'
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
# dev tools
|
# dev tools
|
||||||
gem 'spring', '~> 1.3.3'
|
gem 'spring', '~> 1.3.6'
|
||||||
gem 'spring-commands-rspec', '~> 1.0.4'
|
gem 'spring-commands-rspec', '~> 1.0.4'
|
||||||
gem 'guard', '~> 2.6.1' # run tests automatically
|
gem 'spring-watcher-listen', # otherwise spring polls the filesystem on every 0.2 seconds
|
||||||
gem 'guard-rspec', '~> 4.3.1'
|
github: 'jonleighton/spring-watcher-listen',
|
||||||
gem 'guard-rails', '~> 0.7.0' # run EPP server automatically
|
ref: '7f6003e14f8f9ca178a5194f210c07f54cfb67ec'
|
||||||
gem 'rubocop', '~> 0.26.1'
|
gem 'guard', '~> 2.12.6' # run tests automatically
|
||||||
gem 'guard-rubocop', '~> 1.1.0'
|
gem 'guard-rspec', '~> 4.5.2'
|
||||||
|
gem 'guard-rails', '~> 0.7.1' # run EPP server automatically
|
||||||
|
gem 'rubocop', '~> 0.32.1'
|
||||||
|
gem 'guard-rubocop', '~> 1.2.0'
|
||||||
|
|
||||||
# improved errors
|
# improved errors
|
||||||
gem 'better_errors', '~> 2.0.0'
|
gem 'better_errors', '~> 2.1.1' # webconsole replacement
|
||||||
gem 'binding_of_caller', '~> 0.7.2'
|
gem 'binding_of_caller', '~> 0.7.2'
|
||||||
gem 'traceroute', '~> 0.4.0' # for finding dead routes and unused actions
|
gem 'traceroute', '~> 0.5.0' # for finding dead routes and unused actions
|
||||||
|
|
||||||
# deploy
|
# deploy
|
||||||
gem 'mina', '~> 0.3.1' # for fast deployment
|
gem 'mina', '~> 0.3.1' # for fast deployment
|
||||||
|
@ -117,32 +122,33 @@ end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
# test stack
|
# test stack
|
||||||
gem 'rspec-rails', '~> 3.0.2'
|
gem 'rspec-rails', '~> 3.3.2'
|
||||||
gem 'capybara', '~> 2.4.1'
|
gem 'capybara', '~> 2.4.1'
|
||||||
gem 'phantomjs-binaries', '~> 1.9.2.4'
|
gem 'phantomjs-binaries', '~> 1.9.2.4'
|
||||||
gem 'poltergeist', '~> 1.5.1' # We are using PhantomJS instead
|
gem 'poltergeist', '~> 1.6.0' # We are using PhantomJS instead
|
||||||
gem 'phantomjs', '~> 1.9.7.1'
|
gem 'phantomjs', '~> 1.9.8.0'
|
||||||
gem 'fabrication', '~> 2.12.2' # Replacement for fixtures
|
gem 'fabrication', '~> 2.13.2' # Replacement for fixtures
|
||||||
gem 'shoulda-matchers', '~> 2.6.1', require: false # Additional matchers for RSpec
|
gem 'shoulda-matchers', '~> 2.8.0', require: false # Additional matchers for RSpec
|
||||||
gem 'launchy', '~> 2.4.3' # for opening browser automatically
|
gem 'launchy', '~> 2.4.3' # for opening browser automatically
|
||||||
|
|
||||||
# helper gems
|
# helper gems
|
||||||
gem 'database_cleaner', '~> 1.3.0' # For cleaning db in feature and epp tests
|
gem 'database_cleaner', '~> 1.4.1' # For cleaning db in feature and epp tests
|
||||||
gem 'faker', '~> 1.3.0' # Library to generate fake data
|
gem 'faker', '~> 1.4.3' # Library to generate fake data
|
||||||
|
|
||||||
# debug
|
# debug
|
||||||
gem 'pry', '~> 0.10.1'
|
gem 'pry', '~> 0.10.1'
|
||||||
|
|
||||||
# code review
|
# code review
|
||||||
gem 'simplecov', '~> 0.9.1', require: false
|
gem 'simplecov', '~> 0.10.0', require: false
|
||||||
gem 'rubycritic', '~> 1.1.1'
|
gem 'rubycritic', '~> 1.4.0'
|
||||||
gem 'bullet', '~> 4.14.4' # for finding database optimizations
|
gem 'bullet', '~> 4.14.4' # for finding database optimizations
|
||||||
gem 'bundler-audit',
|
gem 'bundler-audit',
|
||||||
github: 'rubysec/bundler-audit',
|
github: 'rubysec/bundler-audit',
|
||||||
ref: 'f89ef7fae1090bbad825ea76812d56d72b417055' # for finding future vulnerable gems
|
ref: 'f89ef7fae1090bbad825ea76812d56d72b417055' # for finding future vulnerable gems
|
||||||
gem 'brakeman', '~> 2.6.2', require: false # for security audit'
|
gem 'brakeman', '~> 3.0.5', require: false # for security audit'
|
||||||
# tmp, otherwise conflics with breakman
|
# tmp, otherwise conflics with breakman
|
||||||
gem 'html2haml', github: 'haml/html2haml', ref: '6984f50bdbbd6291535027726a5697f28778ee8d'
|
# gem 'html2haml', github: 'haml/html2haml', ref: '6984f50bdbbd6291535027726a5697f28778ee8d'
|
||||||
|
gem 'html2haml', '~> 2.0.0'
|
||||||
gem 'sdoc', '~> 0.4.0' # bundle exec rake doc:rails generates the API under doc/api.
|
gem 'sdoc', '~> 0.4.0' # bundle exec rake doc:rails generates the API under doc/api.
|
||||||
gem 'railroady', '~> 1.3.0' # to generate database diagrams
|
gem 'railroady', '~> 1.3.0' # to generate database diagrams
|
||||||
|
|
||||||
|
@ -152,5 +158,5 @@ group :development, :test do
|
||||||
# for travis
|
# for travis
|
||||||
gem 'rake'
|
gem 'rake'
|
||||||
|
|
||||||
gem "autodoc"
|
gem 'autodoc'
|
||||||
end
|
end
|
||||||
|
|
299
Gemfile.lock
299
Gemfile.lock
|
@ -16,17 +16,6 @@ GIT
|
||||||
data_migrate (1.3.0)
|
data_migrate (1.3.0)
|
||||||
rails (>= 4.1.0)
|
rails (>= 4.1.0)
|
||||||
|
|
||||||
GIT
|
|
||||||
remote: https://github.com/haml/html2haml.git
|
|
||||||
revision: 6984f50bdbbd6291535027726a5697f28778ee8d
|
|
||||||
ref: 6984f50bdbbd6291535027726a5697f28778ee8d
|
|
||||||
specs:
|
|
||||||
html2haml (2.0.0.beta.2)
|
|
||||||
erubis (~> 2.7.0)
|
|
||||||
haml (~> 4.0.0)
|
|
||||||
nokogiri (~> 1.6.0)
|
|
||||||
ruby_parser (~> 3.5)
|
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: https://github.com/internetee/epp.git
|
remote: https://github.com/internetee/epp.git
|
||||||
revision: 505c3f2739eb1da918e54111aecfb138a822739d
|
revision: 505c3f2739eb1da918e54111aecfb138a822739d
|
||||||
|
@ -35,6 +24,15 @@ GIT
|
||||||
hpricot
|
hpricot
|
||||||
libxml-ruby
|
libxml-ruby
|
||||||
|
|
||||||
|
GIT
|
||||||
|
remote: https://github.com/jonleighton/spring-watcher-listen.git
|
||||||
|
revision: 7f6003e14f8f9ca178a5194f210c07f54cfb67ec
|
||||||
|
ref: 7f6003e14f8f9ca178a5194f210c07f54cfb67ec
|
||||||
|
specs:
|
||||||
|
spring-watcher-listen (1.0.0)
|
||||||
|
listen (~> 2.7)
|
||||||
|
spring (~> 1.2)
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: https://github.com/rubysec/bundler-audit.git
|
remote: https://github.com/rubysec/bundler-audit.git
|
||||||
revision: f89ef7fae1090bbad825ea76812d56d72b417055
|
revision: f89ef7fae1090bbad825ea76812d56d72b417055
|
||||||
|
@ -47,43 +45,47 @@ GIT
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actionmailer (4.2.1)
|
abstract_type (0.0.7)
|
||||||
actionpack (= 4.2.1)
|
actionmailer (4.2.3)
|
||||||
actionview (= 4.2.1)
|
actionpack (= 4.2.3)
|
||||||
activejob (= 4.2.1)
|
actionview (= 4.2.3)
|
||||||
|
activejob (= 4.2.3)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
actionpack (4.2.1)
|
actionpack (4.2.3)
|
||||||
actionview (= 4.2.1)
|
actionview (= 4.2.3)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.3)
|
||||||
rack (~> 1.6)
|
rack (~> 1.6)
|
||||||
rack-test (~> 0.6.2)
|
rack-test (~> 0.6.2)
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
actionview (4.2.1)
|
actionview (4.2.3)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.3)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubis (~> 2.7.0)
|
erubis (~> 2.7.0)
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
activejob (4.2.1)
|
activejob (4.2.3)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.3)
|
||||||
globalid (>= 0.3.0)
|
globalid (>= 0.3.0)
|
||||||
activemodel (4.2.1)
|
activemodel (4.2.3)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.3)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
activerecord (4.2.1)
|
activerecord (4.2.3)
|
||||||
activemodel (= 4.2.1)
|
activemodel (= 4.2.3)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.3)
|
||||||
arel (~> 6.0)
|
arel (~> 6.0)
|
||||||
activerecord-import (0.7.0)
|
activerecord-import (0.7.0)
|
||||||
activerecord (>= 3.0)
|
activerecord (>= 3.0)
|
||||||
activesupport (4.2.1)
|
activesupport (4.2.3)
|
||||||
i18n (~> 0.7)
|
i18n (~> 0.7)
|
||||||
json (~> 1.7, >= 1.7.7)
|
json (~> 1.7, >= 1.7.7)
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
thread_safe (~> 0.3, >= 0.3.4)
|
thread_safe (~> 0.3, >= 0.3.4)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
|
adamantium (0.2.0)
|
||||||
|
ice_nine (~> 0.11.0)
|
||||||
|
memoizable (~> 0.4.0)
|
||||||
addressable (2.3.8)
|
addressable (2.3.8)
|
||||||
akami (1.3.1)
|
akami (1.3.1)
|
||||||
gyoku (>= 0.4.0)
|
gyoku (>= 0.4.0)
|
||||||
|
@ -96,7 +98,7 @@ GEM
|
||||||
actionpack
|
actionpack
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
rspec
|
rspec
|
||||||
autoprefixer-rails (5.2.0.1)
|
autoprefixer-rails (5.2.1)
|
||||||
execjs
|
execjs
|
||||||
json
|
json
|
||||||
axiom-types (0.1.1)
|
axiom-types (0.1.1)
|
||||||
|
@ -104,7 +106,7 @@ GEM
|
||||||
ice_nine (~> 0.11.0)
|
ice_nine (~> 0.11.0)
|
||||||
thread_safe (~> 0.3, >= 0.3.1)
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
bcrypt (3.1.10)
|
bcrypt (3.1.10)
|
||||||
better_errors (2.0.0)
|
better_errors (2.1.1)
|
||||||
coderay (>= 1.0.0)
|
coderay (>= 1.0.0)
|
||||||
erubis (>= 2.6.6)
|
erubis (>= 2.6.6)
|
||||||
rack (>= 0.9.0)
|
rack (>= 0.9.0)
|
||||||
|
@ -112,25 +114,24 @@ GEM
|
||||||
debug_inspector (>= 0.0.1)
|
debug_inspector (>= 0.0.1)
|
||||||
bootstrap-datepicker-rails (1.3.1.1)
|
bootstrap-datepicker-rails (1.3.1.1)
|
||||||
railties (>= 3.0)
|
railties (>= 3.0)
|
||||||
bootstrap-sass (3.3.4.1)
|
bootstrap-sass (3.3.5.1)
|
||||||
autoprefixer-rails (>= 5.0.0.1)
|
autoprefixer-rails (>= 5.0.0.1)
|
||||||
sass (>= 3.2.19)
|
sass (>= 3.3.0)
|
||||||
brakeman (2.6.3)
|
brakeman (3.0.5)
|
||||||
erubis (~> 2.6)
|
erubis (~> 2.6)
|
||||||
fastercsv (~> 1.5)
|
fastercsv (~> 1.5)
|
||||||
haml (>= 3.0, < 5.0)
|
haml (>= 3.0, < 5.0)
|
||||||
highline (~> 1.6.20)
|
highline (~> 1.6.20)
|
||||||
multi_json (~> 1.2)
|
multi_json (~> 1.2)
|
||||||
ruby2ruby (~> 2.1.1)
|
ruby2ruby (~> 2.1.1)
|
||||||
ruby_parser (~> 3.5.0)
|
ruby_parser (~> 3.7.0)
|
||||||
sass (~> 3.0)
|
sass (~> 3.0)
|
||||||
slim (>= 1.3.6, < 3.0)
|
|
||||||
terminal-table (~> 1.4)
|
terminal-table (~> 1.4)
|
||||||
builder (3.2.2)
|
builder (3.2.2)
|
||||||
bullet (4.14.7)
|
bullet (4.14.7)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
uniform_notifier (~> 1.9.0)
|
uniform_notifier (~> 1.9.0)
|
||||||
cancancan (1.9.2)
|
cancancan (1.11.0)
|
||||||
capybara (2.4.4)
|
capybara (2.4.4)
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
nokogiri (>= 1.3.3)
|
nokogiri (>= 1.3.3)
|
||||||
|
@ -151,18 +152,22 @@ GEM
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.9.1.1)
|
coffee-script-source (1.9.1.1)
|
||||||
countries (0.10.0)
|
concord (0.1.5)
|
||||||
|
adamantium (~> 0.2.0)
|
||||||
|
equalizer (~> 0.0.9)
|
||||||
|
countries (0.11.4)
|
||||||
currencies (~> 0.4.2)
|
currencies (~> 0.4.2)
|
||||||
|
i18n_data (~> 0.7.0)
|
||||||
crack (0.4.2)
|
crack (0.4.2)
|
||||||
safe_yaml (~> 1.0.0)
|
safe_yaml (~> 1.0.0)
|
||||||
currencies (0.4.2)
|
currencies (0.4.2)
|
||||||
database_cleaner (1.3.0)
|
database_cleaner (1.4.1)
|
||||||
debug_inspector (0.0.2)
|
debug_inspector (0.0.2)
|
||||||
deep_cloneable (2.1.1)
|
deep_cloneable (2.1.1)
|
||||||
activerecord (>= 3.1.0, < 5.0.0)
|
activerecord (>= 3.1.0, < 5.0.0)
|
||||||
descendants_tracker (0.0.4)
|
descendants_tracker (0.0.4)
|
||||||
thread_safe (~> 0.3, >= 0.3.1)
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
devise (3.4.1)
|
devise (3.5.1)
|
||||||
bcrypt (~> 3.0)
|
bcrypt (~> 3.0)
|
||||||
orm_adapter (~> 0.1)
|
orm_adapter (~> 0.1)
|
||||||
railties (>= 3.2.6, < 5)
|
railties (>= 3.2.6, < 5)
|
||||||
|
@ -183,8 +188,8 @@ GEM
|
||||||
equalizer (0.0.11)
|
equalizer (0.0.11)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (2.5.2)
|
execjs (2.5.2)
|
||||||
fabrication (2.12.2)
|
fabrication (2.13.2)
|
||||||
faker (1.3.0)
|
faker (1.4.3)
|
||||||
i18n (~> 0.5)
|
i18n (~> 0.5)
|
||||||
fastercsv (1.5.5)
|
fastercsv (1.5.5)
|
||||||
ffi (1.9.8)
|
ffi (1.9.8)
|
||||||
|
@ -199,7 +204,7 @@ GEM
|
||||||
formatador (0.2.5)
|
formatador (0.2.5)
|
||||||
globalid (0.3.5)
|
globalid (0.3.5)
|
||||||
activesupport (>= 4.1.0)
|
activesupport (>= 4.1.0)
|
||||||
grape (0.10.1)
|
grape (0.12.0)
|
||||||
activesupport
|
activesupport
|
||||||
builder
|
builder
|
||||||
hashie (>= 2.1.0)
|
hashie (>= 2.1.0)
|
||||||
|
@ -209,18 +214,24 @@ GEM
|
||||||
rack-accept
|
rack-accept
|
||||||
rack-mount
|
rack-mount
|
||||||
virtus (>= 1.0.0)
|
virtus (>= 1.0.0)
|
||||||
guard (2.6.1)
|
guard (2.12.6)
|
||||||
formatador (>= 0.2.4)
|
formatador (>= 0.2.4)
|
||||||
listen (~> 2.7)
|
listen (~> 2.7)
|
||||||
lumberjack (~> 1.0)
|
lumberjack (~> 1.0)
|
||||||
|
nenv (~> 0.1)
|
||||||
|
notiffany (~> 0.0)
|
||||||
pry (>= 0.9.12)
|
pry (>= 0.9.12)
|
||||||
|
shellany (~> 0.0)
|
||||||
thor (>= 0.18.1)
|
thor (>= 0.18.1)
|
||||||
guard-rails (0.7.0)
|
guard-compat (1.2.1)
|
||||||
guard (~> 2.0)
|
guard-rails (0.7.1)
|
||||||
guard-rspec (4.3.1)
|
guard (~> 2.11)
|
||||||
|
guard-compat (~> 1.0)
|
||||||
|
guard-rspec (4.5.2)
|
||||||
guard (~> 2.1)
|
guard (~> 2.1)
|
||||||
rspec (>= 2.14, < 4.0)
|
guard-compat (~> 1.1)
|
||||||
guard-rubocop (1.1.0)
|
rspec (>= 2.99.0, < 4.0)
|
||||||
|
guard-rubocop (1.2.0)
|
||||||
guard (~> 2.0)
|
guard (~> 2.0)
|
||||||
rubocop (~> 0.20)
|
rubocop (~> 0.20)
|
||||||
gyoku (1.3.1)
|
gyoku (1.3.1)
|
||||||
|
@ -239,11 +250,17 @@ GEM
|
||||||
highline (1.6.21)
|
highline (1.6.21)
|
||||||
hitimes (1.2.2)
|
hitimes (1.2.2)
|
||||||
hpricot (0.8.6)
|
hpricot (0.8.6)
|
||||||
|
html2haml (2.0.0)
|
||||||
|
erubis (~> 2.7.0)
|
||||||
|
haml (~> 4.0.0)
|
||||||
|
nokogiri (~> 1.6.0)
|
||||||
|
ruby_parser (~> 3.5)
|
||||||
html5_validators (1.2.0)
|
html5_validators (1.2.0)
|
||||||
httpclient (2.6.0.1)
|
httpclient (2.6.0.1)
|
||||||
httpi (2.4.1)
|
httpi (2.4.1)
|
||||||
rack
|
rack
|
||||||
i18n (0.7.0)
|
i18n (0.7.0)
|
||||||
|
i18n_data (0.7.0)
|
||||||
ice_nine (0.11.1)
|
ice_nine (0.11.1)
|
||||||
isikukood (0.1.2)
|
isikukood (0.1.2)
|
||||||
iso8601 (0.8.6)
|
iso8601 (0.8.6)
|
||||||
|
@ -277,6 +294,8 @@ GEM
|
||||||
lumberjack (1.0.9)
|
lumberjack (1.0.9)
|
||||||
mail (2.6.3)
|
mail (2.6.3)
|
||||||
mime-types (>= 1.16, < 3)
|
mime-types (>= 1.16, < 3)
|
||||||
|
memoizable (0.4.2)
|
||||||
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
method_source (0.8.2)
|
method_source (0.8.2)
|
||||||
mime-types (2.6.1)
|
mime-types (2.6.1)
|
||||||
mina (0.3.4)
|
mina (0.3.4)
|
||||||
|
@ -295,28 +314,33 @@ GEM
|
||||||
railties (>= 3.0)
|
railties (>= 3.0)
|
||||||
multi_json (1.11.1)
|
multi_json (1.11.1)
|
||||||
multi_xml (0.5.5)
|
multi_xml (0.5.5)
|
||||||
|
nenv (0.2.0)
|
||||||
newrelic_rpm (3.12.0.288)
|
newrelic_rpm (3.12.0.288)
|
||||||
nokogiri (1.6.6.2)
|
nokogiri (1.6.6.2)
|
||||||
mini_portile (~> 0.6.0)
|
mini_portile (~> 0.6.0)
|
||||||
nori (2.6.0)
|
nori (2.6.0)
|
||||||
|
notiffany (0.0.6)
|
||||||
|
nenv (~> 0.1)
|
||||||
|
shellany (~> 0.0)
|
||||||
nprogress-rails (0.1.6.7)
|
nprogress-rails (0.1.6.7)
|
||||||
open4 (1.3.4)
|
open4 (1.3.4)
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
parser (2.3.0.pre.2)
|
parser (2.2.2.5)
|
||||||
ast (>= 1.1, < 3.0)
|
ast (>= 1.1, < 3.0)
|
||||||
pdfkit (0.6.2)
|
pdfkit (0.6.2)
|
||||||
pg (0.18.2)
|
pg (0.18.2)
|
||||||
phantomjs (1.9.7.1)
|
phantomjs (1.9.8.0)
|
||||||
phantomjs-binaries (1.9.2.4)
|
phantomjs-binaries (1.9.2.4)
|
||||||
sys-uname (= 0.9.0)
|
sys-uname (= 0.9.0)
|
||||||
poltergeist (1.5.1)
|
poltergeist (1.6.0)
|
||||||
capybara (~> 2.1)
|
capybara (~> 2.1)
|
||||||
cliver (~> 0.3.1)
|
cliver (~> 0.3.1)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
websocket-driver (>= 0.2.0)
|
websocket-driver (>= 0.2.0)
|
||||||
polyamorous (1.2.0)
|
polyamorous (1.2.0)
|
||||||
activerecord (>= 3.0)
|
activerecord (>= 3.0)
|
||||||
powerpack (0.0.9)
|
powerpack (0.1.1)
|
||||||
|
procto (0.0.2)
|
||||||
pry (0.10.1)
|
pry (0.10.1)
|
||||||
coderay (~> 1.1.0)
|
coderay (~> 1.1.0)
|
||||||
method_source (~> 0.8.1)
|
method_source (~> 0.8.1)
|
||||||
|
@ -336,16 +360,16 @@ GEM
|
||||||
rack-test (0.6.3)
|
rack-test (0.6.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
railroady (1.3.0)
|
railroady (1.3.0)
|
||||||
rails (4.2.1)
|
rails (4.2.3)
|
||||||
actionmailer (= 4.2.1)
|
actionmailer (= 4.2.3)
|
||||||
actionpack (= 4.2.1)
|
actionpack (= 4.2.3)
|
||||||
actionview (= 4.2.1)
|
actionview (= 4.2.3)
|
||||||
activejob (= 4.2.1)
|
activejob (= 4.2.3)
|
||||||
activemodel (= 4.2.1)
|
activemodel (= 4.2.3)
|
||||||
activerecord (= 4.2.1)
|
activerecord (= 4.2.3)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.3)
|
||||||
bundler (>= 1.3.0, < 2.0)
|
bundler (>= 1.3.0, < 2.0)
|
||||||
railties (= 4.2.1)
|
railties (= 4.2.3)
|
||||||
sprockets-rails
|
sprockets-rails
|
||||||
rails-deprecated_sanitizer (1.0.3)
|
rails-deprecated_sanitizer (1.0.3)
|
||||||
activesupport (>= 4.2.0.alpha)
|
activesupport (>= 4.2.0.alpha)
|
||||||
|
@ -357,13 +381,13 @@ GEM
|
||||||
loofah (~> 2.0)
|
loofah (~> 2.0)
|
||||||
rails-settings-cached (0.4.1)
|
rails-settings-cached (0.4.1)
|
||||||
rails (>= 4.0.0)
|
rails (>= 4.0.0)
|
||||||
railties (4.2.1)
|
railties (4.2.3)
|
||||||
actionpack (= 4.2.1)
|
actionpack (= 4.2.3)
|
||||||
activesupport (= 4.2.1)
|
activesupport (= 4.2.3)
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (>= 0.18.1, < 2.0)
|
||||||
rainbow (2.0.0)
|
rainbow (2.0.0)
|
||||||
raindrops (0.13.0)
|
raindrops (0.14.0)
|
||||||
rake (10.4.2)
|
rake (10.4.2)
|
||||||
ransack (1.5.1)
|
ransack (1.5.1)
|
||||||
actionpack (>= 3.0)
|
actionpack (>= 3.0)
|
||||||
|
@ -375,56 +399,55 @@ GEM
|
||||||
rb-inotify (0.9.5)
|
rb-inotify (0.9.5)
|
||||||
ffi (>= 0.5.0)
|
ffi (>= 0.5.0)
|
||||||
rdoc (4.2.0)
|
rdoc (4.2.0)
|
||||||
reek (1.3.8)
|
reek (1.6.5)
|
||||||
|
parser (~> 2.2.0.pre.7)
|
||||||
rainbow (>= 1.99, < 3.0)
|
rainbow (>= 1.99, < 3.0)
|
||||||
ruby2ruby (>= 2.0.8, < 3.0)
|
unparser (~> 0.2.2)
|
||||||
ruby_parser (~> 3.3)
|
|
||||||
sexp_processor
|
|
||||||
ref (1.0.5)
|
ref (1.0.5)
|
||||||
request_store (1.1.0)
|
request_store (1.1.0)
|
||||||
responders (2.1.0)
|
responders (2.1.0)
|
||||||
railties (>= 4.2.0, < 5)
|
railties (>= 4.2.0, < 5)
|
||||||
rspec (3.0.0)
|
rspec (3.3.0)
|
||||||
rspec-core (~> 3.0.0)
|
rspec-core (~> 3.3.0)
|
||||||
rspec-expectations (~> 3.0.0)
|
rspec-expectations (~> 3.3.0)
|
||||||
rspec-mocks (~> 3.0.0)
|
rspec-mocks (~> 3.3.0)
|
||||||
rspec-core (3.0.4)
|
rspec-core (3.3.1)
|
||||||
rspec-support (~> 3.0.0)
|
rspec-support (~> 3.3.0)
|
||||||
rspec-expectations (3.0.4)
|
rspec-expectations (3.3.0)
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-support (~> 3.0.0)
|
rspec-support (~> 3.3.0)
|
||||||
rspec-mocks (3.0.4)
|
rspec-mocks (3.3.1)
|
||||||
rspec-support (~> 3.0.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-rails (3.0.2)
|
rspec-support (~> 3.3.0)
|
||||||
actionpack (>= 3.0)
|
rspec-rails (3.3.2)
|
||||||
activesupport (>= 3.0)
|
actionpack (>= 3.0, < 4.3)
|
||||||
railties (>= 3.0)
|
activesupport (>= 3.0, < 4.3)
|
||||||
rspec-core (~> 3.0.0)
|
railties (>= 3.0, < 4.3)
|
||||||
rspec-expectations (~> 3.0.0)
|
rspec-core (~> 3.3.0)
|
||||||
rspec-mocks (~> 3.0.0)
|
rspec-expectations (~> 3.3.0)
|
||||||
rspec-support (~> 3.0.0)
|
rspec-mocks (~> 3.3.0)
|
||||||
rspec-support (3.0.4)
|
rspec-support (~> 3.3.0)
|
||||||
rubocop (0.26.1)
|
rspec-support (3.3.0)
|
||||||
|
rubocop (0.32.1)
|
||||||
astrolabe (~> 1.3)
|
astrolabe (~> 1.3)
|
||||||
parser (>= 2.2.0.pre.4, < 3.0)
|
parser (>= 2.2.2.5, < 3.0)
|
||||||
powerpack (~> 0.0.6)
|
powerpack (~> 0.1)
|
||||||
rainbow (>= 1.99.1, < 3.0)
|
rainbow (>= 1.99.1, < 3.0)
|
||||||
ruby-progressbar (~> 1.4)
|
ruby-progressbar (~> 1.4)
|
||||||
ruby-progressbar (1.7.5)
|
ruby-progressbar (1.7.5)
|
||||||
ruby2ruby (2.1.4)
|
ruby2ruby (2.1.4)
|
||||||
ruby_parser (~> 3.1)
|
ruby_parser (~> 3.1)
|
||||||
sexp_processor (~> 4.0)
|
sexp_processor (~> 4.0)
|
||||||
ruby_parser (3.5.0)
|
ruby_parser (3.7.0)
|
||||||
sexp_processor (~> 4.1)
|
sexp_processor (~> 4.1)
|
||||||
rubycritic (1.1.1)
|
rubycritic (1.4.0)
|
||||||
flay (= 2.4.0)
|
flay (= 2.4.0)
|
||||||
flog (= 4.2.1)
|
flog (= 4.2.1)
|
||||||
parser (~> 2.1)
|
parser (>= 2.2.0, < 3.0)
|
||||||
reek (= 1.3.8)
|
reek (= 1.6.5)
|
||||||
ruby2ruby (>= 2.1.1, < 3.0)
|
|
||||||
virtus (~> 1.0)
|
virtus (~> 1.0)
|
||||||
safe_yaml (1.0.4)
|
safe_yaml (1.0.4)
|
||||||
sass (3.4.14)
|
sass (3.4.15)
|
||||||
sass-rails (5.0.3)
|
sass-rails (5.0.3)
|
||||||
railties (>= 4.0.0, < 5.0)
|
railties (>= 4.0.0, < 5.0)
|
||||||
sass (~> 3.1)
|
sass (~> 3.1)
|
||||||
|
@ -446,34 +469,31 @@ GEM
|
||||||
thor (~> 0.14)
|
thor (~> 0.14)
|
||||||
selectize-rails (0.12.1)
|
selectize-rails (0.12.1)
|
||||||
sexp_processor (4.6.0)
|
sexp_processor (4.6.0)
|
||||||
shoulda-matchers (2.6.2)
|
shellany (0.0.1)
|
||||||
|
shoulda-matchers (2.8.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
simplecov (0.9.2)
|
simplecov (0.10.0)
|
||||||
docile (~> 1.1.0)
|
docile (~> 1.1.0)
|
||||||
multi_json (~> 1.0)
|
json (~> 1.8)
|
||||||
simplecov-html (~> 0.9.0)
|
simplecov-html (~> 0.10.0)
|
||||||
simplecov-html (0.9.0)
|
simplecov-html (0.10.0)
|
||||||
simpleidn (0.0.5)
|
simpleidn (0.0.5)
|
||||||
sinatra (1.4.6)
|
sinatra (1.4.6)
|
||||||
rack (~> 1.4)
|
rack (~> 1.4)
|
||||||
rack-protection (~> 1.4)
|
rack-protection (~> 1.4)
|
||||||
tilt (>= 1.3, < 3)
|
tilt (>= 1.3, < 3)
|
||||||
slim (2.1.0)
|
|
||||||
temple (~> 0.6.9)
|
|
||||||
tilt (>= 1.3.3, < 2.1)
|
|
||||||
slop (3.6.0)
|
slop (3.6.0)
|
||||||
spring (1.3.6)
|
spring (1.3.6)
|
||||||
spring-commands-rspec (1.0.4)
|
spring-commands-rspec (1.0.4)
|
||||||
spring (>= 0.9.1)
|
spring (>= 0.9.1)
|
||||||
sprockets (3.2.0)
|
sprockets (3.2.0)
|
||||||
rack (~> 1.0)
|
rack (~> 1.0)
|
||||||
sprockets-rails (2.3.1)
|
sprockets-rails (2.3.2)
|
||||||
actionpack (>= 3.0)
|
actionpack (>= 3.0)
|
||||||
activesupport (>= 3.0)
|
activesupport (>= 3.0)
|
||||||
sprockets (>= 2.8, < 4.0)
|
sprockets (>= 2.8, < 4.0)
|
||||||
sys-uname (0.9.0)
|
sys-uname (0.9.0)
|
||||||
ffi (>= 1.0.0)
|
ffi (>= 1.0.0)
|
||||||
temple (0.6.10)
|
|
||||||
terminal-table (1.4.5)
|
terminal-table (1.4.5)
|
||||||
therubyracer (0.12.2)
|
therubyracer (0.12.2)
|
||||||
libv8 (~> 3.16.14.0)
|
libv8 (~> 3.16.14.0)
|
||||||
|
@ -483,7 +503,7 @@ GEM
|
||||||
tilt (1.4.1)
|
tilt (1.4.1)
|
||||||
timers (4.0.1)
|
timers (4.0.1)
|
||||||
hitimes
|
hitimes
|
||||||
traceroute (0.4.0)
|
traceroute (0.5.0)
|
||||||
rails (>= 3.0.0)
|
rails (>= 3.0.0)
|
||||||
turbolinks (2.5.3)
|
turbolinks (2.5.3)
|
||||||
coffee-rails
|
coffee-rails
|
||||||
|
@ -497,6 +517,14 @@ GEM
|
||||||
rack
|
rack
|
||||||
raindrops (~> 0.7)
|
raindrops (~> 0.7)
|
||||||
uniform_notifier (1.9.0)
|
uniform_notifier (1.9.0)
|
||||||
|
unparser (0.2.4)
|
||||||
|
abstract_type (~> 0.0.7)
|
||||||
|
adamantium (~> 0.2.0)
|
||||||
|
concord (~> 0.1.5)
|
||||||
|
diff-lcs (~> 1.2.5)
|
||||||
|
equalizer (~> 0.0.9)
|
||||||
|
parser (~> 2.2.2)
|
||||||
|
procto (~> 0.0.2)
|
||||||
uuidtools (2.1.5)
|
uuidtools (2.1.5)
|
||||||
virtus (1.0.5)
|
virtus (1.0.5)
|
||||||
axiom-types (~> 0.1)
|
axiom-types (~> 0.1)
|
||||||
|
@ -522,36 +550,36 @@ PLATFORMS
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
activerecord-import (~> 0.7.0)
|
activerecord-import (~> 0.7.0)
|
||||||
autodoc
|
autodoc
|
||||||
better_errors (~> 2.0.0)
|
better_errors (~> 2.1.1)
|
||||||
binding_of_caller (~> 0.7.2)
|
binding_of_caller (~> 0.7.2)
|
||||||
bootstrap-datepicker-rails (~> 1.3.1.1)
|
bootstrap-datepicker-rails (~> 1.3.1.1)
|
||||||
bootstrap-sass (~> 3.3.4.1)
|
bootstrap-sass (~> 3.3.5.1)
|
||||||
brakeman (~> 2.6.2)
|
brakeman (~> 3.0.5)
|
||||||
bullet (~> 4.14.4)
|
bullet (~> 4.14.4)
|
||||||
bundler-audit!
|
bundler-audit!
|
||||||
cancancan (~> 1.9.2)
|
cancancan (~> 1.11.0)
|
||||||
capybara (~> 2.4.1)
|
capybara (~> 2.4.1)
|
||||||
coderay (~> 1.1.0)
|
coderay (~> 1.1.0)
|
||||||
coffee-rails (~> 4.1.0)
|
coffee-rails (~> 4.1.0)
|
||||||
countries (~> 0.10.0)
|
countries (~> 0.11.4)
|
||||||
data_migrate!
|
data_migrate!
|
||||||
database_cleaner (~> 1.3.0)
|
database_cleaner (~> 1.4.1)
|
||||||
deep_cloneable (~> 2.1.1)
|
deep_cloneable (~> 2.1.1)
|
||||||
devise (~> 3.4.1)
|
devise (~> 3.5.1)
|
||||||
digidoc_client (~> 0.2.1)
|
digidoc_client (~> 0.2.1)
|
||||||
epp (~> 1.4.2)!
|
epp (~> 1.4.2)!
|
||||||
epp-xml (~> 1.0.3)
|
epp-xml (~> 1.0.3)
|
||||||
fabrication (~> 2.12.2)
|
fabrication (~> 2.13.2)
|
||||||
faker (~> 1.3.0)
|
faker (~> 1.4.3)
|
||||||
figaro (~> 1.1.0)
|
figaro (~> 1.1.0)
|
||||||
grape (~> 0.10.1)
|
grape (~> 0.12.0)
|
||||||
guard (~> 2.6.1)
|
guard (~> 2.12.6)
|
||||||
guard-rails (~> 0.7.0)
|
guard-rails (~> 0.7.1)
|
||||||
guard-rspec (~> 4.3.1)
|
guard-rspec (~> 4.5.2)
|
||||||
guard-rubocop (~> 1.1.0)
|
guard-rubocop (~> 1.2.0)
|
||||||
haml-rails (~> 0.9.0)
|
haml-rails (~> 0.9.0)
|
||||||
hashie-forbidden_attributes (~> 0.1.1)
|
hashie-forbidden_attributes (~> 0.1.1)
|
||||||
html2haml!
|
html2haml (~> 2.0.0)
|
||||||
html5_validators (~> 1.2.0)
|
html5_validators (~> 1.2.0)
|
||||||
isikukood
|
isikukood
|
||||||
iso8601 (~> 0.8.2)
|
iso8601 (~> 0.8.2)
|
||||||
|
@ -569,31 +597,32 @@ DEPENDENCIES
|
||||||
paper_trail!
|
paper_trail!
|
||||||
pdfkit (~> 0.6.2)
|
pdfkit (~> 0.6.2)
|
||||||
pg (~> 0.18.0)
|
pg (~> 0.18.0)
|
||||||
phantomjs (~> 1.9.7.1)
|
phantomjs (~> 1.9.8.0)
|
||||||
phantomjs-binaries (~> 1.9.2.4)
|
phantomjs-binaries (~> 1.9.2.4)
|
||||||
poltergeist (~> 1.5.1)
|
poltergeist (~> 1.6.0)
|
||||||
pry (~> 0.10.1)
|
pry (~> 0.10.1)
|
||||||
que (~> 0.10.0)
|
que (~> 0.10.0)
|
||||||
que-web (~> 0.4.0)
|
que-web (~> 0.4.0)
|
||||||
railroady (~> 1.3.0)
|
railroady (~> 1.3.0)
|
||||||
rails (= 4.2.1)
|
rails (= 4.2.3)
|
||||||
rails-settings-cached (~> 0.4.1)
|
rails-settings-cached (~> 0.4.1)
|
||||||
rake
|
rake
|
||||||
ransack (~> 1.5.1)
|
ransack (~> 1.5.1)
|
||||||
rspec-rails (~> 3.0.2)
|
rspec-rails (~> 3.3.2)
|
||||||
rubocop (~> 0.26.1)
|
rubocop (~> 0.32.1)
|
||||||
rubycritic (~> 1.1.1)
|
rubycritic (~> 1.4.0)
|
||||||
sass-rails (~> 5.0.3)
|
sass-rails (~> 5.0.3)
|
||||||
sdoc (~> 0.4.0)
|
sdoc (~> 0.4.0)
|
||||||
select2-rails (~> 3.5.9.3)
|
select2-rails (~> 3.5.9.3)
|
||||||
selectize-rails (~> 0.12.1)
|
selectize-rails (~> 0.12.1)
|
||||||
shoulda-matchers (~> 2.6.1)
|
shoulda-matchers (~> 2.8.0)
|
||||||
simplecov (~> 0.9.1)
|
simplecov (~> 0.10.0)
|
||||||
simpleidn (~> 0.0.5)
|
simpleidn (~> 0.0.5)
|
||||||
spring (~> 1.3.3)
|
spring (~> 1.3.6)
|
||||||
spring-commands-rspec (~> 1.0.4)
|
spring-commands-rspec (~> 1.0.4)
|
||||||
|
spring-watcher-listen!
|
||||||
therubyracer (~> 0.12.2)
|
therubyracer (~> 0.12.2)
|
||||||
traceroute (~> 0.4.0)
|
traceroute (~> 0.5.0)
|
||||||
turbolinks (~> 2.5.3)
|
turbolinks (~> 2.5.3)
|
||||||
uglifier (~> 2.7.1)
|
uglifier (~> 2.7.1)
|
||||||
unicorn
|
unicorn
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
class Admin::ZonefilesController < ApplicationController
|
class Admin::ZonefilesController < ApplicationController
|
||||||
authorize_resource class: false
|
authorize_resource class: false
|
||||||
# TODO: Refactor this
|
# TODO: Refactor this
|
||||||
# rubocop:disable Metrics/MethodLength
|
|
||||||
|
|
||||||
def create
|
def create
|
||||||
if ZonefileSetting.pluck(:origin).include?(params[:origin])
|
if ZonefileSetting.pluck(:origin).include?(params[:origin])
|
||||||
|
|
|
@ -29,7 +29,6 @@ class Epp::DomainsController < EppController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop:disable Metrics/CyclomaticComplexity
|
|
||||||
def update
|
def update
|
||||||
authorize! :update, @domain, @password
|
authorize! :update, @domain, @password
|
||||||
|
|
||||||
|
@ -44,7 +43,6 @@ class Epp::DomainsController < EppController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop:disable Metrics/CyclomaticComplexity
|
|
||||||
def delete
|
def delete
|
||||||
authorize! :delete, @domain, @password
|
authorize! :delete, @domain, @password
|
||||||
|
|
||||||
|
@ -66,7 +64,6 @@ class Epp::DomainsController < EppController
|
||||||
handle_errors(@domain)
|
handle_errors(@domain)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop:enbale Metrics/CyclomaticComplexity
|
|
||||||
|
|
||||||
def check
|
def check
|
||||||
authorize! :check, Epp::Domain
|
authorize! :check, Epp::Domain
|
||||||
|
@ -88,8 +85,6 @@ class Epp::DomainsController < EppController
|
||||||
render_epp_response '/epp/domains/renew'
|
render_epp_response '/epp/domains/renew'
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
|
||||||
# rubocop: disable Metrics/MethodLength
|
|
||||||
def transfer
|
def transfer
|
||||||
authorize! :transfer, @domain, @password
|
authorize! :transfer, @domain, @password
|
||||||
action = params[:parsed_frame].css('transfer').first[:op]
|
action = params[:parsed_frame].css('transfer').first[:op]
|
||||||
|
@ -102,8 +97,6 @@ class Epp::DomainsController < EppController
|
||||||
handle_errors(@domain)
|
handle_errors(@domain)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/MethodLength
|
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
class Epp::KeyrelaysController < EppController
|
class Epp::KeyrelaysController < EppController
|
||||||
skip_authorization_check # TODO: move authorization under ability
|
skip_authorization_check # TODO: move authorization under ability
|
||||||
|
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
def keyrelay
|
def keyrelay
|
||||||
# keyrelay temp turned off
|
# keyrelay temp turned off
|
||||||
|
@ -30,7 +29,6 @@ class Epp::KeyrelaysController < EppController
|
||||||
|
|
||||||
exactly_one_of 'expiry > relative', 'expiry > absolute'
|
exactly_one_of 'expiry > relative', 'expiry > absolute'
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
|
|
||||||
def find_domain
|
def find_domain
|
||||||
|
|
|
@ -8,6 +8,7 @@ class Epp::SessionsController < EppController
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
# rubocop: disable Metrics/PerceivedComplexity
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
# rubocop: disable Metrics/MethodLength
|
# rubocop: disable Metrics/MethodLength
|
||||||
|
# rubocop: disable Metrics/AbcSize
|
||||||
def login
|
def login
|
||||||
success = true
|
success = true
|
||||||
@api_user = ApiUser.find_by(login_params)
|
@api_user = ApiUser.find_by(login_params)
|
||||||
|
@ -56,6 +57,9 @@ class Epp::SessionsController < EppController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/MethodLength
|
# rubocop: enable Metrics/MethodLength
|
||||||
|
# rubocop: enable Metrics/AbcSize
|
||||||
|
# rubocop: enable Metrics/PerceivedComplexity
|
||||||
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
|
|
||||||
def ip_white?
|
def ip_white?
|
||||||
return true if request.ip == ENV['webclient_ip']
|
return true if request.ip == ENV['webclient_ip']
|
||||||
|
@ -75,9 +79,6 @@ class Epp::SessionsController < EppController
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
|
||||||
|
|
||||||
def logout
|
def logout
|
||||||
@api_user = current_user # cache current_user for logging
|
@api_user = current_user # cache current_user for logging
|
||||||
epp_session.destroy
|
epp_session.destroy
|
||||||
|
|
|
@ -272,7 +272,6 @@ class EppController < ApplicationController
|
||||||
end
|
end
|
||||||
# rubocop: enable Style/PredicateName
|
# rubocop: enable Style/PredicateName
|
||||||
|
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
def write_to_epp_log
|
def write_to_epp_log
|
||||||
# return nil if EPP_LOG_ENABLED
|
# return nil if EPP_LOG_ENABLED
|
||||||
|
@ -295,7 +294,6 @@ class EppController < ApplicationController
|
||||||
ip: request.ip
|
ip: request.ip
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
|
|
||||||
def iptables_counter_update
|
def iptables_counter_update
|
||||||
|
|
|
@ -9,7 +9,7 @@ class Registrant::DomainDeleteConfirmsController < RegistrantController
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
# rubocop: disable Metrics/PerceivedComplexity
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/AbcSize
|
||||||
def update
|
def update
|
||||||
@domain = Domain.find(params[:id])
|
@domain = Domain.find(params[:id])
|
||||||
unless @domain.registrant_delete_confirmable?(params[:token])
|
unless @domain.registrant_delete_confirmable?(params[:token])
|
||||||
|
@ -39,5 +39,5 @@ class Registrant::DomainDeleteConfirmsController < RegistrantController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
# rubocop: enable Metrics/PerceivedComplexity
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/AbcSize
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,7 +9,7 @@ class Registrant::DomainUpdateConfirmsController < RegistrantController
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
# rubocop: disable Metrics/PerceivedComplexity
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/AbcSize
|
||||||
def update
|
def update
|
||||||
@domain = Domain.find(params[:id])
|
@domain = Domain.find(params[:id])
|
||||||
unless @domain.registrant_update_confirmable?(params[:token])
|
unless @domain.registrant_update_confirmable?(params[:token])
|
||||||
|
@ -39,5 +39,5 @@ class Registrant::DomainUpdateConfirmsController < RegistrantController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
# rubocop: enable Metrics/PerceivedComplexity
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/AbcSize
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,6 +4,7 @@ class Registrant::SessionsController < Devise::SessionsController
|
||||||
def login
|
def login
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop: disable Metrics/AbcSize
|
||||||
def id
|
def id
|
||||||
if Rails.env.development?
|
if Rails.env.development?
|
||||||
sign_in(RegistrantUser.find_or_create_by_idc_data('test'), event: :authentication)
|
sign_in(RegistrantUser.find_or_create_by_idc_data('test'), event: :authentication)
|
||||||
|
@ -22,12 +23,14 @@ class Registrant::SessionsController < Devise::SessionsController
|
||||||
redirect_to registrant_login_url
|
redirect_to registrant_login_url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop: enable Metrics/AbcSize
|
||||||
|
|
||||||
def login_mid
|
def login_mid
|
||||||
@user = User.new
|
@user = User.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def mid # rubocop: disable Metrics/MethodLength
|
# rubocop: disable Metrics/MethodLength
|
||||||
|
def mid
|
||||||
phone = params[:user][:phone]
|
phone = params[:user][:phone]
|
||||||
endpoint = "#{ENV['sk_digi_doc_service_endpoint']}"
|
endpoint = "#{ENV['sk_digi_doc_service_endpoint']}"
|
||||||
client = Digidoc::Client.new(endpoint)
|
client = Digidoc::Client.new(endpoint)
|
||||||
|
@ -64,8 +67,9 @@ class Registrant::SessionsController < Devise::SessionsController
|
||||||
render json: { message: t(:no_such_user) }, status: :unauthorized
|
render json: { message: t(:no_such_user) }, status: :unauthorized
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop: enable Metrics/MethodLength
|
||||||
|
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
# rubocop: disable Metrics/AbcSize
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
# rubocop: disable Metrics/MethodLength
|
# rubocop: disable Metrics/MethodLength
|
||||||
def mid_status
|
def mid_status
|
||||||
|
@ -104,7 +108,7 @@ class Registrant::SessionsController < Devise::SessionsController
|
||||||
render json: { message: t(:internal_error) }, status: :bad_request
|
render json: { message: t(:internal_error) }, status: :bad_request
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
# rubocop: enable Metrics/AbcSize
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
# rubocop: enable Metrics/MethodLength
|
# rubocop: enable Metrics/MethodLength
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,9 @@ class Registrar::SessionsController < Devise::SessionsController
|
||||||
# rubocop:disable Metrics/PerceivedComplexity
|
# rubocop:disable Metrics/PerceivedComplexity
|
||||||
# rubocop:disable Metrics/CyclomaticComplexity
|
# rubocop:disable Metrics/CyclomaticComplexity
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
|
# rubocop:disable Metrics/AbcSize
|
||||||
def create
|
def create
|
||||||
@depp_user = Depp::User.new(params[:depp_user].merge(
|
@depp_user = Depp::User.new(params[:depp_user].merge(pki: !(Rails.env.development? || Rails.env.test?)))
|
||||||
pki: !(Rails.env.development? || Rails.env.test?)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
if @depp_user.pki && request.env['HTTP_SSL_CLIENT_S_DN_CN'].blank?
|
if @depp_user.pki && request.env['HTTP_SSL_CLIENT_S_DN_CN'].blank?
|
||||||
@depp_user.errors.add(:base, :webserver_missing_user_name_directive)
|
@depp_user.errors.add(:base, :webserver_missing_user_name_directive)
|
||||||
|
@ -64,6 +62,7 @@ class Registrar::SessionsController < Devise::SessionsController
|
||||||
# rubocop:enable Metrics/CyclomaticComplexity
|
# rubocop:enable Metrics/CyclomaticComplexity
|
||||||
# rubocop:enable Metrics/PerceivedComplexity
|
# rubocop:enable Metrics/PerceivedComplexity
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
# rubocop:enable Metrics/AbcSize
|
||||||
|
|
||||||
def id
|
def id
|
||||||
@user = ApiUser.find_by_idc_data(request.env['SSL_CLIENT_S_DN'])
|
@user = ApiUser.find_by_idc_data(request.env['SSL_CLIENT_S_DN'])
|
||||||
|
@ -121,7 +120,7 @@ class Registrar::SessionsController < Devise::SessionsController
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
# rubocop: disable Metrics/AbcSize
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
# rubocop: disable Metrics/MethodLength
|
# rubocop: disable Metrics/MethodLength
|
||||||
def mid_status
|
def mid_status
|
||||||
|
@ -159,7 +158,7 @@ class Registrar::SessionsController < Devise::SessionsController
|
||||||
render json: { message: t(:internal_error) }, status: :bad_request
|
render json: { message: t(:internal_error) }, status: :bad_request
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
# rubocop: enable Metrics/AbcSize
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
# rubocop: enable Metrics/MethodLength
|
# rubocop: enable Metrics/MethodLength
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ class Ability
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
# rubocop: disable Metrics/PerceivedComplexity
|
||||||
# rubocop: disable Metrics/LineLength
|
# rubocop: disable Metrics/LineLength
|
||||||
|
# rubocop: disable Metrics/AbcSize
|
||||||
def initialize(user)
|
def initialize(user)
|
||||||
alias_action :show, to: :view
|
alias_action :show, to: :view
|
||||||
alias_action :show, :create, :update, :destroy, to: :crud
|
alias_action :show, :create, :update, :destroy, to: :crud
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
require 'open3'
|
require 'open3'
|
||||||
|
|
||||||
# rubocop: disable Metrics/ClassLength
|
|
||||||
class ApiUser < User
|
class ApiUser < User
|
||||||
include EppErrors
|
include EppErrors
|
||||||
def epp_code_map # rubocop:disable Metrics/MethodLength
|
|
||||||
|
def epp_code_map
|
||||||
{
|
{
|
||||||
'2306' => [ # Parameter policy error
|
'2306' => [ # Parameter policy error
|
||||||
[:password, :blank]
|
[:password, :blank]
|
||||||
|
@ -77,4 +77,3 @@ class ApiUser < User
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/ClassLength
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ class BankStatement < ActiveRecord::Base
|
||||||
File.open(import_file_path, 'w') { |f| f.write(th6_file.open.read) }
|
File.open(import_file_path, 'w') { |f| f.write(th6_file.open.read) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop: disable Metrics/AbcSize
|
||||||
def parse_th6_row(row)
|
def parse_th6_row(row)
|
||||||
return parse_th6_header(row) if row[4, 3].strip == '000'
|
return parse_th6_header(row) if row[4, 3].strip == '000'
|
||||||
return if row[4, 3].strip == '999' # skip footer
|
return if row[4, 3].strip == '999' # skip footer
|
||||||
|
@ -47,6 +48,7 @@ class BankStatement < ActiveRecord::Base
|
||||||
reference_no: row[280, 35].strip
|
reference_no: row[280, 35].strip
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
# rubocop: enable Metrics/AbcSize
|
||||||
|
|
||||||
def parse_th6_header(row)
|
def parse_th6_header(row)
|
||||||
self.bank_code = row[7, 3].strip
|
self.bank_code = row[7, 3].strip
|
||||||
|
|
|
@ -76,6 +76,7 @@ class Certificate < ActiveRecord::Base
|
||||||
@cached_status = REVOKED
|
@cached_status = REVOKED
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop: disable Metrics/AbcSize
|
||||||
def sign!
|
def sign!
|
||||||
csr_file = Tempfile.new('client_csr')
|
csr_file = Tempfile.new('client_csr')
|
||||||
csr_file.write(csr)
|
csr_file.write(csr)
|
||||||
|
@ -107,6 +108,7 @@ class Certificate < ActiveRecord::Base
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop: enable Metrics/AbcSize
|
||||||
|
|
||||||
def revoke!
|
def revoke!
|
||||||
crt_file = Tempfile.new('client_crt')
|
crt_file = Tempfile.new('client_crt')
|
||||||
|
|
|
@ -20,7 +20,6 @@ module Depp
|
||||||
class << self
|
class << self
|
||||||
attr_reader :epp_xml, :user
|
attr_reader :epp_xml, :user
|
||||||
|
|
||||||
# rubocop: disable Metrics/MethodLength
|
|
||||||
def new_from_params(params)
|
def new_from_params(params)
|
||||||
new(
|
new(
|
||||||
id: params[:code],
|
id: params[:code],
|
||||||
|
@ -43,8 +42,8 @@ module Depp
|
||||||
country_code: params[:country_code]
|
country_code: params[:country_code]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/MethodLength
|
|
||||||
|
|
||||||
|
# rubocop:disable Metrics/AbcSize
|
||||||
def find_by_id(id)
|
def find_by_id(id)
|
||||||
data = info_xml(id)
|
data = info_xml(id)
|
||||||
|
|
||||||
|
@ -77,6 +76,7 @@ module Depp
|
||||||
statuses: data.css('status').map { |s| [s['s'], s.text] }
|
statuses: data.css('status').map { |s| [s['s'], s.text] }
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Metrics/AbcSize
|
||||||
|
|
||||||
def user=(user)
|
def user=(user)
|
||||||
@user = user
|
@user = user
|
||||||
|
@ -171,6 +171,7 @@ module Depp
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
|
# rubocop:disable Metrics/AbcSize
|
||||||
def update_attributes(params)
|
def update_attributes(params)
|
||||||
self.ident_country_code = params[:ident_country_code]
|
self.ident_country_code = params[:ident_country_code]
|
||||||
self.ident_type = params[:ident_type]
|
self.ident_type = params[:ident_type]
|
||||||
|
@ -214,6 +215,7 @@ module Depp
|
||||||
data = Depp::Contact.user.request(update_xml)
|
data = Depp::Contact.user.request(update_xml)
|
||||||
handle_errors(data)
|
handle_errors(data)
|
||||||
end
|
end
|
||||||
|
# rubocop:enbale Metrics/AbcSize
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|
||||||
def delete
|
def delete
|
||||||
|
|
|
@ -130,7 +130,9 @@ module Depp
|
||||||
ret.with_indifferent_access
|
ret.with_indifferent_access
|
||||||
end
|
end
|
||||||
|
|
||||||
def construct_params_from_server_data(data) # rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
|
# rubocop:disable Metrics/AbcSize
|
||||||
|
def construct_params_from_server_data(data)
|
||||||
ret = default_params
|
ret = default_params
|
||||||
ret[:name] = data.css('name').text
|
ret[:name] = data.css('name').text
|
||||||
ret[:registrant] = data.css('registrant').text
|
ret[:registrant] = data.css('registrant').text
|
||||||
|
@ -176,6 +178,8 @@ module Depp
|
||||||
|
|
||||||
ret
|
ret
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
# rubocop:enable Metrics/AbcSize
|
||||||
|
|
||||||
def construct_custom_params_hash(domain_params)
|
def construct_custom_params_hash(domain_params)
|
||||||
custom_params = {}
|
custom_params = {}
|
||||||
|
|
|
@ -8,7 +8,7 @@ module Depp
|
||||||
self.epp_xml = EppXml::Keyrelay.new(cl_trid_prefix: current_user.tag)
|
self.epp_xml = EppXml::Keyrelay.new(cl_trid_prefix: current_user.tag)
|
||||||
end
|
end
|
||||||
|
|
||||||
def keyrelay(params) # rubocop:disable Metrics/MethodLength
|
def keyrelay(params)
|
||||||
custom_params = {}
|
custom_params = {}
|
||||||
if params[:legal_document].present?
|
if params[:legal_document].present?
|
||||||
type = params[:legal_document].original_filename.split('.').last.downcase
|
type = params[:legal_document].original_filename.split('.').last.downcase
|
||||||
|
|
|
@ -36,6 +36,7 @@ module Depp
|
||||||
Nokogiri::XML(e.response_xml.to_s).remove_namespaces!
|
Nokogiri::XML(e.response_xml.to_s).remove_namespaces!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop:disable Metrics/AbcSize
|
||||||
def repp_request(path, params = {})
|
def repp_request(path, params = {})
|
||||||
client_cert = File.read(ENV['cert_path'])
|
client_cert = File.read(ENV['cert_path'])
|
||||||
client_key = File.read(ENV['key_path'])
|
client_key = File.read(ENV['key_path'])
|
||||||
|
@ -51,8 +52,7 @@ module Depp
|
||||||
use_ssl: (uri.scheme == 'https'),
|
use_ssl: (uri.scheme == 'https'),
|
||||||
verify_mode: OpenSSL::SSL::VERIFY_NONE,
|
verify_mode: OpenSSL::SSL::VERIFY_NONE,
|
||||||
cert: OpenSSL::X509::Certificate.new(client_cert),
|
cert: OpenSSL::X509::Certificate.new(client_cert),
|
||||||
key: OpenSSL::PKey::RSA.new(client_key)
|
key: OpenSSL::PKey::RSA.new(client_key)) do |http|
|
||||||
) do |http|
|
|
||||||
http.request(req)
|
http.request(req)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@ module Depp
|
||||||
|
|
||||||
ret
|
ret
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Metrics/AbcSize
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ class Dnskey < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def bin_to_hex(s)
|
def bin_to_hex(s)
|
||||||
s.each_byte.map { |b| sprintf('%02X', b) }.join
|
s.each_byte.map { |b| format('%02X', b) }.join
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -207,6 +207,7 @@ class Domain < ActiveRecord::Base
|
||||||
STDOUT << "#{Time.zone.now.utc} - Successfully set delete_candidate to #{d.count} domains\n"
|
STDOUT << "#{Time.zone.now.utc} - Successfully set delete_candidate to #{d.count} domains\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop:disable Rails/FindEach
|
||||||
def destroy_delete_candidates
|
def destroy_delete_candidates
|
||||||
STDOUT << "#{Time.zone.now.utc} - Destroying domains\n" unless Rails.env.test?
|
STDOUT << "#{Time.zone.now.utc} - Destroying domains\n" unless Rails.env.test?
|
||||||
|
|
||||||
|
@ -223,6 +224,7 @@ class Domain < ActiveRecord::Base
|
||||||
|
|
||||||
STDOUT << "#{Time.zone.now.utc} - Successfully destroyed #{c} domains\n" unless Rails.env.test?
|
STDOUT << "#{Time.zone.now.utc} - Successfully destroyed #{c} domains\n" unless Rails.env.test?
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Rails/FindEach
|
||||||
end
|
end
|
||||||
|
|
||||||
def name=(value)
|
def name=(value)
|
||||||
|
@ -410,8 +412,8 @@ class Domain < ActiveRecord::Base
|
||||||
res = ''
|
res = ''
|
||||||
parts = name.split('.')
|
parts = name.split('.')
|
||||||
parts.each do |x|
|
parts.each do |x|
|
||||||
res += sprintf('%02X', x.length) # length of label in hex
|
res += format('%02X', x.length) # length of label in hex
|
||||||
res += x.each_byte.map { |b| sprintf('%02X', b) }.join # label
|
res += x.each_byte.map { |b| format('%02X', b) }.join # label
|
||||||
end
|
end
|
||||||
|
|
||||||
res += '00'
|
res += '00'
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# rubocop: disable Metrics/ClassLength
|
|
||||||
class Epp::Contact < Contact
|
class Epp::Contact < Contact
|
||||||
include EppErrors
|
include EppErrors
|
||||||
|
|
||||||
|
@ -15,6 +14,7 @@ class Epp::Contact < Contact
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
# rubocop: disable Metrics/PerceivedComplexity
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
# rubocop: disable Metrics/MethodLength
|
# rubocop: disable Metrics/MethodLength
|
||||||
|
# rubocop: disable Metrics/AbcSize
|
||||||
def attrs_from(frame, rem = nil)
|
def attrs_from(frame, rem = nil)
|
||||||
f = frame
|
f = frame
|
||||||
at = {}.with_indifferent_access
|
at = {}.with_indifferent_access
|
||||||
|
@ -53,6 +53,7 @@ class Epp::Contact < Contact
|
||||||
# rubocop: enable Metrics/MethodLength
|
# rubocop: enable Metrics/MethodLength
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
# rubocop: enable Metrics/PerceivedComplexity
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
|
# rubocop: enable Metrics/AbcSize
|
||||||
|
|
||||||
def new(frame, registrar)
|
def new(frame, registrar)
|
||||||
return super if frame.blank?
|
return super if frame.blank?
|
||||||
|
@ -149,4 +150,3 @@ class Epp::Contact < Contact
|
||||||
super(at)
|
super(at)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/ClassLength
|
|
||||||
|
|
|
@ -88,6 +88,7 @@ class Epp::Domain < Domain
|
||||||
# rubocop: disable Metrics/PerceivedComplexity
|
# rubocop: disable Metrics/PerceivedComplexity
|
||||||
# rubocop: disable Metrics/CyclomaticComplexity
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
# rubocop: disable Metrics/MethodLength
|
# rubocop: disable Metrics/MethodLength
|
||||||
|
# rubocop: disable Metrics/AbcSize
|
||||||
def attrs_from(frame, current_user, action = nil)
|
def attrs_from(frame, current_user, action = nil)
|
||||||
at = {}.with_indifferent_access
|
at = {}.with_indifferent_access
|
||||||
|
|
||||||
|
@ -130,6 +131,7 @@ class Epp::Domain < Domain
|
||||||
# rubocop: enable Metrics/PerceivedComplexity
|
# rubocop: enable Metrics/PerceivedComplexity
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
# rubocop: enable Metrics/MethodLength
|
# rubocop: enable Metrics/MethodLength
|
||||||
|
# rubocop: enable Metrics/AbcSize
|
||||||
|
|
||||||
def nameservers_attrs(frame, action)
|
def nameservers_attrs(frame, action)
|
||||||
ns_list = nameservers_from(frame)
|
ns_list = nameservers_from(frame)
|
||||||
|
@ -358,6 +360,7 @@ class Epp::Domain < Domain
|
||||||
}]
|
}]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop: disable Metrics/AbcSize
|
||||||
def update(frame, current_user, verify = true)
|
def update(frame, current_user, verify = true)
|
||||||
return super if frame.blank?
|
return super if frame.blank?
|
||||||
at = {}.with_indifferent_access
|
at = {}.with_indifferent_access
|
||||||
|
@ -380,6 +383,7 @@ class Epp::Domain < Domain
|
||||||
self.deliver_emails = true # turn on email delivery for epp
|
self.deliver_emails = true # turn on email delivery for epp
|
||||||
errors.empty? && super(at)
|
errors.empty? && super(at)
|
||||||
end
|
end
|
||||||
|
# rubocop: enable Metrics/AbcSize
|
||||||
|
|
||||||
def apply_pending_update!
|
def apply_pending_update!
|
||||||
preclean_pendings
|
preclean_pendings
|
||||||
|
@ -524,6 +528,7 @@ class Epp::Domain < Domain
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
|
|
||||||
# rubocop: disable Metrics/MethodLength
|
# rubocop: disable Metrics/MethodLength
|
||||||
|
# rubocop: disable Metrics/AbcSize
|
||||||
def query_transfer(frame, current_user)
|
def query_transfer(frame, current_user)
|
||||||
return false unless can_be_transferred_to?(current_user.registrar)
|
return false unless can_be_transferred_to?(current_user.registrar)
|
||||||
|
|
||||||
|
@ -565,6 +570,7 @@ class Epp::Domain < Domain
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop: enable Metrics/AbcSize
|
||||||
# rubocop: enable Metrics/MethodLength
|
# rubocop: enable Metrics/MethodLength
|
||||||
|
|
||||||
def approve_transfer(frame, current_user)
|
def approve_transfer(frame, current_user)
|
||||||
|
@ -621,13 +627,14 @@ class Epp::Domain < Domain
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
|
# rubocop:disable Metrics/AbcSize
|
||||||
def keyrelay(parsed_frame, requester)
|
def keyrelay(parsed_frame, requester)
|
||||||
if registrar == requester
|
if registrar == requester
|
||||||
errors.add(:base, :domain_already_belongs_to_the_querying_registrar) and return false
|
errors.add(:base, :domain_already_belongs_to_the_querying_registrar) and return false
|
||||||
end
|
end
|
||||||
|
|
||||||
abs_datetime = parsed_frame.css('absolute').text
|
abs_datetime = parsed_frame.css('absolute').text
|
||||||
abs_datetime = DateTime.parse(abs_datetime) if abs_datetime.present?
|
abs_datetime = DateTime.zone.parse(abs_datetime) if abs_datetime.present?
|
||||||
|
|
||||||
transaction do
|
transaction do
|
||||||
kr = keyrelays.build(
|
kr = keyrelays.build(
|
||||||
|
@ -664,6 +671,7 @@ class Epp::Domain < Domain
|
||||||
|
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Metrics/AbcSize
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|
||||||
### VALIDATIONS ###
|
### VALIDATIONS ###
|
||||||
|
|
|
@ -47,8 +47,7 @@ class Nameserver < ActiveRecord::Base
|
||||||
def replace_hostname_ends(domains, old_end, new_end)
|
def replace_hostname_ends(domains, old_end, new_end)
|
||||||
domains = domains.where('EXISTS(
|
domains = domains.where('EXISTS(
|
||||||
select 1 from nameservers ns where ns.domain_id = domains.id AND ns.hostname LIKE ?
|
select 1 from nameservers ns where ns.domain_id = domains.id AND ns.hostname LIKE ?
|
||||||
)', "%#{old_end}"
|
)', "%#{old_end}")
|
||||||
)
|
|
||||||
|
|
||||||
count, success_count = 0.0, 0.0
|
count, success_count = 0.0, 0.0
|
||||||
domains.each do |d|
|
domains.each do |d|
|
||||||
|
|
|
@ -73,7 +73,9 @@ class Registrar < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def issue_prepayment_invoice(amount, description = nil) # rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/AbcSize
|
||||||
|
# rubocop:disable Metrics/MethodLength
|
||||||
|
def issue_prepayment_invoice(amount, description = nil)
|
||||||
# Currently only EIS can issue invoices
|
# Currently only EIS can issue invoices
|
||||||
eis = self.class.eis
|
eis = self.class.eis
|
||||||
|
|
||||||
|
@ -122,6 +124,8 @@ class Registrar < ActiveRecord::Base
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Metrics/AbcSize
|
||||||
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|
||||||
def cash_account
|
def cash_account
|
||||||
accounts.find_by(account_type: Account::CASH)
|
accounts.find_by(account_type: Account::CASH)
|
||||||
|
|
|
@ -30,6 +30,7 @@ class WhoisRecord < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
|
# rubocop:disable Metrics/AbcSize
|
||||||
def generate_json
|
def generate_json
|
||||||
h = HashWithIndifferentAccess.new
|
h = HashWithIndifferentAccess.new
|
||||||
return h if domain.blank?
|
return h if domain.blank?
|
||||||
|
@ -108,6 +109,7 @@ More information at http://internet.ee
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
# rubocop:enable Metrics/AbcSize
|
||||||
|
|
||||||
def contacts_body(admins, techs)
|
def contacts_body(admins, techs)
|
||||||
admins ||= []
|
admins ||= []
|
||||||
|
|
|
@ -9,7 +9,7 @@ class DateTimeIso8601Validator < ActiveModel::EachValidator
|
||||||
return true if value.empty?
|
return true if value.empty?
|
||||||
|
|
||||||
begin
|
begin
|
||||||
DateTime.parse(value)
|
DateTime.zone.parse(value)
|
||||||
rescue => _e
|
rescue => _e
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
class ObjectCountValidator < ActiveModel::EachValidator
|
class ObjectCountValidator < ActiveModel::EachValidator
|
||||||
def validate_each(record, attribute, value)
|
def validate_each(record, attribute, value)
|
||||||
min, max = options[:min].call, options[:max].call
|
min, max = options[:min].call, options[:max].call
|
||||||
return if value.reject(&:marked_for_destruction?).length.between?(min, max)
|
values = value.reject(&:marked_for_destruction?)
|
||||||
|
|
||||||
|
return if values.size.between?(min, max)
|
||||||
association = options[:association] || attribute
|
association = options[:association] || attribute
|
||||||
record.errors.add(association, :out_of_range, { min: min, max: max })
|
record.errors.add(association, :out_of_range, { min: min, max: max })
|
||||||
end
|
end
|
||||||
|
|
|
@ -21,7 +21,7 @@ module Registry
|
||||||
|
|
||||||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
# 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.
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
||||||
config.time_zone = ENV['time_zone'] # NB! It should be defined,
|
config.time_zone = ENV['time_zone'] || 'Tallinn' # NB! It should be defined,
|
||||||
# otherwise ActiveRecord usese other class internally.
|
# otherwise ActiveRecord usese other class internally.
|
||||||
|
|
||||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||||
|
|
|
@ -11,6 +11,7 @@ class ActionView::Helpers::FormBuilder
|
||||||
content = content_or_options
|
content = content_or_options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop:disable Style/MultilineOperationIndentation
|
||||||
if object.class.respond_to?(:validators_on) &&
|
if object.class.respond_to?(:validators_on) &&
|
||||||
object.class.validators_on(method).map(&:class).include?(ActiveRecord::Validations::PresenceValidator)
|
object.class.validators_on(method).map(&:class).include?(ActiveRecord::Validations::PresenceValidator)
|
||||||
|
|
||||||
|
@ -20,6 +21,7 @@ class ActionView::Helpers::FormBuilder
|
||||||
options[:class] = ((options[:class] || "") + ' required').split(' ').uniq.join(' ')
|
options[:class] = ((options[:class] || "") + ' required').split(' ').uniq.join(' ')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Style/MultilineOperationIndentation
|
||||||
|
|
||||||
orig_label(method, content, options || {}, &block)
|
orig_label(method, content, options || {}, &block)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# encoding : utf-8
|
# encoding : utf-8
|
||||||
|
|
||||||
MoneyRails.configure do |config|
|
MoneyRails.configure do |config|
|
||||||
|
|
||||||
# To set the default currency
|
# To set the default currency
|
||||||
#
|
#
|
||||||
config.default_currency = :eur
|
config.default_currency = :eur
|
||||||
|
|
1
config/spring.rb
Normal file
1
config/spring.rb
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Spring.watch 'config/application.yml'
|
|
@ -1,9 +1,9 @@
|
||||||
class DeviseCustomFailure < Devise::FailureApp
|
class DeviseCustomFailure < Devise::FailureApp
|
||||||
def redirect_url
|
def redirect_url
|
||||||
return registrant_login_url if request.original_fullpath.to_s.match(/^\/registrant/)
|
return registrant_login_url if request.original_fullpath.to_s.match(%r{^\/registrant})
|
||||||
return registrar_login_url if request.original_fullpath.to_s.match(/^\/registrar/)
|
return registrar_login_url if request.original_fullpath.to_s.match(%r{^\/registrar})
|
||||||
return '/admin' if request.original_fullpath.to_s.match(%r{^\/admin\/que})
|
return '/admin' if request.original_fullpath.to_s.match(%r{^\/admin\/que})
|
||||||
return admin_login_url if request.original_fullpath.to_s.match(/^\/admin/)
|
return admin_login_url if request.original_fullpath.to_s.match(%r{^\/admin})
|
||||||
root_url
|
root_url
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# rubocop: disable Style/SymbolProc
|
# rubocop: disable Style/SymbolProc
|
||||||
|
# rubocop: disable Performance/Detect
|
||||||
namespace :import do
|
namespace :import do
|
||||||
# README
|
# README
|
||||||
#
|
#
|
||||||
|
@ -713,4 +714,5 @@ namespace :import do
|
||||||
puts "-----> Imported EIS domains in #{(Time.zone.now.to_f - start).round(2)} seconds"
|
puts "-----> Imported EIS domains in #{(Time.zone.now.to_f - start).round(2)} seconds"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop: enable Performance/Detect
|
||||||
# rubocop: enable Style/SymbolProc
|
# rubocop: enable Style/SymbolProc
|
||||||
|
|
|
@ -151,7 +151,7 @@ describe 'EPP Contact', epp: true do
|
||||||
|
|
||||||
id.text.length.should == 15
|
id.text.length.should == 15
|
||||||
# 5 seconds for what-ever weird lag reasons might happen
|
# 5 seconds for what-ever weird lag reasons might happen
|
||||||
cr_date.text.to_time.should be_within(5).of(Time.zone.now)
|
cr_date.text.in_time_zone.utc.should be_within(5).of(Time.zone.now)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should add registrar prefix for code when missing' do
|
it 'should add registrar prefix for code when missing' do
|
||||||
|
|
|
@ -89,8 +89,8 @@ describe 'EPP Domain', epp: true do
|
||||||
cre_data = response[:parsed].css('creData')
|
cre_data = response[:parsed].css('creData')
|
||||||
|
|
||||||
cre_data.css('name').text.should == dn
|
cre_data.css('name').text.should == dn
|
||||||
cre_data.css('crDate').text.should == d.created_at.to_time.utc.iso8601
|
cre_data.css('crDate').text.should == d.created_at.in_time_zone.utc.utc.iso8601
|
||||||
cre_data.css('exDate').text.should == d.valid_to.to_time.utc.iso8601
|
cre_data.css('exDate').text.should == d.valid_to.in_time_zone.utc.utc.iso8601
|
||||||
|
|
||||||
response[:clTRID].should == 'ABC-12345'
|
response[:clTRID].should == 'ABC-12345'
|
||||||
|
|
||||||
|
@ -746,10 +746,10 @@ describe 'EPP Domain', epp: true do
|
||||||
trn_data.css('name').text.should == domain.name
|
trn_data.css('name').text.should == domain.name
|
||||||
trn_data.css('trStatus').text.should == 'serverApproved'
|
trn_data.css('trStatus').text.should == 'serverApproved'
|
||||||
trn_data.css('reID').text.should == 'REGDOMAIN2'
|
trn_data.css('reID').text.should == 'REGDOMAIN2'
|
||||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601
|
trn_data.css('reDate').text.should == dtl.transfer_requested_at.in_time_zone.utc.utc.iso8601
|
||||||
trn_data.css('acID').text.should == 'REGDOMAIN1'
|
trn_data.css('acID').text.should == 'REGDOMAIN1'
|
||||||
trn_data.css('acDate').text.should == dtl.transferred_at.to_time.utc.iso8601
|
trn_data.css('acDate').text.should == dtl.transferred_at.in_time_zone.utc.utc.iso8601
|
||||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
trn_data.css('exDate').text.should == domain.valid_to.in_time_zone.utc.utc.iso8601
|
||||||
|
|
||||||
domain.registrar.should == @registrar2
|
domain.registrar.should == @registrar2
|
||||||
|
|
||||||
|
@ -791,10 +791,10 @@ describe 'EPP Domain', epp: true do
|
||||||
trn_data.css('name').text.should == domain.name
|
trn_data.css('name').text.should == domain.name
|
||||||
trn_data.css('trStatus').text.should == 'pending'
|
trn_data.css('trStatus').text.should == 'pending'
|
||||||
trn_data.css('reID').text.should == 'REGDOMAIN1'
|
trn_data.css('reID').text.should == 'REGDOMAIN1'
|
||||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601
|
trn_data.css('reDate').text.should == dtl.transfer_requested_at.in_time_zone.utc.utc.iso8601
|
||||||
trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.iso8601
|
trn_data.css('acDate').text.should == dtl.wait_until.in_time_zone.utc.utc.iso8601
|
||||||
trn_data.css('acID').text.should == 'REGDOMAIN2'
|
trn_data.css('acID').text.should == 'REGDOMAIN2'
|
||||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
trn_data.css('exDate').text.should == domain.valid_to.in_time_zone.utc.utc.iso8601
|
||||||
|
|
||||||
domain.registrar.should == @registrar2
|
domain.registrar.should == @registrar2
|
||||||
|
|
||||||
|
@ -806,10 +806,10 @@ describe 'EPP Domain', epp: true do
|
||||||
trn_data.css('name').text.should == domain.name
|
trn_data.css('name').text.should == domain.name
|
||||||
trn_data.css('trStatus').text.should == 'pending'
|
trn_data.css('trStatus').text.should == 'pending'
|
||||||
trn_data.css('reID').text.should == 'REGDOMAIN1'
|
trn_data.css('reID').text.should == 'REGDOMAIN1'
|
||||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601
|
trn_data.css('reDate').text.should == dtl.transfer_requested_at.in_time_zone.utc.utc.iso8601
|
||||||
trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.iso8601
|
trn_data.css('acDate').text.should == dtl.wait_until.in_time_zone.utc.utc.iso8601
|
||||||
trn_data.css('acID').text.should == 'REGDOMAIN2'
|
trn_data.css('acID').text.should == 'REGDOMAIN2'
|
||||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
trn_data.css('exDate').text.should == domain.valid_to.in_time_zone.utc.utc.iso8601
|
||||||
|
|
||||||
domain.registrar.should == @registrar2
|
domain.registrar.should == @registrar2
|
||||||
|
|
||||||
|
@ -1213,9 +1213,9 @@ describe 'EPP Domain', epp: true do
|
||||||
trn_data.css('name').text.should == domain.name
|
trn_data.css('name').text.should == domain.name
|
||||||
trn_data.css('trStatus').text.should == 'clientApproved'
|
trn_data.css('trStatus').text.should == 'clientApproved'
|
||||||
trn_data.css('reID').text.should == 'REGDOMAIN2'
|
trn_data.css('reID').text.should == 'REGDOMAIN2'
|
||||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601
|
trn_data.css('reDate').text.should == dtl.transfer_requested_at.in_time_zone.utc.utc.iso8601
|
||||||
trn_data.css('acID').text.should == 'REGDOMAIN1'
|
trn_data.css('acID').text.should == 'REGDOMAIN1'
|
||||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
trn_data.css('exDate').text.should == domain.valid_to.in_time_zone.utc.utc.iso8601
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'rejects a domain transfer' do
|
it 'rejects a domain transfer' do
|
||||||
|
@ -2187,8 +2187,8 @@ describe 'EPP Domain', epp: true do
|
||||||
ns1.css('hostName').last.text.should == 'ns1.example.com'
|
ns1.css('hostName').last.text.should == 'ns1.example.com'
|
||||||
ns1.css('hostAddr').first.text.should == '192.168.1.1'
|
ns1.css('hostAddr').first.text.should == '192.168.1.1'
|
||||||
ns1.css('hostAddr').last.text.should == '1080:0:0:0:8:800:200C:417A'
|
ns1.css('hostAddr').last.text.should == '1080:0:0:0:8:800:200C:417A'
|
||||||
inf_data.css('crDate').text.should == domain.created_at.to_time.utc.iso8601
|
inf_data.css('crDate').text.should == domain.created_at.in_time_zone.utc.utc.iso8601
|
||||||
inf_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
inf_data.css('exDate').text.should == domain.valid_to.in_time_zone.utc.utc.iso8601
|
||||||
inf_data.css('pw').text.should == domain.auth_info
|
inf_data.css('pw').text.should == domain.auth_info
|
||||||
|
|
||||||
ds_data_1 = response[:parsed].css('dsData')[0]
|
ds_data_1 = response[:parsed].css('dsData')[0]
|
||||||
|
@ -2217,7 +2217,7 @@ describe 'EPP Domain', epp: true do
|
||||||
response = epp_plain_request(domain_info_xml(name: { value: domain.name }))
|
response = epp_plain_request(domain_info_xml(name: { value: domain.name }))
|
||||||
inf_data = response[:parsed].css('resData infData')
|
inf_data = response[:parsed].css('resData infData')
|
||||||
|
|
||||||
inf_data.css('upDate').text.should == domain.updated_at.to_time.utc.iso8601
|
inf_data.css('upDate').text.should == domain.updated_at.in_time_zone.utc.utc.iso8601
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns domain info with different nameservers' do
|
it 'returns domain info with different nameservers' do
|
||||||
|
|
|
@ -54,7 +54,7 @@ describe DomainMailer do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should render verification url' do
|
it 'should render verification url' do
|
||||||
@mail.body.encoded.should =~ /registrant\/domain_update_confirms/
|
@mail.body.encoded.should =~ %r{registrant\/domain_update_confirms}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ describe DomainMailer do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should render verification url' do
|
it 'should render verification url' do
|
||||||
@mail.body.encoded.should =~ /registrant\/domain_delete_con/ # somehowe delete_confirms not matching
|
@mail.body.encoded.should =~ %r{registrant\/domain_delete_con} # somehowe delete_confirms not matching
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue