bow-swift / bow

🏹 Bow is a cross-platform library for Typed Functional Programming in Swift
https://bow-swift.io
Other
645 stars 32 forks source link

Fix dash_url valid link to download doc .tgz #568

Closed miguelangel-dev closed 4 years ago

miguelangel-dev commented 4 years ago

Related issues

Closes #128

Goal

Fix Dash URL for API References

Implementation details

Internally Jazzyl is using URI::join class, you can read the API reference here.

Inside docset_builder.rb we can find the next line:

URI.join(config.root_url, "docsets/#{source_module.name}.tgz")

So we need to send a root_url finished in / to generate a valid URL - in another case, when the lib invoke .to_s will lose the last component path (in our case api-docs) and it is happening in source_module.rb file.