prismdb 1.0.0 → 1.0.1

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: df5d6d16a9d14f82ae08420abb0c48f5f22aa0555f175f2848a3341ada97d77a
4
- data.tar.gz: fd4d80c6dfee75ba476f232dfe30e326c5f23f0800280ad7ce2ed199f11307b1
3
+ metadata.gz: be33f3de3743dd40520bc99a2d769299683167e35c55344d35323e33b2c9938b
4
+ data.tar.gz: e03e10c36eb081c438f58ad6ee80a993006201bfff35da8d377b6614a2ad4617
5
5
  SHA512:
6
- metadata.gz: 5b6f572496025b44e76c079ce0c94cd6912efc181ba9775f771d559fcb2bc0c3087865e3bd4aa734322d03165d0e7fd1f2620bc7d0616762c326be9d73cce4f4
7
- data.tar.gz: be1be6e8e1e4a9b5d1608362b1bfe81dbf1f7570760793a2e9204a784510f39a67a3fcc23f327451b5b21f653e9b1a3fed65d06077b0966d212d79f9984d17ae
6
+ metadata.gz: ba775dcb0243d35c0a8de3a90675c36ebfb4127537ad0ee7d3c96e0189b373fe4c58eebe0c45b31813595dce7535afa44c0da5da5f51aa576d988666e4d78012
7
+ data.tar.gz: affcccb6619f625133dd24796c3e62fb9ccd48eac268f85fa375e4251e752717ff8bc27f5cb75762bbdab1bb4170e09e990f21ab4021c7b93a1aef3e7ae77072
@@ -0,0 +1,12 @@
1
+ # c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: github-actions
6
+ directory: /
7
+ schedule:
8
+ interval: weekly
9
+ cooldown:
10
+ default-days: 7
11
+ assignees:
12
+ - sue445
@@ -0,0 +1,59 @@
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name: Deploy static content to Pages
3
+
4
+ on:
5
+ # Runs on pushes targeting the default branch
6
+ push:
7
+ branches:
8
+ - master
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch:
12
+
13
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
+ permissions:
15
+ contents: read
16
+ pages: write
17
+ id-token: write
18
+
19
+ # Allow one concurrent deployment
20
+ concurrency:
21
+ group: "pages"
22
+ cancel-in-progress: true
23
+
24
+ jobs:
25
+ # Single deploy job since we're just deploying
26
+ deploy:
27
+ environment:
28
+ name: github-pages
29
+ url: ${{ steps.deployment.outputs.page_url }}
30
+ runs-on: ubuntu-latest
31
+ steps:
32
+ - name: Checkout
33
+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
34
+
35
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
36
+ with:
37
+ ruby-version: ruby
38
+ bundler-cache: true
39
+
40
+ - run: bundle exec yard
41
+
42
+ - name: Setup Pages
43
+ uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
44
+ - name: Upload artifact
45
+ uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
46
+ with:
47
+ # Upload entire repository
48
+ path: './doc'
49
+ - name: Deploy to GitHub Pages
50
+ id: deployment
51
+ uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
52
+
53
+ - name: Slack Notification (not success)
54
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
55
+ if: "! success()"
56
+ continue-on-error: true
57
+ with:
58
+ status: ${{ job.status }}
59
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
@@ -0,0 +1,41 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ release:
8
+ if: github.repository == 'sue445/prismdb-ruby'
9
+ runs-on: ubuntu-latest
10
+
11
+ environment:
12
+ name: rubygems.org
13
+ url: https://rubygems.org/gems/prismdb
14
+
15
+ permissions:
16
+ contents: write
17
+ id-token: write
18
+
19
+ steps:
20
+ - name: Harden Runner
21
+ uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
22
+ with:
23
+ egress-policy: audit
24
+
25
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26
+
27
+ - name: Set up Ruby
28
+ uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
29
+ with:
30
+ bundler-cache: true
31
+ ruby-version: ruby
32
+
33
+ - name: Publish to RubyGems
34
+ uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
35
+
36
+ - name: Create GitHub release
37
+ run: |
38
+ tag_name="$(git describe --tags --abbrev=0)"
39
+ gh release create "${tag_name}" --verify-tag --generate-notes
40
+ env:
41
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -16,56 +16,40 @@ jobs:
16
16
  test:
17
17
  runs-on: ubuntu-latest
18
18
 
19
- container: ${{ matrix.ruby }}
20
-
21
19
  strategy:
22
20
  fail-fast: false
23
21
 
24
22
  matrix:
25
23
  ruby:
26
- - ruby:2.6
27
- - ruby:2.7
28
- - ruby:3.0
29
- - ruby:3.1
30
- - rubylang/ruby:master-nightly-bionic
31
- include:
32
- - ruby: rubylang/ruby:master-nightly-bionic
33
- allow_failures: "true"
24
+ - "2.6"
25
+ - "2.7"
26
+ - "3.0"
27
+ - "3.1"
28
+ - "3.2"
29
+ - "3.3"
30
+ - "3.4"
34
31
 
