apt-kusa 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/apt/kusa/cli.rb +11 -1
- data/lib/apt/kusa/version.rb +1 -1
- metadata +1 -2
- data/Gemfile.lock +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d97c7b88052bd72f70c6f2627d5b4822e98e42fc6c00b501516839022732f389
|
4
|
+
data.tar.gz: 3963099049cf2b30f9f6a74549befccc7d38b6bcf6c595335395f9246a69ceb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d2b39ebcde4c2bda92d086438d3fc6e239d8f0e078bedb72d38c4f51b4466bf322f76a8850eb586aa5bf48f95f2ce37f854830c50517a74fb34e05c8bc293ce
|
7
|
+
data.tar.gz: 0b7393968d9a778b7cdd0d25c721697df9b83e5d5fb718ae9bee6f4f00bd968f0691689d9741ae8449c84aebc28a71584912c6066403965c42f92a99d3f0cbba
|
data/.gitignore
CHANGED
data/lib/apt/kusa/cli.rb
CHANGED
@@ -19,6 +19,10 @@ module Apt::Kusa
|
|
19
19
|
|
20
20
|
option :all, type: :boolean, default: false
|
21
21
|
option :graph, type: :string, required: true
|
22
|
+
option :graph_name, type: :string, default: "Count of install or upgrade packages"
|
23
|
+
option :graph_unit, type: :string, default: "packages"
|
24
|
+
option :graph_color, type: :string, default: "shibafu", enum: %w(shibafu momiji sora ichou ajisai)
|
25
|
+
option :graph_tz, type: :string, default: "UTC"
|
22
26
|
option :create,type: :boolean, default: false
|
23
27
|
desc "post", "Post to pixe.la"
|
24
28
|
def post
|
@@ -38,7 +42,13 @@ module Apt::Kusa
|
|
38
42
|
client = Pixela::Client.new(username: username, token: token)
|
39
43
|
graph = client.graph(options[:graph])
|
40
44
|
if options[:create]
|
41
|
-
graph.create(
|
45
|
+
graph.create(
|
46
|
+
type: "int",
|
47
|
+
name: options[:graph_name],
|
48
|
+
unit: options[:graph_unit],
|
49
|
+
color: options[:graph_color],
|
50
|
+
timezone: options[:graph_tz]
|
51
|
+
)
|
42
52
|
end
|
43
53
|
|
44
54
|
summary.each do |date, count|
|
data/lib/apt/kusa/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apt-kusa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuki Koya
|
@@ -92,7 +92,6 @@ files:
|
|
92
92
|
- ".travis.yml"
|
93
93
|
- CODE_OF_CONDUCT.md
|
94
94
|
- Gemfile
|
95
|
-
- Gemfile.lock
|
96
95
|
- LICENSE
|
97
96
|
- README.md
|
98
97
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
apt-kusa (0.1.0)
|
5
|
-
pixela (>= 1.1.0)
|
6
|
-
thor (>= 0.20.3)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
faraday (0.15.4)
|
12
|
-
multipart-post (>= 1.2, < 3)
|
13
|
-
faraday_curl (0.0.2)
|
14
|
-
faraday (>= 0.9.0)
|
15
|
-
faraday_middleware (0.13.1)
|
16
|
-
faraday (>= 0.7.4, < 1.0)
|
17
|
-
hashie (3.6.0)
|
18
|
-
minitest (5.11.3)
|
19
|
-
multipart-post (2.0.0)
|
20
|
-
pixela (1.1.0)
|
21
|
-
faraday
|
22
|
-
faraday_curl
|
23
|
-
faraday_middleware
|
24
|
-
hashie
|
25
|
-
rake (10.5.0)
|
26
|
-
thor (0.20.3)
|
27
|
-
|
28
|
-
PLATFORMS
|
29
|
-
ruby
|
30
|
-
|
31
|
-
DEPENDENCIES
|
32
|
-
apt-kusa!
|
33
|
-
bundler (~> 1.17)
|
34
|
-
minitest (~> 5.0)
|
35
|
-
rake (~> 10.0)
|
36
|
-
|
37
|
-
BUNDLED WITH
|
38
|
-
1.17.0
|