ombu_labs-notifications 0.1.3 → 0.1.4
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/app/services/slack_notifier.rb +19 -0
- data/lib/ombu_labs/notifications/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69ba6e4f082182e0130d775aab7cec4a4e4fb6e62c1526b6227c0c367feb4653
|
4
|
+
data.tar.gz: e9e7f70adf4ed3eade38d02210785bd8047cb3b28dc9cd31fc512526fa5e4bbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fab8784f3a6f991b26f51137683f3b41e9732a0bb8932da5f28f51f9d5f6807f26ed2a45dea72678fa8213832c2fe2e54f87cbf77f2e840d00490b86df7b4187
|
7
|
+
data.tar.gz: b8deedce93ca05a31d281a37f25887433f0df4536f84863447146a9331c6bdadabfdd287f1cbeb41f83876b8c66d30c902223df9a38598f7549caf67a04bcce1
|
@@ -4,6 +4,11 @@ class SlackNotifier
|
|
4
4
|
notifier.ping contact_message(contact)
|
5
5
|
end
|
6
6
|
|
7
|
+
def notify_new_free_roadmap(free_roadmap)
|
8
|
+
notifier = Slack::Notifier.new ENV["SLACK_ROADRUNNER_WEBHOOK_URL"]
|
9
|
+
notifier.ping free_roadmap_message(free_roadmap)
|
10
|
+
end
|
11
|
+
|
7
12
|
private
|
8
13
|
|
9
14
|
def contact_message(contact)
|
@@ -22,4 +27,18 @@ class SlackNotifier
|
|
22
27
|
|
23
28
|
TEXT
|
24
29
|
end
|
30
|
+
|
31
|
+
def free_roadmap_message(free_roadmap)
|
32
|
+
<<~TEXT
|
33
|
+
Hello <!subteam^#{ENV["SLACK_GROUP_ID"]}>!\n
|
34
|
+
#{free_roadmap.name.titleize} has submitted a request in our Free Roadmap form :tada: :
|
35
|
+
Email: #{free_roadmap.email}
|
36
|
+
Current Ruby Version: #{free_roadmap.current_ruby_version}
|
37
|
+
Current Rails Version: #{free_roadmap.current_rails_version}
|
38
|
+
Target Rails Version: #{free_roadmap.target_rails_version}
|
39
|
+
|
40
|
+
Cheers,\nYour OmbuLabs Robot!
|
41
|
+
|
42
|
+
TEXT
|
43
|
+
end
|
25
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ombu_labs-notifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fiona
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
|
-
rubygems_version: 3.
|
98
|
+
rubygems_version: 3.5.6
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: A gem to send notifications via email, Slack
|