-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use YARD to build docs for better linking in docs (#154)
YARD is the current standard for documentation in Ruby. It provides a similar interface as most other language libraries, including the ability to define the types of params and return values. Bringing it in will make life a little bit easier as we add more detailed method level documentation through the course of the 4.X release.
- Loading branch information
Showing
8 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'yard' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
bundle_binstub = File.expand_path("../bundle", __FILE__) | ||
load(bundle_binstub) if File.file?(bundle_binstub) | ||
|
||
require "pathname" | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", | ||
Pathname.new(__FILE__).realpath) | ||
|
||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
load Gem.bin_path("yard", "yard") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'yardoc' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
bundle_binstub = File.expand_path("../bundle", __FILE__) | ||
load(bundle_binstub) if File.file?(bundle_binstub) | ||
|
||
require "pathname" | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", | ||
Pathname.new(__FILE__).realpath) | ||
|
||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
load Gem.bin_path("yard", "yardoc") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# This file was generated by Bundler. | ||
# | ||
# The application 'yri' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
bundle_binstub = File.expand_path("../bundle", __FILE__) | ||
load(bundle_binstub) if File.file?(bundle_binstub) | ||
|
||
require "pathname" | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", | ||
Pathname.new(__FILE__).realpath) | ||
|
||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
load Gem.bin_path("yard", "yri") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem| | |
gem.version = Nylas::VERSION | ||
gem.email = "[email protected]" | ||
gem.authors = ["Nylas, Inc."] | ||
gem.files = Dir.glob("lib/**/*.rb") | ||
gem.files = Dir.glob("lib/**/*.rb") + ['CHANGELOG.md', 'LICENSE.txt', 'README.md', __FILE__] | ||
gem.platform = "ruby" | ||
|
||
gem.metadata = { | ||
|
@@ -19,14 +19,15 @@ Gem::Specification.new do |gem| | |
"documentation_uri" => "http://www.rubydoc.info/gems/nylas", | ||
"homepage_uri" => "https://www.nylas.com", | ||
"source_code_uri" => "https://github.com/nylas/nylas-ruby", | ||
"wiki_uri" => "https://github.com/nylas/nylas-ruby/wiki" | ||
"wiki_uri" => "https://github.com/nylas/nylas-ruby/wiki", | ||
"yard.run" => "yri" | ||
} | ||
|
||
gem.add_runtime_dependency "rest-client", ">= 1.6" | ||
|
||
gem.add_development_dependency "rspec", ">= 3.5.0" | ||
gem.add_development_dependency "shoulda", ">= 3.4.0" | ||
gem.add_development_dependency "rdoc", ">= 3.12" | ||
gem.add_development_dependency "yard", ">= 0.9.12" | ||
gem.add_development_dependency "bundler", ">= 1.3.5" | ||
gem.add_development_dependency "jeweler", ">= 2.1.2" | ||
gem.add_development_dependency "pry", ">= 0.10.4" | ||
|