Permalink
Please sign in to comment.
Showing
with
3,214 additions
and 0 deletions.
- +19 −0 .gitignore
- +2 −0 .rspec
- +47 −0 Gemfile
- +169 −0 Gemfile.lock
- +2 −0 README.md
- +6 −0 Rakefile
- +6 −0 app/assets/javascripts/application.js
- +2 −0 app/assets/javascripts/home.js
- +2 −0 app/assets/javascripts/mocks.js
- +8 −0 app/assets/stylesheets/application.css.scss
- +1,491 −0 app/assets/stylesheets/foundation_and_overrides.scss
- +3 −0 app/assets/stylesheets/home.scss
- +3 −0 app/assets/stylesheets/mocks.scss
- +5 −0 app/controllers/application_controller.rb
- +6 −0 app/controllers/duckrails/home_controller.rb
- +82 −0 app/controllers/duckrails/mocks_controller.rb
- +2 −0 app/helpers/application_helper.rb
- +4 −0 app/helpers/duckrails/home_helper.rb
- +4 −0 app/helpers/duckrails/mocks_helper.rb
- +3 −0 app/models/duckrails/header.rb
- +14 −0 app/models/duckrails/mock.rb
- +2 −0 app/views/duckrails/home/index.html.erb
- +12 −0 app/views/duckrails/mocks/_form.html.erb
- +3 −0 app/views/duckrails/mocks/edit.html.erb
- +43 −0 app/views/duckrails/mocks/index.html.erb
- +3 −0 app/views/duckrails/mocks/new.html.erb
- +26 −0 app/views/layouts/application.html.erb
- +1 −0 app/views/shared/_footer.html.erb
- +1 −0 app/views/shared/_header.html.erb
- +3 −0 bin/bundle
- +9 −0 bin/rails
- +9 −0 bin/rake
- +29 −0 bin/setup
- +15 −0 bin/spring
- +4 −0 config.ru
- +26 −0 config/application.rb
- +3 −0 config/boot.rb
- +27 −0 config/database.yml
- +5 −0 config/environment.rb
- +41 −0 config/environments/development.rb
- +79 −0 config/environments/production.rb
- +42 −0 config/environments/test.rb
- +11 −0 config/initializers/assets.rb
- +7 −0 config/initializers/backtrace_silencers.rb
- +3 −0 config/initializers/cookies_serializer.rb
- +4 −0 config/initializers/filter_parameter_logging.rb
- +16 −0 config/initializers/inflections.rb
- +4 −0 config/initializers/mime_types.rb
- +3 −0 config/initializers/session_store.rb
- +165 −0 config/initializers/simple_form.rb
- +107 −0 config/initializers/simple_form_foundation.rb
- +14 −0 config/initializers/wrap_parameters.rb
- +23 −0 config/locales/en.yml
- +31 −0 config/locales/simple_form.en.yml
- +11 −0 config/routes.rb
- +22 −0 config/secrets.yml
- +19 −0 db/migrate/20160304203732_create_duckrails_mocks.rb
- +11 −0 db/migrate/20160304204007_create_duckrails_headers.rb
- +43 −0 db/schema.rb
- 0 db/seeds.rb
- +28 −0 lib/duckrails/router.rb
- +13 −0 lib/templates/erb/scaffold/_form.html.erb
- +67 −0 public/404.html
- +67 −0 public/422.html
- +66 −0 public/500.html
- 0 public/favicon.ico
- +5 −0 public/robots.txt
- +12 −0 spec/controllers/duckrails/home_controller_spec.rb
- +5 −0 spec/controllers/duckrails/mocks_controller_spec.rb
- +15 −0 spec/helpers/duckrails/home_helper_spec.rb
- +15 −0 spec/helpers/duckrails/mocks_helper_spec.rb
- +5 −0 spec/models/duckrails/body_spec.rb
- +5 −0 spec/models/duckrails/header_spec.rb
- +5 −0 spec/models/duckrails/mock_spec.rb
- +52 −0 spec/rails_helper.rb
- +92 −0 spec/spec_helper.rb
- +5 −0 spec/views/duckrails/home/index.html.erb_spec.rb
19
.gitignore
| @@ -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 |
169
Gemfile.lock
| @@ -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 |
6
Rakefile
| @@ -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