Skip to content

Commit 3899d28

Browse files
authored
Merge pull request #3 from doximity/rs_initial_empty_gem_release
Initial empty gem commit
2 parents a164c1c + 948e3ca commit 3899d28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+502
-2
lines changed

.circleci/config.yml

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
version: 2.1
2+
3+
orbs:
4+
gem: doximity/gem-publisher@0
5+
6+
executors:
7+
ruby-latest:
8+
resource_class: small
9+
docker:
10+
- image: cimg/ruby:2.7
11+
environment:
12+
- BUNDLE_VERSION: "~> 1.17"
13+
- NEO4J_URL: "http://127.0.0.1:7474"
14+
- image: neo4j:4.3.9-enterprise
15+
environment:
16+
NEO4J_ACCEPT_LICENSE_AGREEMENT: "yes"
17+
NEO4J_AUTH: "none"
18+
NEO4J_dbms_allow__upgrade: "true"
19+
NEO4J_dbms_jvm_additional: "-Xms256m -Xmx256m"
20+
NEO4J_dbms_logs_query_enabled: "true"
21+
NEO4J_dbms_memory_heap_max__size: "256M"
22+
NEO4J_dbms_memory_pagecache_size: "256M"
23+
24+
# yaml anchor filters
25+
master_only: &master_only
26+
filters:
27+
branches:
28+
only: master
29+
tags:
30+
ignore: /.*/
31+
pr_only: &pr_only
32+
filters:
33+
branches:
34+
ignore: master
35+
tags:
36+
ignore: /.*/
37+
version_tags_only: &version_tags_only
38+
filters:
39+
branches:
40+
ignore: /.*/
41+
tags:
42+
only: /^v.*/
43+
44+
jobs:
45+
build:
46+
executor: ruby-latest
47+
steps:
48+
- checkout
49+
- run:
50+
name: Install Bundler specific version
51+
command: |
52+
gem install bundler --version "${BUNDLE_VERSION}" --force
53+
- restore_cache:
54+
keys:
55+
- v1-bundle-{{ checksum "Gemfile.lock" }}-
56+
- run:
57+
name: Install Ruby Dependencies
58+
command: bundle check --path=vendor/bundle || bundle install --local --frozen --path=vendor/bundle --jobs=4 --retry=3 && bundle clean
59+
- save_cache:
60+
key: v1-bundle-{{ checksum "Gemfile.lock" }}-
61+
paths:
62+
- vendor/bundle
63+
- run:
64+
name: Wait for neo4j
65+
command: |
66+
until `nc -z 127.0.0.1 7474`; do
67+
echo 'Waiting for Neo4j container...'
68+
sleep 1
69+
done
70+
echo 'Neo4j container is up'
71+
- run:
72+
name: Run Tests
73+
command: bundle exec rake ci:specs
74+
- store_test_results:
75+
name: Store test results
76+
path: tmp/test-results
77+
- run:
78+
name: Run StandardRB formatting
79+
command: bundle exec rake ci:standardrb
80+
- persist_to_workspace:
81+
root: .
82+
paths:
83+
- vendor/bundle
84+
85+
workflows:
86+
version: 2
87+
88+
trunk:
89+
jobs:
90+
- build:
91+
<<: *master_only
92+
- gem/build:
93+
<<: *master_only
94+
executor: ruby-latest
95+
name: gem-build
96+
requires:
97+
- build
98+
99+
pull-requests:
100+
jobs:
101+
- build:
102+
<<: *pr_only
103+
- gem/build:
104+
<<: *pr_only
105+
executor: ruby-latest
106+
name: gem-build
107+
requires:
108+
- build
109+
- pre-release-approval:
110+
<<: *pr_only
111+
type: approval
112+
requires:
113+
- gem-build
114+
- gem/publish:
115+
<<: *pr_only
116+
name: gem-publish
117+
to_rubygems: true
118+
pre_release: true
119+
requires:
120+
- pre-release-approval
121+
context: artifact_publishing
122+
123+
final-release:
124+
jobs:
125+
- build:
126+
<<: *version_tags_only
127+
- gem/build:
128+
<<: *version_tags_only
129+
executor: ruby-latest
130+
name: gem-build
131+
requires:
132+
- build
133+
- gem/publish:
134+
<<: *version_tags_only
135+
name: gem-publish
136+
to_rubygems: true
137+
pre_release: false
138+
requires:
139+
- gem-build
140+
context: artifact_publishing

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# rspec failure tracking
11+
.rspec_status
12+
13+
# Annoying mac files
14+
.DS_Store

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.4

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Changelog
2+
=========
3+
4+
## 0.0.1 04/07/2022
5+
* Initial empty gem

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Contributing
2+
3+
We welcome contributions to this repository. Feel free to submit issues for bugs you encounter and pull requests for code and documentation contributions.
4+
5+
In order to prevent licensing issues, we require all contributors to sign an individual contributor license agreement, which is reproduced below:
6+
7+
## Individual Contributor License Agreement
8+
9+
In order to clarify the intellectual property license granted with Contributions from any person or entity, Doximity Inc. ("Doximity") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Doximity; it does not change your rights to use your own Contributions for any other purpose.
10+
11+
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Doximity. Except for the license granted herein to Doximity and recipients of software distributed by Doximity, You reserve all right, title, and interest in and to Your Contributions.
12+
13+
### Definitions
14+
15+
"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Doximity. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16+
17+
1. "Contribution" shall mean any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to Doximity for inclusion in, or documentation of, any of the products owned or managed by Doximity (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to Doximity or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Doximity for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
18+
19+
2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, You hereby grant to Doximity and to recipients of software distributed by Doximity a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works.
20+
21+
3. Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby grant to Doximity and to recipients of software distributed by Doximity a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
22+
23+
4. You represent that you are legally entitled to grant the above license. If your employer(s) has rights to intellectual property that you create that includes your Contributions, you represent that you have received permission to make Contributions on behalf of that employer, that your employer has waived such rights for your Contributions to Doximity, or that your employer has executed a separate Corporate CLA with Doximity.
24+
25+
5. You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others). You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.
26+
27+
6. You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON- INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
28+
29+
7. Should You wish to submit work that is not Your original creation, You may submit it to Doximity separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [[]named here]".
30+
31+
8. You agree to notify Doximity of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.

