pixela 1.3.1 → 2.0.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/.github/workflows/test.yml +121 -0
- data/.gitignore +1 -1
- data/CHANGELOG.md +40 -1
- data/README.md +2 -1
- data/bin/console +2 -2
- data/gemfiles/faraday_1.gemfile +8 -0
- data/lib/pixela/client.rb +5 -10
- data/lib/pixela/client/graph_methods.rb +24 -3
- data/lib/pixela/client/pixel_methods.rb +2 -2
- data/lib/pixela/graph.rb +17 -0
- data/lib/pixela/version.rb +1 -1
- data/pixela.gemspec +4 -4
- metadata +27 -26
- data/.travis.yml +0 -40
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a19da817bef056e3d3cc66258e4bce7813bccdb9d8d6e185f0d348283c424c84
|
|
4
|
+
data.tar.gz: cdc62d67befebedfc0c4c4b60c777271d0cacf419b363568f7fd1a923715047d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80480cae33a1c20da25abdeca2e2162468b8a0bf0effded2d7ae3cf612cc8fd7aa96ef9149306e9b23e25101ad65894d9d9654e7a48125534b770d0dfd6978ff
|
|
7
|
+
data.tar.gz: 6d4ba1cfee75fa49a0c1cdb940437e47fdf6e02326ade8972c98ebbbe4f23274a2fdcd668474c5f7efaf68e4488641284ba9f21a78a403613b14cbcdcfc88bd8
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
types:
|
|
9
|
+
- opened
|
|
10
|
+
- synchronize
|
|
11
|
+
- reopened
|
|
12
|
+
schedule:
|
|
13
|
+
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
|
14
|
+
|
|
15
|
+
env:
|
|
16
|
+
CI: "true"
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
test:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
|
|
22
|
+
container: ${{ matrix.ruby }}
|
|
23
|
+
|
|
24
|
+
env:
|
|
25
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
|
|
26
|
+
|
|
27
|
+
strategy:
|
|
28
|
+
fail-fast: false
|
|
29
|
+
|
|
30
|
+
matrix:
|
|
31
|
+
ruby:
|
|
32
|
+
- ruby:2.4
|
|
33
|
+
- ruby:2.5
|
|
34
|
+
- ruby:2.6
|
|
35
|
+
- ruby:2.7
|
|
36
|
+
- rubylang/ruby:master-nightly-bionic
|
|
37
|
+
gemfile:
|
|
38
|
+
- faraday_1.gemfile
|
|
39
|
+
include:
|
|
40
|
+
- ruby: rubylang/ruby:master-nightly-bionic
|
|
41
|
+
allow_failures: "true"
|
|
42
|
+
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v2
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- name: Cache gemfiles/vendor/bundle
|
|
48
|
+
uses: actions/cache@v1
|
|
49
|
+
id: cache_gem
|
|
50
|
+
with:
|
|
51
|
+
path: gemfiles/vendor/bundle
|
|
52
|
+
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ github.sha }}
|
|
53
|
+
restore-keys: |
|
|
54
|
+
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-
|
|
55
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
56
|
+
|
|
57
|
+
- name: bundle update
|
|
58
|
+
run: |
|
|
59
|
+
set -xe
|
|
60
|
+
bundle config path vendor/bundle
|
|
61
|
+
bundle update --jobs $(nproc) --retry 3
|
|
62
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
63
|
+
|
|
64
|
+
- name: Setup Code Climate Test Reporter
|
|
65
|
+
uses: aktions/codeclimate-test-reporter@v1
|
|
66
|
+
with:
|
|
67
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
68
|
+
command: before-build
|
|
69
|
+
continue-on-error: true
|
|
70
|
+
|
|
71
|
+
- name: Run test
|
|
72
|
+
run: |
|
|
73
|
+
set -xe
|
|
74
|
+
bundle exec rspec
|
|
75
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
76
|
+
|
|
77
|
+
- name: Teardown Code Climate Test Reporter
|
|
78
|
+
uses: aktions/codeclimate-test-reporter@v1
|
|
79
|
+
with:
|
|
80
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
81
|
+
command: after-build
|
|
82
|
+
continue-on-error: true
|
|
83
|
+
|
|
84
|
+
- name: Invoke Pixela webhook
|
|
85
|
+
run: |
|
|
86
|
+
if [ -n "$PIXELA_WEBHOOK_URL" ]; then
|
|
87
|
+
curl -X POST $PIXELA_WEBHOOK_URL -H 'Content-Length:0'
|
|
88
|
+
fi
|
|
89
|
+
env:
|
|
90
|
+
PIXELA_WEBHOOK_URL: ${{ secrets.PIXELA_WEBHOOK_URL }}
|
|
91
|
+
if: always()
|
|
92
|
+
continue-on-error: true
|
|
93
|
+
|
|
94
|
+
- name: Slack Notification (not success)
|
|
95
|
+
uses: homoluctus/slatify@master
|
|
96
|
+
if: "! success()"
|
|
97
|
+
continue-on-error: true
|
|
98
|
+
with:
|
|
99
|
+
job_name: ${{ format('*build* ({0}, {1})', matrix.ruby, matrix.gemfile) }}
|
|
100
|
+
type: ${{ job.status }}
|
|
101
|
+
icon_emoji: ":octocat:"
|
|
102
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
103
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
104
|
+
|
|
105
|
+
notify:
|
|
106
|
+
needs:
|
|
107
|
+
- test
|
|
108
|
+
|
|
109
|
+
runs-on: ubuntu-latest
|
|
110
|
+
|
|
111
|
+
steps:
|
|
112
|
+
- name: Slack Notification (success)
|
|
113
|
+
uses: homoluctus/slatify@master
|
|
114
|
+
if: always()
|
|
115
|
+
continue-on-error: true
|
|
116
|
+
with:
|
|
117
|
+
job_name: '*build*'
|
|
118
|
+
type: ${{ job.status }}
|
|
119
|
+
icon_emoji: ":octocat:"
|
|
120
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
121
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
## Unreleased
|
|
2
|
-
[full changelog](http://github.com/sue445/pixela/compare/
|
|
2
|
+
[full changelog](http://github.com/sue445/pixela/compare/v2.0.0...master)
|
|
3
|
+
|
|
4
|
+
## v2.0.0
|
|
5
|
+
[full changelog](http://github.com/sue445/pixela/compare/v1.5.0...v2.0.0)
|
|
6
|
+
|
|
7
|
+
### :warning: Breaking changes :warning:
|
|
8
|
+
* Remove Channel and Notification
|
|
9
|
+
* https://github.com/sue445/pixela/pull/75
|
|
10
|
+
* https://github.com/a-know/Pixela/releases/tag/v1.19.0
|
|
11
|
+
* Drop support for faraday v0.x
|
|
12
|
+
* https://github.com/sue445/pixela/pull/77
|
|
13
|
+
* Drop support for ruby 2.3
|
|
14
|
+
* https://github.com/sue445/pixela/pull/78
|
|
15
|
+
|
|
16
|
+
## v1.5.0
|
|
17
|
+
[full changelog](http://github.com/sue445/pixela/compare/v1.4.2...v1.5.0)
|
|
18
|
+
|
|
19
|
+
* Add `Pixela::Client#run_stopwatch` and `Pixela::Graph#run_stopwatch`
|
|
20
|
+
* https://github.com/sue445/pixela/pull/74
|
|
21
|
+
* https://github.com/a-know/Pixela/releases/tag/v1.18.0
|
|
22
|
+
|
|
23
|
+
## v1.4.2
|
|
24
|
+
[full changelog](http://github.com/sue445/pixela/compare/v1.4.1...v1.4.2)
|
|
25
|
+
|
|
26
|
+
* Support `remind_by` of Notification
|
|
27
|
+
* https://github.com/sue445/pixela/pull/72
|
|
28
|
+
* https://github.com/a-know/Pixela/releases/tag/v1.17.0
|
|
29
|
+
|
|
30
|
+
## v1.4.1
|
|
31
|
+
[full changelog](http://github.com/sue445/pixela/compare/v1.4.0...v1.4.1)
|
|
32
|
+
|
|
33
|
+
* Support faraday v1.0
|
|
34
|
+
* https://github.com/sue445/pixela/pull/63
|
|
35
|
+
|
|
36
|
+
## v1.4.0
|
|
37
|
+
[full changelog](http://github.com/sue445/pixela/compare/v1.3.1...v1.4.0)
|
|
38
|
+
|
|
39
|
+
* Support Channel and Notification API
|
|
40
|
+
* https://github.com/sue445/pixela/pull/59
|
|
41
|
+
* https://github.com/a-know/Pixela/releases/tag/v1.13.0
|
|
3
42
|
|
|
4
43
|
## v1.3.1
|
|
5
44
|
[full changelog](http://github.com/sue445/pixela/compare/v1.3.0...v1.3.1)
|
data/README.md
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
[Pixela](https://pixe.la/) API client for Ruby
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/rb/pixela)
|
|
6
|
-
[](https://pixe.la/v1/users/sue445/graphs/pixela-gem-ci.html)
|
|
7
|
+
[](https://github.com/sue445/pixela/actions?query=workflow%3Atest)
|
|
7
8
|
[](https://codeclimate.com/github/sue445/pixela/maintainability)
|
|
8
9
|
[](https://coveralls.io/github/sue445/pixela)
|
|
9
10
|
|
data/bin/console
CHANGED
data/lib/pixela/client.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module Pixela
|
|
2
2
|
class Client
|
|
3
|
-
autoload :GraphMethods,
|
|
4
|
-
autoload :PixelMethods,
|
|
5
|
-
autoload :UserMethods,
|
|
6
|
-
autoload :WebhookMethods,
|
|
3
|
+
autoload :GraphMethods, "pixela/client/graph_methods"
|
|
4
|
+
autoload :PixelMethods, "pixela/client/pixel_methods"
|
|
5
|
+
autoload :UserMethods, "pixela/client/user_methods"
|
|
6
|
+
autoload :WebhookMethods, "pixela/client/webhook_methods"
|
|
7
7
|
|
|
8
8
|
include GraphMethods
|
|
9
9
|
include PixelMethods
|
|
@@ -70,7 +70,7 @@ module Pixela
|
|
|
70
70
|
|
|
71
71
|
def with_error_handling
|
|
72
72
|
yield
|
|
73
|
-
rescue Faraday::ClientError => error
|
|
73
|
+
rescue Faraday::ClientError, Faraday::ServerError => error
|
|
74
74
|
begin
|
|
75
75
|
body = JSON.parse(error.response[:body])
|
|
76
76
|
raise PixelaError, body["message"]
|
|
@@ -99,10 +99,5 @@ module Pixela
|
|
|
99
99
|
|
|
100
100
|
date.strftime("%Y%m%d")
|
|
101
101
|
end
|
|
102
|
-
|
|
103
|
-
def compact_hash(hash)
|
|
104
|
-
# NOTE: Hash#compact is available since MRI 2.4+
|
|
105
|
-
hash.reject { |_, v| v.nil? }
|
|
106
|
-
end
|
|
107
102
|
end
|
|
108
103
|
end
|
|
@@ -33,7 +33,7 @@ module Pixela::Client::GraphMethods
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
with_error_handling do
|
|
36
|
-
connection.post("users/#{username}/graphs",
|
|
36
|
+
connection.post("users/#{username}/graphs", params.compact).body
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
@@ -126,7 +126,7 @@ module Pixela::Client::GraphMethods
|
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
with_error_handling do
|
|
129
|
-
connection.put("users/#{username}/graphs/#{graph_id}",
|
|
129
|
+
connection.put("users/#{username}/graphs/#{graph_id}", params.compact).body
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
|
|
@@ -170,7 +170,7 @@ module Pixela::Client::GraphMethods
|
|
|
170
170
|
|
|
171
171
|
res =
|
|
172
172
|
with_error_handling do
|
|
173
|
-
connection.get("users/#{username}/graphs/#{graph_id}/pixels",
|
|
173
|
+
connection.get("users/#{username}/graphs/#{graph_id}/pixels", params.compact).body
|
|
174
174
|
end
|
|
175
175
|
|
|
176
176
|
res.pixels.map { |ymd| Date.parse(ymd) }
|
|
@@ -193,4 +193,25 @@ module Pixela::Client::GraphMethods
|
|
|
193
193
|
connection.get("users/#{username}/graphs/#{graph_id}/stats").body
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
|
+
|
|
197
|
+
# This will start and end the measurement of the time.
|
|
198
|
+
#
|
|
199
|
+
# @param graph_id [String]
|
|
200
|
+
#
|
|
201
|
+
# @return [Pixela::Response]
|
|
202
|
+
#
|
|
203
|
+
# @raise [Pixela::PixelaError] API is failed
|
|
204
|
+
#
|
|
205
|
+
# @see https://docs.pixe.la/entry/post-stopwatch
|
|
206
|
+
#
|
|
207
|
+
# @example
|
|
208
|
+
# client.run_stopwatch(graph_id: "test-graph")
|
|
209
|
+
def run_stopwatch(graph_id:)
|
|
210
|
+
with_error_handling do
|
|
211
|
+
connection.post("users/#{username}/graphs/#{graph_id}/stopwatch").body
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
alias_method :start_stopwatch, :run_stopwatch
|
|
216
|
+
alias_method :end_stopwatch, :run_stopwatch
|
|
196
217
|
end
|
|
@@ -22,7 +22,7 @@ module Pixela::Client::PixelMethods
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
with_error_handling do
|
|
25
|
-
connection.post("users/#{username}/graphs/#{graph_id}",
|
|
25
|
+
connection.post("users/#{username}/graphs/#{graph_id}", params.compact).body
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
@@ -80,7 +80,7 @@ module Pixela::Client::PixelMethods
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
with_error_handling do
|
|
83
|
-
connection.put("users/#{username}/graphs/#{graph_id}/#{to_ymd(date)}",
|
|
83
|
+
connection.put("users/#{username}/graphs/#{graph_id}/#{to_ymd(date)}", params.compact).body
|
|
84
84
|
end
|
|
85
85
|
end
|
|
86
86
|
|
data/lib/pixela/graph.rb
CHANGED
|
@@ -162,5 +162,22 @@ module Pixela
|
|
|
162
162
|
def stats
|
|
163
163
|
client.get_graph_stats(graph_id: graph_id)
|
|
164
164
|
end
|
|
165
|
+
|
|
166
|
+
# This will start and end the measurement of the time.
|
|
167
|
+
#
|
|
168
|
+
# @return [Pixela::Response]
|
|
169
|
+
#
|
|
170
|
+
# @raise [Pixela::PixelaError] API is failed
|
|
171
|
+
#
|
|
172
|
+
# @see https://docs.pixe.la/entry/post-stopwatch
|
|
173
|
+
#
|
|
174
|
+
# @example
|
|
175
|
+
# client.graph("test-graph").run_stopwatch
|
|
176
|
+
def run_stopwatch
|
|
177
|
+
client.run_stopwatch(graph_id: graph_id)
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
alias_method :start_stopwatch, :run_stopwatch
|
|
181
|
+
alias_method :end_stopwatch, :run_stopwatch
|
|
165
182
|
end
|
|
166
183
|
end
|
data/lib/pixela/version.rb
CHANGED
data/pixela.gemspec
CHANGED
|
@@ -34,9 +34,9 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
35
35
|
spec.require_paths = ["lib"]
|
|
36
36
|
|
|
37
|
-
spec.required_ruby_version = ">= 2.
|
|
37
|
+
spec.required_ruby_version = ">= 2.4.0"
|
|
38
38
|
|
|
39
|
-
spec.add_dependency "faraday"
|
|
39
|
+
spec.add_dependency "faraday", ">= 1.0.0"
|
|
40
40
|
spec.add_dependency "faraday_curl"
|
|
41
41
|
spec.add_dependency "faraday_middleware"
|
|
42
42
|
spec.add_dependency "hashie"
|
|
@@ -44,12 +44,12 @@ Gem::Specification.new do |spec|
|
|
|
44
44
|
spec.add_development_dependency "bundler", ">= 1.16"
|
|
45
45
|
spec.add_development_dependency "coveralls"
|
|
46
46
|
spec.add_development_dependency "dotenv"
|
|
47
|
-
spec.add_development_dependency "
|
|
48
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
|
47
|
+
spec.add_development_dependency "rake", ">= 10.0"
|
|
49
48
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
50
49
|
spec.add_development_dependency "rspec-its"
|
|
51
50
|
spec.add_development_dependency "rspec-parameterized"
|
|
52
51
|
spec.add_development_dependency "simplecov"
|
|
52
|
+
spec.add_development_dependency "unparser", ">= 0.4.5"
|
|
53
53
|
spec.add_development_dependency "webmock"
|
|
54
54
|
spec.add_development_dependency "yard"
|
|
55
55
|
end
|
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:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 1.0.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: 1.0.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: faraday_curl
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -108,32 +108,18 @@ dependencies:
|
|
|
108
108
|
- - ">="
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: pry-byebug
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0'
|
|
125
111
|
- !ruby/object:Gem::Dependency
|
|
126
112
|
name: rake
|
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
|
128
114
|
requirements:
|
|
129
|
-
- - "
|
|
115
|
+
- - ">="
|
|
130
116
|
- !ruby/object:Gem::Version
|
|
131
117
|
version: '10.0'
|
|
132
118
|
type: :development
|
|
133
119
|
prerelease: false
|
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
121
|
requirements:
|
|
136
|
-
- - "
|
|
122
|
+
- - ">="
|
|
137
123
|
- !ruby/object:Gem::Version
|
|
138
124
|
version: '10.0'
|
|
139
125
|
- !ruby/object:Gem::Dependency
|
|
@@ -192,6 +178,20 @@ dependencies:
|
|
|
192
178
|
- - ">="
|
|
193
179
|
- !ruby/object:Gem::Version
|
|
194
180
|
version: '0'
|
|
181
|
+
- !ruby/object:Gem::Dependency
|
|
182
|
+
name: unparser
|
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
- - ">="
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: 0.4.5
|
|
188
|
+
type: :development
|
|
189
|
+
prerelease: false
|
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
+
requirements:
|
|
192
|
+
- - ">="
|
|
193
|
+
- !ruby/object:Gem::Version
|
|
194
|
+
version: 0.4.5
|
|
195
195
|
- !ruby/object:Gem::Dependency
|
|
196
196
|
name: webmock
|
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -229,9 +229,9 @@ extra_rdoc_files: []
|
|
|
229
229
|
files:
|
|
230
230
|
- ".coveralls.yml"
|
|
231
231
|
- ".env.example"
|
|
232
|
+
- ".github/workflows/test.yml"
|
|
232
233
|
- ".gitignore"
|
|
233
234
|
- ".rspec"
|
|
234
|
-
- ".travis.yml"
|
|
235
235
|
- ".yardopts"
|
|
236
236
|
- CHANGELOG.md
|
|
237
237
|
- Gemfile
|
|
@@ -240,6 +240,7 @@ files:
|
|
|
240
240
|
- Rakefile
|
|
241
241
|
- bin/console
|
|
242
242
|
- bin/setup
|
|
243
|
+
- gemfiles/faraday_1.gemfile
|
|
243
244
|
- lib/pixela.rb
|
|
244
245
|
- lib/pixela/client.rb
|
|
245
246
|
- lib/pixela/client/graph_methods.rb
|
|
@@ -260,7 +261,7 @@ metadata:
|
|
|
260
261
|
homepage_uri: https://github.com/sue445/pixela
|
|
261
262
|
source_code_uri: https://github.com/sue445/pixela
|
|
262
263
|
changelog_uri: https://github.com/sue445/pixela/blob/master/CHANGELOG.md
|
|
263
|
-
post_install_message:
|
|
264
|
+
post_install_message:
|
|
264
265
|
rdoc_options: []
|
|
265
266
|
require_paths:
|
|
266
267
|
- lib
|
|
@@ -268,15 +269,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
268
269
|
requirements:
|
|
269
270
|
- - ">="
|
|
270
271
|
- !ruby/object:Gem::Version
|
|
271
|
-
version: 2.
|
|
272
|
+
version: 2.4.0
|
|
272
273
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
274
|
requirements:
|
|
274
275
|
- - ">="
|
|
275
276
|
- !ruby/object:Gem::Version
|
|
276
277
|
version: '0'
|
|
277
278
|
requirements: []
|
|
278
|
-
rubygems_version: 3.
|
|
279
|
-
signing_key:
|
|
279
|
+
rubygems_version: 3.1.2
|
|
280
|
+
signing_key:
|
|
280
281
|
specification_version: 4
|
|
281
282
|
summary: Pixela API client for Ruby
|
|
282
283
|
test_files: []
|
data/.travis.yml
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- 2.3
|
|
4
|
-
- 2.4
|
|
5
|
-
- 2.5
|
|
6
|
-
- 2.6
|
|
7
|
-
- ruby-head
|
|
8
|
-
bundler_args: "--jobs=2"
|
|
9
|
-
cache: bundler
|
|
10
|
-
before_install:
|
|
11
|
-
- travis_retry gem update --system || travis_retry gem update --system 2.7.8
|
|
12
|
-
- travis_retry gem install bundler --no-document || travis_retry gem install bundler --no-document -v 1.17.3
|
|
13
|
-
before_script:
|
|
14
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
15
|
-
- chmod +x ./cc-test-reporter
|
|
16
|
-
- ./cc-test-reporter before-build
|
|
17
|
-
script:
|
|
18
|
-
- bundle exec rspec
|
|
19
|
-
after_script:
|
|
20
|
-
- if [ "$PIXELA_WEBHOOK_URL" != "" ]; then curl -X POST $PIXELA_WEBHOOK_URL -H 'Content-Length:0'; fi
|
|
21
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
|
22
|
-
branches:
|
|
23
|
-
only:
|
|
24
|
-
- master
|
|
25
|
-
notifications:
|
|
26
|
-
email: false
|
|
27
|
-
slack:
|
|
28
|
-
secure: ec/Q9tFK+TjW7ZVOWg8NPfa4IFfbU24ljqObG7YhlaYaIN63MMdMITfy17sQahm2T0x7jhAzxDo1pDTb9XoBs12cu2wogZltv+daZwATWYzipvUxQqge1yywnFn3QLfQyzAl5p1MYkxLpJeVDRD8wunmc2OikR4jMtl5KDk9e2sItHGJdfPY8mFhM+sKaLyy9mbGo02aqRqwhgXGFQg1lZ/D6qPZKPSAd+S+uJgma8En4P292APBN9hsgpjC4HGqiqhPumOyjmdiVZ//4QoYhIEaMGJiwKyv9GwS0cTfk6w9MNFRILhj4tN3kP8ZsI7h5oQy8+x0Deac9joTKMNVarvZkVFZWLZ3p8mthdsRNKZeYxkSgnrhwA/3CFe/THjolfROA61iQqWxFycdIqSieiGHZ57EvHo7HOSD5Kc0017X+UITjiWiKiSQPddPmYm5hl9lo9rBo1RaJRr6B5A2qrw2SBmNfH38+BDTMFZprJLN51LBJ4DEy4R0CClbyIk6DbODsWqQC+W+6sOCWOhrVXSeSVlxPz7hT24ezkcMLMvoA5k9f6Gi2cWWDD9CmRI2Upt+5lx0Ui1/9xbk4RG6/hue8L764jdQ2mqNtrAZJSjdfs9KxapoKFllezdwhNVJS4UoU6PT9DU227cHH3SWHYm9GHu/pQ6kdhBGcr/EMiY=
|
|
29
|
-
matrix:
|
|
30
|
-
allow_failures:
|
|
31
|
-
- rvm: ruby-head
|
|
32
|
-
include:
|
|
33
|
-
- rvm: 2.6
|
|
34
|
-
env: RUBYOPT="--jit"
|
|
35
|
-
- rvm: ruby-head
|
|
36
|
-
env: RUBYOPT="--jit"
|
|
37
|
-
sudo: false
|
|
38
|
-
env:
|
|
39
|
-
global:
|
|
40
|
-
- CC_TEST_REPORTER_ID=67b1bed21e42834690bb57b148b93d6bd23410d8e013afdf6a89d66f36011a95
|