canvas_webex 0.15 → 0.18.1

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 CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTcxY2QzY2I3ZDhjZjZiOGY3YzYyMGFhZjM1ZDI4MTFjOTU0Y2MyZg==
5
- data.tar.gz: !binary |-
6
- MWZhM2U2YzA1MTE4Mjc0NGI2ZmEyMGYzNDBlZTBiMjQxMzQ1ODI1MA==
2
+ SHA256:
3
+ metadata.gz: b4f6429868e9156bd7273d37351d21adfb167af7bf30f6e88caad677bebbc31c
4
+ data.tar.gz: ce7af5905b5006ba66e2641a9947b152408e9cee83078b64f8a25db4620f5703
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YWUwYzA4Y2ZmYjNhMzQ5ZjI2MmRkYzAyZDA0YjVjZTM0MDNkOGNlNWMxZmUy
10
- M2FhYzNhMzFlYWQ4OWM5NDM1NGViOGZkMzk0ODU3OGY4NTEzNWZlYWNjZjE3
11
- Yjc2YTM0OGQyNDZiNjA0NTViMWMwM2YxMGQxZjRjNGVkZTg5N2E=
12
- data.tar.gz: !binary |-
13
- NTI3MjBhYTc3MTZhMDZmM2RmZDE0ODlmMDY5N2Y0YzNlYTQ2NTNjYjFmYzEz
14
- ODc4ZDkwNGU2ZWYxOTNkNzBmOTgzYmY0Y2Y4NTkxODAwZGNiZjYyNDVmMTVj
15
- MjdiZmI3YmIxZTVkY2JmYTU3NjAyNTYxNDk2NGFkYzNhOTViNDQ=
6
+ metadata.gz: a79bd8c7fe977b978c447bfd3721af2e30da82a7406db086ef34ad3caec70c9311177fb7cf2f6965d65e8071bc2395c342c2306b26033c6eeca7b22150a8e804
7
+ data.tar.gz: 2f0391558635992f9bb2d88142ad62152e1de6189e3151b50326e1757b929e7d8d5a28692e4f4194840d5dac5708e66e21f8de2c936f182d171fa3da5b30bf55
data/canvas_webex.gemspec CHANGED
@@ -17,6 +17,8 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = %w{app lib}
19
19
 
20
+ gem.add_dependency 'railties'
21
+
20
22
  gem.add_development_dependency 'rake'
21
23
  gem.add_development_dependency 'rspec'
22
24
  gem.add_development_dependency 'nokogiri'
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Copyright (C) 2021 - present Instructure, Inc.
5
+ #
6
+ # This file is part of Canvas.
7
+ #
8
+ # Canvas is free software: you can redistribute it and/or modify it under
9
+ # the terms of the GNU Affero General Public License as published by the Free
10
+ # Software Foundation, version 3 of the License.
11
+ #
12
+ # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
13
+ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14
+ # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
15
+ # details.
16
+ #
17
+ # You should have received a copy of the GNU Affero General Public License along
18
+ # with this program. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+ # this CANVAS_ZEITWERK constant flag is defined in canvas' "application.rb"
21
+ # from an env var. It should be temporary,
22
+ # and removed once we've fully upgraded to zeitwerk autoloading.
23
+ if defined?(CANVAS_ZEITWERK) && CANVAS_ZEITWERK
24
+
25
+ # it's standard practice to ignore parts of the project
26
+ # that intentionally don't follow the zeitwerk pattern
27
+ # because they do something like monkeypatch a constant
28
+ # defined elsewhere https://github.com/fxn/zeitwerk#use-case-files-that-do-not-follow-the-conventions.
29
+ #
30
+ # these extensions are required explicitly by the gem engine when it's ready to patch,
31
+ # so that they can modify constants defined in a third part gem,
32
+ # and so don't need to be autoloaded
33
+ Rails.autoloaders.main.ignore("#{__dir__}/../../lib/canvas_webex/version.rb")
34
+ end
@@ -15,6 +15,7 @@
15
15
  # You should have received a copy of the GNU Affero General Public License along
16
16
  # with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  #
18
+ require 'canvas_webex/version'
18
19
 
19
20
  module Canvas
20
21
  module Plugins
@@ -38,7 +38,7 @@ module Canvas
38
38
  if valid?(filtered_settings)
39
39
  filtered_settings
40
40
  else
41
- plugin_setting.errors.add_to_base(I18n.t('canvas.plugins.errors.all_fields_required', 'All fields are required'))
41
+ plugin_setting.errors.add(:base, I18n.t('canvas.plugins.errors.all_fields_required', 'All fields are required'))
42
42
  false
43
43
  end
44
44
  end
@@ -17,6 +17,6 @@
17
17
  #
18
18
 
19
19
  module CanvasWebex
20
- VERSION = "0.15"
20
+ VERSION = "0.18.1"
21
21
  end
22
22
 
data/lib/canvas_webex.rb CHANGED
@@ -16,30 +16,15 @@
16
16
  # with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  #
