graphql-mutable_type 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +28 -0
- data/.rspec +2 -0
- data/.travis.yml +7 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +58 -0
- data/MIT-LICENSE +19 -0
- data/README.md +70 -0
- data/Rakefile +12 -0
- data/graphql-mutable_type.gemspec +29 -0
- data/lib/graphql/mutable_type/defined_by_config.rb +28 -0
- data/lib/graphql/mutable_type/version.rb +5 -0
- data/lib/graphql/mutable_type.rb +11 -0
- data/lib/graphql-mutable_type.rb +2 -0
- data/spec/graphql/mutable_type_spec.rb +64 -0
- data/spec/spec_helper.rb +103 -0
- data/spec/support/francia_kings_app.rb +38 -0
- data/spec/support/francia_kings_data.rb +7 -0
- metadata +131 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b7eb86c208db7e5a2c2bb14382001fa22d278091
|
4
|
+
data.tar.gz: 0be68339b26d0d61b5f9b2a7e262edf92f6ddf9e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2f8a92d7844f6900426b59bd02bfea7260ae57b0c4ffbabcb02800f020003ea47a6eaa0ca4893a98e0c642d0ca7ffa95bfba581d1624779b26edeab01c0acd8a
|
7
|
+
data.tar.gz: 0f0098d0b5eaeafe909bf9bbc1ff38c5e20d6548275acf5432d7a57c2223d1eee9bc4e6e95747d9381b216be0d422396608bab60db6006c3ecbfd7d9cc836d3b
|
data/.gitignore
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
## Documentation cache and generated files:
|
14
|
+
/.yardoc/
|
15
|
+
/_yardoc/
|
16
|
+
/doc/
|
17
|
+
/rdoc/
|
18
|
+
|
19
|
+
## Environment normalization:
|
20
|
+
/.bundle/
|
21
|
+
/vendor/bundle
|
22
|
+
/lib/bundler/man/
|
23
|
+
|
24
|
+
# for a library or gem, you might want to ignore these files since the code is
|
25
|
+
# intended to run in multiple environments; otherwise, check them in:
|
26
|
+
# Gemfile.lock
|
27
|
+
# .ruby-version
|
28
|
+
# .ruby-gemset
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
graphql-mutable_type (0.0.1)
|
5
|
+
graphql (~> 0.10.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
blankslate (3.1.3)
|
11
|
+
codeclimate-test-reporter (0.4.8)
|
12
|
+
simplecov (>= 0.7.1, < 1.0.0)
|
13
|
+
coderay (1.1.0)
|
14
|
+
diff-lcs (1.2.5)
|
15
|
+
docile (1.1.5)
|
16
|
+
graphql (0.10.9)
|
17
|
+
parslet (~> 1.6)
|
18
|
+
json (1.8.3)
|
19
|
+
method_source (0.8.2)
|
20
|
+
parslet (1.7.1)
|
21
|
+
blankslate (>= 2.0, <= 4.0)
|
22
|
+
pry (0.10.3)
|
23
|
+
coderay (~> 1.1.0)
|
24
|
+
method_source (~> 0.8.1)
|
25
|
+
slop (~> 3.4)
|
26
|
+
rake (10.5.0)
|
27
|
+
rspec (3.4.0)
|
28
|
+
rspec-core (~> 3.4.0)
|
29
|
+
rspec-expectations (~> 3.4.0)
|
30
|
+
rspec-mocks (~> 3.4.0)
|
31
|
+
rspec-core (3.4.2)
|
32
|
+
rspec-support (~> 3.4.0)
|
33
|
+
rspec-expectations (3.4.0)
|
34
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
+
rspec-support (~> 3.4.0)
|
36
|
+
rspec-mocks (3.4.1)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.4.0)
|
39
|
+
rspec-support (3.4.1)
|
40
|
+
simplecov (0.11.2)
|
41
|
+
docile (~> 1.1.0)
|
42
|
+
json (~> 1.8)
|
43
|
+
simplecov-html (~> 0.10.0)
|
44
|
+
simplecov-html (0.10.0)
|
45
|
+
slop (3.6.0)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
ruby
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
codeclimate-test-reporter (~> 0.4)
|
52
|
+
graphql-mutable_type!
|
53
|
+
pry (~> 0.10)
|
54
|
+
rake (~> 10.4)
|
55
|
+
rspec (~> 3.4)
|
56
|
+
|
57
|
+
BUNDLED WITH
|
58
|
+
1.11.2
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2016 CBN New Media Technology Co. Ltd
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
4
|
+
copy of this software and associated documentation files (the "Software"),
|
5
|
+
to deal in the Software without restriction, including without limitation
|
6
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
7
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
8
|
+
Software is furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
16
|
+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
18
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
19
|
+
DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
## GraphQL::MutableType
|
2
|
+
|
3
|
+
GraphQL::MutableType is an extension to GraphQL::ObjectType that adds the ability of having nested mutation queries.
|
4
|
+
It defines as following:
|
5
|
+
|
6
|
+
```
|
7
|
+
type Fish {
|
8
|
+
id: String
|
9
|
+
name: String
|
10
|
+
Price: Float
|
11
|
+
inStock: Int
|
12
|
+
mutation: [FishMutation]
|
13
|
+
}
|
14
|
+
```
|
15
|
+
|
16
|
+
```
|
17
|
+
type FishMutation {
|
18
|
+
update: [UpdateFishMutation]
|
19
|
+
sell: [SellFishMutation]
|
20
|
+
}
|
21
|
+
```
|
22
|
+
|
23
|
+
And can be queried as following:
|
24
|
+
|
25
|
+
```
|
26
|
+
query {
|
27
|
+
fish(id: "1") {
|
28
|
+
id
|
29
|
+
name
|
30
|
+
price
|
31
|
+
mutation {
|
32
|
+
sell(weight: 100) {
|
33
|
+
inStock
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
```
|
39
|
+
|
40
|
+
## Proposal
|
41
|
+
|
42
|
+
As working with Facebook's practice of GraphQL, we have found that the mutations are all top level children of "mutation". This keeps us using global mutation names look like "SellFish", "UpdateFish". While all the models and services are coded in the OO way, the organization of mutations reminds me of days with out OO: some structs and a large set of functions that operate on the structs.
|
43
|
+
|
44
|
+
So we tried to reorganize the mutations under the Object Type itself, whick looks more like the way models we define our models.
|
45
|
+
|
46
|
+
This gem provides a DSL that helps define the types with mutations inside.
|
47
|
+
|
48
|
+
## Usage
|
49
|
+
|
50
|
+
Just warp your mutations in ```mutation do ... end```.
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
KingType = GraphQL::MutableType.define do
|
54
|
+
name 'King'
|
55
|
+
description 'The title of the ruler of the kingdom'
|
56
|
+
|
57
|
+
field :id, !types.ID
|
58
|
+
field :name, !types.String
|
59
|
+
|
60
|
+
mutation do
|
61
|
+
field :rename, field: RenameKingField
|
62
|
+
end
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
See alse: [test schema](spec/support/francia_kings_app.rb)
|
67
|
+
|
68
|
+
## License
|
69
|
+
|
70
|
+
This gem is released under the [MIT License](MIT-LICENSE)
|
data/Rakefile
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
2
|
+
|
3
|
+
require 'graphql'
|
4
|
+
require 'graphql/mutable_type/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = 'graphql-mutable_type'
|
8
|
+
gem.version = GraphQL::MutableType::VERSION
|
9
|
+
gem.date = Date.today.to_s
|
10
|
+
gem.summary = 'An Object Type that may have mutation queries.'
|
11
|
+
gem.description = 'An Object Type that may have mutation queries.'
|
12
|
+
gem.homepage = 'https://github.com/TapasTech/graphql-mutable_type'
|
13
|
+
gem.authors = ['Karloku Sang']
|
14
|
+
gem.email = ['karloku@gmail.com']
|
15
|
+
gem.license = 'MIT'
|
16
|
+
gem.required_ruby_version = '>= 2.1.0' # bc optional keyword args
|
17
|
+
|
18
|
+
gem.require_paths = ['lib']
|
19
|
+
gem.files = Dir['{lib}/**/*', 'MIT-LICENSE', 'README.md']
|
20
|
+
gem.files = `git ls-files`.split("\n")
|
21
|
+
gem.test_files = `git ls-files -- {spec}/*`.split("\n")
|
22
|
+
|
23
|
+
gem.add_dependency 'graphql', '~> 0.10.0'
|
24
|
+
|
25
|
+
gem.add_development_dependency 'codeclimate-test-reporter', '~>0.4'
|
26
|
+
gem.add_development_dependency 'pry', '~> 0.10'
|
27
|
+
gem.add_development_dependency 'rspec', '~> 3.4'
|
28
|
+
gem.add_development_dependency 'rake', '~> 10.4'
|
29
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Define MutableType by define block
|
2
|
+
class GraphQL::DefinitionHelpers::DefinedByConfig::DefinitionConfig
|
3
|
+
attr_definable :mutation
|
4
|
+
|
5
|
+
def mutation(&block)
|
6
|
+
mutation_type = mutation_type(&block)
|
7
|
+
|
8
|
+
field :mutation do
|
9
|
+
name 'mutation'
|
10
|
+
type mutation_type
|
11
|
+
description mutation_type.description
|
12
|
+
|
13
|
+
resolve -> (obj, _args, _cxt) { obj }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
protected
|
18
|
+
|
19
|
+
# define nested mutation type
|
20
|
+
def mutation_type(&block)
|
21
|
+
@mutation_type ||= begin
|
22
|
+
m_type = GraphQL::ObjectType.define(&block)
|
23
|
+
m_type.name = "#{name} Mutation"
|
24
|
+
m_type.description = "Mutations of #{description}"
|
25
|
+
m_type
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module GraphQL
|
2
|
+
# Mutable Type is an extended Object Type that has mutations inside.
|
3
|
+
class MutableType < ObjectType
|
4
|
+
defined_by_config(*superclass.defined_by_config, :mutation)
|
5
|
+
|
6
|
+
attr_accessor :mutation
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'graphql/mutable_type/defined_by_config'
|
11
|
+
# require 'graphql/mutable_type/version'
|
@@ -0,0 +1,64 @@
|
|
1
|
+
RSpec.describe GraphQL::MutableType do
|
2
|
+
let(:king_france) { KINGS['k_france'] }
|
3
|
+
let(:king_germany) { KINGS['k_germany'] }
|
4
|
+
let(:king_lotharingia) { KINGS['k_lotharingia'] }
|
5
|
+
|
6
|
+
let(:type) { KingType }
|
7
|
+
let(:schema) { FranciaSchema }
|
8
|
+
describe 'define mutable type' do
|
9
|
+
|
10
|
+
let(:mutation) { type.fields['mutation'] }
|
11
|
+
let(:mutation_fields) { mutation.type.fields }
|
12
|
+
|
13
|
+
it 'has mutation' do
|
14
|
+
expect(mutation).to be_truthy
|
15
|
+
expect(mutation_fields.keys).to eq(%w(rename))
|
16
|
+
end
|
17
|
+
|
18
|
+
let(:resolve) { ->(id) { mutation.resolve(id, nil, nil) } }
|
19
|
+
|
20
|
+
it 'resolve mutation results the object it self' do
|
21
|
+
expect(resolve[king_france]).to eq(king_france)
|
22
|
+
expect(resolve[king_germany]).to eq(king_germany)
|
23
|
+
expect(resolve[king_lotharingia]).to eq(king_lotharingia)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'execute query with mutation' do
|
28
|
+
let(:query) do
|
29
|
+
%q{
|
30
|
+
query {
|
31
|
+
king(id: "k_germany") {
|
32
|
+
id
|
33
|
+
name
|
34
|
+
mutation {
|
35
|
+
rename(name: "Germany") {
|
36
|
+
name
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
let(:result) do
|
45
|
+
{
|
46
|
+
"data" => {
|
47
|
+
"king" => {
|
48
|
+
"id" => "k_germany",
|
49
|
+
"name" => "East Francia",
|
50
|
+
"mutation" => {
|
51
|
+
"rename" => {
|
52
|
+
"name" => "Germany"
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
it 'renames East Francia to Germany' do
|
61
|
+
expect(schema.execute(query)).to eq(result)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
4
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
5
|
+
# files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
12
|
+
# the additional setup, and require it from the spec files that actually need
|
13
|
+
# it.
|
14
|
+
#
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
16
|
+
# users commonly want.
|
17
|
+
#
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
|
+
require 'bundler/setup'
|
20
|
+
Bundler.setup
|
21
|
+
|
22
|
+
require 'pry'
|
23
|
+
require 'graphql-mutable_type'
|
24
|
+
require File.join(File.dirname(__FILE__), 'support/francia_kings_app.rb')
|
25
|
+
|
26
|
+
RSpec.configure do |config|
|
27
|
+
# rspec-expectations config goes here. You can use an alternate
|
28
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
29
|
+
# assertions if you prefer.
|
30
|
+
config.expect_with :rspec do |expectations|
|
31
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
32
|
+
# and `failure_message` of custom matchers include text for helper methods
|
33
|
+
# defined using `chain`, e.g.:
|
34
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
35
|
+
# # => "be bigger than 2 and smaller than 4"
|
36
|
+
# ...rather than:
|
37
|
+
# # => "be bigger than 2"
|
38
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
39
|
+
end
|
40
|
+
|
41
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
42
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
43
|
+
config.mock_with :rspec do |mocks|
|
44
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
45
|
+
# a real object. This is generally recommended, and will default to
|
46
|
+
# `true` in RSpec 4.
|
47
|
+
mocks.verify_partial_doubles = true
|
48
|
+
end
|
49
|
+
|
50
|
+
# The settings below are suggested to provide a good initial experience
|
51
|
+
# with RSpec, but feel free to customize to your heart's content.
|
52
|
+
=begin
|
53
|
+
# These two settings work together to allow you to limit a spec run
|
54
|
+
# to individual examples or groups you care about by tagging them with
|
55
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
56
|
+
# get run.
|
57
|
+
config.filter_run :focus
|
58
|
+
config.run_all_when_everything_filtered = true
|
59
|
+
|
60
|
+
# Allows RSpec to persist some state between runs in order to support
|
61
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
62
|
+
# you configure your source control system to ignore this file.
|
63
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
64
|
+
|
65
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
66
|
+
# recommended. For more details, see:
|
67
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
68
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
69
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
70
|
+
config.disable_monkey_patching!
|
71
|
+
|
72
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
73
|
+
# be too noisy due to issues in dependencies.
|
74
|
+
config.warnings = true
|
75
|
+
|
76
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
77
|
+
# file, and it's useful to allow more verbose output when running an
|
78
|
+
# individual spec file.
|
79
|
+
if config.files_to_run.one?
|
80
|
+
# Use the documentation formatter for detailed output,
|
81
|
+
# unless a formatter has already been configured
|
82
|
+
# (e.g. via a command-line flag).
|
83
|
+
config.default_formatter = 'doc'
|
84
|
+
end
|
85
|
+
|
86
|
+
# Print the 10 slowest examples and example groups at the
|
87
|
+
# end of the spec run, to help surface which specs are running
|
88
|
+
# particularly slow.
|
89
|
+
config.profile_examples = 10
|
90
|
+
|
91
|
+
# Run specs in random order to surface order dependencies. If you find an
|
92
|
+
# order dependency and want to debug it, you can fix the order by providing
|
93
|
+
# the seed, which is printed after each run.
|
94
|
+
# --seed 1234
|
95
|
+
config.order = :random
|
96
|
+
|
97
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
98
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
99
|
+
# test failures related to randomization by passing the same `--seed` value
|
100
|
+
# as the one that triggered the failure.
|
101
|
+
Kernel.srand config.seed
|
102
|
+
=end
|
103
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'francia_kings_data.rb')
|
2
|
+
|
3
|
+
RenameKingField = GraphQL::Field.define do
|
4
|
+
type -> { KingType }
|
5
|
+
|
6
|
+
argument :name, !types.String
|
7
|
+
|
8
|
+
resolve ->(obj, args, _cxt) { (obj.name = args[:name]) && obj }
|
9
|
+
end
|
10
|
+
|
11
|
+
FetchKingField = GraphQL::Field.define do
|
12
|
+
type -> { KingType }
|
13
|
+
|
14
|
+
argument :id, !types.ID
|
15
|
+
|
16
|
+
resolve ->(_obj, args, _cxt) { KINGS[args[:id]] }
|
17
|
+
end
|
18
|
+
|
19
|
+
KingType = GraphQL::MutableType.define do
|
20
|
+
name 'King'
|
21
|
+
description 'The title of the ruler of the kingdom'
|
22
|
+
|
23
|
+
field :id, !types.ID
|
24
|
+
field :name, !types.String
|
25
|
+
|
26
|
+
mutation do
|
27
|
+
field :rename, field: RenameKingField
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
QueryType = GraphQL::ObjectType.define do
|
32
|
+
name 'Query'
|
33
|
+
description 'Query root'
|
34
|
+
|
35
|
+
field :king, field: FetchKingField
|
36
|
+
end
|
37
|
+
|
38
|
+
FranciaSchema = GraphQL::Schema.new(query: QueryType)
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: graphql-mutable_type
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Karloku Sang
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: graphql
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.10.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.10.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: codeclimate-test-reporter
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.4'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.10'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.10'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.4'
|
83
|
+
description: An Object Type that may have mutation queries.
|
84
|
+
email:
|
85
|
+
- karloku@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
93
|
+
- Gemfile
|
94
|
+
- Gemfile.lock
|
95
|
+
- MIT-LICENSE
|
96
|
+
- README.md
|
97
|
+
- Rakefile
|
98
|
+
- graphql-mutable_type.gemspec
|
99
|
+
- lib/graphql-mutable_type.rb
|
100
|
+
- lib/graphql/mutable_type.rb
|
101
|
+
- lib/graphql/mutable_type/defined_by_config.rb
|
102
|
+
- lib/graphql/mutable_type/version.rb
|
103
|
+
- spec/graphql/mutable_type_spec.rb
|
104
|
+
- spec/spec_helper.rb
|
105
|
+
- spec/support/francia_kings_app.rb
|
106
|
+
- spec/support/francia_kings_data.rb
|
107
|
+
homepage: https://github.com/TapasTech/graphql-mutable_type
|
108
|
+
licenses:
|
109
|
+
- MIT
|
110
|
+
metadata: {}
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options: []
|
113
|
+
require_paths:
|
114
|
+
- lib
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 2.1.0
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.5.1
|
128
|
+
signing_key:
|
129
|
+
specification_version: 4
|
130
|
+
summary: An Object Type that may have mutation queries.
|
131
|
+
test_files: []
|