jail 0.1.1 → 0.2.0

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 (64) hide show
  1. data/README.md +11 -4
  2. data/app/models/jail/cdnjs.rb +22 -5
  3. data/app/models/jail/github.rb +2 -1
  4. data/app/views/jail/cdnjs/show.html.erb +14 -7
  5. data/lib/jail/version.rb +1 -1
  6. metadata +39 -127
  7. data/test/dummy/README.rdoc +0 -261
  8. data/test/dummy/Rakefile +0 -7
  9. data/test/dummy/app/assets/javascripts/application.js +0 -15
  10. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  11. data/test/dummy/app/controllers/application_controller.rb +0 -3
  12. data/test/dummy/app/helpers/application_helper.rb +0 -2
  13. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  14. data/test/dummy/config.ru +0 -4
  15. data/test/dummy/config/application.rb +0 -59
  16. data/test/dummy/config/boot.rb +0 -10
  17. data/test/dummy/config/database.yml +0 -25
  18. data/test/dummy/config/environment.rb +0 -5
  19. data/test/dummy/config/environments/development.rb +0 -37
  20. data/test/dummy/config/environments/production.rb +0 -67
  21. data/test/dummy/config/environments/test.rb +0 -37
  22. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  23. data/test/dummy/config/initializers/inflections.rb +0 -15
  24. data/test/dummy/config/initializers/jail.rb +0 -4
  25. data/test/dummy/config/initializers/mime_types.rb +0 -5
  26. data/test/dummy/config/initializers/secret_token.rb +0 -7
  27. data/test/dummy/config/initializers/session_store.rb +0 -8
  28. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  29. data/test/dummy/config/jail.inmates.yml +0 -4
  30. data/test/dummy/config/locales/en.yml +0 -5
  31. data/test/dummy/config/routes.rb +0 -4
  32. data/test/dummy/db/development.sqlite3 +0 -0
  33. data/test/dummy/log/development.log +0 -42628
  34. data/test/dummy/public/404.html +0 -26
  35. data/test/dummy/public/422.html +0 -26
  36. data/test/dummy/public/500.html +0 -25
  37. data/test/dummy/public/favicon.ico +0 -0
  38. data/test/dummy/script/rails +0 -6
  39. data/test/dummy/tmp/cache/assets/C78/2D0/sprockets%2F049c9453e2d03a13463ad15568c8521f +0 -0
  40. data/test/dummy/tmp/cache/assets/CBE/8B0/sprockets%2F45f037820eca943af359e247967580cf +0 -0
  41. data/test/dummy/tmp/cache/assets/CFA/570/sprockets%2Ffe84858b375458bd418cb85c8f84803c +0 -0
  42. data/test/dummy/tmp/cache/assets/D15/AE0/sprockets%2F3fd1b8f0c577d6bd951f40857132eb74 +0 -0
  43. data/test/dummy/tmp/cache/assets/D29/F40/sprockets%2F15ce02e64710b4fa1d3a21f6270fdc74 +0 -0
  44. data/test/dummy/tmp/cache/assets/D34/BF0/sprockets%2F18a1d0fec1cd74447e07b02d058a289d +0 -0
  45. data/test/dummy/tmp/cache/assets/D46/B30/sprockets%2F36e940335f9fc2de06c6d8aad556d822 +0 -0
  46. data/test/dummy/tmp/cache/assets/D4B/BC0/sprockets%2Fa3a0b270a0bb2747cad33e424662fba2 +0 -0
  47. data/test/dummy/tmp/cache/assets/D76/A70/sprockets%2F360c75fdc8ed695061e3b08da593d7cc +0 -0
  48. data/test/dummy/tmp/cache/assets/D81/500/sprockets%2F23e9c52aedd634ee57e66663cffa1868 +0 -0
  49. data/test/dummy/tmp/cache/assets/D9E/630/sprockets%2F0efe12c5dc1902e8cf8f6844b7bca812 +0 -0
  50. data/test/dummy/tmp/cache/assets/DDF/C90/sprockets%2Fc4dff5559e7f91debdf5da74921c028e +0 -0
  51. data/test/dummy/tmp/cache/assets/E64/6F0/sprockets%2F8f0e4dd1aa8c3ddea851bf771dce8f8c +0 -0
  52. data/test/dummy/tmp/pids/server.pid +0 -1
  53. data/test/dummy/vendor/assets/images/chosen-sprite.png +0 -0
  54. data/test/dummy/vendor/assets/javascripts/chosen.jquery.js +0 -952
  55. data/test/dummy/vendor/assets/stylesheets/chosen.css +0 -392
  56. data/test/fixtures/jqplug/jqgithubs.yml +0 -11
  57. data/test/functional/jqplug/githubs_controller_test.rb +0 -51
  58. data/test/functional/jqplug/jqgithubs_controller_test.rb +0 -51
  59. data/test/integration/navigation_test.rb +0 -10
  60. data/test/jqplug_test.rb +0 -7
  61. data/test/test_helper.rb +0 -15
  62. data/test/unit/helpers/jqplug/githubs_helper_test.rb +0 -6
  63. data/test/unit/helpers/jqplug/jqgithubs_helper_test.rb +0 -6
  64. data/test/unit/jqplug/jqgithub_test.rb +0 -9
@@ -1,51 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Jail
4
- class GithubsControllerTest < ActionController::TestCase
5
- setup do
6
- @github = jqgithubs(:one)
7
- end
8
-
9
- test "should get index" do
10
- get :index
11
- assert_response :success
12
- assert_not_nil assigns(:jqgithubs)
13
- end
14
-
15
- test "should get new" do
16
- get :new
17
- assert_response :success
18
- end
19
-
20
- test "should create jqgithub" do
21
- assert_difference('Github.count') do
22
- post :create, :jqgithub => { }
23
- end
24
-
25
- assert_redirected_to jqgithub_path(assigns(:jqgithub))
26
- end
27
-
28
- test "should show jqgithub" do
29
- get :show, :id => @github
30
- assert_response :success
31
- end
32
-
33
- test "should get edit" do
34
- get :edit, :id => @github
35
- assert_response :success
36
- end
37
-
38
- test "should update jqgithub" do
39
- put :update, :id => @github, :jqgithub => { }
40
- assert_redirected_to jqgithub_path(assigns(:jqgithub))
41
- end
42
-
43
- test "should destroy jqgithub" do
44
- assert_difference('Github.count', -1) do
45
- delete :destroy, :id => @github
46
- end
47
-
48
- assert_redirected_to jqgithubs_path
49
- end
50
- end
51
- end
@@ -1,10 +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
10
-
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class JailTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, Jail
6
- end
7
- end
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Jail
4
- class GithubsHelperTest < ActionView::TestCase
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Jail
4
- class GithubsHelperTest < ActionView::TestCase
5
- end
6
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Jail
4
- class GithubTest < ActiveSupport::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- end
9
- end