grate 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 +14 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/README.md +50 -0
- data/ROADMAP.md +7 -0
- data/Rakefile +6 -0
- data/bin/grate +4 -0
- data/grate.gemspec +34 -0
- data/lib/grate/cli.rb +8 -0
- data/lib/grate/graphql_object.rb +48 -0
- data/lib/grate/new_project.rb +38 -0
- data/lib/grate/version.rb +3 -0
- data/lib/grate.rb +7 -0
- data/templates/app/controllers/application_controller.rb.tt +2 -0
- data/templates/app/models/application_model.rb.tt +3 -0
- data/templates/app/schema.rb.tt +3 -0
- data/templates/app/types/query_type.rb.tt +8 -0
- data/templates/config/database.yml.tt +5 -0
- data/templates/config.ru.tt +29 -0
- data/templates/db/database.rb.tt +10 -0
- data/templates/db/development.db +0 -0
- data/templates/db/seed.rb.tt +5 -0
- data/templates/env.dot +3 -0
- data/templates/gitignore.dot +0 -0
- metadata +230 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 28c2c1bea030e41a2d31403b2b04ba9de140eb6f52c030ffa022beef9d9c50ce
|
4
|
+
data.tar.gz: 222cffb32ece9b10dd0af67cc276ac164b5fb1d5e819cb936efbe6ddfe80e52e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6b93863c3f53e5c352d112fe85094346ee6e57cdd21f5458d15939c48f3703782dfa2d19f048a8088eae20fba2a8fbc911627425bb9ff7a26878b7a1055b8df9
|
7
|
+
data.tar.gz: 38745cd507af1160354a3c0a7b4c8ccdbfea6656f07a1a6a2561c754e8e4e794e399363f77977f48c6b032b4a1b60ffbf3072e508fd8d1e689562545f01256c0
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.0
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at ny585@nyu.edu. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2018 Nicholas Yang
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# Grate
|
2
|
+
|
3
|
+
Grate is a GraphQL framework inspired by Rails. Grate aims to make
|
4
|
+
writing GraphQL APIs as simple and consistent as possible. Therefore,
|
5
|
+
Grate applies the principles of least surprise and developer happiness.
|
6
|
+
|
7
|
+
But enough buzzwords, what does Grate actually do? Grate uses
|
8
|
+
Ruby's metaprogramming features to add a domain specific language that
|
9
|
+
allows you to automatically make queries on certain types.
|
10
|
+
|
11
|
+
For instance, if you have an Article type, you can write `queryable_on
|
12
|
+
:title, String` and Grate will automatically create an
|
13
|
+
`ArticleByTitle` query for you!
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
You can install grate using the following:
|
18
|
+
|
19
|
+
$ gem install grate
|
20
|
+
|
21
|
+
To generate a new project, make a directory, then run
|
22
|
+
|
23
|
+
$ grate new NAME
|
24
|
+
|
25
|
+
All the necessary files will be generated.
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
Grate is build using Rack, so all you have to do to run your Grate application is run
|
30
|
+
|
31
|
+
$ rackup
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at
|
36
|
+
https://github.com/nicholaslyang/grate. This project is intended to
|
37
|
+
be a safe, welcoming space for collaboration, and contributors are
|
38
|
+
expected to adhere to the [Contributor
|
39
|
+
Covenant](http://contributor-covenant.org) code of conduct.
|
40
|
+
|
41
|
+
## License
|
42
|
+
|
43
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
44
|
+
|
45
|
+
## Code of Conduct
|
46
|
+
|
47
|
+
Everyone interacting in the Grate project’s codebases, issue
|
48
|
+
trackers, chat rooms and mailing lists is expected to follow the [code
|
49
|
+
of
|
50
|
+
conduct](https://github.com/nicholaslyang/grate/blob/master/CODE_OF_CONDUCT.md).
|
data/ROADMAP.md
ADDED
data/Rakefile
ADDED
data/bin/grate
ADDED
data/grate.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "grate/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "grate"
|
8
|
+
spec.version = Grate::VERSION
|
9
|
+
spec.authors = ["Nicholas Yang"]
|
10
|
+
spec.email = ["ny585@nyu.edu"]
|
11
|
+
|
12
|
+
spec.summary = %q{A compact but effective GraphQL framework}
|
13
|
+
spec.description = %q{Grate is a framework that allows you to use a declarative, compact DSL to design GraphQL APIs quickly and effectively}
|
14
|
+
spec.homepage = "https://grate.github.io"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "bin"
|
21
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency 'thor', '~> 0.20.0'
|
28
|
+
spec.add_dependency 'graphql', '~> 1.8', '>= 1.8.10'
|
29
|
+
spec.add_dependency 'sequel', '~> 5.12', '>= 5.12.0'
|
30
|
+
spec.add_dependency 'pg', '~> 1.1', '>= 1.1.3'
|
31
|
+
spec.add_dependency 'dotenv', '~> 2.5', '>= 2.5.0'
|
32
|
+
spec.add_dependency 'activesupport', '~> 5.2', '>= 5.2.1'
|
33
|
+
|
34
|
+
end
|
data/lib/grate/cli.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'graphql'
|
2
|
+
class GraphQL::Schema::Object
|
3
|
+
include GraphQL::Schema::Member::GraphQLTypeNames
|
4
|
+
|
5
|
+
def self.camelize(name)
|
6
|
+
name.split('_').collect(&:capitalize).join
|
7
|
+
end
|
8
|
+
def self.is_valid_type_name
|
9
|
+
self.to_s.chars.last(4).join == 'Type'
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.get_controller(model_name)
|
13
|
+
controller_name = "#{model_name.pluralize}Controller"
|
14
|
+
Object.const_get(controller_name)
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.queryable_on(field_name, field_type)
|
18
|
+
raise NameError,
|
19
|
+
"#{self} is invalid type name. Types must end in -Type" unless is_valid_type_name
|
20
|
+
|
21
|
+
# Gets all the various model, type and controller names.
|
22
|
+
model = self.to_s.chomp('Type')
|
23
|
+
type_name = self
|
24
|
+
model_name = model.downcase
|
25
|
+
controller = get_controller(model)
|
26
|
+
|
27
|
+
if field_name == :id
|
28
|
+
query_name = function_name = model_name
|
29
|
+
return_type = type_name
|
30
|
+
else
|
31
|
+
query_name = "#{model_name}By#{camelize(field_name.to_s)}"
|
32
|
+
function_name = "#{model_name}_by_#{field_name}"
|
33
|
+
return_type = [type_name]
|
34
|
+
end
|
35
|
+
|
36
|
+
QueryType.class_eval do
|
37
|
+
field query_name,
|
38
|
+
return_type,
|
39
|
+
null: true do
|
40
|
+
description "Query #{model} by #{field_name}"
|
41
|
+
argument field_name, field_type, required: true
|
42
|
+
end
|
43
|
+
define_method function_name do |query_args|
|
44
|
+
controller.find_by(query_args[field_name], field_name)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'find'
|
2
|
+
module Grate
|
3
|
+
class NewProject < Thor::Group
|
4
|
+
include Thor::Actions
|
5
|
+
|
6
|
+
argument :name
|
7
|
+
|
8
|
+
def self.source_root
|
9
|
+
File.dirname(__FILE__)
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
def create_directory
|
14
|
+
Dir.mkdir name
|
15
|
+
end
|
16
|
+
|
17
|
+
def create_files
|
18
|
+
templates_dir = File.join(__dir__, "..", "..", 'templates')
|
19
|
+
Find.find(templates_dir) do |file|
|
20
|
+
case File.extname(file)
|
21
|
+
when ".tt"
|
22
|
+
template(file, File.join(Dir.pwd, name, to_relative(file).gsub(".tt", "")))
|
23
|
+
when ".dot"
|
24
|
+
template(file, File.join(Dir.pwd, name, ".#{to_relative(file).chomp(".dot")}"))
|
25
|
+
when /\.[A-Za-z]+/
|
26
|
+
template(file, File.join(Dir.pwd, name, to_relative(file)))
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
def to_relative(path)
|
33
|
+
path.gsub(/.*templates\//, "")
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
data/lib/grate.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'dotenv/load'
|
2
|
+
require 'json'
|
3
|
+
require 'sequel'
|
4
|
+
require 'graphql'
|
5
|
+
require 'grate'
|
6
|
+
|
7
|
+
# Ideally should move off this, but it's so damn useful
|
8
|
+
require 'active_support/inflector'
|
9
|
+
|
10
|
+
# Load the database first
|
11
|
+
require_relative './db/database'
|
12
|
+
|
13
|
+
# Then load all the abstract
|
14
|
+
require_relative './app/types/query_type'
|
15
|
+
require_relative './app/models/application_model'
|
16
|
+
require_relative './app/controllers/application_controller.rb'
|
17
|
+
require_relative './app/schema'
|
18
|
+
|
19
|
+
|
20
|
+
class <%= name.capitalize %>Application
|
21
|
+
def call(env)
|
22
|
+
req = Rack::Request.new(env)
|
23
|
+
params = JSON.parse(req.body.read)
|
24
|
+
res = Schema.execute(params["query"])
|
25
|
+
['200', {'Content-Type' => 'text/html'}, [res.to_json]]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
run <%= name.capitalize %>Application.new
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'sequel'
|
2
|
+
require 'pg'
|
3
|
+
require 'yaml'
|
4
|
+
require 'erb'
|
5
|
+
|
6
|
+
config_template = ERB.new(File.read('config/database.yml'))
|
7
|
+
database_config = YAML.load(config_template.result)
|
8
|
+
config = database_config[ENV["ENVIRONMENT"]]
|
9
|
+
|
10
|
+
Sequel.connect("postgres://#{config[:username]}:#{config[:password]}@#{config[:host]}/#{config[:database]}")
|
Binary file
|
data/templates/env.dot
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,230 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: grate
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nicholas Yang
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-09-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: thor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.20.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.20.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: graphql
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.8'
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 1.8.10
|
79
|
+
type: :runtime
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - "~>"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '1.8'
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 1.8.10
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: sequel
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '5.12'
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 5.12.0
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '5.12'
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 5.12.0
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: pg
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '1.1'
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 1.1.3
|
119
|
+
type: :runtime
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.1'
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: 1.1.3
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: dotenv
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - "~>"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '2.5'
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 2.5.0
|
139
|
+
type: :runtime
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '2.5'
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: 2.5.0
|
149
|
+
- !ruby/object:Gem::Dependency
|
150
|
+
name: activesupport
|
151
|
+
requirement: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - "~>"
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '5.2'
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 5.2.1
|
159
|
+
type: :runtime
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '5.2'
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 5.2.1
|
169
|
+
description: Grate is a framework that allows you to use a declarative, compact DSL
|
170
|
+
to design GraphQL APIs quickly and effectively
|
171
|
+
email:
|
172
|
+
- ny585@nyu.edu
|
173
|
+
executables:
|
174
|
+
- grate
|
175
|
+
extensions: []
|
176
|
+
extra_rdoc_files: []
|
177
|
+
files:
|
178
|
+
- ".gitignore"
|
179
|
+
- ".rspec"
|
180
|
+
- ".ruby-version"
|
181
|
+
- ".travis.yml"
|
182
|
+
- CODE_OF_CONDUCT.md
|
183
|
+
- Gemfile
|
184
|
+
- LICENSE
|
185
|
+
- README.md
|
186
|
+
- ROADMAP.md
|
187
|
+
- Rakefile
|
188
|
+
- bin/grate
|
189
|
+
- grate.gemspec
|
190
|
+
- lib/grate.rb
|
191
|
+
- lib/grate/cli.rb
|
192
|
+
- lib/grate/graphql_object.rb
|
193
|
+
- lib/grate/new_project.rb
|
194
|
+
- lib/grate/version.rb
|
195
|
+
- templates/app/controllers/application_controller.rb.tt
|
196
|
+
- templates/app/models/application_model.rb.tt
|
197
|
+
- templates/app/schema.rb.tt
|
198
|
+
- templates/app/types/query_type.rb.tt
|
199
|
+
- templates/config.ru.tt
|
200
|
+
- templates/config/database.yml.tt
|
201
|
+
- templates/db/database.rb.tt
|
202
|
+
- templates/db/development.db
|
203
|
+
- templates/db/seed.rb.tt
|
204
|
+
- templates/env.dot
|
205
|
+
- templates/gitignore.dot
|
206
|
+
homepage: https://grate.github.io
|
207
|
+
licenses:
|
208
|
+
- MIT
|
209
|
+
metadata: {}
|
210
|
+
post_install_message:
|
211
|
+
rdoc_options: []
|
212
|
+
require_paths:
|
213
|
+
- lib
|
214
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
215
|
+
requirements:
|
216
|
+
- - ">="
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: '0'
|
219
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ">="
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
224
|
+
requirements: []
|
225
|
+
rubyforge_project:
|
226
|
+
rubygems_version: 2.7.3
|
227
|
+
signing_key:
|
228
|
+
specification_version: 4
|
229
|
+
summary: A compact but effective GraphQL framework
|
230
|
+
test_files: []
|