Module: Typespec::Gem
- Defined in:
- lib/typespec/gem.rb
Defined Under Namespace
Modules: VERSION
Class Method Summary collapse
-
.author ⇒ Object
The name and email address of the primary author.
-
.authors ⇒ Object
The name and email addresses of all authors.
-
.description ⇒ Object
A full description of this Gem.
-
.homepage ⇒ Object
This Gem’s homepage URL.
-
.license ⇒ Object
The license covering this Gem.
-
.name ⇒ Object
The name of this Gem.
-
.summary ⇒ Object
A short summary of this Gem.
-
.url ⇒ Object
This Gem’s URL.
-
.version ⇒ Object
The semantic version of the this Gem.
Class Method Details
.author ⇒ Object
The name and email address of the primary author.
11 12 13 |
# File 'lib/typespec/gem.rb', line 11 def self. self..first end |
.authors ⇒ Object
The name and email addresses of all authors.
16 17 18 19 20 21 |
# File 'lib/typespec/gem.rb', line 16 def self. [["Michael Williams", "[email protected]"]].map do || name, email = OpenStruct.new(name: name, email: email) end end |
.description ⇒ Object
A full description of this Gem.
39 40 41 |
# File 'lib/typespec/gem.rb', line 39 def self.description "Typespec is a way to specify complex schema made of types or specific values and validate against them." end |
.homepage ⇒ Object
This Gem’s homepage URL.
24 25 26 |
# File 'lib/typespec/gem.rb', line 24 def self.homepage "http://github.com/mtwilliams/typespec" end |
.license ⇒ Object
The license covering this Gem.
54 55 56 |
# File 'lib/typespec/gem.rb', line 54 def self.license "Public Domain" end |
.name ⇒ Object
The name of this Gem.
6 7 8 |
# File 'lib/typespec/gem.rb', line 6 def self.name "typespec" end |
.summary ⇒ Object
A short summary of this Gem.
34 35 36 |
# File 'lib/typespec/gem.rb', line 34 def self.summary "Specify complex schema made of types or specific values." end |
.url ⇒ Object
This Gem’s URL.
29 30 31 |
# File 'lib/typespec/gem.rb', line 29 def self.url "https://rubygems.org/gems/#{self.name}" end |