test_gem_line_notifier 0.1.0 → 0.1.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 +4 -4
- data/lib/test_gem_line_notifier/version.rb +1 -1
- data/lib/test_gem_line_notifier.rb +17 -16
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e68a8941c1fe8a7fb13188bf1264caf447a77160084ca23cd66cdb9583393ce7
|
4
|
+
data.tar.gz: 217a60ead997fe4b43e7f8415947fc0bfa3032d87952da2d4f8b8abff82aa575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4fa141db7ab6334c29529e4670011b9187cfcd9fc547d6409fe9d337aa69d8729fc3bd4677731c45960c39a1199e722954bce8b3c2df1e94d9a521234a8d302
|
7
|
+
data.tar.gz: 0df92d4087f41527258f609548be20ec5ae4ba94e9efa9c2a24b35423e2c9c7472ecc4520320a33cfa47bf4be5a44b28a433295accf6567fb51bd388bed58efc
|
@@ -1,27 +1,28 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "test_gem_line_notifier/version"
|
4
|
-
require 'faraday'
|
5
|
-
require "json"
|
4
|
+
# require 'faraday'
|
5
|
+
# require "json"
|
6
6
|
module TestGemLineNotifier
|
7
7
|
class Error < StandardError; end
|
8
8
|
# Your code goes here...
|
9
|
-
API_TOKEN = ENV['LINE_NOTIFY_API_TOKEN'] || (raise('.envにLINE_NOTIFY_API_TOKENを設定してください'))
|
9
|
+
# API_TOKEN = ENV['LINE_NOTIFY_API_TOKEN'] || (raise('.envにLINE_NOTIFY_API_TOKENを設定してください'))
|
10
10
|
|
11
11
|
def self.send_notification(message)
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
p 'test'
|
13
|
+
# conn = Faraday.new(url: 'https://notify-api.line.me/api/notify')
|
14
|
+
# response = conn.post do |req|
|
15
|
+
# req.headers['Content-Type'] = 'application/x-www-form-urlencoded'
|
16
|
+
# req.headers['Authorization'] = "Bearer #{API_TOKEN}"
|
17
|
+
# req.params['message'] = message
|
18
|
+
# end
|
18
19
|
|
19
|
-
# レスポンスの処理
|
20
|
-
if response.success?
|
21
|
-
|
22
|
-
|
23
|
-
else
|
24
|
-
|
25
|
-
end
|
20
|
+
# # レスポンスの処理
|
21
|
+
# if response.success?
|
22
|
+
# data = JSON.parse(response.body)
|
23
|
+
# puts data
|
24
|
+
# else
|
25
|
+
# puts "Error: #{response.status}"
|
26
|
+
# end
|
26
27
|
end
|
27
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_gem_line_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- siotomo
|
@@ -9,21 +9,7 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2024-06-01 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: faraday
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 1.10.0
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.10.0
|
12
|
+
dependencies: []
|
27
13
|
description: 同上
|
28
14
|
email:
|
29
15
|
- pc.siomi@gmail.com
|