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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b155ac9c2eae0473516245bdd21805e66ee750f4976fba6108d0d127a64e1032
4
- data.tar.gz: 1ce17cf80a26781f373602a2254162111dbcfcbbfa7dec6b71bee6d397b62959
3
+ metadata.gz: e68a8941c1fe8a7fb13188bf1264caf447a77160084ca23cd66cdb9583393ce7
4
+ data.tar.gz: 217a60ead997fe4b43e7f8415947fc0bfa3032d87952da2d4f8b8abff82aa575
5
5
  SHA512:
6
- metadata.gz: d5d76df6938b5a8bec0b2006b5608b9d60765efec0ae292122d4c5f9f9089b7594dbc6e4895b417ff1cf30428b215a2e21b7b297c3c88668bde4c8fc17f17ab5
7
- data.tar.gz: 2d635e51a5b27f56a582e6a1257f9c27f31e60239be9109382a17f536c9999b152533300be589da651525447373126b6d64d96f0bf22d803b390193f0fad7ea9
6
+ metadata.gz: e4fa141db7ab6334c29529e4670011b9187cfcd9fc547d6409fe9d337aa69d8729fc3bd4677731c45960c39a1199e722954bce8b3c2df1e94d9a521234a8d302
7
+ data.tar.gz: 0df92d4087f41527258f609548be20ec5ae4ba94e9efa9c2a24b35423e2c9c7472ecc4520320a33cfa47bf4be5a44b28a433295accf6567fb51bd388bed58efc
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TestGemLineNotifier
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -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
- conn = Faraday.new(url: 'https://notify-api.line.me/api/notify')
13
- response = conn.post do |req|
14
- req.headers['Content-Type'] = 'application/x-www-form-urlencoded'
15
- req.headers['Authorization'] = "Bearer #{API_TOKEN}"
16
- req.params['message'] = message
17
- end
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
- data = JSON.parse(response.body)
22
- puts data
23
- else
24
- puts "Error: #{response.status}"
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.0
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