semcheck 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +35 -0
- data/.ruby-version +1 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +115 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +21 -0
- data/README.md +80 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/semcheck +11 -0
- data/bin/setup +7 -0
- data/lib/semcheck/version.rb +3 -0
- data/lib/semcheck.rb +90 -0
- data/semcheck.gemspec +35 -0
- metadata +199 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d2c30e33bea4115317cb43d3d3b7a2a1fcab2dfc
|
4
|
+
data.tar.gz: 44eccf1d572c6bf3085528a7d9542bf87a9046e4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0f629ffcb0eea77eb01bfc0a97a98b20f96ec5fb61a67c6a013f37b2e6c9b0cbb13e7869b56c1345ba38314dc5e72939f799fe19238a8b0cbf7f05950281aaab
|
7
|
+
data.tar.gz: 2944cfdbbf6a90bd48a63c67ce85e698a5ebf4a0d3c88f911228f569e4a69cf4eee96dcbe81b356d8d228f54a8b4922d9cf30cf3f6c0e79c06407c925b0c53a3
|
data/.gitignore
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/test/tmp/
|
9
|
+
/test/version_tmp/
|
10
|
+
/tmp/
|
11
|
+
|
12
|
+
## Specific to RubyMotion:
|
13
|
+
.dat*
|
14
|
+
.repl_history
|
15
|
+
build/
|
16
|
+
|
17
|
+
## Documentation cache and generated files:
|
18
|
+
/.yardoc/
|
19
|
+
/_yardoc/
|
20
|
+
/doc/
|
21
|
+
/rdoc/
|
22
|
+
|
23
|
+
## Environment normalisation:
|
24
|
+
/.bundle/
|
25
|
+
/vendor/bundle
|
26
|
+
/lib/bundler/man/
|
27
|
+
|
28
|
+
# for a library or gem, you might want to ignore these files since the code is
|
29
|
+
# intended to run in multiple environments; otherwise, check them in:
|
30
|
+
# Gemfile.lock
|
31
|
+
# .ruby-version
|
32
|
+
# .ruby-gemset
|
33
|
+
|
34
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
35
|
+
.rvmrc
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.2.2
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
semcheck (0.1.0)
|
5
|
+
bronto-gem
|
6
|
+
crack
|
7
|
+
dinosaurus
|
8
|
+
google-search
|
9
|
+
mechanize
|
10
|
+
rest-client
|
11
|
+
|
12
|
+
GEM
|
13
|
+
remote: https://rubygems.org/
|
14
|
+
specs:
|
15
|
+
activesupport (4.2.4)
|
16
|
+
i18n (~> 0.7)
|
17
|
+
json (~> 1.7, >= 1.7.7)
|
18
|
+
minitest (~> 5.1)
|
19
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
bronto-gem (0.1.0)
|
22
|
+
wordnet
|
23
|
+
wordnet-defaultdb
|
24
|
+
coderay (1.1.0)
|
25
|
+
crack (0.4.2)
|
26
|
+
safe_yaml (~> 1.0.0)
|
27
|
+
diff-lcs (1.2.5)
|
28
|
+
dinosaurus (0.0.12)
|
29
|
+
activesupport
|
30
|
+
httparty
|
31
|
+
rake
|
32
|
+
domain_name (0.5.25)
|
33
|
+
unf (>= 0.0.5, < 1.0.0)
|
34
|
+
google-search (1.0.3)
|
35
|
+
json
|
36
|
+
http-cookie (1.0.2)
|
37
|
+
domain_name (~> 0.5)
|
38
|
+
httparty (0.13.7)
|
39
|
+
json (~> 1.8)
|
40
|
+
multi_xml (>= 0.5.2)
|
41
|
+
i18n (0.7.0)
|
42
|
+
json (1.8.3)
|
43
|
+
loggability (0.11.0)
|
44
|
+
mechanize (2.7.3)
|
45
|
+
domain_name (~> 0.5, >= 0.5.1)
|
46
|
+
http-cookie (~> 1.0)
|
47
|
+
mime-types (~> 2.0)
|
48
|
+
net-http-digest_auth (~> 1.1, >= 1.1.1)
|
49
|
+
net-http-persistent (~> 2.5, >= 2.5.2)
|
50
|
+
nokogiri (~> 1.4)
|
51
|
+
ntlm-http (~> 0.1, >= 0.1.1)
|
52
|
+
webrobots (>= 0.0.9, < 0.2)
|
53
|
+
method_source (0.8.2)
|
54
|
+
mime-types (2.6.2)
|
55
|
+
mini_portile (0.6.2)
|
56
|
+
minitest (5.8.1)
|
57
|
+
multi_xml (0.5.5)
|
58
|
+
net-http-digest_auth (1.4)
|
59
|
+
net-http-persistent (2.9.4)
|
60
|
+
netrc (0.10.3)
|
61
|
+
nokogiri (1.6.6.2)
|
62
|
+
mini_portile (~> 0.6.0)
|
63
|
+
ntlm-http (0.1.1)
|
64
|
+
pry (0.10.1)
|
65
|
+
coderay (~> 1.1.0)
|
66
|
+
method_source (~> 0.8.1)
|
67
|
+
slop (~> 3.4)
|
68
|
+
rake (10.4.2)
|
69
|
+
rest-client (1.8.0)
|
70
|
+
http-cookie (>= 1.0.2, < 2.0)
|
71
|
+
mime-types (>= 1.16, < 3.0)
|
72
|
+
netrc (~> 0.7)
|
73
|
+
rspec (3.3.0)
|
74
|
+
rspec-core (~> 3.3.0)
|
75
|
+
rspec-expectations (~> 3.3.0)
|
76
|
+
rspec-mocks (~> 3.3.0)
|
77
|
+
rspec-core (3.3.2)
|
78
|
+
rspec-support (~> 3.3.0)
|
79
|
+
rspec-expectations (3.3.1)
|
80
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
81
|
+
rspec-support (~> 3.3.0)
|
82
|
+
rspec-mocks (3.3.2)
|
83
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
+
rspec-support (~> 3.3.0)
|
85
|
+
rspec-support (3.3.0)
|
86
|
+
safe_yaml (1.0.4)
|
87
|
+
sequel (3.48.0)
|
88
|
+
slop (3.6.0)
|
89
|
+
sqlite3 (1.3.11)
|
90
|
+
thread_safe (0.3.5)
|
91
|
+
tzinfo (1.2.2)
|
92
|
+
thread_safe (~> 0.1)
|
93
|
+
unf (0.1.4)
|
94
|
+
unf_ext
|
95
|
+
unf_ext (0.0.7.1)
|
96
|
+
webrobots (0.1.1)
|
97
|
+
wordnet (1.0.0)
|
98
|
+
loggability (~> 0.5)
|
99
|
+
sequel (~> 3.38)
|
100
|
+
wordnet-defaultdb (1.0.1)
|
101
|
+
sqlite3 (~> 1.3)
|
102
|
+
wordnet (~> 1.0.0.pre)
|
103
|
+
|
104
|
+
PLATFORMS
|
105
|
+
ruby
|
106
|
+
|
107
|
+
DEPENDENCIES
|
108
|
+
bundler (~> 1.10)
|
109
|
+
pry
|
110
|
+
rake (~> 10.0)
|
111
|
+
rspec
|
112
|
+
semcheck!
|
113
|
+
|
114
|
+
BUNDLED WITH
|
115
|
+
1.10.6
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Alex Moore-Niemi
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Alex Moore-Niemi
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
____________________________________________________
|
2
|
+
|____________________________________________________|
|
3
|
+
| __ __ ____ ___ || ____ ____ _ __ |
|
4
|
+
|| |__ |--|_| || |_| |||_|**|*|__|+|+||___| || | |
|
5
|
+
||==|^^||--| |=||=| |=*=||| |~~|~| |=|=|| | |~||==| |
|
6
|
+
|| |##|| | | || | |JRO|||-| | |==|+|+||-|-|~||__| |
|
7
|
+
||__|__||__|_|_||_|_|___|||_|__|_|__|_|_||_|_|_||__|_|
|
8
|
+
||_______________________||__________________________|
|
9
|
+
| _____________________ || __ __ _ __ _ |
|
10
|
+
||=|=|=|=|=|=|=|=|=|=|=| __..\/ | |_| ||#||==| / /|
|
11
|
+
|| | | | | | | | | | | |/\ \ \\|++|=| || ||==| / / |
|
12
|
+
||_|_|_|_|_|_|_|_|_|_|_/_/\_.___\__|_|__||_||__|/_/__|
|
13
|
+
|____________________ /\~()/()~//\ __________________|
|
14
|
+
| __ __ _ _ \_ (_ . _/ _ _ _____|
|
15
|
+
||~~|_|..|__| || |_ _ \ //\\ / |=|_ /) |___| | | |
|
16
|
+
||--|+|^^|==|1||2| | |__/\ __ /\__| |(\/((\ +|+|=|=|=|
|
17
|
+
||__|_|__|__|_||_|_| / \ \ / / \_|_\___/|_|_|_|_|_|
|
18
|
+
|_________________ _/ \/\/\/ \_ / /__________|
|
19
|
+
| _____ _ __ |/ \../ \/ / __ ___|
|
20
|
+
||_____|_| |_|##|_|| | \/ __\ /=|_|++|_|-|||
|
21
|
+
||______||=|#|--| |\ \ o \_____/ |~| | | |||
|
22
|
+
||______||_|_|__|_|_\ \ o | |_|_|__|_|__|_|_|||
|
23
|
+
|_________ __________\___\_______|____________ ______|
|
24
|
+
|__ _ / ________ ______ /| _ _ _|
|
25
|
+
|\ \ |=|/ // /| // / / / | / ||%|%|%|
|
26
|
+
| \/\ |*/ .//____// // /__/__/ (_) / ||=|=|=|
|
27
|
+
__| \/\|/ /(____|/ // / /||~|~|~|__
|
28
|
+
|___\_/ /________// ________ / / ||_|_|_|
|
29
|
+
|___ / (|________/ |\_______\ / /| |______|
|
30
|
+
/ \|________) / / | |
|
31
|
+
|
32
|
+
# Semcheck
|
33
|
+
### a command line tool to reconcile your domain model language
|
34
|
+
Think of Semcheck as your helpful automated reference librarian for schemas.
|
35
|
+
|
36
|
+
While building an API, you may want to check your potential domain models against existing schemas so that you can leverage established standards.
|
37
|
+
|
38
|
+
## Installation
|
39
|
+
|
40
|
+
Add this line to your application's Gemfile:
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
gem 'semcheck'
|
44
|
+
```
|
45
|
+
|
46
|
+
And then execute:
|
47
|
+
|
48
|
+
$ bundle
|
49
|
+
|
50
|
+
Or install it yourself as:
|
51
|
+
|
52
|
+
$ gem install semcheck
|
53
|
+
|
54
|
+
## Usage
|
55
|
+
Currently, you must have internet access to use this tool because there's not an easily available database of Schema.org's contents. But using RDF::Querys of a graph database of its schemas may be included in a future minor version.
|
56
|
+
|
57
|
+
# restaurant is our search term
|
58
|
+
bin/semcheck restaurant
|
59
|
+
=> Searching semweb resources for: ["restaurant"]
|
60
|
+
=> Possible schema matches: https://schema.org/Restaurant
|
61
|
+
|
62
|
+
## Development
|
63
|
+
|
64
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
65
|
+
|
66
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
67
|
+
|
68
|
+
## TODO
|
69
|
+
- integrate Swoogle
|
70
|
+
- api thesaurus access
|
71
|
+
- local schema database
|
72
|
+
|
73
|
+
## Contributing
|
74
|
+
Bug reports and pull requests are welcome on GitHub at [mooreniemi/semcheck](https://github.com/mooreniemi/semcheck). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
75
|
+
|
76
|
+
|
77
|
+
## License
|
78
|
+
|
79
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
80
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "semcheck"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/semcheck
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require_relative "../lib/semcheck"
|
4
|
+
|
5
|
+
begin
|
6
|
+
Semcheck::Application.new(ARGV).run
|
7
|
+
rescue Errno::ENOENT => err
|
8
|
+
abort "semcheck: #{err.message}"
|
9
|
+
rescue OptionParser::InvalidOption => err
|
10
|
+
abort "semcheck: #{err.message}\nusage: semcheck [-flags] [file ...]"
|
11
|
+
end
|
data/bin/setup
ADDED
data/lib/semcheck.rb
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
require_relative "semcheck/version"
|
2
|
+
require 'bronto'
|
3
|
+
require 'dinosaurus'
|
4
|
+
require 'google-search'
|
5
|
+
# require 'mechanize'
|
6
|
+
# require 'rest-client'
|
7
|
+
# require 'crack' # for xml and json
|
8
|
+
|
9
|
+
module Semcheck
|
10
|
+
class Application
|
11
|
+
attr_accessor :terms, :synonyms, :schemas
|
12
|
+
|
13
|
+
def initialize(args)
|
14
|
+
@terms = args
|
15
|
+
@synonyms = []
|
16
|
+
@schemas = []
|
17
|
+
end
|
18
|
+
|
19
|
+
def run
|
20
|
+
puts "Searching semweb resources for: #{terms}"
|
21
|
+
|
22
|
+
string_or_array_of(terms).each do |term|
|
23
|
+
# bronto gives us a sparse, but local dict
|
24
|
+
results = Bronto::Thesaurus.new.lookup(term)
|
25
|
+
if !results.nil?
|
26
|
+
results.keys.each do |word_type|
|
27
|
+
synonyms << results[word_type][:syn]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
synonyms.flatten!
|
32
|
+
|
33
|
+
# schema.org just uses google to do search
|
34
|
+
schemas << Google::Search::Web.new do |search|
|
35
|
+
search.query = "site:schema.org " + maybe_array_of(terms).join(" OR ")
|
36
|
+
end.map(&:uri)
|
37
|
+
|
38
|
+
# oddly, if i just do a giant or chain i can lose
|
39
|
+
# the results i wouldve gotten from the single term
|
40
|
+
schemas << Google::Search::Web.new do |search|
|
41
|
+
search.query = "site:schema.org " + maybe_array_of(synonyms).join(" OR ")
|
42
|
+
end.map(&:uri)
|
43
|
+
|
44
|
+
@schemas = schemas.flatten.reject! do |url|
|
45
|
+
blacklist.include?(url) || url =~ schema_blog
|
46
|
+
end.uniq
|
47
|
+
|
48
|
+
puts "Possible schema matches:\n#{schemas.join("\n")}"
|
49
|
+
|
50
|
+
return self
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
def string_or_array_of(terms)
|
55
|
+
if terms.is_a? Array
|
56
|
+
terms
|
57
|
+
else
|
58
|
+
terms.split(",")
|
59
|
+
end
|
60
|
+
end
|
61
|
+
def maybe_array_of(words)
|
62
|
+
if words.is_a? Array
|
63
|
+
words
|
64
|
+
else
|
65
|
+
[words]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
def blacklist
|
69
|
+
[
|
70
|
+
"http://schema.org/docs/schema_org_rdfa.html",
|
71
|
+
"https://schema.org/docs/schemaorg.owl",
|
72
|
+
"http://schema.org/version/2.0/",
|
73
|
+
"http://schema.org/version/2.1/",
|
74
|
+
"https://schema.org/docs/full.html",
|
75
|
+
"https://schema.org/QAPage",
|
76
|
+
"https://schema.org/docs/datamodel.html",
|
77
|
+
"https://schema.org/docs/schemas.html",
|
78
|
+
"https://schema.org/docs/actions.html",
|
79
|
+
"http://schema.org/version/2.0/schema.rdfa",
|
80
|
+
"https://schema.org/docs/gs.html",
|
81
|
+
"https://schema.org/",
|
82
|
+
"http://schema.org/docs/releases.html",
|
83
|
+
"https://bib.schema.org/"
|
84
|
+
]
|
85
|
+
end
|
86
|
+
def schema_blog
|
87
|
+
/http:\/\/blog.schema.org\//
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
data/semcheck.gemspec
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'semcheck/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "semcheck"
|
8
|
+
spec.version = Semcheck::VERSION
|
9
|
+
spec.authors = ["Alex Moore-Niemi"]
|
10
|
+
spec.email = ["amooreniemi@zipcar.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Command line tool to reconcile your domain language against existing schemas.}
|
13
|
+
spec.description = %q{Think of Semcheck as your helpful automated reference librarian for schemas.}
|
14
|
+
spec.homepage = "https://github.com/mooreniemi/semcheck"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
# for local thesaurus check
|
23
|
+
spec.add_dependency "bronto-gem"
|
24
|
+
# for api thesaurus check
|
25
|
+
spec.add_dependency "dinosaurus"
|
26
|
+
spec.add_dependency "google-search"
|
27
|
+
spec.add_dependency "crack"
|
28
|
+
spec.add_dependency "rest-client"
|
29
|
+
spec.add_dependency "mechanize"
|
30
|
+
|
31
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
32
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
33
|
+
spec.add_development_dependency "rspec"
|
34
|
+
spec.add_development_dependency "pry"
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,199 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: semcheck
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alex Moore-Niemi
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bronto-gem
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: dinosaurus
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: google-search
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: crack
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rest-client
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: mechanize
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.10'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.10'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: pry
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: Think of Semcheck as your helpful automated reference librarian for schemas.
|
154
|
+
email:
|
155
|
+
- amooreniemi@zipcar.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- ".ruby-version"
|
162
|
+
- CODE_OF_CONDUCT.md
|
163
|
+
- Gemfile
|
164
|
+
- Gemfile.lock
|
165
|
+
- LICENSE
|
166
|
+
- LICENSE.txt
|
167
|
+
- README.md
|
168
|
+
- Rakefile
|
169
|
+
- bin/console
|
170
|
+
- bin/semcheck
|
171
|
+
- bin/setup
|
172
|
+
- lib/semcheck.rb
|
173
|
+
- lib/semcheck/version.rb
|
174
|
+
- semcheck.gemspec
|
175
|
+
homepage: https://github.com/mooreniemi/semcheck
|
176
|
+
licenses:
|
177
|
+
- MIT
|
178
|
+
metadata: {}
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 2.4.6
|
196
|
+
signing_key:
|
197
|
+
specification_version: 4
|
198
|
+
summary: Command line tool to reconcile your domain language against existing schemas.
|
199
|
+
test_files: []
|