Skip to content

Commit c87fcbf

Browse files
Adding yard
1 parent 41ef173 commit c87fcbf

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,20 @@ jobs:
2525
bundler-cache: true
2626

2727
- name: StandardRb check
28-
run: bundle exec standardrb
28+
run: bundle exec standardrb --format progress --format github --color
2929

3030
- name: Run tests
3131
run: |
32-
bundle exec rspec
32+
bundle exec rspec
33+
docs:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@master
37+
- name: Set up Ruby
38+
uses: ruby/setup-ruby@v1
39+
with:
40+
ruby-version: 3.2
41+
bundler: default
42+
bundler-cache: true
43+
- name: Build docs
44+
run: bundle exec rake yard

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ GEM
5050
pry (>= 0.13, < 0.15)
5151
rainbow (3.1.1)
5252
rake (13.0.6)
53+
rdiscount (2.2.7.1)
5354
regexp_parser (2.7.0)
5455
rexml (3.2.5)
5556
rspec (3.11.0)
@@ -89,6 +90,7 @@ GEM
8990
tzinfo (2.0.6)
9091
concurrent-ruby (~> 1.0)
9192
unicode-display_width (2.4.2)
93+
yard (0.9.34)
9294

9395
PLATFORMS
9496
x86_64-darwin-19
@@ -97,9 +99,11 @@ PLATFORMS
9799
DEPENDENCIES
98100
pry-byebug (~> 3.9)
99101
rake (~> 13.0)
102+
rdiscount
100103
rspec (~> 3.0)
101104
standard (~> 1.25.0)
102105
weaviate-ruby!
106+
yard
103107

104108
BUNDLED WITH
105109
2.4.0

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
require "bundler/gem_tasks"
44
require "rspec/core/rake_task"
5+
require "yard"
56

67
RSpec::Core::RakeTask.new(:spec)
78

89
task default: :spec
10+
11+
YARD::Rake::YardocTask.new do |t|
12+
t.options = ["--fail-on-warning"]
13+
end

weaviate.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ Gem::Specification.new do |spec|
3939
spec.add_dependency "faraday_middleware", "~> 1"
4040
spec.add_dependency "graphlient", "~> 0.6.0"
4141
spec.add_development_dependency "pry-byebug", "~> 3.9"
42+
spec.add_development_dependency "yard"
43+
spec.add_development_dependency "rdiscount" # for github-flavored markdown in yard
4244
end

0 commit comments

Comments
 (0)