minitel 0.4.0 → 0.6.0

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
- SHA1:
3
- metadata.gz: 1a746a71bce4fb28ed51a555f0669724e7bfd133
4
- data.tar.gz: 2981f18e075b1d60d55cc82cf9ca46eb07e3c60b
2
+ SHA256:
3
+ metadata.gz: 2679d02c44fb5cacd49f7f3cd433c5fcad5bfb1fbdc25282e84dd0c1dc65c143
4
+ data.tar.gz: 76b0b7ea4ecbfb70785170b9b5000e0679109a883c2f518f2c7bbe2b446ae7a7
5
5
  SHA512:
6
- metadata.gz: 056e50f9fe5f3793f9eb9833051c6aa9a50f9cfe10e8effb6ff07da42410513e6fecc4ec01928595c0307c128f64ae592338a793c54a5e5e98e95e93137572c2
7
- data.tar.gz: b9b491b75dee0c22f75d96ebc5d808bd4716b3aefc332d73440378f07a371603c8ab2ed8defa2a958d1a2a2b937b83828810357b6d081143ca709b03835d91d4
6
+ metadata.gz: 594a0a8f1e1d1a80fec4ce3f6c39095573b01c876ca303ac1c525fe3e127848a2926ad570dc972618bf3f824b9d3c92908627b58569f13504824426fe4f98b96
7
+ data.tar.gz: 95c7d0c4d815156c7fd795b4212a8c68fba242ac284d521d068e4238f0311bbd40fac7013a1510d12937e65d41d9657898e666d9b3f5cfd09cd91ce12ef8b732
@@ -0,0 +1,27 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ['2.5', '2.6', '2.7', '3.0']
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby
19
+ uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: ${{ matrix.ruby-version }}
22
+ bundler-cache: true
23
+ - name: Build and test with Rake
24
+ run: |
25
+ gem install bundler
26
+ bundle install --jobs 4 --retry 3
27
+ bundle exec rspec
data/CODEOWNERS ADDED
@@ -0,0 +1,2 @@
1
+ # Comment line immediately above ownership line is reserved for related gus information. Please be careful while editing.
2
+ #ECCN:Open Source
data/Readme.md CHANGED
@@ -4,7 +4,43 @@ A 𝕋𝔼𝕃𝔼𝕏 client
4
4
  [![Gem Version](https://badge.fury.io/rb/minitel.svg)](http://badge.fury.io/rb/minitel)
5
5
  [![Build Status](https://travis-ci.org/heroku/minitel.svg?branch=master)](https://travis-ci.org/heroku/minitel)
6
6
 
7
- ## Usage
7
+ ## Producer Credentials
8
+
9
+ Get credentials to use by following the instructions here: https://github.com/heroku/engineering-docs/blob/master/components/telex/user-guide.md
10
+
11
+ ## Installing Minitel
12
+ You'll need to add our private gemserver first, see here: <https://gemgate-heroku-internal-gems.herokuapp.com/setup-instructions>
13
+
14
+ ## Quick Setup
15
+ This will help you send a notification to just yourself, as a sanity check that everything is set up properly
16
+
17
+ Before you do this:
18
+ - Get your producer credentials (above)
19
+ - get `minitel` (above) and `dotenv` installed locally
20
+ - Grab your user account id, for example by doing: `heroku api get /account | jq '.id' -r`
21
+
22
+ ```
23
+ # .env
24
+ TELEX_URL = 'https://user:pass@telex.heroku.com'
25
+ MY_USER_ID = '123'
26
+ ```
27
+
28
+ ```
29
+ # minitel-testing.rb or irb
30
+ require 'dotenv/load'
31
+ require 'minitel'
32
+
33
+ client = Minitel::Client.new(ENV['TELEX_URL'])
34
+
35
+ message = client.notify_user(user_uuid: ENV['MY_USER_ID'], title: 'Test Notification', body: 'Test Notification Body.')
36
+ puts "message " + message['id'] + " sent"
37
+ ```
38
+
39
+ Once you run this, you should receive both:
40
+ - receive an email (eventually, depending on the backlog)
41
+ - see this in Dashboard's Notification Center
42
+
43
+ ## Usage Examples
8
44
 
9
45
  ``` ruby
10
46
  require 'minitel'
@@ -26,6 +62,6 @@ client.notify_user(user_uuid: '...',
26
62
  body: 'You owe us 65k.',
27
63
  action: { label: 'View Invoice', url: 'https://heroku.com/invoices/12345-12-98765'})
28
64
 
29
- # add folloup to a previous notification
65
+ # add follow-up to a previous notification
30
66
  client.add_followup(message_uuid: '...', body: 'here are even more details')
31
67
  ```
data/changelog.txt CHANGED
@@ -1,3 +1,17 @@
1
+ 0.6.0 2025-05-01
2
+ ================
3
+
4
+ Allow use of newer versions of excon
5
+
6
+ 0.5.0 2021-08-06
7
+ ================
8
+
9
+ also send JSON content type
10
+ move to GitHub Actions
11
+
12
+ 0.4.0 XXXX-XX-XX
13
+ ================
14
+
1
15
  0.3.0 2014-10-21
2
16
  ================
3
17
 
@@ -11,7 +11,8 @@ module Minitel
11
11
  end
12
12
  self.connection = Excon.new(telex_url,
13
13
  :headers => {
14
- "User-Agent" => "minitel/#{Minitel::VERSION} excon/#{Excon::VERSION}"
14
+ "User-Agent" => "minitel/#{Minitel::VERSION} excon/#{Excon::VERSION}",
15
+ "Content-Type" => "application/json"
15
16
  }
16
17
  )
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module Minitel
2
- VERSION = '0.4.0'
2
+ VERSION = '0.6.0'
3
3
  end
data/minitel.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.platform = Gem::Platform::RUBY
18
18
  gem.license = "MIT"
19
19
 
20
- gem.add_runtime_dependency 'excon', '~> 0.20'
20
+ gem.add_runtime_dependency 'excon', '> 0.20'
21
21
  gem.add_runtime_dependency 'multi_json', '~> 1.0'
22
22
 
23
23
  gem.add_development_dependency 'guard', '~> 2.6'
metadata CHANGED
@@ -1,47 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Leinweber
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDLDC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3+U0+FSy2o
29
- CCngcLCR6q+mLf+A4L54VxmyrtFpcBfmkU72QYyf3vJ9QipL3XbvJvbpPkWSn1DX
30
- -----END CERTIFICATE-----
31
- date: 2015-02-13 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2025-05-01 00:00:00.000000000 Z
32
12
  dependencies:
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: excon
35
15
  requirement: !ruby/object:Gem::Requirement
36
16
  requirements:
37
- - - "~>"
17
+ - - ">"
38
18
  - !ruby/object:Gem::Version
39
19
  version: '0.20'
40
20
  type: :runtime
41
21
  prerelease: false
42
22
  version_requirements: !ruby/object:Gem::Requirement
43
23
  requirements:
44
- - - "~>"
24
+ - - ">"
45
25
  - !ruby/object:Gem::Version
46
26
  version: '0.20'
47
27
  - !ruby/object:Gem::Dependency
@@ -121,9 +101,10 @@ executables: []
121
101
  extensions: []
122
102
  extra_rdoc_files: []
123
103
  files:
104
+ - ".github/workflows/ruby.yml"
124
105
  - ".gitignore"
125
106
  - ".rspec"
126
- - ".travis.yml"
107
+ - CODEOWNERS
127
108
  - Gemfile
128
109
  - Guardfile
129
110
  - LICENSE
@@ -142,7 +123,7 @@ homepage: https://github.com/heroku/minitel
142
123
  licenses:
143
124
  - MIT
144
125
  metadata: {}
145
- post_install_message:
126
+ post_install_message:
146
127
  rdoc_options: []
147
128
  require_paths:
148
129
  - lib
@@ -157,13 +138,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
138
  - !ruby/object:Gem::Version
158
139
  version: '0'
159
140
  requirements: []
160
- rubyforge_project:
161
- rubygems_version: 2.4.5
162
- signing_key:
141
+ rubygems_version: 3.5.11
142
+ signing_key:
163
143
  specification_version: 4
164
144
  summary: "\U0001D54B\U0001D53C\U0001D543\U0001D53C\U0001D54F client: see https://github.com/heroku/telex"
165
145
  test_files:
166
146
  - spec/minitel/client_spec.rb
167
147
  - spec/minitel/strict_args_spec.rb
168
148
  - spec/spec_helper.rb
169
- has_rdoc:
checksums.yaml.gz.sig DELETED
@@ -1 +0,0 @@
1
- ��C“�Q��AfV<3��!(����8�1/�'_�ag͒�HQ�]�Y�~��Ӝ�]��c��с��p�C�;��|\�k���Y�����E��Xӊ�U:S�&iJa�R�(>��#+:�)�k�\��5&q+�i�B��Q~��jΎ�.� �O�ֿK]���͕3|����V���tOcۧ����J��GiiY���� �\�%�=���/��mM*H��r�8b'q5mbS��|�\�@?v
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- cache: bundler
2
- language: ruby
3
- rvm:
4
- - 2.2.0
5
- - 2.1.5
6
- - 2.0.0
7
- - 1.9.3
8
- - ruby-head
9
- script: bundle exec rspec
10
- notifications:
11
- email: false
12
- sudo: false
13
-
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file