wcc-contentful-graphql 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wcc/contentful/graphql/version.rb +1 -1
- data/wcc-contentful-graphql.gemspec +1 -4
- metadata +3 -6
- data/.rspec +0 -4
- data/Guardfile +0 -101
- data/doc +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd4c0ab9466042101372e60858b89a401cf5253d
|
4
|
+
data.tar.gz: e0fe0d2f73185dd7a5833ec9fa70dfbe7de0c578
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a4e40279bf12396e0de94dc0d47747f2f8a9174aa471282be95133e3d8f2fb2bb17906c9c74087ab7440c2230ccf20b1befdc52a860fb600f0619b5687570ef
|
7
|
+
data.tar.gz: 8b1fb0add46f2b66cd1224f3d4f0e7d39f0f92dee8034509ca46270a08967dc028b846b317b5d356cc33e0ff241cee12f833d53e9448614b67d4736b8086c93e
|
@@ -24,10 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
'documentation_uri' => "https://watermarkchurch.github.io/wcc-contentful/#{doc_version}/wcc-contentful-graphql"
|
25
25
|
}
|
26
26
|
|
27
|
-
spec.files
|
28
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
29
|
-
f.match(%r{^(test|spec|features)/})
|
30
|
-
end
|
27
|
+
spec.files = Dir['lib/**/*'] + %w[Rakefile README.md wcc-contentful-graphql.gemspec]
|
31
28
|
|
32
29
|
spec.require_paths = ['lib']
|
33
30
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc-contentful-graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Dev
|
@@ -254,14 +254,14 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: 1.0.
|
257
|
+
version: 1.0.5
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: 1.0.
|
264
|
+
version: 1.0.5
|
265
265
|
description: GraphQL interface over WCC::Contentful store
|
266
266
|
email:
|
267
267
|
- dev@watermark.org
|
@@ -269,11 +269,8 @@ executables: []
|
|
269
269
|
extensions: []
|
270
270
|
extra_rdoc_files: []
|
271
271
|
files:
|
272
|
-
- ".rspec"
|
273
|
-
- Guardfile
|
274
272
|
- README.md
|
275
273
|
- Rakefile
|
276
|
-
- doc
|
277
274
|
- lib/wcc/contentful/ext/services.rb
|
278
275
|
- lib/wcc/contentful/graphql.rb
|
279
276
|
- lib/wcc/contentful/graphql/builder.rb
|
data/.rspec
DELETED
data/Guardfile
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
# A guardfile for making Danger Plugins
|
2
|
-
# For more info see https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
# To run, use `bundle exec guard`.
|
5
|
-
|
6
|
-
def watch_async(regexp)
|
7
|
-
raise ArgumentError, "No block given" unless block_given?
|
8
|
-
match_queue = Queue.new
|
9
|
-
|
10
|
-
watch(regexp) do |match|
|
11
|
-
# Producer - add matches to the match queue
|
12
|
-
match_queue << match
|
13
|
-
nil
|
14
|
-
end
|
15
|
-
|
16
|
-
# Consumer - process matches as a batch
|
17
|
-
Thread.new do
|
18
|
-
loop do
|
19
|
-
matches = []
|
20
|
-
matches << match_queue.pop
|
21
|
-
|
22
|
-
loop do
|
23
|
-
begin
|
24
|
-
matches << match_queue.pop(true)
|
25
|
-
rescue ThreadError
|
26
|
-
break
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
begin
|
31
|
-
yield matches if matches.length > 0
|
32
|
-
rescue StandardError => ex
|
33
|
-
STDERR.puts "Error! #{ex}"
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
group :red_green_refactor, halt_on_fail: true do
|
40
|
-
guard :rspec, cmd: 'bundle exec rspec' do
|
41
|
-
require 'guard/rspec/dsl'
|
42
|
-
dsl = Guard::RSpec::Dsl.new(self)
|
43
|
-
|
44
|
-
# RSpec files
|
45
|
-
rspec = dsl.rspec
|
46
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
47
|
-
# watch(rspec.spec_support) { rspec.spec_dir }
|
48
|
-
watch(rspec.spec_files)
|
49
|
-
|
50
|
-
# Ruby files
|
51
|
-
ruby = dsl.ruby
|
52
|
-
watch(%r{lib/wcc/(.+)\.rb$}) { |m| rspec.spec.call("wcc/#{m[1]}") }
|
53
|
-
watch(%r{lib/generators/(.+)\.rb$}) { |m| rspec.spec.call("generators/#{m[1]}") }
|
54
|
-
|
55
|
-
# Rails files
|
56
|
-
rails = dsl.rails(view_extensions: %w[erb haml slim])
|
57
|
-
dsl.watch_spec_files_for(rails.app_files)
|
58
|
-
dsl.watch_spec_files_for(rails.views)
|
59
|
-
|
60
|
-
watch(rails.controllers) do |m|
|
61
|
-
[
|
62
|
-
rspec.spec.call("routing/#{m[1]}_routing"),
|
63
|
-
rspec.spec.call("controllers/#{m[1]}_controller"),
|
64
|
-
rspec.spec.call("acceptance/#{m[1]}")
|
65
|
-
]
|
66
|
-
end
|
67
|
-
|
68
|
-
# Rails config changes
|
69
|
-
watch(rails.spec_helper) { rspec.spec_dir }
|
70
|
-
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
71
|
-
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
72
|
-
|
73
|
-
# Capybara features specs
|
74
|
-
watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
|
75
|
-
watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
|
76
|
-
end
|
77
|
-
|
78
|
-
guard :rubocop, cli: ['--display-cop-names'] do
|
79
|
-
watch(%r{.+\.rb$})
|
80
|
-
watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
|
81
|
-
end
|
82
|
-
|
83
|
-
guard :shell, all_on_start: false do
|
84
|
-
watch_async(%r{app/views/(.+\.html.*\.erb)}) { |matches|
|
85
|
-
|
86
|
-
matches = matches.map { |m| File.absolute_path(m[0]) }
|
87
|
-
Dir.chdir('..') {
|
88
|
-
system("bundle exec erblint #{matches.join(' ')}")
|
89
|
-
}
|
90
|
-
}
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
group :autofix do
|
95
|
-
guard :rubocop, all_on_start: false, cli: ['--auto-correct', '--display-cop-names'] do
|
96
|
-
watch(%r{.+\.rb$})
|
97
|
-
watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
scope group: :red_green_refactor
|