35
32
  steps:
36
- - uses: actions/checkout@v2
37
- - name: Cache vendor/bundle
38
- uses: actions/cache@v1
39
- id: cache_gem
33
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
34
+
35
+ - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
40
36
  with:
41
- path: vendor/bundle
42
- key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
43
- restore-keys: |
44
- v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
45
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
37
+ ruby-version: ${{ matrix.ruby }}
38
+ bundler-cache: true
46
39
 
47
- - name: bundle update
48
- run: |
49
- set -xe
50
- bundle config path vendor/bundle
51
- bundle update --jobs $(nproc) --retry 3
52
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
40
+ - run: bundle update --jobs $(nproc) --retry 3
53
41
 
54
42
  - name: Setup Code Climate Test Reporter
55
- uses: aktions/codeclimate-test-reporter@v1
43
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
56
44
  with:
57
45
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
58
46
  command: before-build
59
47
  continue-on-error: true
60
48
 
61
- - name: Run test
62
- run: |
63
- set -xe
64
- bundle exec rspec
65
- continue-on-error: ${{ matrix.allow_failures == 'true' }}
49
+ - run: bundle exec rspec
66
50
 
67
51
  - name: Teardown Code Climate Test Reporter
68
- uses: aktions/codeclimate-test-reporter@v1
52
+ uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
69
53
  with:
70
54
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
71
55
  command: after-build
@@ -73,15 +57,13 @@ jobs:
73
57
  continue-on-error: true
74
58
 
75
59
  - name: Slack Notification (not success)
76
- uses: lazy-actions/slatify@master
60
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
77
61
  if: "! success()"
78
62
  continue-on-error: true
79
63
  with:
80
- job_name: ${{ format('*build* ({0})', matrix.ruby) }}
81
- type: ${{ job.status }}
82
- icon_emoji: ":octocat:"
83
- url: ${{ secrets.SLACK_WEBHOOK }}
84
- token: ${{ secrets.GITHUB_TOKEN }}
64
+ status: ${{ job.status }}
65
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
66
+ matrix: ${{ toJson(matrix) }}
85
67
 
86
68
  notify:
87
69
  needs:
@@ -91,12 +73,9 @@ jobs:
91
73
 
92
74
  steps:
93
75
  - name: Slack Notification (success)
94
- uses: lazy-actions/slatify@master
76
+ uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
95
77
  if: always()
96
78
  continue-on-error: true
97
79
  with:
98
- job_name: '*build*'
99
- type: ${{ job.status }}
100
- icon_emoji: ":octocat:"
101
- url: ${{ secrets.SLACK_WEBHOOK }}
102
- token: ${{ secrets.GITHUB_TOKEN }}
80
+ status: ${{ job.status }}
81
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ --markup markdown
2
+ --no-private
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Unreleased
2
- [full changelog](http://github.com/sue445/prismdb-ruby/compare/v1.0.0...master)
2
+ [full changelog](http://github.com/sue445/prismdb-ruby/compare/v1.0.1...master)
3
+
4
+ ## [v1.0.1](https://github.com/sue445/prismdb-ruby/releases/tag/v1.0.1)
5
+ [full changelog](http://github.com/sue445/prismdb-ruby/compare/v1.0.0...v1.0.1)
6
+
7
+ * Release gem from GitHub Actions
8
+ * https://github.com/sue445/prismdb-ruby/pull/40
3
9
 
4
10
  ## v1.0.0
5
11
  [full changelog](http://github.com/sue445/prismdb-ruby/compare/v0.1.1...v1.0.0)
data/Gemfile CHANGED
@@ -3,14 +3,7 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in prismdb.gemspec
4
4
  gemspec
5
5
 
6
- gem "coveralls"
7
- gem "rake", "~> 12.0"
8
- gem "rspec", "~> 3.0"
9
- gem "rspec-its"
10
-
11
- # Workaround for cc-test-reporter with SimpleCov 0.18.
12
- # Stop upgrading SimpleCov until the following issue will be resolved.
13
- # https://github.com/codeclimate/test-reporter/issues/418
14
- gem "simplecov", "~> 0.10", "< 0.18"
15
-
16
- gem "webmock", require: "webmock/rspec"
6
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
7
+ # term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
8
+ gem "term-ansicolor", "< 1.9.0"
9
+ end
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  [PrismDB](https://prismdb.takanakahiko.me/) API client for ruby
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/prismdb.svg)](https://badge.fury.io/rb/prismdb)
5
- [![test](https://github.com/sue445/prismdb-ruby/workflows/test/badge.svg?branch=master)](https://github.com/sue445/prismdb-ruby/actions?query=workflow%3Atest)
5
+ [![test](https://github.com/sue445/prismdb-ruby/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/prismdb-ruby/actions/workflows/test.yml)
6
6
  [![Coverage Status](https://coveralls.io/repos/github/sue445/prismdb-ruby/badge.svg?branch=master)](https://coveralls.io/github/sue445/prismdb-ruby?branch=master)
7
7
  [![Maintainability](https://api.codeclimate.com/v1/badges/091d941f30ffc69fbd4b/maintainability)](https://codeclimate.com/github/sue445/prismdb-ruby/maintainability)
8
8
 
@@ -74,7 +74,7 @@ pripara = client.find_series("pripara")
74
74
 
75
75
  All methods are followings
76
76
 
77
- https://www.rubydoc.info/gems/prismdb/Prismdb/Client
77
+ https://sue445.github.io/prismdb-ruby/Prismdb/Client
78
78
 
79
79
  ## Development
80
80
 
@@ -1,3 +1,3 @@
1
1
  module Prismdb
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/prismdb.gemspec CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.metadata["homepage_uri"] = spec.homepage
16
16
  spec.metadata["source_code_uri"] = "https://github.com/sue445/prismdb-ruby"
17
17
  spec.metadata["changelog_uri"] = "https://github.com/sue445/prismdb-ruby/blob/master/CHANGELOG.md"
18
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/prismdb-ruby/"
18
19
  spec.metadata["rubygems_mfa_required"] = "true"
19
20
 
20
21
  # Specify which files should be added to the gem when it is released.
@@ -28,4 +29,18 @@ Gem::Specification.new do |spec|
28
29
 
29
30
  spec.add_dependency "faraday", ">= 2.0.0"
30
31
  spec.add_dependency "faraday-mashify"
32
+
33
+ spec.add_development_dependency "coveralls_reborn"
34
+ spec.add_development_dependency "rake"
35
+ spec.add_development_dependency "rspec"
36
+ spec.add_development_dependency "rspec-its"
37
+
38
+ # Workaround for cc-test-reporter with SimpleCov 0.18.
39
+ # Stop upgrading SimpleCov until the following issue will be resolved.
40
+ # https://github.com/codeclimate/test-reporter/issues/418
41
+ spec.add_development_dependency "simplecov", "~> 0.10", "< 0.18"
42
+
43
+ spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
44
+ spec.add_development_dependency "webmock"
45
+ spec.add_development_dependency "yard"
31
46
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prismdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2022-01-08 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -38,6 +37,124 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: '0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: coveralls_reborn
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: rake
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: rspec
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ - !ruby/object:Gem::Dependency
83
+ name: rspec-its
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: simplecov
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '0.10'
103
+ - - "<"
104
+ - !ruby/object:Gem::Version
105
+ version: '0.18'
106
+ type: :development
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: '0.10'
113
+ - - "<"
114
+ - !ruby/object:Gem::Version
115
+ version: '0.18'
116
+ - !ruby/object:Gem::Dependency
117
+ name: term-ansicolor
118
+ requirement: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "!="
121
+ - !ruby/object:Gem::Version
122
+ version: 1.11.1
123
+ type: :development
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "!="
128
+ - !ruby/object:Gem::Version
129
+ version: 1.11.1
130
+ - !ruby/object:Gem::Dependency
131
+ name: webmock
132
+ requirement: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ type: :development
138
+ prerelease: false
139
+ version_requirements: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ - !ruby/object:Gem::Dependency
145
+ name: yard
146
+ requirement: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ type: :development
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
41
158
  description: PrismDB API client for ruby
42
159
  email:
43
160
  - sue445@sue445.net
@@ -46,9 +163,13 @@ extensions: []
46
163
  extra_rdoc_files: []
47
164
  files:
48
165
  - ".coveralls.yml"
166
+ - ".github/dependabot.yml"
167
+ - ".github/workflows/pages.yml"
168
+ - ".github/workflows/release_gem.yml"
49
169
  - ".github/workflows/test.yml"
50
170
  - ".gitignore"
51
171
  - ".rspec"
172
+ - ".yardopts"
52
173
  - CHANGELOG.md
53
174
  - Gemfile
54
175
  - LICENSE.txt
@@ -69,8 +190,8 @@ metadata:
69
190
  homepage_uri: https://github.com/sue445/prismdb-ruby
70
191
  source_code_uri: https://github.com/sue445/prismdb-ruby
71
192
  changelog_uri: https://github.com/sue445/prismdb-ruby/blob/master/CHANGELOG.md
193
+ documentation_uri: https://sue445.github.io/prismdb-ruby/
72
194
  rubygems_mfa_required: 'true'
73
- post_install_message:
74
195
  rdoc_options: []
75
196
  require_paths:
76
197
  - lib
@@ -85,8 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
206
  - !ruby/object:Gem::Version
86
207
  version: '0'
87
208
  requirements: []
88
- rubygems_version: 3.3.3
89
- signing_key:
209
+ rubygems_version: 3.6.7
90
210
  specification_version: 4
91
211
  summary: PrismDB API client for ruby
92
212
  test_files: []