Permalink
Browse files

Initial commit.

  • Loading branch information...
0 parents commit b681e49c8240835b416bf0a9fbe7a3cfa29143e6 @iridakos committed Mar 5, 2016
Showing with 3,214 additions and 0 deletions.
  1. +19 −0 .gitignore
  2. +2 −0 .rspec
  3. +47 −0 Gemfile
  4. +169 −0 Gemfile.lock
  5. +2 −0 README.md
  6. +6 −0 Rakefile
  7. +6 −0 app/assets/javascripts/application.js
  8. +2 −0 app/assets/javascripts/home.js
  9. +2 −0 app/assets/javascripts/mocks.js
  10. +8 −0 app/assets/stylesheets/application.css.scss
  11. +1,491 −0 app/assets/stylesheets/foundation_and_overrides.scss
  12. +3 −0 app/assets/stylesheets/home.scss
  13. +3 −0 app/assets/stylesheets/mocks.scss
  14. +5 −0 app/controllers/application_controller.rb
  15. +6 −0 app/controllers/duckrails/home_controller.rb
  16. +82 −0 app/controllers/duckrails/mocks_controller.rb
  17. +2 −0 app/helpers/application_helper.rb
  18. +4 −0 app/helpers/duckrails/home_helper.rb
  19. +4 −0 app/helpers/duckrails/mocks_helper.rb
  20. +3 −0 app/models/duckrails/header.rb
  21. +14 −0 app/models/duckrails/mock.rb
  22. +2 −0 app/views/duckrails/home/index.html.erb
  23. +12 −0 app/views/duckrails/mocks/_form.html.erb
  24. +3 −0 app/views/duckrails/mocks/edit.html.erb
  25. +43 −0 app/views/duckrails/mocks/index.html.erb
  26. +3 −0 app/views/duckrails/mocks/new.html.erb
  27. +26 −0 app/views/layouts/application.html.erb
  28. +1 −0 app/views/shared/_footer.html.erb
  29. +1 −0 app/views/shared/_header.html.erb
  30. +3 −0 bin/bundle
  31. +9 −0 bin/rails
  32. +9 −0 bin/rake
  33. +29 −0 bin/setup
  34. +15 −0 bin/spring
  35. +4 −0 config.ru
  36. +26 −0 config/application.rb
  37. +3 −0 config/boot.rb
  38. +27 −0 config/database.yml
  39. +5 −0 config/environment.rb
  40. +41 −0 config/environments/development.rb
  41. +79 −0 config/environments/production.rb
  42. +42 −0 config/environments/test.rb
  43. +11 −0 config/initializers/assets.rb
  44. +7 −0 config/initializers/backtrace_silencers.rb
  45. +3 −0 config/initializers/cookies_serializer.rb
  46. +4 −0 config/initializers/filter_parameter_logging.rb
  47. +16 −0 config/initializers/inflections.rb
  48. +4 −0 config/initializers/mime_types.rb
  49. +3 −0 config/initializers/session_store.rb
  50. +165 −0 config/initializers/simple_form.rb
  51. +107 −0 config/initializers/simple_form_foundation.rb
  52. +14 −0 config/initializers/wrap_parameters.rb
  53. +23 −0 config/locales/en.yml
  54. +31 −0 config/locales/simple_form.en.yml
  55. +11 −0 config/routes.rb
  56. +22 −0 config/secrets.yml
  57. +19 −0 db/migrate/20160304203732_create_duckrails_mocks.rb
  58. +11 −0 db/migrate/20160304204007_create_duckrails_headers.rb
  59. +43 −0 db/schema.rb
  60. 0 db/seeds.rb
  61. +28 −0 lib/duckrails/router.rb
  62. +13 −0 lib/templates/erb/scaffold/_form.html.erb
  63. +67 −0 public/404.html
  64. +67 −0 public/422.html
  65. +66 −0 public/500.html
  66. 0 public/favicon.ico
  67. +5 −0 public/robots.txt
  68. +12 −0 spec/controllers/duckrails/home_controller_spec.rb
  69. +5 −0 spec/controllers/duckrails/mocks_controller_spec.rb
  70. +15 −0 spec/helpers/duckrails/home_helper_spec.rb
  71. +15 −0 spec/helpers/duckrails/mocks_helper_spec.rb
  72. +5 −0 spec/models/duckrails/body_spec.rb
  73. +5 −0 spec/models/duckrails/header_spec.rb
  74. +5 −0 spec/models/duckrails/mock_spec.rb
  75. +52 −0 spec/rails_helper.rb
  76. +92 −0 spec/spec_helper.rb
  77. +5 −0 spec/views/duckrails/home/index.html.erb_spec.rb
