typespec 0.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 053cefb1c4de028a2d651f0af8680542f7a1cf68
4
+ data.tar.gz: 0175bebfa51927432371af08b47ef587afefa8da
5
+ SHA512:
6
+ metadata.gz: 108f33607e4f9b542ae474a88ec96dc35fd5ec8dec1dcfbf6674af45e9f031ca57717f9b8d200784181dce28194356bd72ee0476169bd91f778b6065105285f0
7
+ data.tar.gz: be222fb1d2ada94fddf77c75b7a02517e14ebf0c1cde2f7a36160cbbaf1f7e9875b46a13c4f377211f33a10745753d340a0bc382e01f58b672884fdca9ac6552
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ # Sublime Text 2/3
2
+ *.sublime-workspace
3
+
4
+ # RubyGems
5
+ *.gem
data/AUTHORS ADDED
@@ -0,0 +1 @@
1
+ Michael Williams <m.t.williams@live.com>
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1 @@
1
+ Public Domain
data/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # [Typespec](http://mtwilliams.github.io/typespec)
2
+
3
+ [![Gem Version](https://img.shields.io/gem/v/typespec.svg)](https://rubygems.org/gems/typespec)
4
+ [![Build Status](https://img.shields.io/travis/mtwilliams/typespec/master.svg)](https://travis-ci.org/mtwilliams/typespec)
5
+ [![Code Climate](https://img.shields.io/codeclimate/github/mtwilliams/typespec.svg)](https://codeclimate.com/github/mtwilliams/typespec)
6
+ [![Dependency Status](https://img.shields.io/gemnasium/mtwilliams/typespec.svg)](https://gemnasium.com/mtwilliams/typespec)
7
+
8
+ :nut_and_bolt: Specify complex schema made of types or specific values.
9
+
10
+ ```Ruby
11
+ Typespec.hash[Typespec.string => Typespec.or[Typespec.nothing,
12
+ Typespec.boolean,
13
+ Typespec.number,
14
+ Typespec.string]]
15
+ ```
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
data/lib/typespec.rb ADDED
@@ -0,0 +1,2 @@
1
+ module Typespec
2
+ end
@@ -0,0 +1,58 @@
1
+ require 'ostruct'
2
+
3
+ module Typespec
4
+ module Gem
5
+ # The name of this Gem.
6
+ def self.name
7
+ "typespec"
8
+ end
9
+
10
+ # The name and email address of the primary author.
11
+ def self.author
12
+ self.authors.first
13
+ end
14
+
15
+ # The name and email addresses of all authors.
16
+ def self.authors
17
+ [["Michael Williams", "m.t.williams@live.com"]].map do |author|
18
+ name, email = author
19
+ OpenStruct.new(name: name, email: email)
20
+ end
21
+ end
22
+
23
+ # This Gem's homepage URL.
24
+ def self.homepage
25
+ "http://github.com/mtwilliams/typespec"
26
+ end
27
+
28
+ # This Gem's URL.
29
+ def self.url
30
+ "https://rubygems.org/gems/#{self.name}"
31
+ end
32
+
33
+ # A short summary of this Gem.
34
+ def self.summary
35
+ "Specify complex schema made of types or specific values."
36
+ end
37
+
38
+ # A full description of this Gem.
39
+ def self.description
40
+ "Typespec is a way to specify complex schema made of types or specific values and validate against them."
41
+ end
42
+
43
+ module VERSION #:nodoc:
44
+ MAJOR, MINOR, PATCH, PRE = [0, 0, 0, 0]
45
+ STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
46
+ end
47
+
48
+ # The semantic version of the this Gem.
49
+ def self.version
50
+ Gem::VERSION::STRING
51
+ end
52
+
53
+ # The license covering this Gem.
54
+ def self.license
55
+ "Public Domain"
56
+ end
57
+ end
58
+ end
data/typespec.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ $:.push File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
2
+ require 'typespec/gem'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = Typespec::Gem.name
6
+ s.version = Typespec::Gem.version
7
+ s.platform = Gem::Platform::RUBY
8
+ s.author = Typespec::Gem.author.name
9
+ s.email = Typespec::Gem.author.email
10
+ s.homepage = Typespec::Gem.homepage
11
+ s.summary = Typespec::Gem.summary
12
+ s.description = Typespec::Gem.description
13
+ s.license = Typespec::Gem.license
14
+
15
+ s.required_ruby_version = '>= 1.9.3'
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = %w(lib)
21
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: typespec
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Michael Williams
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Typespec is a way to specify complex schema made of types or specific
14
+ values and validate against them.
15
+ email: m.t.williams@live.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - AUTHORS
22
+ - Gemfile
23
+ - LICENSE
24
+ - README.md
25
+ - Rakefile
26
+ - lib/typespec.rb
27
+ - lib/typespec/gem.rb
28
+ - typespec.gemspec
29
+ homepage: http://github.com/mtwilliams/typespec
30
+ licenses:
31
+ - Public Domain
32
+ metadata: {}
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 1.9.3
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubyforge_project:
49
+ rubygems_version: 2.4.5
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: Specify complex schema made of types or specific values.
53
+ test_files: []