Skip to content

Commit

Permalink
Removed external katas
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolive committed Feb 4, 2018
1 parent c8daa43 commit 3480f53
Show file tree
Hide file tree
Showing 162 changed files with 6 additions and 636 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .rspec
100644 → 100755
Empty file.
Empty file modified .travis.yml
100644 → 100755
Empty file.
9 changes: 4 additions & 5 deletions Dockerfile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM ruby:2.4.0
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN mkdir /myapp

WORKDIR /myapp
ADD Gemfile /myapp/Gemfile
ADD Gemfile.lock /myapp/Gemfile.lock
RUN gem install bundler --pre
ADD . /myapp

RUN gem install bundler
RUN bundle install
ADD . /myapp
Empty file modified Gemfile
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion Gemfile.lock
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,4 @@ RUBY VERSION
ruby 2.4.0p0

BUNDLED WITH
1.16.0
1.16.1
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified Rakefile
100644 → 100755
Empty file.
Empty file modified app/assets/config/manifest.js
100644 → 100755
Empty file.
Empty file modified app/assets/images/.keep
100644 → 100755
Empty file.
Empty file modified app/assets/images/default_belt.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/assets/images/logo_katayuno.ico
100644 → 100755
Empty file.
Empty file modified app/assets/javascripts/application.js
100644 → 100755
Empty file.
Empty file modified app/assets/javascripts/belts.coffee
100644 → 100755
Empty file.
Empty file modified app/assets/javascripts/cable.js
100644 → 100755
Empty file.
Empty file modified app/assets/javascripts/channels/.keep
100644 → 100755
Empty file.
Empty file modified app/assets/javascripts/examples.coffee
100644 → 100755
Empty file.
3 changes: 0 additions & 3 deletions app/assets/javascripts/external_examples.coffee

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/javascripts/external_katas.coffee

This file was deleted.

Empty file modified app/assets/javascripts/katas.coffee
100644 → 100755
Empty file.
Empty file modified app/assets/javascripts/ping.coffee
100644 → 100755
Empty file.
Empty file modified app/assets/javascripts/users.coffee
100644 → 100755
Empty file.
Empty file modified app/assets/stylesheets/application.scss
100644 → 100755
Empty file.
Empty file modified app/assets/stylesheets/belts.scss
100644 → 100755
Empty file.
Empty file modified app/assets/stylesheets/examples.scss
100644 → 100755
Empty file.
3 changes: 0 additions & 3 deletions app/assets/stylesheets/external_examples.scss

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/stylesheets/external_katas.scss

This file was deleted.

Empty file modified app/assets/stylesheets/katas.scss
100644 → 100755
Empty file.
Empty file modified app/assets/stylesheets/ping.scss
100644 → 100755
Empty file.
Empty file modified app/assets/stylesheets/users.scss
100644 → 100755
Empty file.
Empty file modified app/channels/application_cable/channel.rb
100644 → 100755
Empty file.
Empty file modified app/channels/application_cable/connection.rb
100644 → 100755
Empty file.
Empty file modified app/controllers/application_controller.rb
100644 → 100755
Empty file.
Empty file modified app/controllers/belts_controller.rb
100644 → 100755
Empty file.
Empty file modified app/controllers/concerns/.keep
100644 → 100755
Empty file.
Empty file modified app/controllers/examples_controller.rb
100644 → 100755
Empty file.
52 changes: 0 additions & 52 deletions app/controllers/external_examples_controller.rb

This file was deleted.

40 changes: 0 additions & 40 deletions app/controllers/external_katas_controller.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/controllers/katas_controller.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ class KatasController < ApplicationController

def index
@katas = Kata.all
@external_katas = ExternalKata.all
end

def show
Expand Down
Empty file modified app/controllers/ping_controller.rb
100644 → 100755
Empty file.
Empty file modified app/controllers/users_controller.rb
100644 → 100755
Empty file.
Empty file modified app/helpers/application_helper.rb
100644 → 100755
Empty file.
Empty file modified app/helpers/belts_helper.rb
100644 → 100755
Empty file.
Empty file modified app/helpers/examples_helper.rb
100644 → 100755
Empty file.
19 changes: 0 additions & 19 deletions app/helpers/external_examples_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/external_katas_helper.rb

