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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '049f2c9a40941cd91d9b46cbc957f52b14d2e5638b2b91bf18c40a7c188e639e'
4
- data.tar.gz: 27f281ad6cd332bc409ccf3323630debe74493286b1d84b26e3e1e3d9805ba3b
3
+ metadata.gz: d97c7b88052bd72f70c6f2627d5b4822e98e42fc6c00b501516839022732f389
4
+ data.tar.gz: 3963099049cf2b30f9f6a74549befccc7d38b6bcf6c595335395f9246a69ceb7
5
5
  SHA512:
6
- metadata.gz: 74a47a52aa90e2b727c7bc039c3dc2414e86fdaee473b824e12eb96d5378b528c4ea8aecb369c5091fff5f1d5db39c8911aea5f9cbc3eb88f8d47850e7df2151
7
- data.tar.gz: 459cf088edfd3f629e91ec2398535f83ca3118f226c8f086bf356e7c5036ef9df2609b8519f102c6cdd478c138966f7ea4a23211e967ef97c44be55ef7df1949
6
+ metadata.gz: 5d2b39ebcde4c2bda92d086438d3fc6e239d8f0e078bedb72d38c4f51b4466bf322f76a8850eb586aa5bf48f95f2ce37f854830c50517a74fb34e05c8bc293ce
7
+ data.tar.gz: 0b7393968d9a778b7cdd0d25c721697df9b83e5d5fb718ae9bee6f4f00bd968f0691689d9741ae8449c84aebc28a71584912c6066403965c42f92a99d3f0cbba
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
3
  /_yardoc/
4
+ /Gemfile.lock
4
5
  /coverage/
5
6
  /doc/
6
7
  /pkg/
@@ -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(name:"Count of package install/upgrade", unit:"commit", type:"int", color:"shibafu")
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|
@@ -1,5 +1,5 @@
1
1
  module Apt
2
2
  module Kusa
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.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
@@ -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