wcc-contentful-middleman 1.0.4 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/wcc/contentful/middleman/version.rb +1 -1
- data/wcc-contentful-middleman.gemspec +1 -4
- metadata +5 -8
- data/.gitignore +0 -5
- data/Guardfile +0 -101
- data/doc +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 67dcb74d9b5fea2d9e7b3a449354ce5fa3e7b5546180188c66a093b9e0b24300
|
4
|
+
data.tar.gz: 9c762c56df707823bcf86e3c323ff4c21ecb1496a8df9cddf1e7d1c0e18180b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cfec258b57085764660ad22626d044fc4b70f39629efe45f172ec4df99ec9442edb95f91cd82ef9fcf79da6c8cc10560ea2046532bcebcc59cb365b843c12b3
|
7
|
+
data.tar.gz: 1149245b0ae290e7d6aa0ee8a81c5ccc11efe8eaec74e129d2f44b2adbfefd97b2c2fd3951019dec1f49108e62f5d0e3d7f83bc4a39fc26265ab59347f4b75cb
|
@@ -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-middleman.gemspec]
|
31
28
|
|
32
29
|
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
33
30
|
spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc-contentful-middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.
|
33
|
+
version: 1.0.8
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.
|
40
|
+
version: 1.0.8
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dotenv
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,11 +213,8 @@ executables: []
|
|
213
213
|
extensions: []
|
214
214
|
extra_rdoc_files: []
|
215
215
|
files:
|
216
|
-
- ".gitignore"
|
217
|
-
- Guardfile
|
218
216
|
- README.md
|
219
217
|
- Rakefile
|
220
|
-
- doc
|
221
218
|
- lib/wcc/contentful/middleman.rb
|
222
219
|
- lib/wcc/contentful/middleman/extension.rb
|
223
220
|
- lib/wcc/contentful/middleman/version.rb
|
@@ -250,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
247
|
version: '0'
|
251
248
|
requirements: []
|
252
249
|
rubyforge_project:
|
253
|
-
rubygems_version: 2.6.
|
250
|
+
rubygems_version: 2.7.6.2
|
254
251
|
signing_key:
|
255
252
|
specification_version: 4
|
256
253
|
summary: "[![Gem Version](https://badge.fury.io/rb/wcc-contentful-middleman.svg)](https://rubygems.org/gems/wcc-contentful-middleman)
|
data/.gitignore
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
|