This file was deleted.

26 changes: 0 additions & 26 deletions app/helpers/katas_helper.rb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,32 +1,6 @@
module KatasHelper
NO_LINK = ''

def external_examples_button(id)
text = t(:examples)
link_to(text, external_examples_path(id), {class: "btn btn-primary"})
end

def edit_external_kata_button(id)
text = 'mode_edit'
return link_to(text, edit_external_kata_path(id), {class: "material-icons"}) if admin_signed_in?

NO_LINK
end

def add_external_kata_button
text = t(:add_external_kata)
return link_to(text, new_external_kata_path, {class: "btn btn-primary"}) if admin_signed_in?

NO_LINK
end

def delete_external_kata_button(id)
text = 'delete'
return link_to(text, external_kata_path(id), { method: :delete, class: "material-icons", id: 'delete', data: {confirm: "Are you sure?"}}) if admin_signed_in?

NO_LINK
end

def delete_belt_button(id)
text = 'delete'
return link_to(text, delete_belt_path(id), { method: :delete, class: "material-icons", id: 'delete', data: {confirm: "Are you sure?"}}) if admin_signed_in?
Expand Down
Empty file modified app/helpers/ping_helper.rb
100644 → 100755
Empty file.
Empty file modified app/helpers/users_helper.rb
100644 → 100755
Empty file.
Empty file modified app/jobs/application_job.rb
100644 → 100755
Empty file.
Empty file modified app/mailers/application_mailer.rb
100644 → 100755
Empty file.
Empty file modified app/models/application_record.rb
100644 → 100755
Empty file.
Empty file modified app/models/belt.rb
100644 → 100755
Empty file.
Empty file modified app/models/concerns/.keep
100644 → 100755
Empty file.
Empty file modified app/models/example.rb
100644 → 100755
Empty file.
16 changes: 0 additions & 16 deletions app/models/external_example.rb

This file was deleted.

13 changes: 0 additions & 13 deletions app/models/external_kata.rb

This file was deleted.

Empty file modified app/models/kata.rb
100644 → 100755
Empty file.
Empty file modified app/models/user.rb
100644 → 100755
Empty file.
Empty file modified app/views/belts/edit.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/confirmations/new.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/mailer/confirmation_instructions.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/mailer/email_changed.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/mailer/password_change.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/mailer/reset_password_instructions.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/mailer/unlock_instructions.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/passwords/edit.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/passwords/new.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/registrations/edit.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/registrations/new.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/sessions/new.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/shared/_links.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/devise/unlocks/new.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/examples/edit.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/examples/index.html.erb
100644 → 100755
Empty file.
21 changes: 0 additions & 21 deletions app/views/external_examples/edit.html.erb

This file was deleted.

34 changes: 0 additions & 34 deletions app/views/external_examples/index.html.erb

This file was deleted.

9 changes: 0 additions & 9 deletions app/views/external_katas/_form.html.erb

This file was deleted.

14 changes: 0 additions & 14 deletions app/views/external_katas/edit.html.erb

This file was deleted.

14 changes: 0 additions & 14 deletions app/views/external_katas/new.html.erb

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/katas/_external_katas_links.html.erb

This file was deleted.

