line-notify-client 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +14 -7
- data/bin/console +1 -1
- data/lib/{line_notify_client → line-notify-client}/api_client.rb +0 -0
- data/lib/{line_notify_client → line-notify-client}/version.rb +1 -1
- data/lib/{line_notify_client.rb → line-notify-client.rb} +1 -1
- data/line-notify-client.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbc908d4ff6c06d2dd8a52c82350afda4e16efecf1cdd6e9290c983d50ea101e
|
4
|
+
data.tar.gz: '061369095394139c301875fff62828580221e8ed92dd2473915185e8215b50c4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d3410e3728147028e68b4c0bea32e2a2032ee068077e787c57ec5d8a9fe2469918ee118bfb04af0f6ac134224247184428a1aa8b8e45a2789a3b081ca0ff143
|
7
|
+
data.tar.gz: 50b3e028b4566455e20eab28dda04c607876200ca8e64bcbccce2db5c775358e7594e64aa8668ed1a6c90c30e63845de135352203337e1bffcd7be798e6c951a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -18,21 +18,28 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
$ gem install line-notify-client
|
20
20
|
|
21
|
+
## Set up
|
22
|
+
- require library
|
23
|
+
```rb
|
24
|
+
# snake_case
|
25
|
+
require 'line-notify-client'
|
26
|
+
```
|
27
|
+
|
21
28
|
## Usage
|
22
29
|
- token use argument
|
23
30
|
```rb
|
24
|
-
|
25
|
-
|
26
|
-
|
31
|
+
token = "hoge1234"
|
32
|
+
message = "hogehoge"
|
33
|
+
Line::Notify::Client.message(token: token, message: message)
|
27
34
|
```
|
28
35
|
- token use environment variable
|
29
36
|
```bash
|
30
|
-
|
31
|
-
|
32
|
-
|
37
|
+
# add LINE_NOTIFY_TOKEN
|
38
|
+
$ vi ~/.bash_profile
|
39
|
+
LINE_NOTIFY_TOKEN="hoge1234"
|
33
40
|
```
|
34
41
|
```rb
|
35
|
-
|
42
|
+
Line::Notify::Client.message(message: message)
|
36
43
|
```
|
37
44
|
## Development
|
38
45
|
|
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require "bundler/setup"
|
4
|
-
require "
|
4
|
+
require "line-notify-client"
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
File without changes
|
data/line-notify-client.gemspec
CHANGED
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.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- emono
|
@@ -70,9 +70,9 @@ files:
|
|
70
70
|
- Rakefile
|
71
71
|
- bin/console
|
72
72
|
- bin/setup
|
73
|
-
- lib/
|
74
|
-
- lib/
|
75
|
-
- lib/
|
73
|
+
- lib/line-notify-client.rb
|
74
|
+
- lib/line-notify-client/api_client.rb
|
75
|
+
- lib/line-notify-client/version.rb
|
76
76
|
- line-notify-client.gemspec
|
77
77
|
homepage: https://github.com/emono/line-notify-client
|
78
78
|
licenses:
|