pixela 3.6.0 → 3.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6518bf1cef4b32816f014dccc05cd78be59394413a45dff5e5e922edeaa664ef
4
- data.tar.gz: b076a4e4c769213f5cc41f31beb771901865eccb3c9ba6dbd1068916ee3c718c
3
+ metadata.gz: ac725c43e18b7f621a1790023c139c09bcf7408222af5b068a396a8625cc340f
4
+ data.tar.gz: d0a9c3e477df3e16c5034c4c87ef9aaf0f3ae531d4c4e528b7110334b5170768
5
5
  SHA512:
6
- metadata.gz: 6cd0e37d6aa51cd91c628a4cead0cb4463aec903d1b0f20d5de8ff9f5d06aa427f9b05af9b240f740ea7bf526f4a8b05a32512fe96a1a8e01f2dbc12eadba784
7
- data.tar.gz: 500eec231d0e01b431d10a55f77676cd01b05361466817f0d8b969efd21d2b67fd4a92357acf30a0809dee3937ca1df4c1cdd71240bbfec7d210cb5aa8ae776e
6
+ metadata.gz: 1d367c35a73858e82ebb9825a0b45175492949924967353e0136a9f4b4ae8e196910a979ca75af37abdcab7db28d9c8c4e5dbdf293b718f3ec06e57a3bf7bed0
7
+ data.tar.gz: d452290cb442e541a9609c4caa5cb958d6c201c17e05cfa4303a66654bf534f25cd54af7ec28bff3094610e8ee1da83ea5102c438885acb636d36f6da1f5367d
@@ -9,6 +9,8 @@ on:
9
9
  jobs:
10
10
  dependabot-auto-merge:
11
11
  uses: sue445/workflows/.github/workflows/dependabot-auto-merge.yml@main
12
+ with:
13
+ repo-name: sue445/pixela
12
14
  secrets:
13
15
  # TODO: Set secrets to Dependabot secrets
14
16
  app-id: ${{ secrets.GH_APP_ID }}
@@ -17,6 +19,8 @@ jobs:
17
19
 
18
20
  dependabot-security-alert:
19
21
  uses: sue445/workflows/.github/workflows/dependabot-security-alert.yml@main
22
+ with:
23
+ repo-name: sue445/pixela
20
24
  secrets:
21
25
  # TODO: Set secrets to Dependabot secrets
22
26
  app-id: ${{ secrets.GH_APP_ID }}
@@ -22,10 +22,10 @@ jobs:
22
22
  with:
23
23
  egress-policy: audit
24
24
 
25
- - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
25
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26
26
 
27
27
  - name: Set up Ruby
28
- uses: ruby/setup-ruby@8a836efbcebe5de0fe86b48a775b7a31b5c70c93 # v1.277.0
28
+ uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
29
29
  with:
30
30
  bundler-cache: true
31
31
  ruby-version: ruby
@@ -36,9 +36,9 @@ jobs:
36
36
  - faraday_2
37
37
 
38
38
  steps:
39
- - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
39
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
40
40
 
41
- - uses: ruby/setup-ruby@8a836efbcebe5de0fe86b48a775b7a31b5c70c93 # v1.277.0
41
+ - uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
42
42
  with:
43
43
  ruby-version: ${{ matrix.ruby }}
44
44
  bundler-cache: true
@@ -71,9 +71,9 @@ jobs:
71
71
  runs-on: ubuntu-latest
72
72
 
73
73
  steps:
74
- - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
74
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
75
75
 
76
- - uses: ruby/setup-ruby@8a836efbcebe5de0fe86b48a775b7a31b5c70c93 # v1.277.0
76
+ - uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
77
77
  with:
78
78
  ruby-version: ruby
