yard-markdown 0.3.2 → 0.3.4

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: c6a31bd0b9314cb81e288f61c6f923ad3b8b5708ae1776ca0728fc9e0e8b3a07
4
- data.tar.gz: 83f19bcda05228295f943c1cb09cde16dc6738c60e96a7194eade9f15597c17e
3
+ metadata.gz: e81cbfda8134f48975ee80ef6ce903a350f25975abb62929f2c9593a741ef830
4
+ data.tar.gz: d1dd43cf69e911c0d949cf79eb89afb9d417000ba4f3829b16db7d2408ce85ec
5
5
  SHA512:
6
- metadata.gz: 3e4d2ecd151a91ba5085d86f398f592c71d2d0744f46487bb07969190f8070acdeb15841325dff7a8c1b96e651fbf375a4cb3c358b5032b1734cbcc8b988c7e8
7
- data.tar.gz: 1713b22f373b5fc163202d2e51b9c6ff3fe4f502facba94eaa37e77874ae2222f6e3e9dd5f16e6630210870528fc68cfbd86956d2bb8da6bd8b16cb4efef3724
6
+ metadata.gz: 6ece9e5cabbf5d18398f59a6fdb6749cbdf2cf939752abe207b50dcf9839a01ae406e31cddc79ac2d3d56053645f3ab3e803632d97976db92a9e5388e8556e0a
7
+ data.tar.gz: 233fed17a64cd2f2f311601ca53ba4d1121d9271076b95da7948adf9bc58823465c1a7e83e8276b676c852f868e072ee0614b01d8929e2c8a911fcb379844994
@@ -42,9 +42,9 @@ def serialize_index(objects)
42
42
  next if object.name == :root
43
43
 
44
44
  if object.type == :class
45
- csv << [object.name, "Class", options.serializer.serialized_path(object)]
45
+ csv << [object.path, "Class", options.serializer.serialized_path(object)]
46
46
  elsif object.type == :module
47
- csv << [object.name, "Module", options.serializer.serialized_path(object)]
47
+ csv << [object.path, "Module", options.serializer.serialized_path(object)]
48
48
  end
49
49
 
50
50
  if constant_listing.size.positive?
@@ -101,7 +101,7 @@ def serialize(object)
101
101
  **<%= name %>:** <%= mix.sort_by {|o| o.path }.join(", ") %>
102
102
  <% end %><% end %>
103
103
  <% unless object.root? %>
104
- **Defined in:** <%= object.file ? object.file : "(unknown)" %>
104
+ **Defined in:** <%= object.file ? object.file.sub(Dir.pwd, '') : "(unknown)" %>
105
105
  <% end %>
106
106
 
107
107
  <%= rdoc_to_md object.docstring %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav (Stas) Katkov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-29 00:00:00.000000000 Z
11
+ date: 2024-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []
69
- rubygems_version: 3.5.5
69
+ rubygems_version: 3.5.9
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: yard plugin to generate markdown documentation