tuttle 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -2
  3. data/README.md +1 -1
  4. data/app/assets/images/tuttle/favicon.ico +0 -0
  5. data/app/controllers/tuttle/application_controller.rb +2 -5
  6. data/app/controllers/tuttle/cancancan_controller.rb +5 -2
  7. data/app/controllers/tuttle/gems_controller.rb +19 -0
  8. data/app/controllers/tuttle/rails_controller.rb +6 -0
  9. data/app/controllers/tuttle/ruby_controller.rb +23 -0
  10. data/app/helpers/tuttle/application_helper.rb +5 -0
  11. data/app/views/layouts/tuttle/application.html.erb +24 -7
  12. data/app/views/tuttle/cancancan/_rule_table.html.erb +1 -1
  13. data/app/views/tuttle/cancancan/index.html.erb +1 -1
  14. data/app/views/tuttle/cancancan/rule_tester.html.erb +2 -2
  15. data/app/views/tuttle/gems/http_clients.html.erb +35 -0
  16. data/app/views/tuttle/gems/json.html.erb +31 -0
  17. data/app/views/tuttle/gems/other.html.erb +16 -0
  18. data/app/views/tuttle/rails/cache.html.erb +27 -1
  19. data/app/views/tuttle/rails/database.html.erb +21 -0
  20. data/app/views/tuttle/rails/index.html.erb +16 -6
  21. data/app/views/tuttle/rails/instrumentation.html.erb +1 -1
  22. data/app/views/tuttle/rails/models.html.erb +1 -1
  23. data/app/views/tuttle/ruby/miscellaneous.html.erb +12 -0
  24. data/app/views/tuttle/ruby/tuning.html.erb +117 -0
  25. data/config/routes.rb +8 -1
  26. data/lib/tuttle.rb +1 -1
  27. data/lib/tuttle/engine.rb +48 -7
  28. data/lib/tuttle/version.rb +1 -1
  29. metadata +12 -108
  30. data/app/assets/stylesheets/scaffold.css +0 -56
  31. data/test/controllers/tuttle/cancancan_controller_test.rb +0 -60
  32. data/test/controllers/tuttle/devise_controller_test.rb +0 -12
  33. data/test/controllers/tuttle/home_controller_test.rb +0 -13
  34. data/test/controllers/tuttle/rails_controller_test.rb +0 -71
  35. data/test/controllers/tuttle/ruby_controller_test.rb +0 -12
  36. data/test/dummy/Gemfile.lock +0 -142
  37. data/test/dummy/README.rdoc +0 -261
  38. data/test/dummy/Rakefile +0 -7
  39. data/test/dummy/app/assets/javascripts/application.js +0 -15
  40. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  41. data/test/dummy/app/controllers/application_controller.rb +0 -3
  42. data/test/dummy/app/helpers/application_helper.rb +0 -2
  43. data/test/dummy/app/models/ability.rb +0 -7
  44. data/test/dummy/app/models/user.rb +0 -6
  45. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  46. data/test/dummy/config.ru +0 -4
  47. data/test/dummy/config/application.rb +0 -52
  48. data/test/dummy/config/boot.rb +0 -11
  49. data/test/dummy/config/database.yml +0 -25
  50. data/test/dummy/config/environment.rb +0 -5
  51. data/test/dummy/config/environments/development.rb +0 -30
  52. data/test/dummy/config/environments/test.rb +0 -38
  53. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  54. data/test/dummy/config/initializers/devise.rb +0 -257
  55. data/test/dummy/config/initializers/inflections.rb +0 -15
  56. data/test/dummy/config/initializers/mime_types.rb +0 -5
  57. data/test/dummy/config/initializers/secret_token.rb +0 -7
  58. data/test/dummy/config/initializers/session_store.rb +0 -8
  59. data/test/dummy/config/initializers/tuttle.rb +0 -3
  60. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  61. data/test/dummy/config/locales/en.yml +0 -5
  62. data/test/dummy/config/routes.rb +0 -5
  63. data/test/dummy/db/migrate/20141229204528_devise_create_users.rb +0 -42
  64. data/test/dummy/db/schema.rb +0 -34
  65. data/test/dummy/public/404.html +0 -26
  66. data/test/dummy/public/422.html +0 -26
  67. data/test/dummy/public/500.html +0 -25
  68. data/test/dummy/public/favicon.ico +0 -0
  69. data/test/dummy/script/rails +0 -6
  70. data/test/dummy/test/fixtures/users.yml +0 -6
  71. data/test/dummy/test/models/user_test.rb +0 -7
  72. data/test/dummy/tmp/cache/assets/test/sprockets/00091e0cb6df543a8e704290f4dec8db +0 -0
  73. data/test/dummy/tmp/cache/assets/test/sprockets/11599cd5b5d6a0a58a5e98c0902e1997 +0 -0
  74. data/test/dummy/tmp/cache/assets/test/sprockets/9b2e26c1e54d4ff5ae04270e8f03907f +0 -0
  75. data/test/dummy/tmp/cache/assets/test/sprockets/a65793481a75afa9f660d1032ee66ef5 +0 -0
  76. data/test/dummy/tmp/cache/assets/test/sprockets/d9450766086a9f3f994e8c4a2273bfaa +0 -0
  77. data/test/dummy/tmp/cache/assets/test/sprockets/e117b0425a7b9daef8a213c1a2203f00 +0 -0
  78. data/test/integration/navigation_test.rb +0 -9
  79. data/test/test_helper.rb +0 -37
  80. data/test/tuttle_test.rb +0 -7
  81. data/test/unit/tuttle/note_test.rb +0 -9
