wcc-contentful-middleman 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b44a0e661e40919657d0b4148114622dfb5b7a46
4
- data.tar.gz: 8b506b0395fe8b99f143cb9e2908093ee12ebda7
3
+ metadata.gz: e1e003dbf34222bbb14c119b357ba494bdc31d78
4
+ data.tar.gz: af81c1897b0494add271fe310c8fce6ffcc135cf
5
5
  SHA512:
6
- metadata.gz: 1a850575f65ba14d75934d77cd2a7305a32bf3bdbe9cad22e65f0318a7ea489e7c3f94339a2dbba2c963c12b82e322f062dec4825ed0bb7c55d1f3a06c34074f
7
- data.tar.gz: f3cf0de186cea114bb26529faac67a40bf39113a60033bac64177974f649f9b16cfccc2dd32014563d73d6fd639dea8c9713d3f63896ef02e8717b9607bc6063
6
+ metadata.gz: f029574a09598ad62ca7f3bb13536c233ffc556bbe498946838acda49a6491e25fac490744154efe4b0046a4129ea28dd1d5fd38f6774bb3804492104d231f36
7
+ data.tar.gz: b95bb45fd382a2e4f48c2a85a38d3d784b68168d1d16d72c0bc28150636d321fb7fd277e85ea3698c71f2137602fe448fb5c2db7317ac07b7e7506708db52ac6
@@ -3,7 +3,7 @@
3
3
  module WCC
4
4
  module Contentful
5
5
  module Middleman
6
- VERSION = '1.0.4'
6
+ VERSION = '1.0.5'
7
7
  end
8
8
  end
9
9
  end
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-contentful-middleman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.4
33
+ version: 1.0.5
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.4
40
+ version: 1.0.5
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
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- # Ignore bundler lock file
2
- /Gemfile.lock
3
-
4
- # Ignore pkg folder
5
- /pkg
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
data/doc DELETED
@@ -1 +0,0 @@
1
- ./../doc/wcc-contentful-middleman