Module: TeamsConnector
- Defined in:
- lib/teams_connector.rb,
lib/teams_connector/builder.rb,
lib/teams_connector/testing.rb,
lib/teams_connector/version.rb,
lib/teams_connector/matchers.rb,
lib/teams_connector/post_job.rb,
lib/teams_connector/notification.rb,
lib/teams_connector/configuration.rb,
lib/teams_connector/matchers/with.rb,
lib/teams_connector/notification/message.rb,
lib/teams_connector/matchers/expected_number.rb,
lib/teams_connector/notification/adaptive_card.rb,
lib/teams_connector/matchers/have_sent_notification_to.rb
Defined Under Namespace
Modules: Matchers
Classes: Builder, Configuration, Notification, PostJob, Testing
Constant Summary
collapse
- VERSION =
'0.1.6'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
16
17
18
|
# File 'lib/teams_connector.rb', line 16
def self.configuration
@configuration ||= Configuration.new
end
|
28
29
30
31
|
# File 'lib/teams_connector.rb', line 28
def self.testing
require 'teams_connector/testing'
@testing ||= Testing.new
end
|
Class Method Details
24
25
26
|
# File 'lib/teams_connector.rb', line 24
def self.configure
yield configuration
end
|
45
46
47
48
49
50
51
52
|
# File 'lib/teams_connector.rb', line 45
def self.gem_root
spec = Gem::Specification.find_by_name('teams_connector')
begin
spec.gem_dir
rescue NoMethodError
project_root
end
end
|
.project_root ⇒ Object
38
39
40
41
42
43
|
# File 'lib/teams_connector.rb', line 38
def self.project_root
return Rails.root if defined?(Rails)
return Bundler.root if defined?(Bundler)
Dir.pwd
end
|
20
21
22
|
# File 'lib/teams_connector.rb', line 20
def self.reset
@configuration = Configuration.new
end
|
.reset_testing ⇒ Object
33
34
35
36
|
# File 'lib/teams_connector.rb', line 33
def self.reset_testing
require 'teams_connector/testing'
@testing = Testing.new
end
|