lti_public_resources 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 139bfb5a9a7980fe1de8cd993c4fc07a9f7c9ae2
|
4
|
+
data.tar.gz: 79302f9690e1e08801ff10f83cf07c512b61e1a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55cc0465d437bd3b63cb23aee4f38d46e1d4e7d4c6ae42fd74064cd29375d01adb85b3cdbfe8b0eb8798b7fe7374083680a47bed8af72a4f6ed3e9f41e2cf49c
|
7
|
+
data.tar.gz: 9e73387ccf569294e7971bf0cd3c38d16ed4a9acd9dc7baf6d8c3ae5ae82f60e78f03c5a593c89a9d96a256c2b6fcf3f2d78053f7eca8ca8e233dff5fb6f50c5
|
@@ -1,4 +1,6 @@
|
|
1
1
|
require_dependency "lti_public_resources/application_controller"
|
2
|
+
require 'net/http'
|
3
|
+
require 'pry'
|
2
4
|
|
3
5
|
module LtiPublicResources
|
4
6
|
class EmberController < ApplicationController
|
@@ -14,5 +16,11 @@ module LtiPublicResources
|
|
14
16
|
}
|
15
17
|
render layout: false
|
16
18
|
end
|
19
|
+
|
20
|
+
def health_check
|
21
|
+
ok = LtiPublicResources.drivers.length == 5
|
22
|
+
head 200 if ok
|
23
|
+
head 500 unless ok
|
24
|
+
end
|
17
25
|
end
|
18
26
|
end
|
data/config/routes.rb
CHANGED
@@ -7643,3 +7643,160 @@ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
|
7643
7643
|
Started GET "/lti_public_resources/api/lti_apps" for 127.0.0.1 at 2013-12-20 12:08:24 -0700
|
7644
7644
|
Processing by LtiPublicResources::ApiController#lti_apps as */*
|
7645
7645
|
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
7646
|
+
Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/dummy/config/lti_public_resources_config.yml
|
7647
|
+
|
7648
|
+
|
7649
|
+
Started GET "/" for 127.0.0.1 at 2013-12-20 12:32:11 -0700
|
7650
|
+
Processing by Rails::WelcomeController#index as HTML
|
7651
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/templates/rails/welcome/index.html.erb (1.3ms)
|
7652
|
+
Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
|
7653
|
+
|
7654
|
+
|
7655
|
+
Started GET "/health_check" for 127.0.0.1 at 2013-12-20 12:32:15 -0700
|
7656
|
+
|
7657
|
+
ActionController::RoutingError (No route matches [GET] "/health_check"):
|
7658
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
7659
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
7660
|
+
railties (4.0.2) lib/rails/rack/logger.rb:38:in `call_app'
|
7661
|
+
railties (4.0.2) lib/rails/rack/logger.rb:20:in `block in call'
|
7662
|
+
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `block in tagged'
|
7663
|
+
activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in `tagged'
|
7664
|
+
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `tagged'
|
7665
|
+
railties (4.0.2) lib/rails/rack/logger.rb:20:in `call'
|
7666
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
7667
|
+
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
|
7668
|
+
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
|
7669
|
+
activesupport (4.0.2) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
|
7670
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
7671
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/static.rb:64:in `call'
|
7672
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/static.rb:64:in `call'
|
7673
|
+
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
|
7674
|
+
railties (4.0.2) lib/rails/engine.rb:511:in `call'
|
7675
|
+
railties (4.0.2) lib/rails/application.rb:97:in `call'
|
7676
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
7677
|
+
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
|
7678
|
+
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
|
7679
|
+
/Users/eberry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
7680
|
+
/Users/eberry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
7681
|
+
/Users/eberry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
7682
|
+
|
7683
|
+
|
7684
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
|
7685
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
|
7686
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
|
7687
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.3ms)
|
7688
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (24.5ms)
|
7689
|
+
|
7690
|
+
|
7691
|
+
Started HEAD "/health_check" for 127.0.0.1 at 2013-12-20 12:32:29 -0700
|
7692
|
+
|
7693
|
+
ActionController::RoutingError (No route matches [HEAD] "/health_check"):
|
7694
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
7695
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
7696
|
+
railties (4.0.2) lib/rails/rack/logger.rb:38:in `call_app'
|
7697
|
+
railties (4.0.2) lib/rails/rack/logger.rb:20:in `block in call'
|
7698
|
+
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `block in tagged'
|
7699
|
+
activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in `tagged'
|
7700
|
+
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `tagged'
|
7701
|
+
railties (4.0.2) lib/rails/rack/logger.rb:20:in `call'
|
7702
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
7703
|
+
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
|
7704
|
+
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
|
7705
|
+
activesupport (4.0.2) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
|
7706
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
7707
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/static.rb:64:in `call'
|
7708
|
+
actionpack (4.0.2) lib/action_dispatch/middleware/static.rb:64:in `call'
|
7709
|
+
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
|
7710
|
+
railties (4.0.2) lib/rails/engine.rb:511:in `call'
|
7711
|
+
railties (4.0.2) lib/rails/application.rb:97:in `call'
|
7712
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
7713
|
+
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
|
7714
|
+
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
|
7715
|
+
/Users/eberry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
7716
|
+
/Users/eberry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
7717
|
+
/Users/eberry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
7718
|
+
|
7719
|
+
|
7720
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
7721
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
|
7722
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
|
7723
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms)
|
7724
|
+
Rendered /Users/eberry/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (13.7ms)
|
7725
|
+
|
7726
|
+
|
7727
|
+
Started GET "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:32:42 -0700
|
7728
|
+
Processing by LtiPublicResources::EmberController#health_check as HTML
|
7729
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
7730
|
+
|
7731
|
+
|
7732
|
+
Started HEAD "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:32:50 -0700
|
7733
|
+
Processing by LtiPublicResources::EmberController#health_check as */*
|
7734
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
7735
|
+
|
7736
|
+
|
7737
|
+
Started HEAD "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:34:18 -0700
|
7738
|
+
Processing by LtiPublicResources::EmberController#health_check as */*
|
7739
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
7740
|
+
|
7741
|
+
|
7742
|
+
Started HEAD "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:34:19 -0700
|
7743
|
+
Processing by LtiPublicResources::EmberController#health_check as */*
|
7744
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
7745
|
+
|
7746
|
+
|
7747
|
+
Started HEAD "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:34:24 -0700
|
7748
|
+
Processing by LtiPublicResources::EmberController#health_check as */*
|
7749
|
+
Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
|
7750
|
+
|
7751
|
+
|
7752
|
+
Started HEAD "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:35:41 -0700
|
7753
|
+
Processing by LtiPublicResources::EmberController#health_check as */*
|
7754
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
7755
|
+
|
7756
|
+
|
7757
|
+
Started HEAD "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:36:17 -0700
|
7758
|
+
Processing by LtiPublicResources::EmberController#health_check as */*
|
7759
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
7760
|
+
|
7761
|
+
|
7762
|
+
Started HEAD "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:40:49 -0700
|
7763
|
+
Processing by LtiPublicResources::EmberController#health_check as */*
|
7764
|
+
Completed in 119498ms
|
7765
|
+
Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/dummy/config/lti_public_resources_config.yml
|
7766
|
+
|
7767
|
+
|
7768
|
+
Started HEAD "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:43:03 -0700
|
7769
|
+
Processing by LtiPublicResources::EmberController#health_check as */*
|
7770
|
+
Completed in 12034ms
|
7771
|
+
Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/dummy/config/lti_public_resources_config.yml
|
7772
|
+
|
7773
|
+
|
7774
|
+
Started GET "/lti_public_resources" for 127.0.0.1 at 2013-12-20 12:43:29 -0700
|
7775
|
+
Processing by LtiPublicResources::EmberController#app as HTML
|
7776
|
+
Rendered /Users/eberry/Projects/Instructure/lti_public_resources/app/views/lti_public_resources/ember/app.html.erb (1.0ms)
|
7777
|
+
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
7778
|
+
|
7779
|
+
|
7780
|
+
Started GET "/lti_public_resources/api/lti_apps" for 127.0.0.1 at 2013-12-20 12:43:30 -0700
|
7781
|
+
Processing by LtiPublicResources::ApiController#lti_apps as */*
|
7782
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
7783
|
+
|
7784
|
+
|
7785
|
+
Started GET "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:43:34 -0700
|
7786
|
+
Processing by LtiPublicResources::EmberController#health_check as HTML
|
7787
|
+
Completed in 24929ms
|
7788
|
+
Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/dummy/config/lti_public_resources_config.yml
|
7789
|
+
Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/dummy/config/lti_public_resources_config.yml
|
7790
|
+
|
7791
|
+
|
7792
|
+
Started GET "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:45:13 -0700
|
7793
|
+
Processing by LtiPublicResources::EmberController#health_check as HTML
|
7794
|
+
Completed in 37242ms
|
7795
|
+
Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/dummy/config/lti_public_resources_config.yml
|
7796
|
+
|
7797
|
+
|
7798
|
+
Started GET "/lti_public_resources/health_check" for 127.0.0.1 at 2013-12-20 12:45:55 -0700
|
7799
|
+
Processing by LtiPublicResources::EmberController#health_check as HTML
|
7800
|
+
Completed in 8620ms
|
7801
|
+
Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/dummy/config/lti_public_resources_config.yml
|
7802
|
+
Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/dummy/config/lti_public_resources_config.yml
|
data/test/dummy/log/test.log
CHANGED
@@ -15,3 +15,9 @@ Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/
|
|
15
15
|
LtiPublicResourcesTest: test_truth
|
16
16
|
----------------------------------
|
17
17
|
[1m[35m (0.0ms)[0m rollback transaction
|
18
|
+
Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/test/dummy/config/lti_public_resources_config.yml
|
19
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
20
|
+
----------------------------------
|
21
|
+
LtiPublicResourcesTest: test_truth
|
22
|
+
----------------------------------
|
23
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lti_public_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Berry
|
@@ -141,7 +141,6 @@ files:
|
|
141
141
|
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
142
142
|
- test/dummy/tmp/cache/assets/development/sprockets/eec047541657615239a6efd089cd0d7b
|
143
143
|
- test/dummy/tmp/cache/assets/development/sprockets/ffd034e84822331c80a8c0007c62985c
|
144
|
-
- test/dummy/tmp/pids/server.pid
|
145
144
|
- test/helpers/lti_public_resources/api_helper_test.rb
|
146
145
|
- test/helpers/lti_public_resources/ember_helper_test.rb
|
147
146
|
- test/integration/navigation_test.rb
|
@@ -224,7 +223,6 @@ test_files:
|
|
224
223
|
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
225
224
|
- test/dummy/tmp/cache/assets/development/sprockets/eec047541657615239a6efd089cd0d7b
|
226
225
|
- test/dummy/tmp/cache/assets/development/sprockets/ffd034e84822331c80a8c0007c62985c
|
227
|
-
- test/dummy/tmp/pids/server.pid
|
228
226
|
- test/helpers/lti_public_resources/api_helper_test.rb
|
229
227
|
- test/helpers/lti_public_resources/ember_helper_test.rb
|
230
228
|
- test/integration/navigation_test.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
5392
|