data_nexus 0.2.0 → 0.2.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 +4 -4
- data/.github/workflows/release.yml +44 -0
- data/README.md +1 -9
- data/lib/data_nexus/configuration.rb +3 -3
- data/lib/data_nexus/version.rb +1 -1
- data/lib/data_nexus.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0570527fcabb635362f5f477c6b4c28c24f19132b984fcd657e33719a3fda846
|
|
4
|
+
data.tar.gz: 149667e5730ab383c7b729f80167791498f4cf56a9a2fec1a8b7e4a96ad981a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e50da78e344a456caa86aee7ba292cc225601a4fb8c1f35a10ec02efb9c2ad392b0037d004c7544707cdf8ddb8074294d0cc2483963d210190ff33c2c986797
|
|
7
|
+
data.tar.gz: 419e0ea79cf1fb25d7f503d50a1ee70ddf8641b6865d2b803da6f6a1581b4719e1e424503d3f84099ccfc917f144d0615a68ac957fa80a31ae1ff4e474d7e8f6
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
release:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- name: Set up Ruby
|
|
15
|
+
uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: "3.2"
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
|
|
20
|
+
- name: Run tests
|
|
21
|
+
run: bundle exec rspec
|
|
22
|
+
|
|
23
|
+
- name: Verify release tag matches gemspec
|
|
24
|
+
run: |
|
|
25
|
+
GEM_VERSION=$(ruby -r ./lib/data_nexus/version -e "puts DataNexus::VERSION")
|
|
26
|
+
TAG_VERSION=${GITHUB_REF_NAME#v}
|
|
27
|
+
if [ "$GEM_VERSION" != "$TAG_VERSION" ]; then
|
|
28
|
+
echo "::error::Version mismatch: gemspec has $GEM_VERSION but tag is $TAG_VERSION"
|
|
29
|
+
exit 1
|
|
30
|
+
fi
|
|
31
|
+
echo "Version verified: $GEM_VERSION"
|
|
32
|
+
|
|
33
|
+
- name: Build gem
|
|
34
|
+
id: build
|
|
35
|
+
run: |
|
|
36
|
+
gem build data_nexus.gemspec
|
|
37
|
+
GEM_FILE=$(ls data_nexus-*.gem)
|
|
38
|
+
echo "gem_file=$GEM_FILE" >> $GITHUB_OUTPUT
|
|
39
|
+
echo "Built: $GEM_FILE"
|
|
40
|
+
|
|
41
|
+
- name: Push to RubyGems
|
|
42
|
+
run: gem push ${{ steps.build.outputs.gem_file }}
|
|
43
|
+
env:
|
|
44
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
data/README.md
CHANGED
|
@@ -4,14 +4,6 @@ Ruby client for the DataNexus API.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
Install from GitHub (before gem is published):
|
|
8
|
-
|
|
9
|
-
```ruby
|
|
10
|
-
gem 'data_nexus', git: 'https://github.com/DartHealth/datanexus-ruby.git', tag: 'v0.1.0'
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Or from RubyGems (once published):
|
|
14
|
-
|
|
15
7
|
```ruby
|
|
16
8
|
gem 'data_nexus'
|
|
17
9
|
```
|
|
@@ -21,7 +13,7 @@ gem 'data_nexus'
|
|
|
21
13
|
```ruby
|
|
22
14
|
client = DataNexus::Client.new(
|
|
23
15
|
api_key: ENV['DATANEXUS_API_KEY'],
|
|
24
|
-
base_url: 'https://
|
|
16
|
+
base_url: 'https://datanexus.darthealth.com' # optional
|
|
25
17
|
)
|
|
26
18
|
```
|
|
27
19
|
|
|
@@ -6,13 +6,13 @@ module DataNexus
|
|
|
6
6
|
# @example Configure the client globally
|
|
7
7
|
# DataNexus.configure do |config|
|
|
8
8
|
# config.api_key = "your_api_key"
|
|
9
|
-
# config.base_url = "https://
|
|
9
|
+
# config.base_url = "https://datanexus.darthealth.com"
|
|
10
10
|
# end
|
|
11
11
|
#
|
|
12
12
|
# @example Create a configuration instance
|
|
13
13
|
# config = DataNexus::Configuration.new(
|
|
14
14
|
# api_key: "your_api_key",
|
|
15
|
-
# base_url: "https://
|
|
15
|
+
# base_url: "https://datanexus.darthealth.com"
|
|
16
16
|
# )
|
|
17
17
|
#
|
|
18
18
|
class Configuration
|
|
@@ -32,7 +32,7 @@ module DataNexus
|
|
|
32
32
|
attr_accessor :ssl_verify
|
|
33
33
|
|
|
34
34
|
# Default base URL for the DataNexus API
|
|
35
|
-
DEFAULT_BASE_URL = 'https://
|
|
35
|
+
DEFAULT_BASE_URL = 'https://datanexus.darthealth.com'
|
|
36
36
|
|
|
37
37
|
# Default request timeout in seconds
|
|
38
38
|
DEFAULT_TIMEOUT = 30
|
data/lib/data_nexus/version.rb
CHANGED
data/lib/data_nexus.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: data_nexus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Kibler
|
|
@@ -38,7 +38,7 @@ dependencies:
|
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '2.0'
|
|
41
|
-
description: A Ruby gem for interacting with
|
|
41
|
+
description: A Ruby gem for interacting with Dart Health's Data Nexus API.
|
|
42
42
|
email:
|
|
43
43
|
- alexkibler@me.com
|
|
44
44
|
executables: []
|
|
@@ -46,6 +46,7 @@ extensions: []
|
|
|
46
46
|
extra_rdoc_files: []
|
|
47
47
|
files:
|
|
48
48
|
- ".github/workflows/ci.yml"
|
|
49
|
+
- ".github/workflows/release.yml"
|
|
49
50
|
- ".mise.local.toml.example"
|
|
50
51
|
- ".mise.toml"
|
|
51
52
|
- ".rubocop.yml"
|
|
@@ -88,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
88
89
|
- !ruby/object:Gem::Version
|
|
89
90
|
version: '0'
|
|
90
91
|
requirements: []
|
|
91
|
-
rubygems_version: 3.
|
|
92
|
+
rubygems_version: 3.4.19
|
|
92
93
|
signing_key:
|
|
93
94
|
specification_version: 4
|
|
94
95
|
summary: Ruby client for the DataNexus API
|