dapr 0.1.27 → 0.2.4

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: 723514a7c053e567a10f55dfbe0f32d00c2e3ec53e2fa1055c3acd7ae9665b51
4
- data.tar.gz: 812b4395406f1876516effed12114d9e82cab68cc58362487dfb4c95d3c608ea
3
+ metadata.gz: ab73a04ceb11b16505a3c4ef97bb859a39c1a90204f349d2074baf68d836b497
4
+ data.tar.gz: e7bed4198c5b268a4a6839305931c70120c50aa0a2c8bbc59fa32a2d3e447758
5
5
  SHA512:
6
- metadata.gz: e80e94eee0743a5fc5bc7ee9575ed84558b53f2a72e27c669d6f755ad17131c53e9b71aa7ea7b612aa6b70f41f76c4b2f8b6d72de0d19ef340d4b38013686148
7
- data.tar.gz: fe4385f616156ee8b3d450fb731e245d0bd7493d1bc5419aee7c7507084899eef2659b379b3f6c32ae386415f199deb2b693e45221338cc7cf24017ef44ab4bb
6
+ metadata.gz: 65ae1a9c3cde7f50f9e621b2ab3abdc0849b8acf3834f3f41c8d4eeb23a235f79c9af0cc008f718828aaa2ce1924793bdc69f63c4350d3ff6a42ae088fff746f
7
+ data.tar.gz: 800b9beafda6d2d4a66c841155bf1b9e39e6eab2a4ff66e54e90880e9fd853063c477a2506c52c9aeb0a6f747b564122afa979d4370d7a969d9489a67af7e4c6
data/.overcommit.yml CHANGED
@@ -54,7 +54,7 @@ PreCommit:
54
54
  enabled: false
55
55
  ForbiddenBranches:
56
56
  enabled: true
57
- branch_patterns: [ 'main', 'master' ]
57
+ branch_patterns: ['main', 'master']
58
58
  GinkgoFocus:
59
59
  enabled: false
60
60
  GoFmt:
@@ -205,7 +205,7 @@ PreCommit:
205
205
  enabled: false
206
206
  CommitMsg:
207
207
  CapitalizedSubject:
208
- enabled: true
208
+ enabled: false
209
209
  EmptyMessage:
210
210
  enabled: true
211
211
  GerritChangeId:
@@ -213,15 +213,23 @@ CommitMsg:
213
213
  HardTabs:
214
214
  enabled: false
215
215
  MessageFormat:
216
- enabled: false
216
+ enabled: true
217
+ expected_pattern_message: |-
218
+ /^(?<type>[a-z]+)(?<scope>\(\w+\))?!?: (?<subject>[A-Z].*)$/
219
+ The scope and ! are optional see
220
+ https://www.conventionalcommits.org/en/v1.0.0/#specification
221
+ Subject must start with a capital letter
222
+ pattern: '^(?<type>[a-z]+)(?<scope>\(\w+\))?!?: (?<subject>[A-Z].*)$'
223
+ sample_message: 'docs(readme): ISSUE-10 - Correct typo'
217
224
  RussianNovel:
218
- enabled: false
225
+ enabled: true
219
226
  SingleLineSubject:
220
227
  enabled: true
221
228
  SpellCheck:
222
229
  enabled: false
223
230
  TextWidth:
224
231
  enabled: true
232
+ max_subject_width: 72
225
233
  TrailingPeriod:
226
234
  enabled: true
227
235
  PostCheckout:
@@ -0,0 +1,28 @@
1
+ {
2
+ "packages": {
3
+ ".": {
4
+ "changelog-path": "CHANGELOG.md",
5
+ "release-type": "simple",
6
+ "bump-minor-pre-major": true,
7
+ "bump-patch-for-minor-pre-major": true,
8
+ "draft": false,
9
+ "prerelease": false,
10
+ "version-file": ".version.txt",
11
+ "extra-files": [
12
+ {
13
+ "type": "generic",
14
+ "path": "lib/dapr/version.rb"
15
+ }
16
+ ],
17
+ "exclude-paths": [
18
+ ".release-please-manifest.json",
19
+ ".version.txt",
20
+ "lib/dapr/version.rb",
21
+ ".rubocop.yml",
22
+ ".overcommit.yml",
23
+ "coverage/coverage.json"
24
+ ]
25
+ }
26
+ },
27
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
28
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.2.4"
3
+ }
data/.version.txt ADDED
@@ -0,0 +1 @@
1
+ 0.2.4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.4](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.3...v0.2.4) (2024-06-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Adds codeql scanning back to the release pipeline ([#29](https://github.com/rubyists/dapr-ruby-client/issues/29)) ([0b0d602](https://github.com/rubyists/dapr-ruby-client/commit/0b0d602db68dd8bf6583552a2e7d92276135be8f))
9
+ * Uses .yaml suffix for all yaml files ([8c7aaf9](https://github.com/rubyists/dapr-ruby-client/commit/8c7aaf98eeb5d9eb6d7a74bf0fb574654e150a83))
10
+
11
+ ## [0.2.3](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.2...v0.2.3) (2024-06-03)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * Hack it up to allow publishing to multiple gem package repos ([#26](https://github.com/rubyists/dapr-ruby-client/issues/26)) ([e59ca38](https://github.com/rubyists/dapr-ruby-client/commit/e59ca38bf2aee9950ef84bd57548f0f3d81c402d))
17
+
18
+ ## [0.2.2](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.1...v0.2.2) (2024-06-02)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * It helps to check out the code before building a gem ([#24](https://github.com/rubyists/dapr-ruby-client/issues/24)) ([8bfd14e](https://github.com/rubyists/dapr-ruby-client/commit/8bfd14eee9b548916afe028fc19a4c1a6088ec78))
24
+
25
+ ## [0.2.1](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.0...v0.2.1) (2024-06-02)
26
+
27
+
28
+ ### Features
29
+
30
+ * Adds separate callable gem publish workflow ([#21](https://github.com/rubyists/dapr-ruby-client/issues/21)) ([96dbb03](https://github.com/rubyists/dapr-ruby-client/commit/96dbb034fcc2fdc8e6a51bba92250eeffe5e7630))
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * Corrects release flow so gem does not require release ([#22](https://github.com/rubyists/dapr-ruby-client/issues/22)) ([5ea0bca](https://github.com/rubyists/dapr-ruby-client/commit/5ea0bca485f94204e468ac425d3dd0619088dacb))
36
+
37
+ ## [0.2.0](https://github.com/rubyists/dapr-ruby-client/compare/v0.1.27...v0.2.0) (2024-06-02)
38
+
39
+
40
+ ### ⚠ BREAKING CHANGES
41
+
42
+ * **dep:** Adds overcommit development dependency ([#19](https://github.com/rubyists/dapr-ruby-client/issues/19))
43
+
44
+ ### Features
45
+
46
+ * **dep:** Adds overcommit development dependency ([#19](https://github.com/rubyists/dapr-ruby-client/issues/19)) ([37687b1](https://github.com/rubyists/dapr-ruby-client/commit/37687b197c61374613b8a88f7996a1adb1980bd1))
47
+
3
48
  ## [0.1.0] - 2024-04-15
4
49
 
5
50
  - Initial release
data/Readme.adoc CHANGED
@@ -99,7 +99,7 @@ sub.start! <5>
99
99
  +
100
100
  NOTE: The handler can be anything that responds to `#call`, such as a lambda, proc, or instance. Sky's the limit! (Dependency injection, anyone?)
101
101
  +
102
- <2> The name of the Dapr pubsub component this subscriber will utilize.
102
+ <2> The name of the Dapr pubsub component this subscriber will utilize.
103
103
  <3> The name of the topic(s) to subscribe to.
104
104
  +
105
105
  TIP: Multiple topics can be subscribed to simultaneously by passing an array of topic names to the `topics` argument.
@@ -148,3 +148,13 @@ To install this gem on your local machine, run `bundle exec rake install`. To re
148
148
  == Contributing
149
149
 
150
150
  Bug reports and pull requests are welcome on GitHub at https://github.com/rubyists/dapr.
151
+
152
+ === Conventional Commits
153
+
154
+ This project uses Conventional Commits for commit messages. Please follow the guidelines at https://www.conventionalcommits.org/en/v1.0.0/[conventionalcommits.org].
155
+
156
+ === Overcommit
157
+
158
+ This project uses https://github.com/sds/overcommit[overcommit] to enforce repository policies. Please ensure you have it installed and configured before contributing.
159
+
160
+ tl;dr;: `overcommit --install && overcommit --sign`
data/ci/publish-gem.sh ADDED
@@ -0,0 +1,73 @@
1
+ #!/usr/bin/env bash
2
+
3
+ if readlink -f . >/dev/null 2>&1 # {{{ makes readlink work on mac
4
+ then
5
+ readlink=readlink
6
+ else
7
+ if greadlink -f . >/dev/null 2>&1
8
+ then
9
+ readlink=greadlink
10
+ else
11
+ printf "You must install greadlink to use this (brew install coreutils)\n" >&2
12
+ fi
13
+ fi # }}}
14
+
15
+ # Set here to the full path to this script
16
+ me=${BASH_SOURCE[0]}
17
+ [ -L "$me" ] && me=$($readlink -f "$me")
18
+ here=$(cd "$(dirname "$me")" && pwd)
19
+ just_me=$(basename "$me")
20
+
21
+ : ${GEM_NAME:=dapr}
22
+ : ${GIT_ORG:=rubyists}
23
+
24
+ GEM_HOST=$1
25
+ : ${GEM_HOST:=rubygems}
26
+
27
+ case "$GEM_HOST" in
28
+ rubygems)
29
+ gem_key='rubygems'
30
+ gem_host='https://rubygems.org'
31
+ ;;
32
+ github)
33
+ gem_key='github'
34
+ gem_host="https://rubygems.pkg.github.com/$GIT_ORG"
35
+ sed -i bak -e "s|https://rubygems.org|https://rubygems.pkg.github.com/$GIT_ORG|" "$here/../$GEM_NAME".gemspec
36
+ trap 'mv -v "$here/../$GEM_NAME".gemspec.bak "$here/../$GEM_NAME".gemspec' EXIT
37
+ ;;
38
+ *)
39
+ printf 'Unknown GEM_HOST: %s\n' "$GEM_HOST" >&2
40
+ exit 1
41
+ ;;
42
+ esac
43
+
44
+ # Only want this part running in CI, with no ~/.gem dir
45
+ if [ ! -d ~/.gem ]
46
+ then
47
+ if [ -z "$GEM_TOKEN" ]
48
+ then
49
+ printf 'No GEM_TOKEN provided, cannot publish\n'
50
+ exit 1
51
+ fi
52
+ mkdir -p ~/.gem
53
+ printf '%s\n:%s: %s\n' '---' "$gem_key" "$GEM_TOKEN" > ~/.gem/credentials
54
+ chmod 600 ~/.gem/credentials
55
+ fi
56
+
57
+ if [ -f "$here"/../.version.txt ]
58
+ then
59
+ version=$(<"$here"/../.version.txt)
60
+ else
61
+ version=$(git describe --tags --abbrev=0 | sed -e 's/^v//')
62
+ fi
63
+
64
+ gem="$(printf '%s-%s.gem' "$GEM_NAME" "$version")"
65
+ if [[ "${TRACE:-false}" == true || "${ACTIONS_STEP_DEBUG:-false}" == true ]]
66
+ then
67
+ printf "DEBUG: [%s] Building And Publishing %s to %s\n" "$just_me" "$gem" "$gem_host" >&2
68
+ fi
69
+
70
+ bundle exec gem build
71
+ bundle exec gem push -k "$gem_key" --host "$gem_host" "$gem"
72
+
73
+ # vim: set foldmethod=marker et ts=4 sts=4 sw=4 ft=bash :
data/lib/dapr/version.rb CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  module Rubyists
4
4
  module Dapr
5
- VERSION = '0.1.27'
5
+ # x-release-please-start-version
6
+ VERSION = '0.2.4'
7
+ # x-release-please-end
6
8
  end
7
9
  end
data/oci/Containerfile CHANGED
@@ -33,9 +33,10 @@ RUN bundle config set build.nokogiri --use-system-libraries && \
33
33
  RUN rm -rf node_modules tmp/cache app/assets vendor/assets spec
34
34
 
35
35
  ############### Build step done ###############
36
- FROM docker.io/ruby:3.3.0-alpine3.19
37
36
  ARG ALPINE_VERSION=3.19
38
37
  ARG RUBY_VERSION=3.3.1
38
+ FROM docker.io/$RUBY_VERSION-alpine$ALPINE_VERSION
39
+
39
40
  ARG APP_ROOT=/app
40
41
 
41
42
  WORKDIR $APP_ROOT
@@ -45,4 +46,4 @@ RUN apk --update --no-cache add coreutils curl bash runit
45
46
  COPY --from=build-env /usr/local/bundle/ /usr/local/bundle/
46
47
  COPY --from=build-env /bin/snooze /bin/snooze
47
48
 
48
- CMD ['bundle', 'exec', 'puma', '-C', 'config/puma.rb']
49
+ CMD ['/bin/sh']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.27
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-05-20 00:00:00.000000000 Z
12
+ date: 2024-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dapr-ruby
@@ -47,11 +47,15 @@ extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
49
  - ".overcommit.yml"
50
+ - ".release-please-config.json"
51
+ - ".release-please-manifest.json"
50
52
  - ".rspec"
51
53
  - ".rubocop.yml"
54
+ - ".version.txt"
52
55
  - CHANGELOG.md
53
56
  - Rakefile
54
57
  - Readme.adoc
58
+ - ci/publish-gem.sh
55
59
  - coverage/coverage.json
56
60
  - lib/dapr.rb
57
61
  - lib/dapr/client.rb