Module: Typespec::Gem

Defined in:
lib/typespec/gem.rb

Defined Under Namespace

Modules: VERSION

Class Method Summary collapse

Class Method Details

.authorObject

The name and email address of the primary author.



11
12
13
# File 'lib/typespec/gem.rb', line 11

def self.author
  self.authors.first
end

.authorsObject

The name and email addresses of all authors.



16
17
18
19
20
21
# File 'lib/typespec/gem.rb', line 16

def self.authors
  [["Michael Williams", "[email protected]"]].map do |author|
    name, email = author
    OpenStruct.new(name: name, email: email)
  end
end

.descriptionObject

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

.homepageObject

This Gem’s homepage URL.



24
25
26
# File 'lib/typespec/gem.rb', line 24

def self.homepage
  "http://github.com/mtwilliams/typespec"
end

.licenseObject

The license covering this Gem.



54
55
56
# File 'lib/typespec/gem.rb', line 54

def self.license
  "Public Domain"
end

.nameObject

The name of this Gem.



6
7
8
# File 'lib/typespec/gem.rb', line 6

def self.name
  "typespec"
end

.summaryObject

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

.urlObject

This Gem’s URL.



29
30
31
# File 'lib/typespec/gem.rb', line 29

def self.url
  "https://rubygems.org/gems/#{self.name}"
end

.versionObject

The semantic version of the this Gem.



49
50
51
# File 'lib/typespec/gem.rb', line 49

def self.version
  Gem::VERSION::STRING
end