lti2 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/lti2/version.rb +1 -1
- data/lti2_tc/Gemfile +14 -0
- data/lti2_tc/Gemfile.lock +94 -0
- data/lti2_tc/MIT-LICENSE +20 -0
- data/lti2_tc/README.rdoc +3 -0
- data/lti2_tc/Rakefile +34 -0
- data/lti2_tc/app/assets/javascripts/lti2_tc/application.js +13 -0
- data/lti2_tc/app/assets/stylesheets/lti2_tc/application.css +13 -0
- data/lti2_tc/app/controllers/lti2_tc/application_controller.rb +13 -0
- data/lti2_tc/app/controllers/lti2_tc/deployment_requests_controller.rb +9 -0
- data/lti2_tc/app/controllers/lti2_tc/tool_consumer_profiles_controller.rb +23 -0
- data/lti2_tc/app/controllers/lti2_tc/tool_proxies_controller.rb +8 -0
- data/lti2_tc/app/controllers/lti2_tc/tool_settings_controller.rb +215 -0
- data/lti2_tc/app/controllers/lti2_tc/tools_controller.rb +361 -0
- data/lti2_tc/app/models/lti2_tc/deployment_request.rb +43 -0
- data/lti2_tc/app/models/lti2_tc/link.rb +24 -0
- data/lti2_tc/app/models/lti2_tc/registry.rb +4 -0
- data/lti2_tc/app/models/lti2_tc/resource.rb +6 -0
- data/lti2_tc/app/models/lti2_tc/tool.rb +12 -0
- data/lti2_tc/app/models/lti2_tc/tool_consumer_profile.rb +4 -0
- data/lti2_tc/app/models/lti2_tc/tool_consumer_registry.rb +24 -0
- data/lti2_tc/app/models/lti2_tc/tool_registration.rb +83 -0
- data/lti2_tc/app/models/lti2_tc/tool_setting.rb +61 -0
- data/lti2_tc/app/services/lti2_tc/authorizer.rb +36 -0
- data/lti2_tc/app/services/lti2_tc/lti2_launch.rb +259 -0
- data/lti2_tc/app/views/layouts/lti2_tc/application.html.erb +14 -0
- data/lti2_tc/app/views/lti2_tc/deployment_requests/show.html.erb +2 -0
- data/lti2_tc/app/views/lti2_tc/tool_consumer_profiles/index.html.erb +2 -0
- data/lti2_tc/app/views/lti2_tc/tool_consumer_profiles/show.html.erb +2 -0
- data/lti2_tc/app/views/lti2_tc/tool_proxies_controller/index.html.erb +2 -0
- data/lti2_tc/app/views/lti2_tc/tool_settings_controller/show.html.erb +2 -0
- data/lti2_tc/app/views/lti2_tc/tool_settings_controller/update.html.erb +2 -0
- data/lti2_tc/app/views/lti2_tc/tools_controller/create.html.erb +2 -0
- data/lti2_tc/app/views/lti2_tc/tools_controller/show.html.erb +2 -0
- data/lti2_tc/bin/rails +8 -0
- data/lti2_tc/config/routes.rb +20 -0
- data/lti2_tc/db/migrate/20140826141858_create_lti2_tool_consumer_tables.rb +94 -0
- data/lti2_tc/db/migrate/20140826150753_create_lti2_tc_resources.rb +37 -0
- data/lti2_tc/db/migrate/20141027193548_insert_tool_guid.rb +5 -0
- data/lti2_tc/lib/lti2_tc.rb +4 -0
- data/lti2_tc/lib/lti2_tc/engine.rb +5 -0
- data/lti2_tc/lib/lti2_tc/version.rb +3 -0
- data/lti2_tc/lib/tasks/lti2_tc_tasks.rake +4 -0
- data/lti2_tc/lti2_tc.gemspec +27 -0
- data/lti2_tc/test/controllers/lti2_tc/deployment_requests_controller_test.rb +11 -0
- data/lti2_tc/test/controllers/lti2_tc/tool_consumer_profiles_controller_test.rb +16 -0
- data/lti2_tc/test/controllers/lti2_tc/tool_proxies_controller_controller_test.rb +11 -0
- data/lti2_tc/test/controllers/lti2_tc/tool_settings_controller_controller_test.rb +16 -0
- data/lti2_tc/test/controllers/lti2_tc/tools_controller_controller_test.rb +16 -0
- data/lti2_tc/test/dummy/README.rdoc +28 -0
- data/lti2_tc/test/dummy/Rakefile +6 -0
- data/lti2_tc/test/dummy/app/assets/javascripts/application.js +13 -0
- data/lti2_tc/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/lti2_tc/test/dummy/app/controllers/application_controller.rb +5 -0
- data/lti2_tc/test/dummy/app/helpers/application_helper.rb +2 -0
- data/lti2_tc/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/lti2_tc/test/dummy/bin/bundle +3 -0
- data/lti2_tc/test/dummy/bin/rails +4 -0
- data/lti2_tc/test/dummy/bin/rake +4 -0
- data/lti2_tc/test/dummy/config.ru +4 -0
- data/lti2_tc/test/dummy/config/application.rb +23 -0
- data/lti2_tc/test/dummy/config/boot.rb +5 -0
- data/lti2_tc/test/dummy/config/database.yml +39 -0
- data/lti2_tc/test/dummy/config/environment.rb +5 -0
- data/lti2_tc/test/dummy/config/environments/development.rb +29 -0
- data/lti2_tc/test/dummy/config/environments/production.rb +80 -0
- data/lti2_tc/test/dummy/config/environments/test.rb +36 -0
- data/lti2_tc/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/lti2_tc/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/lti2_tc/test/dummy/config/initializers/inflections.rb +16 -0
- data/lti2_tc/test/dummy/config/initializers/mime_types.rb +5 -0
- data/lti2_tc/test/dummy/config/initializers/secret_token.rb +12 -0
- data/lti2_tc/test/dummy/config/initializers/session_store.rb +3 -0
- data/lti2_tc/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/lti2_tc/test/dummy/config/locales/en.yml +23 -0
- data/lti2_tc/test/dummy/config/routes.rb +4 -0
- data/lti2_tc/test/dummy/db/database.yml +39 -0
- data/lti2_tc/test/dummy/db/migrate/20131121225051_create_lti2_tc_registries.lti2_tc.rb +55 -0
- data/lti2_tc/test/dummy/db/schema.rb +68 -0
- data/lti2_tc/test/dummy/public/404.html +58 -0
- data/lti2_tc/test/dummy/public/422.html +58 -0
- data/lti2_tc/test/dummy/public/500.html +57 -0
- data/lti2_tc/test/dummy/public/favicon.ico +0 -0
- data/lti2_tc/test/fixtures/lti2_tc/registries.yml +7 -0
- data/lti2_tc/test/helpers/lti2_tc/deployment_requests_helper_test.rb +6 -0
- data/lti2_tc/test/helpers/lti2_tc/tool_consumer_profiles_helper_test.rb +6 -0
- data/lti2_tc/test/helpers/lti2_tc/tool_proxies_controller_helper_test.rb +6 -0
- data/lti2_tc/test/helpers/lti2_tc/tool_settings_controller_helper_test.rb +6 -0
- data/lti2_tc/test/helpers/lti2_tc/tools_controller_helper_test.rb +6 -0
- data/lti2_tc/test/integration/navigation_test.rb +10 -0
- data/lti2_tc/test/lti2_tc_test.rb +7 -0
- data/lti2_tc/test/models/lti2_tc/registries_test.rb +9 -0
- data/lti2_tc/test/test_helper.rb +15 -0
- metadata +93 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Lti2Tc</title>
|
|
5
|
+
<%= stylesheet_link_tag "lti2_tc/application", media: "all" %>
|
|
6
|
+
<%= javascript_include_tag "lti2_tc/application" %>
|
|
7
|
+
<%= csrf_meta_tags %>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<%= yield %>
|
|
12
|
+
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
data/lti2_tc/bin/rails
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
|
|
3
|
+
|
|
4
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
|
5
|
+
ENGINE_PATH = File.expand_path('../../lib/lti2_tc/engine', __FILE__)
|
|
6
|
+
|
|
7
|
+
require 'rails/all'
|
|
8
|
+
require 'rails/engine/commands'
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Lti2Tc::Engine.routes.draw do
|
|
2
|
+
|
|
3
|
+
get 'tool_proxies_controller/index'
|
|
4
|
+
|
|
5
|
+
resources :tool_consumer_profiles
|
|
6
|
+
|
|
7
|
+
resources :deployment_requests
|
|
8
|
+
|
|
9
|
+
resources :tools
|
|
10
|
+
|
|
11
|
+
get 'reregister_continue', :to => "tools#reregister_continue"
|
|
12
|
+
|
|
13
|
+
get 'tool_settings/:tool_guid', :to => 'tool_settings#show'
|
|
14
|
+
get 'tool_settings/:tool_guid/context/:node_id', :to => 'tool_settings#show'
|
|
15
|
+
get 'tool_settings/:tool_guid/ltilink/:node_id', :to => 'tool_settings#show'
|
|
16
|
+
|
|
17
|
+
put 'tool_settings/:tool_guid', :to => 'tool_settings#update'
|
|
18
|
+
put 'tool_settings/:tool_guid/context/:node_id', :to => 'tool_settings#update'
|
|
19
|
+
put 'tool_settings/:tool_guid/ltilink/:node_id', :to => 'tool_settings#update'
|
|
20
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
class CreateLti2ToolConsumerTables < ActiveRecord::Migration
|
|
2
|
+
def up
|
|
3
|
+
create_table :lti2_tc_deployment_requests do |t|
|
|
4
|
+
t.string :reg_key
|
|
5
|
+
t.string :reg_password
|
|
6
|
+
t.string :partner_url
|
|
7
|
+
t.string :status
|
|
8
|
+
t.string :disposition
|
|
9
|
+
t.string :end_registration_id
|
|
10
|
+
t.string :tc_profile_guid
|
|
11
|
+
t.text :tool_proxy_json
|
|
12
|
+
|
|
13
|
+
t.timestamps
|
|
14
|
+
end
|
|
15
|
+
add_index :lti2_tc_deployment_requests, [:tc_profile_guid], :name => :index_deployment_requests_on_tc_profile_guid, :unique => true
|
|
16
|
+
execute('ALTER TABLE lti2_tc_deployment_requests CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;')
|
|
17
|
+
execute("ALTER TABLE lti2_tc_deployment_requests MODIFY `reg_key` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
18
|
+
execute("ALTER TABLE lti2_tc_deployment_requests MODIFY `reg_password` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
19
|
+
execute("ALTER TABLE lti2_tc_deployment_requests MODIFY `partner_url` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
20
|
+
execute("ALTER TABLE lti2_tc_deployment_requests MODIFY `status` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
21
|
+
execute("ALTER TABLE lti2_tc_deployment_requests MODIFY `disposition` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
22
|
+
execute("ALTER TABLE lti2_tc_deployment_requests MODIFY `tc_profile_guid` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
23
|
+
execute("ALTER TABLE lti2_tc_deployment_requests MODIFY `end_registration_id` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
24
|
+
execute("ALTER TABLE lti2_tc_deployment_requests MODIFY `tool_proxy_json` TEXT CHARACTER SET utf8mb4 NULL;")
|
|
25
|
+
|
|
26
|
+
create_table :lti2_tc_registries do |t|
|
|
27
|
+
t.string :name
|
|
28
|
+
t.text :content
|
|
29
|
+
|
|
30
|
+
t.timestamps
|
|
31
|
+
end
|
|
32
|
+
execute('ALTER TABLE lti2_tc_registries CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;')
|
|
33
|
+
execute("ALTER TABLE lti2_tc_registries MODIFY `name` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
34
|
+
execute("ALTER TABLE lti2_tc_registries MODIFY `content` TEXT CHARACTER SET utf8mb4 NULL;")
|
|
35
|
+
|
|
36
|
+
create_table :lti2_tc_tool_consumer_profiles do |t|
|
|
37
|
+
t.string :tc_profile_guid
|
|
38
|
+
t.text :tc_profile
|
|
39
|
+
|
|
40
|
+
t.timestamps
|
|
41
|
+
end
|
|
42
|
+
add_index :lti2_tc_tool_consumer_profiles, [:tc_profile_guid], :name => :index_tool_consumer_profiles_on_tc_profile_guid, :unique => true
|
|
43
|
+
execute('ALTER TABLE lti2_tc_tool_consumer_profiles CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;')
|
|
44
|
+
execute("ALTER TABLE lti2_tc_tool_consumer_profiles MODIFY `tc_profile_guid` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
45
|
+
execute("ALTER TABLE lti2_tc_tool_consumer_profiles MODIFY `tc_profile` TEXT CHARACTER SET utf8mb4 NULL;")
|
|
46
|
+
|
|
47
|
+
create_table :lti2_tc_tool_settings do |t|
|
|
48
|
+
t.integer :tool_id
|
|
49
|
+
t.integer :scopeable_id
|
|
50
|
+
t.string :scopeable_type
|
|
51
|
+
t.string :name
|
|
52
|
+
t.string :value
|
|
53
|
+
|
|
54
|
+
t.timestamps
|
|
55
|
+
end
|
|
56
|
+
execute('ALTER TABLE lti2_tc_tool_settings CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;')
|
|
57
|
+
execute("ALTER TABLE lti2_tc_tool_settings MODIFY `scopeable_type` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
58
|
+
execute("ALTER TABLE lti2_tc_tool_settings MODIFY `name` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
59
|
+
execute("ALTER TABLE lti2_tc_tool_settings MODIFY `value` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
60
|
+
|
|
61
|
+
create_table :lti2_tc_tools do |t|
|
|
62
|
+
t.text :tool_proxy
|
|
63
|
+
t.boolean :is_enabled
|
|
64
|
+
t.string :product_name
|
|
65
|
+
t.string :description
|
|
66
|
+
t.string :key
|
|
67
|
+
t.string :secret
|
|
68
|
+
t.string :status
|
|
69
|
+
t.integer :new_deployment_request_id
|
|
70
|
+
t.string :end_registration_id
|
|
71
|
+
t.string :registration_return_url
|
|
72
|
+
|
|
73
|
+
t.timestamps
|
|
74
|
+
end
|
|
75
|
+
add_index :lti2_tc_tools, [:key], :name => :index_tools_on_key, :unique => true
|
|
76
|
+
execute('ALTER TABLE lti2_tc_tools CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;')
|
|
77
|
+
execute("ALTER TABLE lti2_tc_tools MODIFY `tool_proxy` TEXT CHARACTER SET utf8mb4 NULL;")
|
|
78
|
+
execute("ALTER TABLE lti2_tc_tools MODIFY `product_name` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
79
|
+
execute("ALTER TABLE lti2_tc_tools MODIFY `description` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
80
|
+
execute("ALTER TABLE lti2_tc_tools MODIFY `key` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
81
|
+
execute("ALTER TABLE lti2_tc_tools MODIFY `secret` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
82
|
+
execute("ALTER TABLE lti2_tc_tools MODIFY `status` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
83
|
+
execute("ALTER TABLE lti2_tc_tools MODIFY `registration_return_url` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
84
|
+
execute("ALTER TABLE lti2_tc_tools MODIFY `end_registration_id` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def down
|
|
88
|
+
drop_table :lti2_tc_deployment_requests
|
|
89
|
+
drop_table :lti2_tc_registries
|
|
90
|
+
drop_table :lti2_tc_tool_consumer_profiles
|
|
91
|
+
drop_table :lti2_tc_tool_settings
|
|
92
|
+
drop_table :lti2_tc_tools
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
class CreateLti2TcResources < ActiveRecord::Migration
|
|
2
|
+
def up
|
|
3
|
+
create_table :lti2_tc_resources do |t|
|
|
4
|
+
t.integer :tool_id
|
|
5
|
+
t.string :resource_type
|
|
6
|
+
t.string :resource_name
|
|
7
|
+
t.string :description
|
|
8
|
+
|
|
9
|
+
t.timestamps
|
|
10
|
+
end
|
|
11
|
+
execute('ALTER TABLE lti2_tc_resources CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;')
|
|
12
|
+
execute("ALTER TABLE lti2_tc_resources MODIFY `resource_type` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
13
|
+
execute("ALTER TABLE lti2_tc_resources MODIFY `resource_name` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
14
|
+
execute("ALTER TABLE lti2_tc_resources MODIFY `description` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
15
|
+
|
|
16
|
+
create_table :lti2_tc_links do |t|
|
|
17
|
+
t.string :resource_link_label
|
|
18
|
+
t.boolean :is_enabled
|
|
19
|
+
t.integer :grade_item_id
|
|
20
|
+
t.integer :course_id
|
|
21
|
+
t.integer :resource_id
|
|
22
|
+
t.string :link_parameters
|
|
23
|
+
t.boolean :is_name_permission
|
|
24
|
+
t.boolean :is_email_permissions
|
|
25
|
+
|
|
26
|
+
t.timestamps
|
|
27
|
+
end
|
|
28
|
+
execute('ALTER TABLE lti2_tc_links CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;')
|
|
29
|
+
execute("ALTER TABLE lti2_tc_links MODIFY `resource_link_label` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
30
|
+
execute("ALTER TABLE lti2_tc_links MODIFY `link_parameters` VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;")
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def down
|
|
34
|
+
drop_table :lti2_tc_resources
|
|
35
|
+
drop_table :lti2_tc_links
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
$:.push File.expand_path( '../lib', __FILE__ )
|
|
2
|
+
|
|
3
|
+
# Maintain your gem's version:
|
|
4
|
+
require 'lti2_tc/version'
|
|
5
|
+
|
|
6
|
+
# Describe your gem and declare its dependencies:
|
|
7
|
+
Gem::Specification.new do |s|
|
|
8
|
+
|
|
9
|
+
s.name = 'lti2_tc'
|
|
10
|
+
s.version = Lti2Tc::VERSION
|
|
11
|
+
s.authors = ['John Tibbetts']
|
|
12
|
+
s.email = ['john.tibbetts@ingramcontent.com']
|
|
13
|
+
s.homepage = 'http://vitalsource.com'
|
|
14
|
+
s.summary = 'LTI2 Tool Consumer'
|
|
15
|
+
s.description = 'LTI2 Tool Consumer'
|
|
16
|
+
|
|
17
|
+
s.files = Dir[ '{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.rdoc' ]
|
|
18
|
+
s.test_files = Dir[ 'test/**/*' ]
|
|
19
|
+
|
|
20
|
+
s.required_ruby_version = '~> 2.0.0'
|
|
21
|
+
|
|
22
|
+
s.add_dependency 'rails', '~> 4.1.1'
|
|
23
|
+
s.add_dependency 'mysql2', '~> 0.3.13'
|
|
24
|
+
|
|
25
|
+
s.add_development_dependency 'sqlite3'
|
|
26
|
+
|
|
27
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'test_helper'
|
|
2
|
+
|
|
3
|
+
module Lti2Tc
|
|
4
|
+
class ToolConsumerProfilesControllerTest < ActionController::TestCase
|
|
5
|
+
test "should get index" do
|
|
6
|
+
get :index
|
|
7
|
+
assert_response :success
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
test "should get show" do
|
|
11
|
+
get :show
|
|
12
|
+
assert_response :success
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'test_helper'
|
|
2
|
+
|
|
3
|
+
module Lti2Tc
|
|
4
|
+
class ToolSettingsControllerControllerTest < ActionController::TestCase
|
|
5
|
+
test "should get show" do
|
|
6
|
+
get :show
|
|
7
|
+
assert_response :success
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
test "should get update" do
|
|
11
|
+
get :update
|
|
12
|
+
assert_response :success
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'test_helper'
|
|
2
|
+
|
|
3
|
+
module Lti2Tc
|
|
4
|
+
class ToolsControllerControllerTest < ActionController::TestCase
|
|
5
|
+
test "should get create" do
|
|
6
|
+
get :create
|
|
7
|
+
assert_response :success
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
test "should get show" do
|
|
11
|
+
get :show
|
|
12
|
+
assert_response :success
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
== README
|
|
2
|
+
|
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
|
4
|
+
application up and running.
|
|
5
|
+
|
|
6
|
+
Things you may want to cover:
|
|
7
|
+
|
|
8
|
+
* Ruby version
|
|
9
|
+
|
|
10
|
+
* System dependencies
|
|
11
|
+
|
|
12
|
+
* Configuration
|
|
13
|
+
|
|
14
|
+
* Database creation
|
|
15
|
+
|
|
16
|
+
* Database initialization
|
|
17
|
+
|
|
18
|
+
* How to run the test suite
|
|
19
|
+
|
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
|
21
|
+
|
|
22
|
+
* Deployment instructions
|
|
23
|
+
|
|
24
|
+
* ...
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
|
28
|
+
<tt>rake doc:app</tt>.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
+
// listed below.
|
|
3
|
+
//
|
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
|
6
|
+
//
|
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
+
// compiled file.
|
|
9
|
+
//
|
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
|
11
|
+
// about supported directives.
|
|
12
|
+
//
|
|
13
|
+
//= require_tree .
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
+
* listed below.
|
|
4
|
+
*
|
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
+
*
|
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
|
10
|
+
*
|
|
11
|
+
*= require_self
|
|
12
|
+
*= require_tree .
|
|
13
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Dummy</title>
|
|
5
|
+
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
|
6
|
+
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
|
7
|
+
<%= csrf_meta_tags %>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<%= yield %>
|
|
12
|
+
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|