itunes_information_slack 0.0.1 → 0.0.2
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/README.md +7 -1
- data/bin/itunes_information_slack +2 -2
- data/lib/itunes_information_slack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f9113e1b93a62bbe6395d29c8a652bffc04a809
|
|
4
|
+
data.tar.gz: 1459dcc1678e874ecbae14bab45a40132111452f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 197ae05d863b824519e63695119e635a86fb9bfab95e1dd8df7999cad51ef0554802d3ad8177bc8367b14f458cee8137d013873f5823fb4311a2ef46165c3473
|
|
7
|
+
data.tar.gz: 79f22d78f3d67b203666063186c7fe9b2732c0944a1e86e78a21dc784fb9985d77a35bc274d3e02184d52842c8d09ee84d91ffef37e48d14359a6201b9d87b64
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ slack に再生中の曲を送信する
|
|
|
5
5
|
# インストール
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
gem install
|
|
8
|
+
$ gem install itunes_information_slack
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
# 使い方
|
|
@@ -16,3 +16,9 @@ gem install
|
|
|
16
16
|
* SLACK_API_TOKEN (webhook integrationを参照してください)
|
|
17
17
|
* SLACK_TEAM
|
|
18
18
|
* SLACK_CHANNEL (option)
|
|
19
|
+
|
|
20
|
+
以下のコマンドで送信することができます。
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
$ itunes_information_slack
|
|
24
|
+
```
|
|
@@ -5,7 +5,7 @@ require 'slack-notify'
|
|
|
5
5
|
|
|
6
6
|
track = Itunes::Player.current_track
|
|
7
7
|
|
|
8
|
-
body = "
|
|
8
|
+
body = "Music Name: #{track.name} Artist: #{track.artist} Album: #{track.album}"
|
|
9
9
|
|
|
10
10
|
team = ENV["SLACK_TEAM"]
|
|
11
11
|
token = ENV["SLACK_API_TOKEN"]
|
|
@@ -14,7 +14,7 @@ channel = ENV["SLACK_CHANNEL"] || "#random"
|
|
|
14
14
|
client = SlackNotify::Client.new(team, token,
|
|
15
15
|
channel: channel,
|
|
16
16
|
username: "iTunes",
|
|
17
|
-
icon_url: "https://raw.githubusercontent.com/eiel/itunes_information_slack/images/itunes.png"
|
|
17
|
+
icon_url: "https://raw.githubusercontent.com/eiel/itunes_information_slack/master/images/itunes.png"
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
client.notify body
|