graphql-mutable_type 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/Gemfile.lock +16 -5
- data/README.md +5 -0
- data/Rakefile +3 -7
- data/graphql-mutable_type.gemspec +3 -3
- data/lib/graphql/mutable_type/defined_by_config.rb +1 -1
- data/lib/graphql/mutable_type/version.rb +1 -3
- data/spec/spec_helper.rb +3 -0
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30ae951743d5545114415638defb486d73a4c26b
|
4
|
+
data.tar.gz: d560e34f480cc35118e5e0a78ec87e17cc66ce57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4398350e7b013edacadd64bca0f59bfe5ba2ab856ea17bf9e900e7ab693e428bbd475d79aa9ee8392d5f38eccab6de47264f37435caaa6c1b63ec21b2569f1a1
|
7
|
+
data.tar.gz: 0ce6db248d7aeeffb4954f05682470ef1e4bd05e8aa68440d199418e88cafcedd12794cb607d8761c8a57949cde4fb5a090369e8b6ddfd2f945933042f534ab2
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
graphql-mutable_type (0.0.
|
5
|
-
graphql (~> 0.
|
4
|
+
graphql-mutable_type (0.0.2)
|
5
|
+
graphql (~> 0.11.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -10,10 +10,16 @@ GEM
|
|
10
10
|
blankslate (3.1.3)
|
11
11
|
codeclimate-test-reporter (0.4.8)
|
12
12
|
simplecov (>= 0.7.1, < 1.0.0)
|
13
|
-
coderay (1.1.
|
13
|
+
coderay (1.1.1)
|
14
|
+
coveralls (0.8.12)
|
15
|
+
json (~> 1.8)
|
16
|
+
simplecov (~> 0.11.0)
|
17
|
+
term-ansicolor (~> 1.3)
|
18
|
+
thor (~> 0.19.1)
|
19
|
+
tins (~> 1.6.0)
|
14
20
|
diff-lcs (1.2.5)
|
15
21
|
docile (1.1.5)
|
16
|
-
graphql (0.
|
22
|
+
graphql (0.11.0)
|
17
23
|
parslet (~> 1.6)
|
18
24
|
json (1.8.3)
|
19
25
|
method_source (0.8.2)
|
@@ -28,7 +34,7 @@ GEM
|
|
28
34
|
rspec-core (~> 3.4.0)
|
29
35
|
rspec-expectations (~> 3.4.0)
|
30
36
|
rspec-mocks (~> 3.4.0)
|
31
|
-
rspec-core (3.4.
|
37
|
+
rspec-core (3.4.3)
|
32
38
|
rspec-support (~> 3.4.0)
|
33
39
|
rspec-expectations (3.4.0)
|
34
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
@@ -43,12 +49,17 @@ GEM
|
|
43
49
|
simplecov-html (~> 0.10.0)
|
44
50
|
simplecov-html (0.10.0)
|
45
51
|
slop (3.6.0)
|
52
|
+
term-ansicolor (1.3.2)
|
53
|
+
tins (~> 1.0)
|
54
|
+
thor (0.19.1)
|
55
|
+
tins (1.6.0)
|
46
56
|
|
47
57
|
PLATFORMS
|
48
58
|
ruby
|
49
59
|
|
50
60
|
DEPENDENCIES
|
51
61
|
codeclimate-test-reporter (~> 0.4)
|
62
|
+
coveralls
|
52
63
|
graphql-mutable_type!
|
53
64
|
pry (~> 0.10)
|
54
65
|
rake (~> 10.4)
|
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
## GraphQL::MutableType
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/graphql-mutable_type.svg)](https://badge.fury.io/rb/graphql-mutable_type)
|
4
|
+
[![Build Status](https://travis-ci.org/TapasTech/graphql-mutable_type.svg?branch=master)](https://travis-ci.org/TapasTech/graphql-mutable_type)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/TapasTech/graphql-mutable_type/badges/gpa.svg)](https://codeclimate.com/github/TapasTech/graphql-mutable_type)
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/github/TapasTech/graphql-mutable_type/badge.svg?branch=master)](https://coveralls.io/github/TapasTech/graphql-mutable_type?branch=master)
|
7
|
+
|
3
8
|
GraphQL::MutableType is an extension to GraphQL::ObjectType that adds the ability of having nested mutation queries.
|
4
9
|
It defines as following:
|
5
10
|
|
data/Rakefile
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
require 'bundler/setup'
|
2
2
|
Bundler::GemHelper.install_tasks
|
3
3
|
|
4
|
-
|
5
|
-
require 'rspec/core/rake_task'
|
4
|
+
require 'rspec/core/rake_task'
|
6
5
|
|
7
|
-
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
8
7
|
|
9
|
-
|
10
|
-
rescue LoadError
|
11
|
-
# no rspec available
|
12
|
-
end
|
8
|
+
task default: :spec
|
@@ -1,11 +1,10 @@
|
|
1
1
|
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
2
2
|
|
3
|
-
require 'graphql'
|
4
3
|
require 'graphql/mutable_type/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |gem|
|
7
6
|
gem.name = 'graphql-mutable_type'
|
8
|
-
gem.version = GraphQL::
|
7
|
+
gem.version = GraphQL::MUTABLE_TYPE_VERSION
|
9
8
|
gem.date = Date.today.to_s
|
10
9
|
gem.summary = 'An Object Type that may have mutation queries.'
|
11
10
|
gem.description = 'An Object Type that may have mutation queries.'
|
@@ -20,8 +19,9 @@ Gem::Specification.new do |gem|
|
|
20
19
|
gem.files = `git ls-files`.split("\n")
|
21
20
|
gem.test_files = `git ls-files -- {spec}/*`.split("\n")
|
22
21
|
|
23
|
-
gem.add_dependency 'graphql', '~> 0.
|
22
|
+
gem.add_dependency 'graphql', '~> 0.11.0'
|
24
23
|
|
24
|
+
gem.add_development_dependency 'coveralls'
|
25
25
|
gem.add_development_dependency 'codeclimate-test-reporter', '~>0.4'
|
26
26
|
gem.add_development_dependency 'pry', '~> 0.10'
|
27
27
|
gem.add_development_dependency 'rspec', '~> 3.4'
|
@@ -20,7 +20,7 @@ class GraphQL::DefinitionHelpers::DefinedByConfig::DefinitionConfig
|
|
20
20
|
def mutation_type(&block)
|
21
21
|
@mutation_type ||= begin
|
22
22
|
m_type = GraphQL::ObjectType.define(&block)
|
23
|
-
m_type.name = "#{name}
|
23
|
+
m_type.name = "#{name}Mutation"
|
24
24
|
m_type.description = "Mutations of #{description}"
|
25
25
|
m_type
|
26
26
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -23,6 +23,9 @@ require 'pry'
|
|
23
23
|
require 'graphql-mutable_type'
|
24
24
|
require File.join(File.dirname(__FILE__), 'support/francia_kings_app.rb')
|
25
25
|
|
26
|
+
require 'coveralls'
|
27
|
+
Coveralls.wear!
|
28
|
+
|
26
29
|
RSpec.configure do |config|
|
27
30
|
# rspec-expectations config goes here. You can use an alternate
|
28
31
|
# assertion/expectation library such as wrong or the stdlib/minitest
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-mutable_type
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karloku Sang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.11.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.11.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: coveralls
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: codeclimate-test-reporter
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
138
|
version: '0'
|
125
139
|
requirements: []
|
126
140
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.5.
|
141
|
+
rubygems_version: 2.5.2
|
128
142
|
signing_key:
|
129
143
|
specification_version: 4
|
130
144
|
summary: An Object Type that may have mutation queries.
|