79
79
  bundler-cache: true
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## Unreleased
2
- [full changelog](http://github.com/sue445/pixela/compare/v3.6.0...master)
2
+ [full changelog](http://github.com/sue445/pixela/compare/v3.7.0...master)
3
+
4
+ ## [v3.7.0](https://github.com/sue445/pixela/releases/tag/v3.7.0)
5
+ [full changelog](http://github.com/sue445/pixela/compare/v3.6.0...v3.7.0)
6
+
7
+ * Add `description` and `start_on_monday` to `create_graph` and `update_graph`
8
+ * https://github.com/sue445/pixela/pull/148
9
+ * https://github.com/a-know/Pixela/releases/tag/v1.34.0
3
10
 
4
11
  ## [v3.6.0](https://github.com/sue445/pixela/releases/tag/v3.6.0)
5
12
  [full changelog](http://github.com/sue445/pixela/compare/v3.5.1...v3.6.0)
@@ -7,6 +7,8 @@ module Pixela::Client::GraphMethods
7
7
  # @param type [String]
8
8
  # @param color [String]
9
9
  # @param timezone [String]
10
+ # @param description [String]
11
+ # @param start_on_monday [Boolean]
10
12
  # @param self_sufficient [String] If SVG graph with this field `increment` or `decrement` is referenced, Pixel of this graph itself will be incremented or decremented
11
13
  # @param is_secret [Boolean]
12
14
  # @param publish_optional_data [Boolean]
@@ -18,8 +20,8 @@ module Pixela::Client::GraphMethods
18
20
  # @see https://docs.pixe.la/entry/post-graph
19
21
  #
20
22
  # @example
21
- # client.create_graph(graph_id: "test-graph", name: "graph-name", unit: "commit", type: "int", color: "shibafu", timezone: "Asia/Tokyo", self_sufficient: "increment", is_secret: true, publish_optional_data: true)
22
- def create_graph(graph_id:, name:, unit:, type:, color:, timezone: nil, self_sufficient: nil, is_secret: nil, publish_optional_data: nil)
23
+ # client.create_graph(graph_id: "test-graph", name: "graph-name", unit: "commit", type: "int", color: "shibafu", timezone: "Asia/Tokyo","description":"This is a graph for test.", start_on_monday: true, self_sufficient: "increment", is_secret: true, publish_optional_data: true)
24
+ def create_graph(graph_id:, name:, unit:, type:, color:, timezone: nil, description: nil, start_on_monday: nil, self_sufficient: nil, is_secret: nil, publish_optional_data: nil)
23
25
  params = {
24
26
  id: graph_id,
25
27
  name: name,
@@ -27,6 +29,8 @@ module Pixela::Client::GraphMethods
27
29
  type: type,
28
30
  color: color,
29
31
  timezone: timezone,
32
+ description: description,
33
+ startOnMonday: start_on_monday,
30
34
  selfSufficient: self_sufficient,
31
35
  isSecret: is_secret,
32
36
  publishOptionalData: publish_optional_data
@@ -103,6 +107,8 @@ module Pixela::Client::GraphMethods
103
107
  # @param unit [String]
104
108
  # @param color [String]
105
109
  # @param timezone [String]
110
+ # @param description [String]
111
+ # @param start_on_monday [Boolean]
106
112
  # @param self_sufficient [String] If SVG graph with this field `increment` or `decrement` is referenced, Pixel of this graph itself will be incremented or decremented
107
113
  # @param purge_cache_urls [String,Array<String>]
108
114
  # @param is_secret [Boolean]
@@ -115,13 +121,15 @@ module Pixela::Client::GraphMethods
115
121
  # @see https://docs.pixe.la/entry/put-graph
116
122
  #
117
123
  # @example
118
- # client.update_graph(graph_id: "test-graph", name: "graph-name", unit: "commit", color: "shibafu", timezone: "Asia/Tokyo", self_sufficient: "increment", purge_cache_urls: ["https://camo.githubusercontent.com/xxx/xxxx"])
119
- def update_graph(graph_id:, name: nil, unit: nil, color: nil, timezone: nil, self_sufficient: nil, purge_cache_urls: nil, is_secret: nil, publish_optional_data: nil)
124
+ # client.update_graph(graph_id: "test-graph", name: "graph-name", unit: "commit", color: "shibafu", timezone: "Asia/Tokyo", "description":"This is a graph for test.", start_on_monday: true, self_sufficient: "increment", purge_cache_urls: ["https://camo.githubusercontent.com/xxx/xxxx"])
125
+ def update_graph(graph_id:, name: nil, unit: nil, color: nil, timezone: nil, description: nil, start_on_monday: nil, self_sufficient: nil, purge_cache_urls: nil, is_secret: nil, publish_optional_data: nil)
120
126
  params = {
121
127
  name: name,
122
128
  unit: unit,
123
129
  color: color,
124
130
  timezone: timezone,
131
+ description: description,
132
+ startOnMonday: start_on_monday,
125
133
  selfSufficient: self_sufficient,
126
134
  isSecret: is_secret,
127
135
  publishOptionalData: publish_optional_data
data/lib/pixela/graph.rb CHANGED
@@ -29,6 +29,8 @@ module Pixela
29
29
  # @param type [String]
30
30
  # @param color [String]
31
31
  # @param timezone [String]
32
+ # @param description [String]
33
+ # @param start_on_monday [Boolean]
32
34
  # @param self_sufficient [String] If SVG graph with this field `increment` or `decrement` is referenced, Pixel of this graph itself will be incremented or decremented
33
35
  # @param is_secret [Boolean]
34
36
  # @param publish_optional_data [Boolean]
@@ -41,9 +43,10 @@ module Pixela
41
43
  #
42
44
  # @example
43
45
  # client.graph("test-graph").create(name: "graph-name", unit: "commit", type: "int", color: "shibafu", timezone: "Asia/Tokyo", self_sufficient: "increment", is_secret: true, publish_optional_data: true)
44
- def create(name:, unit:, type:, color:, timezone: nil, self_sufficient: nil, is_secret: nil, publish_optional_data: nil)
46
+ def create(name:, unit:, type:, color:, timezone: nil, description: nil, start_on_monday: nil, self_sufficient: nil, is_secret: nil, publish_optional_data: nil)
45
47
  client.create_graph(
46
- graph_id: graph_id, name: name, unit: unit, type: type, color: color, timezone: timezone, self_sufficient: self_sufficient,
48
+ graph_id: graph_id, name: name, unit: unit, type: type, color: color, timezone: timezone,
49
+ description: description, start_on_monday: start_on_monday, self_sufficient: self_sufficient,
47
50
  is_secret: is_secret, publish_optional_data: publish_optional_data,
48
51
  )
49
52
  end
@@ -73,6 +76,8 @@ module Pixela
73
76
  # @param unit [String]
74
77
  # @param color [String]
75
78
  # @param timezone [String]
79
+ # @param description [String]
80
+ # @param start_on_monday [Boolean]
76
81
  # @param self_sufficient [String] If SVG graph with this field `increment` or `decrement` is referenced, Pixel of this graph itself will be incremented or decremented
77
82
  # @param purge_cache_urls [String,Array<String>]
78
83
  # @param is_secret [Boolean]
@@ -86,9 +91,10 @@ module Pixela
86
91
  #
87
92
  # @example
88
93
  # client.graph("test-graph").update(name: "graph-name", unit: "commit", color: "shibafu", timezone: "Asia/Tokyo", purge_cache_urls: ["https://camo.githubusercontent.com/xxx/xxxx"])
89
- def update(name: nil, unit: nil, color: nil, timezone: nil, purge_cache_urls: nil, self_sufficient: nil, is_secret: nil, publish_optional_data: nil)
94
+ def update(name: nil, unit: nil, color: nil, timezone: nil, description: nil, start_on_monday: nil, purge_cache_urls: nil, self_sufficient: nil, is_secret: nil, publish_optional_data: nil)
90
95
  client.update_graph(
91
- graph_id: graph_id, name: name, unit: unit, color: color, timezone: timezone, self_sufficient: self_sufficient,
96
+ graph_id: graph_id, name: name, unit: unit, color: color, timezone: timezone,
97
+ description: description, start_on_monday: start_on_monday, self_sufficient: self_sufficient,
92
98
  purge_cache_urls: purge_cache_urls, is_secret: is_secret, publish_optional_data: publish_optional_data,
93
99
  )
94
100
  end
@@ -1,3 +1,3 @@
1
1
  module Pixela
2
- VERSION = "3.6.0"
2
+ VERSION = "3.7.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pixela
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445