dapr 0.1.1 → 0.1.3

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: 6b58530051c7cbe3448434e7b5f82c54ccd07edfba848cc6e3d158c2f3e45f0a
4
- data.tar.gz: cd95a77acfb96d76b47517185abc5e82b7c1678a9edff528a00dcaec1fb06e53
3
+ metadata.gz: 51e34df2cc4add5c537bb85628dfaad1d9cef758fbc02b870d8e13105bcf5c7c
4
+ data.tar.gz: 2a4bdba24a9fafbf3a7083769530114c833a444b500e9f44311bac8b5cfc8de7
5
5
  SHA512:
6
- metadata.gz: ddf0d0ef8bf1a77a42a1385690d1db8ba8f2674f757f144afae5a774b0e5441a12f00ecab53df2773023c405f39f97731f1ba55ede64cc22e960339703fcbe0f
7
- data.tar.gz: 4c6933ff7cce846cc31994ff24ed731a37fc41c109fccdd10d87fbba7bde6b36e174006528fb97ba4d4bb861313fbcb7becc44acfb9eac6274bf6cb5aece403d
6
+ metadata.gz: cee0770e1c5498087193d2ed11e84fa45057d870c0c52c16478f381c9d9246e57eaa3addaa6f1e716f7fa6445ca95c5692a3675127bd784ff5d5714beea0c3e6
7
+ data.tar.gz: aefdd064a04b5d13de3986be05d16a7172a471664c6e7591449dd7bde49ebe74227557fe025e5c3849ef747d119c8412bfa8b178f04bb2c57e56bbf87d9d49b1
data/Readme.adoc ADDED
@@ -0,0 +1,36 @@
1
+ = Dapr Client for Ruby
2
+ :ifdef::env-github[]
3
+ :tip-caption: :bulb:
4
+ :note-caption: :information_source:
5
+ :important-caption: :heavy_exclamation_mark:
6
+ :caution-caption: :fire:
7
+ :warning-caption: :warning:
8
+ endif::[]
9
+
10
+ == Overview
11
+
12
+ This library provides a Ruby client for the Dapr runtime. It is a work in progress and is not yet ready for production use.
13
+
14
+ == Installation
15
+
16
+ Install the gem and add to the application's Gemfile by executing:
17
+
18
+ $ bundle add dapr-client
19
+
20
+ If bundler is not being used to manage dependencies, install the gem by executing:
21
+
22
+ $ gem install dapr-client
23
+
24
+ == Usage
25
+
26
+ This library is a WIP and will be documented as the interface is finalized.
27
+
28
+ == Development
29
+
30
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
31
+
32
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to https://rubygems.org[rubygems.org].
33
+
34
+ == Contributing
35
+
36
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rubyists/dapr.
data/lib/dapr/client.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative '../dapr'
3
4
  require 'semantic_logger'
4
- require 'dapr-ruby'
5
+ require 'dapr-client'
5
6
  require 'dapr/proto/runtime/v1/dapr_services_pb'
6
7
 
7
8
  module Rubyists
@@ -11,7 +12,7 @@ module Rubyists
11
12
  include SemanticLogger::Loggable
12
13
  DAPR_PORT = ENV.fetch('DAPR_GRPC_PORT', '5001')
13
14
  DAPR_URI = ENV.fetch('DAPR_GRPC_HOST', 'localhost')
14
- DAPR_STUB = Dapr::Proto::Runtime::V1::Dapr::Stub
15
+ DAPR_STUB = ::Dapr::Proto::Runtime::V1::Dapr::Stub
15
16
 
16
17
  def self.client
17
18
  logger.info "Creating Dapr client for #{DAPR_URI}:#{DAPR_PORT}"
data/lib/dapr/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Dapr
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
data/lib/dapr.rb CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  require_relative 'dapr/version'
4
4
 
5
- module Dapr
6
- class Error < StandardError; end
7
- # Your code goes here...
5
+ module Rubyists
6
+ module Dapr
7
+ class Error < StandardError; end
8
+ end
8
9
  end
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
@@ -49,8 +49,8 @@ files:
49
49
  - ".rspec"
50
50
  - ".rubocop.yml"
51
51
  - CHANGELOG.md
52
- - README.md
53
52
  - Rakefile
53
+ - Readme.adoc
54
54
  - lib/dapr.rb
55
55
  - lib/dapr/client.rb
56
56
  - lib/dapr/client/publisher.rb
data/README.md DELETED
@@ -1,31 +0,0 @@
1
- # Dapr
2
-
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/dapr`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Development
24
-
25
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
-
27
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
-
29
- ## Contributing
30
-
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dapr.