@@ -1,15 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
11
- #
12
- # These inflection rules are supported but not enabled by default:
13
- # ActiveSupport::Inflector.inflections do |inflect|
14
- # inflect.acronym 'RESTful'
15
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '04311887702485dd883e366b23cbcec7af9dc4fd915b43775fdfaaaf058aecfbe8c4cefb5afdcf50ed442b7479e482b42c18ee3ea65edc03c499c0f006f023cf'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store
@@ -1,3 +0,0 @@
1
- Tuttle.setup do |config|
2
- config.automount_engine = true
3
- end
@@ -1,14 +0,0 @@
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]
9
- end
10
-
11
- # Disable root element in JSON by default.
12
- ActiveSupport.on_load(:active_record) do
13
- self.include_root_in_json = false
14
- end
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,5 +0,0 @@
1
- Rails.application.routes.draw do
2
-
3
- devise_for :users
4
-
5
- end
@@ -1,42 +0,0 @@
1
- class DeviseCreateUsers < ActiveRecord::Migration
2
- def change
3
- create_table(:users) do |t|
4
- ## Database authenticatable
5
- t.string :email, null: false, default: ""
6
- t.string :encrypted_password, null: false, default: ""
7
-
8
- ## Recoverable
9
- t.string :reset_password_token
10
- t.datetime :reset_password_sent_at
11
-
12
- ## Rememberable
13
- t.datetime :remember_created_at
14
-
15
- ## Trackable
16
- t.integer :sign_in_count, default: 0, null: false
17
- t.datetime :current_sign_in_at
18
- t.datetime :last_sign_in_at
19
- t.string :current_sign_in_ip
20
- t.string :last_sign_in_ip
21
-
22
- ## Confirmable
23
- # t.string :confirmation_token
24
- # t.datetime :confirmed_at
25
- # t.datetime :confirmation_sent_at
26
- # t.string :unconfirmed_email # Only if using reconfirmable
27
-
28
- ## Lockable
29
- # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
30
- # t.string :unlock_token # Only if unlock strategy is :email or :both
31
- # t.datetime :locked_at
32
-
33
-
34
- t.timestamps
35
- end
36
-
37
- add_index :users, :email, unique: true
38
- add_index :users, :reset_password_token, unique: true
39
- # add_index :users, :confirmation_token, unique: true
40
- # add_index :users, :unlock_token, unique: true
41
- end
42
- end
@@ -1,34 +0,0 @@
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: 20141229204528) do
15
-
16
- create_table "users", force: :cascade do |t|
17
- t.string "email", default: "", null: false
18
- t.string "encrypted_password", default: "", null: false
19
- t.string "reset_password_token"
20
- t.datetime "reset_password_sent_at"
21
- t.datetime "remember_created_at"
22
- t.integer "sign_in_count", default: 0, null: false
23
- t.datetime "current_sign_in_at"
24
- t.datetime "last_sign_in_at"
25
- t.string "current_sign_in_ip"
26
- t.string "last_sign_in_ip"
27
- t.datetime "created_at"
28
- t.datetime "updated_at"
29
- end
30
-
31
- add_index "users", ["email"], name: "index_users_on_email", unique: true
32
- add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
33
-
34
- end
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,6 +0,0 @@
1
- one:
2
- id: 1
3
- email: "user1@test.com"
4
- two:
5
- id: 2
6
- email: "user2@test.com"
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class UserTest < ActiveSupport::TestCase
4
- # test "the truth" do
5
- # assert true
6
- # end
7
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
5
-
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
@@ -1,37 +0,0 @@
1
- # Configure Rails Environment
2
- ENV['RAILS_ENV'] = 'test'
3
-
4
- require 'simplecov'
5
- SimpleCov.start 'rails'
6
-
7
- if ENV['CODECLIMATE_REPO_TOKEN']
8
- require 'codeclimate-test-reporter'
9
- CodeClimate::TestReporter.start
10
- end
11
-
12
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
13
- require 'rails/test_help'
14
-
15
- Rails.backtrace_cleaner.remove_silencers!
16
-
17
- # Load support files
18
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
19
-
20
- # Load fixtures from the engine
21
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
22
- ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
23
- end
24
-
25
- class ActiveSupport::TestCase
26
- # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
27
- fixtures :all
28
-
29
- # Add more helper methods to be used by all tests here...
30
- end
31
-
32
- class ActionController::TestCase
33
- include Devise::TestHelpers
34
- setup do
35
- @routes = Tuttle::Engine.routes
36
- end
37
- end
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class TuttleTest < ActiveSupport::TestCase
4
- test 'truth' do
5
- assert_kind_of Module, Tuttle
6
- end
7
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Tuttle
4
- class NoteTest < ActiveSupport::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- end
9
- end