Empty file modified app/views/katas/_form.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/katas/_katas_links.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/katas/_new_belt.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/katas/edit.html.erb
100644 → 100755
Empty file.
2 changes: 0 additions & 2 deletions app/views/katas/index.html.erb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@
<p>
<ul>
<%= render 'katas_links', note: @katas %>
<%= render 'external_katas_links', note: @external_katas %>
</lu>
</p>
<p>
<%= add_kata_button %>
<%= add_external_kata_button %>
</p>
</p>
</div>
Expand Down
Empty file modified app/views/katas/new.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/katas/show.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/layouts/application.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/layouts/mailer.html.erb
100644 → 100755
Empty file.
Empty file modified app/views/layouts/mailer.text.erb
100644 → 100755
Empty file.
Empty file modified app/views/users/index.html.erb
100644 → 100755
Empty file.
Empty file modified config.ru
100644 → 100755
Empty file.
Empty file modified config/application.rb
100644 → 100755
Empty file.
Empty file modified config/boot.rb
100644 → 100755
Empty file.
Empty file modified config/cable.yml
100644 → 100755
Empty file.
Empty file modified config/database.yml
100644 → 100755
Empty file.
Empty file modified config/environment.rb
100644 → 100755
Empty file.
Empty file modified config/environments/development.rb
100644 → 100755
Empty file.
Empty file modified config/environments/production.rb
100644 → 100755
Empty file.
Empty file modified config/environments/test.rb
100644 → 100755
Empty file.
Empty file modified config/initializers/application_controller_renderer.rb
100644 → 100755
Empty file.
Empty file modified config/initializers/assets.rb
100644 → 100755
Empty file.
Empty file modified config/initializers/backtrace_silencers.rb
100644 → 100755
Empty file.
Empty file modified config/initializers/cookies_serializer.rb
100644 → 100755
Empty file.
Empty file modified config/initializers/devise.rb
100644 → 100755
Empty file.
Empty file modified config/initializers/filter_parameter_logging.rb
100644 → 100755
Empty file.
Empty file modified config/initializers/inflections.rb
100644 → 100755
Empty file.
Empty file modified config/initializers/mime_types.rb
100644 → 100755
Empty file.
Empty file modified config/initializers/wrap_parameters.rb
100644 → 100755
Empty file.
Empty file modified config/locales/devise.en.yml
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion config/locales/en.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ en:
edit_example: 'Edit Example'
my_examples: 'My Examples'
home: 'Home'
add_external_kata: 'Add external Kata'
add_kata_url: 'Add kata from URL'
save: 'Save'
new_kata: 'New Kata'
Expand Down
Empty file modified config/puma.rb
100644 → 100755
Empty file.
8 changes: 0 additions & 8 deletions config/routes.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,5 @@
get '/examples/edit/:id' => 'examples#edit', as: :edit_example
patch '/examples/update/:id' => 'examples#update', as: :update_example

resources :external_katas

get '/external_examples/:kata_id' => 'external_examples#index', as: :external_examples
post '/external_examples/create/:id' => 'external_examples#create', as: :external_example
delete '/external_examples/delete/:id/:kata_id' => 'external_examples#destroy', as: :delete_external_example
get '/external_examples/edit/:id' => 'external_examples#edit', as: :edit_external_example
patch '/external_examples/update/:id' => 'external_examples#update', as: :update_external_example

post '/ping' => 'ping#ping', as: :ping
end
Empty file modified config/secrets.yml
100644 → 100755
Empty file.
Empty file modified config/spring.rb
100644 → 100755
Empty file.
Empty file modified db/migrate/20171104095005_create_katas.rb
100644 → 100755
Empty file.
Empty file modified db/migrate/20171106100426_devise_create_users.rb
100644 → 100755
Empty file.
Empty file modified db/migrate/20171106162401_add_admin_to_users.rb
100644 → 100755
Empty file.
Empty file modified db/migrate/20171114185245_create_belts.rb
100644 → 100755
Empty file.
Empty file modified db/migrate/20171116172525_add_kata_to_belt.rb
100644 → 100755
Empty file.
Empty file modified db/migrate/20171118193929_create_examples.rb
100644 → 100755
Empty file.
Empty file modified db/migrate/20171125183735_add_user_to_example.rb
100644 → 100755
Empty file.
Empty file modified db/migrate/20171201152640_add_image_to_belt.rb
100644 → 100755
Empty file.
10 changes: 0 additions & 10 deletions db/migrate/20171201170740_create_external_katas.rb

This file was deleted.

10 changes: 0 additions & 10 deletions db/migrate/20171205204613_create_external_examples.rb

This file was deleted.

5 changes: 0 additions & 5 deletions db/migrate/20171205205327_add_kata_to_external_example.rb

This file was deleted.

Loading

0 comments on commit 3480f53

Please sign in to comment.