quick_dry 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +34 -0
- data/app/assets/javascripts/quick_dry/application.js +15 -0
- data/app/assets/javascripts/quick_dry/quick_dry.js +2 -0
- data/app/assets/stylesheets/quick_dry/application.css +15 -0
- data/app/assets/stylesheets/quick_dry/quick_dry.css +4 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/controllers/quick_dry/application_controller.rb +4 -0
- data/app/controllers/quick_dry/quick_dry_controller.rb +195 -0
- data/app/helpers/quick_dry/application_helper.rb +4 -0
- data/app/helpers/quick_dry/quick_dry_helper.rb +4 -0
- data/app/views/layouts/quick_dry/application.html.erb +14 -0
- data/app/views/quick_dry/_form.html.erb +26 -0
- data/app/views/quick_dry/_model_table.html.erb +31 -0
- data/app/views/quick_dry/edit.html.erb +10 -0
- data/app/views/quick_dry/index.html.erb +1 -0
- data/app/views/quick_dry/new.html.erb +10 -0
- data/app/views/quick_dry/show.html.erb +12 -0
- data/config/routes.rb +14 -0
- data/lib/quick_dry/engine.rb +6 -0
- data/lib/quick_dry/version.rb +3 -0
- data/lib/quick_dry.rb +3 -4
- data/lib/tasks/quick_dry_tasks.rake +4 -0
- data/test/controllers/quick_dry/quick_dry_controller_test.rb +9 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/javascripts/comments.js +2 -0
- data/test/dummy/app/assets/javascripts/posts.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/assets/stylesheets/comments.css +4 -0
- data/test/dummy/app/assets/stylesheets/posts.css +4 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/comments_controller.rb +58 -0
- data/test/dummy/app/controllers/posts_controller.rb +58 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/comments_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/comment.rb +2 -0
- data/test/dummy/app/models/post.rb +2 -0
- data/test/dummy/app/views/comments/_form.html.erb +25 -0
- data/test/dummy/app/views/comments/edit.html.erb +6 -0
- data/test/dummy/app/views/comments/index.html.erb +27 -0
- data/test/dummy/app/views/comments/new.html.erb +5 -0
- data/test/dummy/app/views/comments/show.html.erb +14 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/posts/_form.html.erb +25 -0
- data/test/dummy/app/views/posts/edit.html.erb +6 -0
- data/test/dummy/app/views/posts/index.html.erb +27 -0
- data/test/dummy/app/views/posts/new.html.erb +5 -0
- data/test/dummy/app/views/posts/show.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +8 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20141014142634_create_comments.rb +10 -0
- data/test/dummy/db/migrate/20141014142659_create_posts.rb +10 -0
- data/test/dummy/db/schema.rb +30 -0
- data/test/dummy/log/development.log +15567 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/comments_controller_test.rb +49 -0
- data/test/dummy/test/controllers/posts_controller_test.rb +49 -0
- data/test/dummy/test/fixtures/comments.yml +9 -0
- data/test/dummy/test/fixtures/posts.yml +9 -0
- data/test/dummy/test/helpers/comments_helper_test.rb +4 -0
- data/test/dummy/test/helpers/posts_helper_test.rb +4 -0
- data/test/dummy/test/models/comment_test.rb +7 -0
- data/test/dummy/test/models/post_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0dd5163be147a1ee2f93f5abb9a0fd32 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1e8f75a6b5b33970fb8e397347caa0a1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/206236caf137ae7dd3cae0aac897f4b2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/24204f742af588c8166d3160b500d20f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/37c31816befce62c4f5d52026a23287d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/412ab75ab0fc70ac2d7f96418d4c1d43 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/416150dc3ac35079c94273cc46e90aa6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5384ad85f52d3272dbc64d46ef3876a4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5eccfa2606a027a0b509bdb46f03d701 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/73510521b58326509331d135128ad92e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8244190c3c743ce907b74854faabcb0b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8288ddc9a4e9f4196c50036ee1eda4b8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/886a4f506bfbabff5d6b407aedbb80d0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/952d783e1981cc269524cb5a2890409d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9c7264225a395d67bc2a2d9181a19571 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aa844f54ad5b802f23b19beb26e81435 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ae2c9e8cd2d7afe29ae08c4e049fb57a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b3ee3550542b56da2fa6ed034609648c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b86ae80f0c5c9fda3e212df5e11179c7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b9de2fc513b54720f71ab4d2a2df3004 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c40e7666f601d5bab36418512d6b76ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c5cb5b72ad5b8996bce2c68b02dff3a5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c85016e7bbd4f3adbb7635d01f85d39b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cba44a33ec96893200b56f4695586826 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d066c004d1fd26ae76a61303a7a18145 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1ca254e5fdbd2901067c0a9d95e6dd5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e584db490f8a31d32e707b821c61fa75 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e912bd2d77f53416b8fa30878918d082 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f13f0412b3245894f220e57919843e97 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f3dabd6fc74da6af45a775c1ddb019f7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/helpers/quick_dry/quick_dry_helper_test.rb +6 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/quick_dry_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +307 -5
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 89dd41416f7b3fb9998ba032425bb3cc0e72c86a628ebbe465e7ce7c6b60100018b1e3338fd9ca0a4cab5d49b71742f8f36a4e95d51f038358c50f7d329b318b
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: fc36d1d6588c278c44b67467ca971a430d6426b93b467ec5bdf2d8602444a22494e168af9744586a7d60b6ba400e22e2ffd9bf5f7928fa58c601fdc22497b8e7
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
Binary file
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20141014142659) do
|
15
|
+
|
16
|
+
create_table "comments", force: true do |t|
|
17
|
+
t.string "User"
|
18
|
+
t.string "body"
|
19
|
+
t.datetime "created_at"
|
20
|
+
t.datetime "updated_at"
|
21
|
+
end
|
22
|
+
|
23
|
+
create_table "posts", force: true do |t|
|
24
|
+
t.string "name"
|
25
|
+
t.string "content"
|
26
|
+
t.datetime "created_at"
|
27
|
+
t.datetime "updated_at"
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|