pixela 1.2.0 → 1.3.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 +4 -4
- data/CHANGELOG.md +10 -1
- data/lib/pixela/client/graph_methods.rb +19 -7
- data/lib/pixela/client/pixel_methods.rb +6 -6
- data/lib/pixela/client/user_methods.rb +3 -3
- data/lib/pixela/client/webhook_methods.rb +4 -4
- data/lib/pixela/graph.rb +8 -8
- data/lib/pixela/pixel.rb +4 -4
- data/lib/pixela/version.rb +1 -1
- data/lib/pixela/webhook.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce5100ce7d7532b146fff4e9843855822af2be533cb0f0adcc3d43e0285c5717
|
4
|
+
data.tar.gz: 797f7bca3c98f9989480a1620dc246bcc1c817fef0c7659cbf9d5d8eeabbffdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02104d78ebfc060ebf86a0161f744edc263b2adf3ba15b546bd117f3429cc84b08b2211da7c7d7f9947e53c3550f50548ce9280b838ed2de8eceba66ffb916ef
|
7
|
+
data.tar.gz: ba70d1084fb40646ab68e7e969a5d10c417ac3782508269ac600a8de8625b3017829cee7102cc74bf4edbfab960dbd999f09f9139bbcd0cda2a208f5af5c8ea0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## Unreleased
|
2
|
-
[full changelog](http://github.com/sue445/pixela/compare/v1.
|
2
|
+
[full changelog](http://github.com/sue445/pixela/compare/v1.3.0...master)
|
3
|
+
|
4
|
+
## v1.3.0
|
5
|
+
[full changelog](http://github.com/sue445/pixela/compare/v1.2.0...v1.3.0)
|
6
|
+
|
7
|
+
* Add `Pixela::Client#graphs_url`
|
8
|
+
* https://github.com/sue445/pixela/pull/55
|
9
|
+
* https://github.com/a-know/Pixela/releases/tag/v1.11.0
|
10
|
+
* Fixed doc link
|
11
|
+
* https://github.com/sue445/pixela/pull/56
|
3
12
|
|
4
13
|
## v1.2.0
|
5
14
|
[full changelog](http://github.com/sue445/pixela/compare/v1.1.0...v1.2.0)
|
@@ -13,7 +13,7 @@ module Pixela::Client::GraphMethods
|
|
13
13
|
#
|
14
14
|
# @raise [Pixela::PixelaError] API is failed
|
15
15
|
#
|
16
|
-
# @see https://docs.pixe.la
|
16
|
+
# @see https://docs.pixe.la/entry/post-graph
|
17
17
|
#
|
18
18
|
# @example
|
19
19
|
# client.create_graph(graph_id: "test-graph", name: "graph-name", unit: "commit", type: "int", color: "shibafu", timezone: "Asia/Tokyo", self_sufficient: "increment")
|
@@ -39,7 +39,7 @@ module Pixela::Client::GraphMethods
|
|
39
39
|
#
|
40
40
|
# @raise [Pixela::PixelaError] API is failed
|
41
41
|
#
|
42
|
-
# @see https://docs.pixe.la
|
42
|
+
# @see https://docs.pixe.la/entry/get-graph
|
43
43
|
#
|
44
44
|
# @example
|
45
45
|
# client.get_graphs
|
@@ -57,7 +57,7 @@ module Pixela::Client::GraphMethods
|
|
57
57
|
#
|
58
58
|
# @return [String]
|
59
59
|
#
|
60
|
-
# @see https://docs.pixe.la
|
60
|
+
# @see https://docs.pixe.la/entry/get-svg
|
61
61
|
#
|
62
62
|
# @example
|
63
63
|
# client.graph_url(graph_id: "test-graph")
|
@@ -74,6 +74,18 @@ module Pixela::Client::GraphMethods
|
|
74
74
|
url
|
75
75
|
end
|
76
76
|
|
77
|
+
# Displays graph list by detail in html format.
|
78
|
+
#
|
79
|
+
# @return [String]
|
80
|
+
#
|
81
|
+
# @see https://docs.pixe.la/entry/get-graph-list-html
|
82
|
+
#
|
83
|
+
# @example
|
84
|
+
# client.graphs_url
|
85
|
+
def graphs_url
|
86
|
+
"https://pixe.la/v1/users/#{username}/graphs.html"
|
87
|
+
end
|
88
|
+
|
77
89
|
# Update predefined pixelation graph definitions.
|
78
90
|
#
|
79
91
|
# @param graph_id [String]
|
@@ -88,7 +100,7 @@ module Pixela::Client::GraphMethods
|
|
88
100
|
#
|
89
101
|
# @raise [Pixela::PixelaError] API is failed
|
90
102
|
#
|
91
|
-
# @see https://docs.pixe.la
|
103
|
+
# @see https://docs.pixe.la/entry/put-graph
|
92
104
|
#
|
93
105
|
# @example
|
94
106
|
# 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"])
|
@@ -118,7 +130,7 @@ module Pixela::Client::GraphMethods
|
|
118
130
|
#
|
119
131
|
# @raise [Pixela::PixelaError] API is failed
|
120
132
|
#
|
121
|
-
# @see https://docs.pixe.la
|
133
|
+
# @see https://docs.pixe.la/entry/delete-graph
|
122
134
|
#
|
123
135
|
# @example
|
124
136
|
# client.delete_graph("test-graph")
|
@@ -138,7 +150,7 @@ module Pixela::Client::GraphMethods
|
|
138
150
|
#
|
139
151
|
# @raise [Pixela::PixelaError] API is failed
|
140
152
|
#
|
141
|
-
# @see https://docs.pixe.la
|
153
|
+
# @see https://docs.pixe.la/entry/get-graph-pixels
|
142
154
|
#
|
143
155
|
# @example
|
144
156
|
# client.get_pixel_dates(graph_id: "test-graph", from: Date.new(2018, 1, 1), to: Date.new(2018, 12, 31))
|
@@ -164,7 +176,7 @@ module Pixela::Client::GraphMethods
|
|
164
176
|
#
|
165
177
|
# @raise [Pixela::PixelaError] API is failed
|
166
178
|
#
|
167
|
-
# @see https://docs.pixe.la
|
179
|
+
# @see https://docs.pixe.la/entry/get-graph-stats
|
168
180
|
#
|
169
181
|
# @example
|
170
182
|
# client.get_graph_stats(graph_id: "test-graph")
|
@@ -10,7 +10,7 @@ module Pixela::Client::PixelMethods
|
|
10
10
|
#
|
11
11
|
# @raise [Pixela::PixelaError] API is failed
|
12
12
|
#
|
13
|
-
# @see https://docs.pixe.la
|
13
|
+
# @see https://docs.pixe.la/entry/post-pixel
|
14
14
|
#
|
15
15
|
# @example
|
16
16
|
# client.create_pixel(graph_id: "test-graph", date: Date.new(2018, 9, 15), quantity: 5, optional_data: {key: "value"})
|
@@ -35,7 +35,7 @@ module Pixela::Client::PixelMethods
|
|
35
35
|
#
|
36
36
|
# @raise [Pixela::PixelaError] API is failed
|
37
37
|
#
|
38
|
-
# @see https://docs.pixe.la
|
38
|
+
# @see https://docs.pixe.la/entry/get-pixel
|
39
39
|
#
|
40
40
|
# @example
|
41
41
|
# client.get_pixel(graph_id: "test-graph", date: Date.new(2018, 9, 15))
|
@@ -69,7 +69,7 @@ module Pixela::Client::PixelMethods
|
|
69
69
|
#
|
70
70
|
# @raise [Pixela::PixelaError] API is failed
|
71
71
|
#
|
72
|
-
# @see https://docs.pixe.la
|
72
|
+
# @see https://docs.pixe.la/entry/put-pixel
|
73
73
|
#
|
74
74
|
# @example
|
75
75
|
# client.update_pixel(graph_id: "test-graph", date: Date.new(2018, 9, 15), quantity: 7, optional_data: {key: "value"})
|
@@ -93,7 +93,7 @@ module Pixela::Client::PixelMethods
|
|
93
93
|
#
|
94
94
|
# @raise [Pixela::PixelaError] API is failed
|
95
95
|
#
|
96
|
-
# @see https://docs.pixe.la
|
96
|
+
# @see https://docs.pixe.la/entry/delete-pixel
|
97
97
|
#
|
98
98
|
# @example
|
99
99
|
# client.delete_pixel(graph_id: "test-graph", date: Date.new(2018, 9, 15))
|
@@ -111,7 +111,7 @@ module Pixela::Client::PixelMethods
|
|
111
111
|
#
|
112
112
|
# @raise [Pixela::PixelaError] API is failed
|
113
113
|
#
|
114
|
-
# @see https://docs.pixe.la
|
114
|
+
# @see https://docs.pixe.la/entry/increment-pixel
|
115
115
|
#
|
116
116
|
# @example
|
117
117
|
# client.increment_pixel(graph_id: "test-graph")
|
@@ -129,7 +129,7 @@ module Pixela::Client::PixelMethods
|
|
129
129
|
#
|
130
130
|
# @raise [Pixela::PixelaError] API is failed
|
131
131
|
#
|
132
|
-
# @see https://docs.pixe.la
|
132
|
+
# @see https://docs.pixe.la/entry/decrement-pixel
|
133
133
|
#
|
134
134
|
# @example
|
135
135
|
# client.decrement_pixel(graph_id: "test-graph")
|
@@ -8,7 +8,7 @@ module Pixela::Client::UserMethods
|
|
8
8
|
#
|
9
9
|
# @raise [Pixela::PixelaError] API is failed
|
10
10
|
#
|
11
|
-
# @see https://docs.pixe.la
|
11
|
+
# @see https://docs.pixe.la/entry/post-user
|
12
12
|
#
|
13
13
|
# @example
|
14
14
|
# client.create_user(agree_terms_of_service: true, not_minor: true)
|
@@ -33,7 +33,7 @@ module Pixela::Client::UserMethods
|
|
33
33
|
#
|
34
34
|
# @raise [Pixela::PixelaError] API is failed
|
35
35
|
#
|
36
|
-
# @see https://docs.pixe.la
|
36
|
+
# @see https://docs.pixe.la/entry/put-user
|
37
37
|
#
|
38
38
|
# @example
|
39
39
|
# client.update_user(new_token: "thisissecret")
|
@@ -58,7 +58,7 @@ module Pixela::Client::UserMethods
|
|
58
58
|
#
|
59
59
|
# @raise [Pixela::PixelaError] API is failed
|
60
60
|
#
|
61
|
-
# @see https://docs.pixe.la
|
61
|
+
# @see https://docs.pixe.la/entry/delete-user
|
62
62
|
#
|
63
63
|
# @example
|
64
64
|
# client.delete_user
|
@@ -8,7 +8,7 @@ module Pixela::Client::WebhookMethods
|
|
8
8
|
#
|
9
9
|
# @raise [Pixela::PixelaError] API is failed
|
10
10
|
#
|
11
|
-
# @see https://docs.pixe.la
|
11
|
+
# @see https://docs.pixe.la/entry/post-webhook
|
12
12
|
#
|
13
13
|
# @example
|
14
14
|
# client.create_webhook(graph_id: "test-graph", type: "increment")
|
@@ -29,7 +29,7 @@ module Pixela::Client::WebhookMethods
|
|
29
29
|
#
|
30
30
|
# @raise [Pixela::PixelaError] API is failed
|
31
31
|
#
|
32
|
-
# @see https://docs.pixe.la
|
32
|
+
# @see https://docs.pixe.la/entry/get-webhooks
|
33
33
|
#
|
34
34
|
# @example
|
35
35
|
# client.get_webhooks
|
@@ -47,7 +47,7 @@ module Pixela::Client::WebhookMethods
|
|
47
47
|
#
|
48
48
|
# @raise [Pixela::PixelaError] API is failed
|
49
49
|
#
|
50
|
-
# @see https://docs.pixe.la
|
50
|
+
# @see https://docs.pixe.la/entry/invoke-webhook
|
51
51
|
#
|
52
52
|
# @example
|
53
53
|
# client.invoke_webhook(webhook_hash: "<webhookHash>")
|
@@ -65,7 +65,7 @@ module Pixela::Client::WebhookMethods
|
|
65
65
|
#
|
66
66
|
# @raise [Pixela::PixelaError] API is failed
|
67
67
|
#
|
68
|
-
# @see https://docs.pixe.la
|
68
|
+
# @see https://docs.pixe.la/entry/delete-webhook
|
69
69
|
#
|
70
70
|
# @example
|
71
71
|
# client.delete_webhook(webhook_hash: "<webhookHash>")
|
data/lib/pixela/graph.rb
CHANGED
@@ -35,7 +35,7 @@ module Pixela
|
|
35
35
|
#
|
36
36
|
# @raise [Pixela::PixelaError] API is failed
|
37
37
|
#
|
38
|
-
# @see https://docs.pixe.la
|
38
|
+
# @see https://docs.pixe.la/entry/post-graph
|
39
39
|
#
|
40
40
|
# @example
|
41
41
|
# client.graph("test-graph").create(name: "graph-name", unit: "commit", type: "int", color: "shibafu", timezone: "Asia/Tokyo", self_sufficient: "increment")
|
@@ -50,7 +50,7 @@ module Pixela
|
|
50
50
|
#
|
51
51
|
# @return [String]
|
52
52
|
#
|
53
|
-
# @see https://docs.pixe.la
|
53
|
+
# @see https://docs.pixe.la/entry/get-graph
|
54
54
|
#
|
55
55
|
# @example
|
56
56
|
# client.graph("test-graph").url
|
@@ -72,7 +72,7 @@ module Pixela
|
|
72
72
|
#
|
73
73
|
# @raise [Pixela::PixelaError] API is failed
|
74
74
|
#
|
75
|
-
# @see https://docs.pixe.la
|
75
|
+
# @see https://docs.pixe.la/entry/put-graph
|
76
76
|
#
|
77
77
|
# @example
|
78
78
|
# client.graph("test-graph").update(name: "graph-name", unit: "commit", color: "shibafu", timezone: "Asia/Tokyo", purge_cache_urls: ["https://camo.githubusercontent.com/xxx/xxxx"])
|
@@ -86,7 +86,7 @@ module Pixela
|
|
86
86
|
#
|
87
87
|
# @raise [Pixela::PixelaError] API is failed
|
88
88
|
#
|
89
|
-
# @see https://docs.pixe.la
|
89
|
+
# @see https://docs.pixe.la/entry/put-graph
|
90
90
|
#
|
91
91
|
# @example
|
92
92
|
# client.graph("test-graph").delete
|
@@ -100,7 +100,7 @@ module Pixela
|
|
100
100
|
#
|
101
101
|
# @raise [Pixela::PixelaError] API is failed
|
102
102
|
#
|
103
|
-
# @see https://docs.pixe.la
|
103
|
+
# @see https://docs.pixe.la/entry/increment-pixel
|
104
104
|
#
|
105
105
|
# @example
|
106
106
|
# client.graph("test-graph").increment
|
@@ -114,7 +114,7 @@ module Pixela
|
|
114
114
|
#
|
115
115
|
# @raise [Pixela::PixelaError] API is failed
|
116
116
|
#
|
117
|
-
# @see https://docs.pixe.la
|
117
|
+
# @see https://docs.pixe.la/entry/decrement-pixel
|
118
118
|
#
|
119
119
|
# @example
|
120
120
|
# client.graph("test-graph").decrement
|
@@ -131,7 +131,7 @@ module Pixela
|
|
131
131
|
#
|
132
132
|
# @raise [Pixela::PixelaError] API is failed
|
133
133
|
#
|
134
|
-
# @see https://docs.pixe.la
|
134
|
+
# @see https://docs.pixe.la/entry/get-graph-pixels
|
135
135
|
#
|
136
136
|
# @example
|
137
137
|
# client.graph("test-graph").pixel_dates(from: Date.new(2018, 1, 1), to: Date.new(2018, 12, 31))
|
@@ -145,7 +145,7 @@ module Pixela
|
|
145
145
|
#
|
146
146
|
# @raise [Pixela::PixelaError] API is failed
|
147
147
|
#
|
148
|
-
# @see https://docs.pixe.la
|
148
|
+
# @see https://docs.pixe.la/entry/get-graph-stats
|
149
149
|
#
|
150
150
|
# @example
|
151
151
|
# client.graph("test-graph").stats
|
data/lib/pixela/pixel.rb
CHANGED
@@ -30,7 +30,7 @@ module Pixela
|
|
30
30
|
#
|
31
31
|
# @raise [Pixela::PixelaError] API is failed
|
32
32
|
#
|
33
|
-
# @see https://docs.pixe.la
|
33
|
+
# @see https://docs.pixe.la/entry/post-pixel
|
34
34
|
#
|
35
35
|
# @example
|
36
36
|
# client.graph("test-graph").pixel(Date.new(2018, 9, 15)).create(quantity: 5, optional_data: {key: "value"})
|
@@ -44,7 +44,7 @@ module Pixela
|
|
44
44
|
#
|
45
45
|
# @raise [Pixela::PixelaError] API is failed
|
46
46
|
#
|
47
|
-
# @see https://docs.pixe.la
|
47
|
+
# @see https://docs.pixe.la/entry/get-pixel
|
48
48
|
#
|
49
49
|
# @example
|
50
50
|
# client.graph("test-graph").pixel(Date.new(2018, 9, 15)).get
|
@@ -61,7 +61,7 @@ module Pixela
|
|
61
61
|
#
|
62
62
|
# @raise [Pixela::PixelaError] API is failed
|
63
63
|
#
|
64
|
-
# @see https://docs.pixe.la
|
64
|
+
# @see https://docs.pixe.la/entry/put-pixel
|
65
65
|
#
|
66
66
|
# @example
|
67
67
|
# client.graph("test-graph").pixel(Date.new(2018, 9, 15)).update(quantity: 7, optional_data: {key: "value"})
|
@@ -75,7 +75,7 @@ module Pixela
|
|
75
75
|
#
|
76
76
|
# @raise [Pixela::PixelaError] API is failed
|
77
77
|
#
|
78
|
-
# @see https://docs.pixe.la
|
78
|
+
# @see https://docs.pixe.la/entry/delete-pixel
|
79
79
|
#
|
80
80
|
# @example
|
81
81
|
# client.graph("test-graph").pixel(Date.new(2018, 9, 15)).delete
|
data/lib/pixela/version.rb
CHANGED
data/lib/pixela/webhook.rb
CHANGED
@@ -21,7 +21,7 @@ module Pixela
|
|
21
21
|
#
|
22
22
|
# @raise [Pixela::PixelaError] API is failed
|
23
23
|
#
|
24
|
-
# @see https://docs.pixe.la
|
24
|
+
# @see https://docs.pixe.la/entry/invoke-webhook
|
25
25
|
#
|
26
26
|
# @example
|
27
27
|
# client.webhook("<webhookHash>").invoke
|
@@ -35,7 +35,7 @@ module Pixela
|
|
35
35
|
#
|
36
36
|
# @raise [Pixela::PixelaError] API is failed
|
37
37
|
#
|
38
|
-
# @see https://docs.pixe.la
|
38
|
+
# @see https://docs.pixe.la/entry/delete-webhook
|
39
39
|
#
|
40
40
|
# @example
|
41
41
|
# client.webhook("<webhookHash>").delete
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pixela
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|