CONTRIBUTORS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## List of All Known Code Contributors to neo4j-http
2+
3+
### [Ryan Stawarz](http://github.com/rstawarz)
4+
* Wrote the majority of the code as of initial release
5+

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source "https://rubygems.org"
2+
3+
# Specify your gem's dependencies in neo4j-http.gemspec
4+
gemspec
5+
6+
gem "rake", "~> 12.0"
7+
gem "rspec", "~> 3.0"
8+
gem "standard", group: [:development, :test]

Gemfile.lock

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
PATH
2+
remote: .
3+
specs:
4+
neo4j-http (0.0.1)
5+
activesupport (>= 5.2)
6+
faraday (< 2)
7+
faraday-retry
8+
faraday_middleware
9+
10+
GEM
11+
remote: https://rubygems.org/
12+
specs:
13+
activesupport (7.0.2.3)
14+
concurrent-ruby (~> 1.0, >= 1.0.2)
15+
i18n (>= 1.6, < 2)
16+
minitest (>= 5.1)
17+
tzinfo (~> 2.0)
18+
ast (2.4.2)
19+
coderay (1.1.3)
20+
concurrent-ruby (1.1.10)
21+
diff-lcs (1.5.0)
22+
faraday (1.10.0)
23+
faraday-em_http (~> 1.0)
24+
faraday-em_synchrony (~> 1.0)
25+
faraday-excon (~> 1.1)
26+
faraday-httpclient (~> 1.0)
27+
faraday-multipart (~> 1.0)
28+
faraday-net_http (~> 1.0)
29+
faraday-net_http_persistent (~> 1.0)
30+
faraday-patron (~> 1.0)
31+
faraday-rack (~> 1.0)
32+
faraday-retry (~> 1.0)
33+
ruby2_keywords (>= 0.0.4)
34+
faraday-em_http (1.0.0)
35+
faraday-em_synchrony (1.0.0)
36+
faraday-excon (1.1.0)
37+
faraday-httpclient (1.0.1)
38+
faraday-multipart (1.0.3)
39+
multipart-post (>= 1.2, < 3)
40+
faraday-net_http (1.0.1)
41+
faraday-net_http_persistent (1.2.0)
42+
faraday-patron (1.0.0)
43+
faraday-rack (1.0.0)
44+
faraday-retry (1.0.3)
45+
faraday_middleware (1.2.0)
46+
faraday (~> 1.0)
47+
i18n (1.10.0)
48+
concurrent-ruby (~> 1.0)
49+
method_source (1.0.0)
50+
minitest (5.15.0)
51+
multipart-post (2.1.1)
52+
parallel (1.22.1)
53+
parser (3.1.1.0)
54+
ast (~> 2.4.1)
55+
pry (0.14.1)
56+
coderay (~> 1.1)
57+
method_source (~> 1.0)
58+
rainbow (3.1.1)
59+
rake (12.3.3)
60+
regexp_parser (2.2.1)
61+
rexml (3.2.5)
62+
rspec (3.11.0)
63+
rspec-core (~> 3.11.0)
64+
rspec-expectations (~> 3.11.0)
65+
rspec-mocks (~> 3.11.0)
66+
rspec-core (3.11.0)
67+
rspec-support (~> 3.11.0)
68+
rspec-expectations (3.11.0)
69+
diff-lcs (>= 1.2.0, < 2.0)
70+
rspec-support (~> 3.11.0)
71+
rspec-mocks (3.11.0)
72+
diff-lcs (>= 1.2.0, < 2.0)
73+
rspec-support (~> 3.11.0)
74+
rspec-support (3.11.0)
75+
rubocop (1.26.1)
76+
parallel (~> 1.10)
77+
parser (>= 3.1.0.0)
78+
rainbow (>= 2.2.2, < 4.0)
79+
regexp_parser (>= 1.8, < 3.0)
80+
rexml
81+
rubocop-ast (>= 1.16.0, < 2.0)
82+
ruby-progressbar (~> 1.7)
83+
unicode-display_width (>= 1.4.0, < 3.0)
84+
rubocop-ast (1.16.0)
85+
parser (>= 3.1.1.0)
86+
rubocop-performance (1.13.3)
87+
rubocop (>= 1.7.0, < 2.0)
88+
rubocop-ast (>= 0.4.0)
89+
ruby-progressbar (1.11.0)
90+
ruby2_keywords (0.0.5)
91+
standard (1.9.1)
92+
rubocop (= 1.26.1)
93+
rubocop-performance (= 1.13.3)
94+
tzinfo (2.0.4)
95+
concurrent-ruby (~> 1.0)
96+
unicode-display_width (2.1.0)
97+
98+
PLATFORMS
99+
ruby
100+
101+
DEPENDENCIES
102+
neo4j-http!
103+
pry
104+
rake (~> 12.0)
105+
rspec (~> 3.0)
106+
standard
107+
108+
BUNDLED WITH
109+
2.1.4

LICENSE.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2022 Doximity, Inc.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

0 commit comments

Comments
 (0)