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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b148ff08f404bafecb769acb5181da3177cc8289aa472aa728e1554b4fa7972f
4
- data.tar.gz: e293950f2fb6ac0001db7952e8beed68223e8787c2cca25a81acb1cbcf537ada
3
+ metadata.gz: 69ba6e4f082182e0130d775aab7cec4a4e4fb6e62c1526b6227c0c367feb4653
4
+ data.tar.gz: e9e7f70adf4ed3eade38d02210785bd8047cb3b28dc9cd31fc512526fa5e4bbf
5
5
  SHA512:
6
- metadata.gz: a8c767d80487c3cee2763767f89847dff9adb95424e5b503a1bd27c7f3a232c17edb2ec7c8c41cb0234b109da3010921ada35f84d409fe5b02e80b9e6b8f54e8
7
- data.tar.gz: 78882a547e13033000d0176b3b6a3daa899095a54ac0ccfeb26f4bbdad62d4304361b843b81b4c6004edb58752e1703efba0e13026e5ba3421312e08fd2576c4
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
@@ -1,5 +1,5 @@
1
1
  module OmbuLabs
2
2
  module Notifications
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  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.3
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: 2023-05-26 00:00:00.000000000 Z
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.3.7
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