dapr 0.2.2 → 0.2.6

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: cdeb79cfa744ea1ef4f7188298ca887359ce26c703944d6e4fa109d2e485ee66
4
- data.tar.gz: 4f9ac87190179fe43e61110b1328a0e5b1edb9cd2180ec902307fe6386c31052
3
+ metadata.gz: 3a4ae91a840e9e8bd3f0690d7df96ca49ffc67bab2335d875f58742aa7559d26
4
+ data.tar.gz: 05e4355dbc51c83e9e05a3eff5e835441d2c48d8f4727a23acf1ff73624a5b4d
5
5
  SHA512:
6
- metadata.gz: 856a772018ee14ad66121bc774254c161e8437d60ed5a43d0dd449a011ce7198cb493c6f00713ec8054dc34f3c1c616db756df1184f6d889b574c5475cc2d22f
7
- data.tar.gz: 169b7844c310f71d9b75b392114f7bc8bc9f69d40fa59a3f0fb351148a94fb1a6b1930cdc1f25f0a7a97aa6428c1bdfc981bdbeb3aede368e53c59fefc2b86d4
6
+ metadata.gz: 32f912473a0eb40cf9790d2a5e5816f1a3c273695e5bffb2d014cb60506ab83f3f1eba8c0a81a4d280162559df5f2ff5fae258d19dd46881042cedc9b6e78229
7
+ data.tar.gz: a0df7ede1af8f9700efd0a98ec3432dec5284a52e7011a92fbe90897954a52a1517be382b2a5b88ae16e0952795303bc29134e89ec9a89bf72b108299ca4e316
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.2"
2
+ ".": "0.2.6"
3
3
  }
data/.version.txt CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.6](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.5...v0.2.6) (2024-06-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * Document Configuration for consumption ([#43](https://github.com/rubyists/dapr-ruby-client/issues/43)) ([5142d5b](https://github.com/rubyists/dapr-ruby-client/commit/5142d5bc85a2c4aa5da18aa91897569118d645df))
9
+
10
+ ## [0.2.5](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.4...v0.2.5) (2024-06-03)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **ci:** Move conditional to the run script ([#40](https://github.com/rubyists/dapr-ruby-client/issues/40)) ([cb8a15f](https://github.com/rubyists/dapr-ruby-client/commit/cb8a15f60d55928258c832005607a0368ba84b40))
16
+ * **ci:** Only publish gem when release is created ([#38](https://github.com/rubyists/dapr-ruby-client/issues/38)) ([086382f](https://github.com/rubyists/dapr-ruby-client/commit/086382fbd368088ca6d3e590dc9daaeb2684bf42))
17
+
18
+ ## [0.2.4](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.3...v0.2.4) (2024-06-03)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * 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))
24
+ * Uses .yaml suffix for all yaml files ([8c7aaf9](https://github.com/rubyists/dapr-ruby-client/commit/8c7aaf98eeb5d9eb6d7a74bf0fb574654e150a83))
25
+
26
+ ## [0.2.3](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.2...v0.2.3) (2024-06-03)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * 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))
32
+
3
33
  ## [0.2.2](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.1...v0.2.2) (2024-06-02)
4
34
 
5
35
 
data/Readme.adoc CHANGED
@@ -127,6 +127,12 @@ Implementation of {secret-block}
127
127
 
128
128
  Implementation of {configuration-block}
129
129
 
130
+ [source,ruby]
131
+ ----
132
+ require 'dapr/client/configuration'
133
+ value = Rubyists::Dapr::Client::Configuration.get('TEST_KEY')
134
+ ----
135
+
130
136
  === Distributed Lock
131
137
 
132
138
  Implementation of {distributed-lock-block}
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 --in-place=.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
@@ -3,7 +3,7 @@
3
3
  module Rubyists
4
4
  module Dapr
5
5
  # x-release-please-start-version
6
- VERSION = '0.2.2'
6
+ VERSION = '0.2.6'
7
7
  # x-release-please-end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
8
8
  - afulki
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
12
  date: 2024-06-03 00:00:00.000000000 Z
@@ -55,6 +55,7 @@ files:
55
55
  - CHANGELOG.md
56
56
  - Rakefile
57
57
  - Readme.adoc
58
+ - ci/publish-gem.sh
58
59
  - coverage/coverage.json
59
60
  - lib/dapr.rb
60
61
  - lib/dapr/client.rb
@@ -76,7 +77,7 @@ metadata:
76
77
  source_code_uri: https://github.com/rubyists/dapr
77
78
  changelog_uri: https://github.com/rubyists/dapr/blob/main/CHANGELOG.md
78
79
  rubygems_mfa_required: 'true'
79
- post_install_message:
80
+ post_install_message:
80
81
  rdoc_options: []
81
82
  require_paths:
82
83
  - lib
@@ -91,8 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
92
  - !ruby/object:Gem::Version
92
93
  version: '0'
93
94
  requirements: []
94
- rubygems_version: 3.5.3
95
- signing_key:
95
+ rubygems_version: 3.5.9
96
+ signing_key:
96
97
  specification_version: 4
97
98
  summary: Library for interacting with dapr.
98
99
  test_files: []