line-notify-client 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +90 -6
- data/.rspec_status +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +7 -14
- data/lib/line-notify-client/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d65fc0c7ff3abbdde33149c804fee9a992cb8c71a88e8a388abe4bf95f847f4
|
4
|
+
data.tar.gz: 57333a62d740603af8bcc01de174c988ea1bb4a1e2e138406fe17d0540521a11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e947ff7a02c45e0323501e1d71cec1a197973bfce5c57f06fe6e92471fad406edb8c56a79a925a7db07952e16aca459aff1dc165c343928e4d22a7f51f6db7e
|
7
|
+
data.tar.gz: 5a51eb9bcb32861e0232e73bfe3e4fc195d0cc5bc90528372cb03bd8315cadc0504bf1c91c8a0bf92a8425a917b22c51e20785a25bb6d07c3f1353cf7764ea5b
|
data/.gitignore
CHANGED
@@ -1,11 +1,95 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
# Created by https://www.gitignore.io/api/ruby,linux,osx
|
2
|
+
|
3
|
+
### Ruby ###
|
4
|
+
*.gem
|
5
|
+
*.rbc
|
6
|
+
/.config
|
4
7
|
/coverage/
|
5
|
-
/
|
8
|
+
/InstalledFiles
|
6
9
|
/pkg/
|
7
10
|
/spec/reports/
|
11
|
+
/spec/examples.txt
|
12
|
+
/test/tmp/
|
13
|
+
/test/version_tmp/
|
8
14
|
/tmp/
|
9
15
|
|
10
|
-
#
|
11
|
-
.
|
16
|
+
# Used by dotenv library to load environment variables.
|
17
|
+
# .env
|
18
|
+
|
19
|
+
## Specific to RubyMotion:
|
20
|
+
.dat*
|
21
|
+
.repl_history
|
22
|
+
build/
|
23
|
+
*.bridgesupport
|
24
|
+
build-iPhoneOS/
|
25
|
+
build-iPhoneSimulator/
|
26
|
+
|
27
|
+
## Specific to RubyMotion (use of CocoaPods):
|
28
|
+
#
|
29
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
30
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
31
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
32
|
+
#
|
33
|
+
# vendor/Pods/
|
34
|
+
|
35
|
+
## Documentation cache and generated files:
|
36
|
+
/.yardoc/
|
37
|
+
/_yardoc/
|
38
|
+
/doc/
|
39
|
+
/rdoc/
|
40
|
+
|
41
|
+
## Environment normalization:
|
42
|
+
/.bundle/
|
43
|
+
/vendor/bundle
|
44
|
+
/lib/bundler/man/
|
45
|
+
|
46
|
+
# for a library or gem, you might want to ignore these files since the code is
|
47
|
+
# intended to run in multiple environments; otherwise, check them in:
|
48
|
+
Gemfile.lock
|
49
|
+
.ruby-version
|
50
|
+
.ruby-gemset
|
51
|
+
|
52
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
53
|
+
.rvmrc
|
54
|
+
|
55
|
+
|
56
|
+
### Linux ###
|
57
|
+
*~
|
58
|
+
|
59
|
+
# temporary files which can be created if a process still has a handle open of a deleted file
|
60
|
+
.fuse_hidden*
|
61
|
+
|
62
|
+
# KDE directory preferences
|
63
|
+
.directory
|
64
|
+
|
65
|
+
# Linux trash folder which might appear on any partition or disk
|
66
|
+
.Trash-*
|
67
|
+
|
68
|
+
|
69
|
+
### OSX ###
|
70
|
+
*.DS_Store
|
71
|
+
.AppleDouble
|
72
|
+
.LSOverride
|
73
|
+
|
74
|
+
# Icon must end with two \r
|
75
|
+
Icon
|
76
|
+
|
77
|
+
|
78
|
+
# Thumbnails
|
79
|
+
._*
|
80
|
+
|
81
|
+
# Files that might appear in the root of a volume
|
82
|
+
.DocumentRevisions-V100
|
83
|
+
.fseventsd
|
84
|
+
.Spotlight-V100
|
85
|
+
.TemporaryItems
|
86
|
+
.Trashes
|
87
|
+
.VolumeIcon.icns
|
88
|
+
.com.apple.timemachine.donotpresent
|
89
|
+
|
90
|
+
# Directories potentially created on remote AFP share
|
91
|
+
.AppleDB
|
92
|
+
.AppleDesktop
|
93
|
+
Network Trash Folder
|
94
|
+
Temporary Items
|
95
|
+
.apdisk
|
data/.rspec_status
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
example_id | status | run_time |
|
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 |
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Line::Notify::Client
|
2
|
+
- https://rubygems.org/gems/line-notify-client
|
2
3
|
- Api Client for LineNotify
|
3
4
|
- https://notify-bot.line.me/ja/
|
5
|
+
- Send line message
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -21,40 +23,31 @@ Or install it yourself as:
|
|
21
23
|
## Set up
|
22
24
|
- require library
|
23
25
|
```rb
|
24
|
-
# snake_case
|
25
26
|
require 'line-notify-client'
|
26
27
|
```
|
27
28
|
|
28
29
|
## Usage
|
29
30
|
- token use argument
|
30
31
|
```rb
|
31
|
-
token = "hoge1234"
|
32
|
-
message = "hogehoge"
|
32
|
+
token = "hoge1234" # line_notify_access_token
|
33
|
+
message = "hogehoge" # send_message
|
33
34
|
Line::Notify::Client.message(token: token, message: message)
|
34
35
|
```
|
35
36
|
- token use environment variable
|
36
37
|
```bash
|
37
|
-
# add
|
38
|
+
# add line_notify_access_token
|
38
39
|
$ vi ~/.bash_profile
|
39
40
|
LINE_NOTIFY_TOKEN="hoge1234"
|
40
41
|
```
|
41
42
|
```rb
|
43
|
+
message = "hogehoge" # send_message
|
42
44
|
Line::Notify::Client.message(message: message)
|
43
45
|
```
|
44
|
-
## Development
|
45
|
-
|
46
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
47
|
-
|
48
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
49
46
|
|
50
47
|
## Contributing
|
51
48
|
|
52
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
49
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/emono/line-notify-client. This project is intended to be a safe, welcoming space for collaboration.
|
53
50
|
|
54
51
|
## License
|
55
52
|
|
56
53
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
57
|
-
|
58
|
-
## Code of Conduct
|
59
|
-
|
60
|
-
Everyone interacting in the Line::Notify::Client project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/line-notify-client/blob/master/CODE_OF_CONDUCT.md).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- emono
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
63
|
- ".rspec"
|
64
|
+
- ".rspec_status"
|
64
65
|
- ".travis.yml"
|
65
66
|
- CODE_OF_CONDUCT.md
|
66
67
|
- Gemfile
|