@@ -0,0 +1,19 @@
+# See https://help.github.com/articles/ignoring-files for more about ignoring files.
+#
+# If you find yourself ignoring temporary files generated by your text editor
+# or operating system, you probably want to add a global ignore instead:
+# git config --global core.excludesfile '~/.gitignore_global'
+
+# Ignore bundler config.
+/.bundle
+
+# Ignore the default SQLite database.
+/db/*.sqlite3
+/db/*.sqlite3-journal
+
+# Ignore all logfiles and tempfiles.
+/log/*
+!/log/.keep
+/tmp
+
+*/**/.keep
2 .rspec
@@ -0,0 +1,2 @@
+--color
+--require spec_helper
47 Gemfile
@@ -0,0 +1,47 @@
+source 'https://rubygems.org'
+
+
+# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
+gem 'rails', '4.2.5.2'
+
+# Use SCSS for stylesheets
+gem 'sass-rails', '~> 5.0'
+# Use Uglifier as compressor for JavaScript assets
+gem 'uglifier', '>= 1.3.0'
+
+# Use jquery as the JavaScript library
+gem 'jquery-rails'
+
+gem 'font-awesome-rails'
+
+gem 'foundation-rails'
+
+gem 'simple_form'
+
+gem 'mysql2'
+
+# Use ActiveModel has_secure_password
+# gem 'bcrypt', '~> 3.1.7'
+
+# Use Unicorn as the app server
+# gem 'unicorn'
+
+# Use Capistrano for deployment
+# gem 'capistrano-rails', group: :development
+
+group :development, :test do
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
+ gem 'byebug'
+
+ gem 'rspec-rails', '~> 3.0'
+end
+
+group :development do
+ # Access an IRB console on exception pages or by using <%= console %> in views
+ gem 'web-console', '~> 2.0'
+
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
+ gem 'spring'
+
+ gem 'table_flipper'
+end
@@ -0,0 +1,169 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionmailer (4.2.5.2)
+ actionpack (= 4.2.5.2)
+ actionview (= 4.2.5.2)
+ activejob (= 4.2.5.2)
+ mail (~> 2.5, >= 2.5.4)
+ rails-dom-testing (~> 1.0, >= 1.0.5)
+ actionpack (4.2.5.2)
+ actionview (= 4.2.5.2)
+ activesupport (= 4.2.5.2)
+ rack (~> 1.6)
+ rack-test (~> 0.6.2)
+ rails-dom-testing (~> 1.0, >= 1.0.5)
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
+ actionview (4.2.5.2)
+ activesupport (= 4.2.5.2)
+ builder (~> 3.1)
+ erubis (~> 2.7.0)
+ rails-dom-testing (~> 1.0, >= 1.0.5)
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
+ activejob (4.2.5.2)
+ activesupport (= 4.2.5.2)
+ globalid (>= 0.3.0)
+ activemodel (4.2.5.2)
+ activesupport (= 4.2.5.2)
+ builder (~> 3.1)
+ activerecord (4.2.5.2)
+ activemodel (= 4.2.5.2)
+ activesupport (= 4.2.5.2)
+ arel (~> 6.0)
+ activesupport (4.2.5.2)
+ 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.3)
+ binding_of_caller (0.7.2)
+ debug_inspector (>= 0.0.1)
+ builder (3.2.2)
+ byebug (8.2.2)
+ concurrent-ruby (1.0.1)
+ debug_inspector (0.0.2)
+ diff-lcs (1.2.5)
+ erubis (2.7.0)
+ execjs (2.6.0)
+ font-awesome-rails (4.4.0.0)
+ railties (>= 3.2, < 5.0)
+ foundation-rails (5.5.3.2)
+ railties (>= 3.1.0)
+ sass (>= 3.3.0, < 3.5)
+ globalid (0.3.6)
+ activesupport (>= 4.1.0)
+ i18n (0.7.0)
+ jquery-rails (4.1.0)
+ rails-dom-testing (~> 1.0)
+ railties (>= 4.2.0)
+ thor (>= 0.14, < 2.0)
+ json (1.8.3)
+ loofah (2.0.3)
+ nokogiri (>= 1.5.9)
+ mail (2.6.3)
+ mime-types (>= 1.16, < 3)
+ mime-types (2.99.1)
+ mini_portile2 (2.0.0)
+ minitest (5.8.4)
+ mysql2 (0.3.20)
+ nokogiri (1.6.7.2)
+ mini_portile2 (~> 2.0.0.rc2)
+ rack (1.6.4)
+ rack-test (0.6.3)
+ rack (>= 1.0)
+ rails (4.2.5.2)
+ actionmailer (= 4.2.5.2)
+ actionpack (= 4.2.5.2)
+ actionview (= 4.2.5.2)
+ activejob (= 4.2.5.2)
+ activemodel (= 4.2.5.2)
+ activerecord (= 4.2.5.2)
+ activesupport (= 4.2.5.2)
+ bundler (>= 1.3.0, < 2.0)
+ railties (= 4.2.5.2)
+ sprockets-rails
+ rails-deprecated_sanitizer (1.0.3)
+ activesupport (>= 4.2.0.alpha)
+ rails-dom-testing (1.0.7)
+ activesupport (>= 4.2.0.beta, < 5.0)
+ nokogiri (~> 1.6.0)
+ rails-deprecated_sanitizer (>= 1.0.1)
+ rails-html-sanitizer (1.0.3)
+ loofah (~> 2.0)
+ railties (4.2.5.2)
+ actionpack (= 4.2.5.2)
+ activesupport (= 4.2.5.2)
+ rake (>= 0.8.7)
+ thor (>= 0.18.1, < 2.0)
+ rake (10.5.0)
+ rspec-core (3.3.2)
+ rspec-support (~> 3.3.0)
+ rspec-expectations (3.3.1)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.3.0)
+ rspec-mocks (3.3.2)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.3.0)
+ rspec-rails (3.3.3)
+ actionpack (>= 3.0, < 4.3)
+ activesupport (>= 3.0, < 4.3)
+ railties (>= 3.0, < 4.3)
+ rspec-core (~> 3.3.0)
+ rspec-expectations (~> 3.3.0)
+ rspec-mocks (~> 3.3.0)
+ rspec-support (~> 3.3.0)
+ rspec-support (3.3.0)
+ sass (3.4.21)
+ sass-rails (5.0.4)
+ railties (>= 4.0.0, < 5.0)
+ sass (~> 3.1)
+ sprockets (>= 2.8, < 4.0)
+ sprockets-rails (>= 2.0, < 4.0)
+ tilt (>= 1.1, < 3)
+ simple_form (3.2.0)
+ actionpack (~> 4.0)
+ activemodel (~> 4.0)
+ spring (1.6.4)
+ sprockets (3.5.2)
+ concurrent-ruby (~> 1.0)
+ rack (> 1, < 3)
+ sprockets-rails (3.0.4)
+ actionpack (>= 4.0)
+ activesupport (>= 4.0)
+ sprockets (>= 3.0.0)
+ table_flipper (0.0.1)
+ thor (0.19.1)
+ thread_safe (0.3.5)
+ tilt (2.0.2)
+ tzinfo (1.2.2)
+ thread_safe (~> 0.1)
+ uglifier (2.7.2)
+ execjs (>= 0.3.0)
+ json (>= 1.8.0)
+ web-console (2.3.0)
+ activemodel (>= 4.0)
+ binding_of_caller (>= 0.7.2)
+ railties (>= 4.0)
+ sprockets-rails (>= 2.0, < 4.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ byebug
+ font-awesome-rails
+ foundation-rails
+ jquery-rails
+ mysql2
+ rails (= 4.2.5.2)
+ rspec-rails (~> 3.0)
+ sass-rails (~> 5.0)
+ simple_form
+ spring
+ table_flipper
+ uglifier (>= 1.3.0)
+ web-console (~> 2.0)
+
+BUNDLED WITH
+ 1.10.6
@@ -0,0 +1,2 @@
+# DuckRails
+A Rails web application that mocks external API endpoints
@@ -0,0 +1,6 @@
+# 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
@@ -0,0 +1,6 @@
+//= require jquery
+//= require jquery_ujs
+//= require foundation
+//= require_tree .
+
+$(function(){ $(document).foundation(); });
@@ -0,0 +1,2 @@
+// Place all the behaviors and hooks related to the matching controller here.
+// All this logic will automatically be available in application.js.
@@ -0,0 +1,2 @@
+// Place all the behaviors and hooks related to the matching controller here.
+// All this logic will automatically be available in application.js.
@@ -0,0 +1,8 @@
+/*
+ *= require_tree .
+ *= require_self
+ //= require foundation_and_overrides
+
+*/
+
+@import "font-awesome";
Oops, something went wrong.

0 comments on commit b681e49

Please sign in to comment.