18
18
 
19
- require_dependency "canvas_webex/version"
20
-
21
19
  module CanvasWebex
22
20
  class ConnectionError < StandardError; end
23
21
 
24
- class Railtie < Rails::Railtie; end
25
- Railtie.config.to_prepare do
26
- view_path = File.join(File.dirname(__FILE__), '..', 'app', 'views')
27
- unless ApplicationController.view_paths.include?(view_path)
28
- ApplicationController.view_paths.unshift(view_path)
29
- end
30
-
31
- path = File.expand_path('../app/models', File.dirname(__FILE__))
32
- ActiveSupport::Dependencies.autoload_paths << path unless ActiveSupport::Dependencies.autoload_paths.include? path
22
+ class Engine < Rails::Engine
23
+ config.paths['lib'].eager_load!
33
24
 
34
- require_dependency File.expand_path('../app/models/cisco_webex_conference.rb', File.dirname(__FILE__))
35
- require_dependency "canvas/plugins/validators/cisco_webex_validator"
36
- require_dependency "canvas/plugins/cisco_webex"
37
- require_dependency "canvas_webex/webex_session"
38
- require_dependency "canvas_webex/service"
39
- require_dependency "canvas_webex/training"
40
- require_dependency "canvas_webex/meeting"
41
-
42
- Canvas::Plugins::CiscoWebex.new
25
+ config.to_prepare do
26
+ Canvas::Plugins::CiscoWebex.new
27
+ end
43
28
  end
44
29
 
45
30
  # Public: Find the plugin configuration.
data/spec/spec_helper.rb CHANGED
@@ -1,13 +1,13 @@
1
- require 'canvas_webex/webex_session'
2
- require 'canvas_webex/service'
3
- require 'canvas_webex/meeting'
4
- require 'canvas_webex/training'
5
1
  require 'nokogiri'
6
2
  require 'uri'
7
3
  require 'net/http'
8
4
  require 'webmock/rspec'
9
5
  require 'pry'
10
6
 
7
+ require 'active_support/dependencies'
8
+ ActiveSupport::Dependencies.autoload_paths << File.expand_path(File.join(__FILE__, '../../lib'))
9
+ ActiveSupport::Dependencies.hook!
10
+
11
11
  class Object
12
12
  def blank?
13
13
  respond_to?(:empty?) ? empty? : !self
metadata CHANGED
@@ -1,83 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_webex
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.15'
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-05 00:00:00.000000000 Z
11
+ date: 2021-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rake
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ! '>='
31
+ - - ">="
18
32
  - !ruby/object:Gem::Version
19
33
  version: '0'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ! '>='
38
+ - - ">="
25
39
  - !ruby/object:Gem::Version
26
40
  version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ! '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ! '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: nokogiri
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ! '>='
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
61
  version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ! '>='
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: webmock
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ! '>='
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
75
  version: '0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ! '>='
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: pry
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ! '>='
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
89
  version: '0'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ! '>='
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
83
97
  description: Canvas WebEx is an Cisco Webex plugin for the Instructure Canvas LMS.
@@ -89,7 +103,7 @@ executables: []
89
103
  extensions: []
90
104
  extra_rdoc_files: []
91
105
  files:
92
- - .gitignore
106
+ - ".gitignore"
93
107
  - Gemfile
94
108
  - LICENSE.txt
95
109
  - README.md
@@ -97,6 +111,7 @@ files:
97
111
  - app/models/cisco_webex_conference.rb
98
112
  - app/views/plugins/_webex_settings.html.erb
99
113
  - canvas_webex.gemspec
114
+ - config/initializers/zeitwerk.rb
100
115
  - lib/canvas/plugins/cisco_webex.rb
101
116
  - lib/canvas/plugins/validators/cisco_webex_validator.rb
102
117
  - lib/canvas_webex.rb
@@ -129,17 +144,16 @@ require_paths:
129
144
  - lib
130
145
  required_ruby_version: !ruby/object:Gem::Requirement
131
146
  requirements:
132
- - - ! '>='
147
+ - - ">="
133
148
  - !ruby/object:Gem::Version
134
149
  version: '0'
135
150
  required_rubygems_version: !ruby/object:Gem::Requirement
136
151
  requirements:
137
- - - ! '>='
152
+ - - ">="
138
153
  - !ruby/object:Gem::Version
139
154
  version: '0'
140
155
  requirements: []
141
- rubyforge_project:
142
- rubygems_version: 2.3.0
156
+ rubygems_version: 3.0.3
143
157
  signing_key:
144
158
  specification_version: 4
145
159
  summary: Cisco WebEx integration for Instructure Canvas (http://instructure.com).
@@ -158,4 +172,3 @@ test_files:
158
172
  - spec/lib/canvas_webex/webex_session_spec.rb
159
173
  - spec/models/cisco_webex_conference_spec.rb
160
174
  - spec/spec_helper.rb
161
- has_rdoc: