line-notify-client 1.0.2 → 1.0.3

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: 5d65fc0c7ff3abbdde33149c804fee9a992cb8c71a88e8a388abe4bf95f847f4
4
- data.tar.gz: 57333a62d740603af8bcc01de174c988ea1bb4a1e2e138406fe17d0540521a11
3
+ metadata.gz: dfd286ce86d9e6c7250c95ae52fff845b937b9b34d3599b019a7ed79b5791cd5
4
+ data.tar.gz: 8343b7fa1937c14a64b130494b20bbd75ccb2a9a2eb6d443869781069aa32123
5
5
  SHA512:
6
- metadata.gz: 8e947ff7a02c45e0323501e1d71cec1a197973bfce5c57f06fe6e92471fad406edb8c56a79a925a7db07952e16aca459aff1dc165c343928e4d22a7f51f6db7e
7
- data.tar.gz: 5a51eb9bcb32861e0232e73bfe3e4fc195d0cc5bc90528372cb03bd8315cadc0504bf1c91c8a0bf92a8425a917b22c51e20785a25bb6d07c3f1353cf7764ea5b
6
+ metadata.gz: e4511deec6b3017de0a29311994ec024939dcc099bd84de11f93457e287eb096b707398660a9782303907e8969412127ba2c91d51de47f03e9de99d06bfa2c57
7
+ data.tar.gz: 201d8a71240bf42f9c037c623a80b50b719d9b89ef21a40654a438bab3887449a1f1cde314a3cf6d9eaaa69892449c4fc4f5c368e688e5d52d4977892d7a164b
data/.rspec_status CHANGED
@@ -1,5 +1,5 @@
1
1
  example_id | status | run_time |
2
2
  ---------------------------------- | ------ | --------------- |
3
- ./spec/lib/client_spec.rb[1:1] | passed | 0.00152 seconds |
4
- ./spec/lib/client_spec.rb[1:2:1:1] | passed | 0.42478 seconds |
5
- ./spec/lib/client_spec.rb[1:2:2:1] | passed | 0.00466 seconds |
3
+ ./spec/lib/client_spec.rb[1:1] | passed | 0.00059 seconds |
4
+ ./spec/lib/client_spec.rb[1:2:1:1] | passed | 0.42225 seconds |
5
+ ./spec/lib/client_spec.rb[1:2:2:1] | passed | 0.00437 seconds |
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- line-notify-client (1.0.2)
4
+ line-notify-client (1.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,6 @@
1
1
  require 'net/http'
2
2
  require 'uri'
3
+ require 'json'
3
4
 
4
5
  class ApiClient
5
6
  class ArgumentError < StandardError; end
@@ -19,6 +20,6 @@ class ApiClient
19
20
  req["Authorization"] = "Bearer #{token}"
20
21
  req.set_form_data(message: message)
21
22
  res = http.start { |http| http.request req }
22
- return res.body
23
+ JSON.parse(res.body)
23
24
  end
24
25
  end
@@ -1,7 +1,7 @@
1
1
  module Line
2
2
  module Notify
3
3
  module Client
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -4,7 +4,7 @@ require "line-notify-client/api_client"
4
4
 
5
5
  module Line
6
6
  module Notify
7
- module Client
7
+ module Notify
8
8
  def self.message(token: nil, message: nil)
9
9
  client = ApiClient.new
10
10
  client.message(token, message)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-notify-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - emono