wcc-contentful-app 0.3.0.pre.rc → 1.0.0.pre.rc1
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 +5 -5
- data/.rspec +2 -1
- data/Guardfile +1 -0
- data/README.md +11 -0
- data/Rakefile +121 -0
- data/app/assets/config/manifest.js +5 -0
- data/app/assets/images/down-arrow-primary.svg +3 -0
- data/app/assets/images/up-arrow-primary.svg +3 -0
- data/app/assets/javascripts/wcc/contentful/app/contact-form.js +70 -0
- data/app/assets/javascripts/wcc/contentful/app/index.js +1 -0
- data/app/assets/stylesheets/_wcc-contentful-app.scss +7 -0
- data/app/assets/stylesheets/components/_menu-item.scss +5 -0
- data/app/assets/stylesheets/sections/_faq.scss +39 -0
- data/app/controllers/wcc/contentful/app/contact_form_controller.rb +39 -0
- data/app/controllers/wcc/contentful/app/pages_controller.rb +48 -0
- data/app/helpers/wcc/contentful/app/menu_helper.rb +85 -0
- data/app/helpers/wcc/contentful/app/section_helper.rb +135 -0
- data/app/mailers/wcc/contentful/app/contact_mailer.rb +11 -0
- data/app/models/concerns/wcc/contentful/app/preview_password.rb +19 -0
- data/app/models/wcc/contentful/app/contact_form_submission.rb +9 -0
- data/app/models/wcc/contentful/app/custom_markdown_render.rb +43 -0
- data/app/views/components/_faq_row.html.erb +21 -0
- data/app/views/components/_menu-item.html.erb +41 -0
- data/app/views/components/_other-menu-item.html.erb +4 -0
- data/app/views/components/_section.html.erb +11 -0
- data/app/views/layouts/mailer.html.erb +9 -0
- data/app/views/layouts/mailer.text.erb +1 -0
- data/app/views/pages/show.html.erb +4 -0
- data/app/views/sections/_block_text.html.erb +5 -0
- data/app/views/sections/_code_widget.html.erb +3 -0
- data/app/views/sections/_contact_form.html.erb +53 -0
- data/app/views/sections/_faq.html.erb +36 -0
- data/app/views/sections/_http_error.html.erb +13 -0
- data/app/views/sections/_marquee_text.html.erb +12 -0
- data/app/views/sections/_testimonials.html.erb +38 -0
- data/app/views/sections/_video.html.erb +12 -0
- data/app/views/sections/_video_highlight.html.erb +18 -0
- data/app/views/wcc/contentful/app/contact_mailer/contact_form_email.html.erb +7 -0
- data/bin/rails +14 -0
- data/config/routes.rb +7 -0
- data/lib/generators/wcc/model_generator.rb +16 -6
- data/lib/generators/wcc/templates/menu/migrations/generated_add_menus.ts +285 -0
- data/lib/generators/wcc/templates/menu/models/dropdown_menu.rb +19 -0
- data/lib/generators/wcc/templates/menu/models/menu.rb +0 -4
- data/lib/generators/wcc/templates/menu/models/menu_button.rb +0 -4
- data/lib/generators/wcc/templates/page/migrations/generated_add_pages.ts +147 -0
- data/lib/generators/wcc/templates/page/models/page.rb +0 -4
- data/lib/generators/wcc/templates/page/models/redirect.rb +19 -0
- data/lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts +40 -0
- data/lib/generators/wcc/templates/section-block-text/models/section_block_text.rb +19 -0
- data/lib/generators/wcc/templates/section-code-widget/migrations/generated_add_section-code-widget.ts +90 -0
- data/lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb +23 -0
- data/lib/generators/wcc/templates/section-contact-form/migrations/create_wcc_contentful_app_contact_form_submissions.rb +12 -0
- data/lib/generators/wcc/templates/section-contact-form/migrations/generated_add_section-contact-forms.ts +147 -0
- data/lib/generators/wcc/templates/section-contact-form/models/form_field.rb +19 -0
- data/lib/generators/wcc/templates/section-contact-form/models/section_contact_form.rb +19 -0
- data/lib/generators/wcc/templates/section-faq/migrations/generated_add_section-faqs.ts +148 -0
- data/lib/generators/wcc/templates/section-faq/models/section_faq.rb +19 -0
- data/lib/generators/wcc/templates/section-http-error/migrations/generated_add_section-http-errors.ts +87 -0
- data/lib/generators/wcc/templates/section-http-error/models/section_http_error.rb +19 -0
- data/lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts +64 -0
- data/lib/generators/wcc/templates/section-marquee-text/models/section_marquee_text.rb +19 -0
- data/lib/generators/wcc/templates/section-testimonial/migrations/generated_add_section-testimonials.ts +182 -0
- data/lib/generators/wcc/templates/section-testimonial/models/section_testimonial.rb +19 -0
- data/lib/generators/wcc/templates/section-video-highlight/migrations/generated_add_section-video-highlights.ts +80 -0
- data/lib/generators/wcc/templates/section-video-highlight/models/section_video_highlight.rb +19 -0
- data/lib/generators/wcc/templates/section-video/migrations/generated_add_section-videos.ts +77 -0
- data/lib/generators/wcc/templates/section-video/models/section_video.rb +19 -0
- data/lib/generators/wcc/templates/site-config/migrations/generated_add_site-configs.ts +97 -0
- data/lib/generators/wcc/templates/site-config/models/site_config.rb +19 -0
- data/lib/generators/wcc/templates/wcc_contentful.rb +1 -1
- data/lib/wcc/contentful/app.rb +48 -3
- data/lib/wcc/contentful/app/configuration.rb +60 -0
- data/lib/wcc/contentful/app/engine.rb +15 -0
- data/lib/wcc/contentful/app/exceptions.rb +9 -0
- data/lib/wcc/contentful/app/rails.rb +6 -0
- data/lib/wcc/contentful/app/version.rb +1 -1
- data/lib/wcc/contentful/model/dropdown_menu.rb +0 -3
- data/lib/wcc/contentful/model/form_field.rb +4 -0
- data/lib/wcc/contentful/model/menu.rb +0 -2
- data/lib/wcc/contentful/model/menu_button.rb +18 -5
- data/lib/wcc/contentful/model/page.rb +0 -4
- data/lib/wcc/contentful/model/redirect.rb +21 -11
- data/lib/wcc/contentful/model/section_contact_form.rb +42 -0
- data/lib/wcc/contentful/model/site_config.rb +7 -0
- data/wcc-contentful-app.gemspec +19 -20
- metadata +172 -124
- data/Gemfile +0 -10
- data/lib/generators/wcc/templates/menu/generated_add_menus.ts +0 -192
- data/lib/generators/wcc/templates/page/generated_add_pages.ts +0 -50
- data/lib/tasks/validate.rake +0 -20
- data/lib/wcc/contentful/app/model_validators.rb +0 -121
- data/lib/wcc/contentful/app/model_validators/dsl.rb +0 -166
- data/lib/wcc/contentful/ext/model.rb +0 -5
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module WCC::Contentful::App
|
4
|
+
class Engine < ::Rails::Engine
|
5
|
+
config.assets.precompile += %w[*.jpg *.png *.svg]
|
6
|
+
config.assets.precompile +=
|
7
|
+
[
|
8
|
+
'config/manifest.js'
|
9
|
+
].map { |f| File.expand_path("../../../../../app/assets/#{f}", __FILE__) }
|
10
|
+
|
11
|
+
config.generators do |g|
|
12
|
+
g.test_framework :rspec, fixture: false
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,16 +1,29 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class WCC::Contentful::Model::MenuButton < WCC::Contentful::Model
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
def external_uri
|
5
|
+
@external_url ||= URI(external_link) if external_link.present?
|
6
|
+
end
|
7
|
+
|
8
|
+
# A menu link is external if `external_link` is present and not relative.
|
9
|
+
def external?
|
10
|
+
external_uri&.scheme.present?
|
11
|
+
end
|
8
12
|
|
9
13
|
# Gets either the external link or the slug from the referenced page.
|
10
14
|
# Example usage: `<%= link_to button.title, button.href %>`
|
11
15
|
def href
|
12
16
|
return external_link if external_link
|
13
17
|
|
14
|
-
link&.try(:slug) || link&.try(:url)
|
18
|
+
url = (link&.try(:slug) || link&.try(:url))
|
19
|
+
return url unless fragment.present?
|
20
|
+
|
21
|
+
url = URI(url || '')
|
22
|
+
url.fragment = fragment
|
23
|
+
url.to_s
|
24
|
+
end
|
25
|
+
|
26
|
+
def fragment
|
27
|
+
WCC::Contentful::App::SectionHelper.section_id(section_link) if section_link
|
15
28
|
end
|
16
29
|
end
|
@@ -1,8 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class WCC::Contentful::Model::Page < WCC::Contentful::Model
|
4
|
-
validate_field :title, :String
|
5
|
-
validate_field :slug, :String
|
6
|
-
validate_field :subpages, :Array, link_to: %w[page]
|
7
|
-
validate_field :sections, :Array, link_to: /^section/
|
8
4
|
end
|
@@ -1,19 +1,29 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class WCC::Contentful::Model::Redirect < WCC::Contentful::Model
|
4
|
+
def external_uri
|
5
|
+
@external_uri ||= URI(external_link) if external_link.present?
|
6
|
+
end
|
7
|
+
|
8
|
+
# A menu link is external if `external_link` is present and not relative.
|
9
|
+
def external?
|
10
|
+
external_uri&.scheme.present?
|
11
|
+
end
|
12
|
+
|
13
|
+
# Gets either the external link or the slug from the referenced page.
|
14
|
+
# Example usage: `redirect_to redirect.href`
|
4
15
|
def href
|
5
|
-
if
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
16
|
+
return external_link if external_link
|
17
|
+
|
18
|
+
url = (link&.try(:slug) || link&.try(:url))
|
19
|
+
return url unless fragment.present?
|
20
|
+
|
21
|
+
url = URI(url || '')
|
22
|
+
url.fragment = fragment
|
23
|
+
url.to_s
|
10
24
|
end
|
11
25
|
|
12
|
-
def
|
13
|
-
|
14
|
-
true
|
15
|
-
else
|
16
|
-
false
|
17
|
-
end
|
26
|
+
def fragment
|
27
|
+
WCC::Contentful::App::SectionHelper.section_id(section_link) if section_link
|
18
28
|
end
|
19
29
|
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class WCC::Contentful::Model::SectionContactForm < WCC::Contentful::Model
|
4
|
+
def send_email(data)
|
5
|
+
save_contact_form(data)
|
6
|
+
|
7
|
+
::WCC::Contentful::App::ContactMailer.contact_form_email(data[:notification_email], data).deliver
|
8
|
+
end
|
9
|
+
|
10
|
+
def page
|
11
|
+
::WCC::Contentful::Model::Page.find_by(sections: { id: id })
|
12
|
+
end
|
13
|
+
|
14
|
+
def to_address(email_object_id: nil)
|
15
|
+
return email_address(email_model(email_object_id)) if email_object_id.present?
|
16
|
+
|
17
|
+
notification_email
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def email_address(entry)
|
23
|
+
return entry.email if defined?(entry.email)
|
24
|
+
|
25
|
+
raise ArgumentError, 'email is not defined on this entry'
|
26
|
+
end
|
27
|
+
|
28
|
+
def email_model(email_object_id)
|
29
|
+
raise ArgumentError, 'contentful entry does not exist' unless
|
30
|
+
entry = ::WCC::Contentful::Model.find(email_object_id, options: sys.context.to_h)
|
31
|
+
|
32
|
+
entry
|
33
|
+
end
|
34
|
+
|
35
|
+
def save_contact_form(data)
|
36
|
+
return unless ::WCC::Contentful::App.db_connected?
|
37
|
+
return unless ::ActiveRecord::Base.connection
|
38
|
+
.table_exists? 'wcc_contentful_app_contact_form_submissions'
|
39
|
+
|
40
|
+
::WCC::Contentful::App::ContactFormSubmission.create!(form_id: id, data: data)
|
41
|
+
end
|
42
|
+
end
|
data/wcc-contentful-app.gemspec
CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.email = ['dev@watermark.org']
|
12
12
|
|
13
13
|
spec.summary = File.readlines(File.expand_path('README.md', __dir__)).join
|
14
|
-
spec.description = '
|
15
|
-
spec.homepage = 'https://github.com/watermarkchurch/wcc-contentful
|
14
|
+
spec.description = 'Models, Controllers, and Views common to Watermark Church apps'
|
15
|
+
spec.homepage = 'https://github.com/watermarkchurch/wcc-contentful'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
18
|
spec.required_ruby_version = '>= 2.3'
|
@@ -24,37 +24,36 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
|
27
|
+
spec.add_development_dependency 'capybara', '~> 3.9'
|
28
|
+
spec.add_development_dependency 'coveralls'
|
27
29
|
spec.add_development_dependency 'dotenv', '~> 2.2'
|
30
|
+
spec.add_development_dependency 'erb_lint', '~> 0.0.26'
|
28
31
|
spec.add_development_dependency 'httplog', '~> 1.0'
|
29
|
-
spec.add_development_dependency '
|
32
|
+
spec.add_development_dependency 'rails-controller-testing', '~> 1.0'
|
33
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
30
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
|
-
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.
|
32
|
-
spec.add_development_dependency 'rubocop', '
|
33
|
-
spec.add_development_dependency '
|
35
|
+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
|
36
|
+
spec.add_development_dependency 'rubocop', '0.68'
|
37
|
+
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
38
|
+
spec.add_development_dependency 'vcr', '~> 5.0'
|
34
39
|
spec.add_development_dependency 'webmock', '~> 3.0'
|
35
40
|
|
36
41
|
# Makes testing easy via `bundle exec guard`
|
37
42
|
spec.add_development_dependency 'guard', '~> 2.14'
|
38
43
|
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
39
44
|
spec.add_development_dependency 'guard-rubocop', '~> 1.3.0'
|
45
|
+
spec.add_development_dependency 'guard-shell', '~> 0.7.1'
|
40
46
|
|
41
47
|
# for generators
|
42
48
|
spec.add_development_dependency 'generator_spec', '~> 0.9.4'
|
43
|
-
|
49
|
+
|
50
|
+
# wcc-contentful-app needs rails to function, so require it for specs.
|
51
|
+
spec.add_development_dependency 'rails', '~> 5'
|
44
52
|
spec.add_development_dependency 'rspec-rails', '~> 3.7'
|
45
|
-
spec.add_development_dependency 'sqlite3'
|
53
|
+
spec.add_development_dependency 'sqlite3', '~> 1.3.6'
|
46
54
|
spec.add_development_dependency 'timecop', '~> 0.9.1'
|
55
|
+
spec.add_development_dependency 'typhoeus', '~> 1.4.0'
|
47
56
|
|
48
|
-
|
49
|
-
spec.
|
50
|
-
spec.add_development_dependency 'contentful-management', '2.0.2'
|
51
|
-
spec.add_development_dependency 'graphql', '~> 1.7'
|
52
|
-
spec.add_development_dependency 'http', '> 1.0', '< 3.0'
|
53
|
-
spec.add_development_dependency 'pg', '~> 1.0'
|
54
|
-
spec.add_development_dependency 'typhoeus', '~> 1.3'
|
55
|
-
|
56
|
-
spec.add_dependency 'activesupport', '>= 5'
|
57
|
-
spec.add_dependency 'dry-validation', '~> 0.11.1'
|
58
|
-
spec.add_dependency 'wcc-base', '~> 0.3.1'
|
59
|
-
spec.add_dependency 'wcc-contentful'
|
57
|
+
spec.add_dependency 'redcarpet', '~> 3.4'
|
58
|
+
spec.add_dependency 'wcc-contentful', "~> #{WCC::Contentful::App::VERSION}"
|
60
59
|
end
|
metadata
CHANGED
@@ -1,115 +1,115 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc-contentful-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.pre.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Dev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: capybara
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.9'
|
20
20
|
type: :development
|
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: '
|
26
|
+
version: '3.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: coveralls
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
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: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: dotenv
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.2'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: erb_lint
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.0.26
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.0.26
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: httplog
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '1.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '1.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rails-controller-testing
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0
|
89
|
+
version: '1.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
96
|
+
version: '1.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '13.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '13.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
@@ -123,264 +123,244 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '3.0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rspec_junit_formatter
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 0.4.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 0.4.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - '='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '0.68'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - '='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '0.68'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 0.16.1
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 0.16.1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: vcr
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0
|
173
|
+
version: '5.0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0
|
180
|
+
version: '5.0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: webmock
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '3.0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '3.0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
196
|
+
name: guard
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: '
|
201
|
+
version: '2.14'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: '
|
208
|
+
version: '2.14'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
210
|
+
name: guard-rspec
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- - "
|
213
|
+
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: '
|
215
|
+
version: '4.7'
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- - "
|
220
|
+
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: '
|
222
|
+
version: '4.7'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
224
|
+
name: guard-rubocop
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
229
|
+
version: 1.3.0
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
236
|
+
version: 1.3.0
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
238
|
+
name: guard-shell
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
|
-
- -
|
241
|
+
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version:
|
243
|
+
version: 0.7.1
|
244
244
|
type: :development
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
|
-
- -
|
248
|
+
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version:
|
250
|
+
version: 0.7.1
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
|
-
name:
|
252
|
+
name: generator_spec
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
|
-
- -
|
255
|
+
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version:
|
257
|
+
version: 0.9.4
|
258
258
|
type: :development
|
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:
|
264
|
+
version: 0.9.4
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
|
-
name:
|
266
|
+
name: rails
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
269
|
- - "~>"
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: '
|
271
|
+
version: '5'
|
272
272
|
type: :development
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
276
|
- - "~>"
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: '
|
278
|
+
version: '5'
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
|
-
name:
|
280
|
+
name: rspec-rails
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
282
282
|
requirements:
|
283
|
-
- - "
|
284
|
-
- !ruby/object:Gem::Version
|
285
|
-
version: '1.0'
|
286
|
-
- - "<"
|
283
|
+
- - "~>"
|
287
284
|
- !ruby/object:Gem::Version
|
288
|
-
version: '3.
|
285
|
+
version: '3.7'
|
289
286
|
type: :development
|
290
287
|
prerelease: false
|
291
288
|
version_requirements: !ruby/object:Gem::Requirement
|
292
289
|
requirements:
|
293
|
-
- - "
|
294
|
-
- !ruby/object:Gem::Version
|
295
|
-
version: '1.0'
|
296
|
-
- - "<"
|
290
|
+
- - "~>"
|
297
291
|
- !ruby/object:Gem::Version
|
298
|
-
version: '3.
|
292
|
+
version: '3.7'
|
299
293
|
- !ruby/object:Gem::Dependency
|
300
|
-
name:
|
294
|
+
name: sqlite3
|
301
295
|
requirement: !ruby/object:Gem::Requirement
|
302
296
|
requirements:
|
303
297
|
- - "~>"
|
304
298
|
- !ruby/object:Gem::Version
|
305
|
-
version:
|
299
|
+
version: 1.3.6
|
306
300
|
type: :development
|
307
301
|
prerelease: false
|
308
302
|
version_requirements: !ruby/object:Gem::Requirement
|
309
303
|
requirements:
|
310
304
|
- - "~>"
|
311
305
|
- !ruby/object:Gem::Version
|
312
|
-
version:
|
306
|
+
version: 1.3.6
|
313
307
|
- !ruby/object:Gem::Dependency
|
314
|
-
name:
|
308
|
+
name: timecop
|
315
309
|
requirement: !ruby/object:Gem::Requirement
|
316
310
|
requirements:
|
317
311
|
- - "~>"
|
318
312
|
- !ruby/object:Gem::Version
|
319
|
-
version:
|
313
|
+
version: 0.9.1
|
320
314
|
type: :development
|
321
315
|
prerelease: false
|
322
316
|
version_requirements: !ruby/object:Gem::Requirement
|
323
317
|
requirements:
|
324
318
|
- - "~>"
|
325
319
|
- !ruby/object:Gem::Version
|
326
|
-
version:
|
327
|
-
- !ruby/object:Gem::Dependency
|
328
|
-
name: activesupport
|
329
|
-
requirement: !ruby/object:Gem::Requirement
|
330
|
-
requirements:
|
331
|
-
- - ">="
|
332
|
-
- !ruby/object:Gem::Version
|
333
|
-
version: '5'
|
334
|
-
type: :runtime
|
335
|
-
prerelease: false
|
336
|
-
version_requirements: !ruby/object:Gem::Requirement
|
337
|
-
requirements:
|
338
|
-
- - ">="
|
339
|
-
- !ruby/object:Gem::Version
|
340
|
-
version: '5'
|
320
|
+
version: 0.9.1
|
341
321
|
- !ruby/object:Gem::Dependency
|
342
|
-
name:
|
322
|
+
name: typhoeus
|
343
323
|
requirement: !ruby/object:Gem::Requirement
|
344
324
|
requirements:
|
345
325
|
- - "~>"
|
346
326
|
- !ruby/object:Gem::Version
|
347
|
-
version:
|
348
|
-
type: :
|
327
|
+
version: 1.4.0
|
328
|
+
type: :development
|
349
329
|
prerelease: false
|
350
330
|
version_requirements: !ruby/object:Gem::Requirement
|
351
331
|
requirements:
|
352
332
|
- - "~>"
|
353
333
|
- !ruby/object:Gem::Version
|
354
|
-
version:
|
334
|
+
version: 1.4.0
|
355
335
|
- !ruby/object:Gem::Dependency
|
356
|
-
name:
|
336
|
+
name: redcarpet
|
357
337
|
requirement: !ruby/object:Gem::Requirement
|
358
338
|
requirements:
|
359
339
|
- - "~>"
|
360
340
|
- !ruby/object:Gem::Version
|
361
|
-
version:
|
341
|
+
version: '3.4'
|
362
342
|
type: :runtime
|
363
343
|
prerelease: false
|
364
344
|
version_requirements: !ruby/object:Gem::Requirement
|
365
345
|
requirements:
|
366
346
|
- - "~>"
|
367
347
|
- !ruby/object:Gem::Version
|
368
|
-
version:
|
348
|
+
version: '3.4'
|
369
349
|
- !ruby/object:Gem::Dependency
|
370
350
|
name: wcc-contentful
|
371
351
|
requirement: !ruby/object:Gem::Requirement
|
372
352
|
requirements:
|
373
|
-
- - "
|
353
|
+
- - "~>"
|
374
354
|
- !ruby/object:Gem::Version
|
375
|
-
version:
|
355
|
+
version: 1.0.0.pre.rc1
|
376
356
|
type: :runtime
|
377
357
|
prerelease: false
|
378
358
|
version_requirements: !ruby/object:Gem::Requirement
|
379
359
|
requirements:
|
380
|
-
- - "
|
360
|
+
- - "~>"
|
381
361
|
- !ruby/object:Gem::Version
|
382
|
-
version:
|
383
|
-
description:
|
362
|
+
version: 1.0.0.pre.rc1
|
363
|
+
description: Models, Controllers, and Views common to Watermark Church apps
|
384
364
|
email:
|
385
365
|
- dev@watermark.org
|
386
366
|
executables: []
|
@@ -388,38 +368,100 @@ extensions: []
|
|
388
368
|
extra_rdoc_files: []
|
389
369
|
files:
|
390
370
|
- ".rspec"
|
391
|
-
-
|
371
|
+
- Guardfile
|
392
372
|
- README.md
|
373
|
+
- Rakefile
|
374
|
+
- app/assets/config/manifest.js
|
375
|
+
- app/assets/images/down-arrow-primary.svg
|
376
|
+
- app/assets/images/up-arrow-primary.svg
|
377
|
+
- app/assets/javascripts/wcc/contentful/app/contact-form.js
|
378
|
+
- app/assets/javascripts/wcc/contentful/app/index.js
|
379
|
+
- app/assets/stylesheets/_wcc-contentful-app.scss
|
380
|
+
- app/assets/stylesheets/components/_menu-item.scss
|
381
|
+
- app/assets/stylesheets/sections/_faq.scss
|
382
|
+
- app/controllers/wcc/contentful/app/contact_form_controller.rb
|
383
|
+
- app/controllers/wcc/contentful/app/pages_controller.rb
|
384
|
+
- app/helpers/wcc/contentful/app/menu_helper.rb
|
385
|
+
- app/helpers/wcc/contentful/app/section_helper.rb
|
386
|
+
- app/mailers/wcc/contentful/app/contact_mailer.rb
|
387
|
+
- app/models/concerns/wcc/contentful/app/preview_password.rb
|
388
|
+
- app/models/wcc/contentful/app/contact_form_submission.rb
|
389
|
+
- app/models/wcc/contentful/app/custom_markdown_render.rb
|
390
|
+
- app/views/components/_faq_row.html.erb
|
391
|
+
- app/views/components/_menu-item.html.erb
|
392
|
+
- app/views/components/_other-menu-item.html.erb
|
393
|
+
- app/views/components/_section.html.erb
|
394
|
+
- app/views/layouts/mailer.html.erb
|
395
|
+
- app/views/layouts/mailer.text.erb
|
396
|
+
- app/views/pages/show.html.erb
|
397
|
+
- app/views/sections/_block_text.html.erb
|
398
|
+
- app/views/sections/_code_widget.html.erb
|
399
|
+
- app/views/sections/_contact_form.html.erb
|
400
|
+
- app/views/sections/_faq.html.erb
|
401
|
+
- app/views/sections/_http_error.html.erb
|
402
|
+
- app/views/sections/_marquee_text.html.erb
|
403
|
+
- app/views/sections/_testimonials.html.erb
|
404
|
+
- app/views/sections/_video.html.erb
|
405
|
+
- app/views/sections/_video_highlight.html.erb
|
406
|
+
- app/views/wcc/contentful/app/contact_mailer/contact_form_email.html.erb
|
407
|
+
- bin/rails
|
408
|
+
- config/routes.rb
|
393
409
|
- lib/generators/wcc/USAGE
|
394
410
|
- lib/generators/wcc/model_generator.rb
|
395
411
|
- lib/generators/wcc/templates/.keep
|
396
412
|
- lib/generators/wcc/templates/Procfile
|
397
413
|
- lib/generators/wcc/templates/contentful_shell_wrapper
|
398
|
-
- lib/generators/wcc/templates/menu/generated_add_menus.ts
|
414
|
+
- lib/generators/wcc/templates/menu/migrations/generated_add_menus.ts
|
415
|
+
- lib/generators/wcc/templates/menu/models/dropdown_menu.rb
|
399
416
|
- lib/generators/wcc/templates/menu/models/menu.rb
|
400
417
|
- lib/generators/wcc/templates/menu/models/menu_button.rb
|
401
|
-
- lib/generators/wcc/templates/page/generated_add_pages.ts
|
418
|
+
- lib/generators/wcc/templates/page/migrations/generated_add_pages.ts
|
402
419
|
- lib/generators/wcc/templates/page/models/page.rb
|
420
|
+
- lib/generators/wcc/templates/page/models/redirect.rb
|
403
421
|
- lib/generators/wcc/templates/release
|
422
|
+
- lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
|
423
|
+
- lib/generators/wcc/templates/section-block-text/models/section_block_text.rb
|
424
|
+
- lib/generators/wcc/templates/section-code-widget/migrations/generated_add_section-code-widget.ts
|
425
|
+
- lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
|
426
|
+
- lib/generators/wcc/templates/section-contact-form/migrations/create_wcc_contentful_app_contact_form_submissions.rb
|
427
|
+
- lib/generators/wcc/templates/section-contact-form/migrations/generated_add_section-contact-forms.ts
|
428
|
+
- lib/generators/wcc/templates/section-contact-form/models/form_field.rb
|
429
|
+
- lib/generators/wcc/templates/section-contact-form/models/section_contact_form.rb
|
430
|
+
- lib/generators/wcc/templates/section-faq/migrations/generated_add_section-faqs.ts
|
431
|
+
- lib/generators/wcc/templates/section-faq/models/section_faq.rb
|
432
|
+
- lib/generators/wcc/templates/section-http-error/migrations/generated_add_section-http-errors.ts
|
433
|
+
- lib/generators/wcc/templates/section-http-error/models/section_http_error.rb
|
434
|
+
- lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
|
435
|
+
- lib/generators/wcc/templates/section-marquee-text/models/section_marquee_text.rb
|
436
|
+
- lib/generators/wcc/templates/section-testimonial/migrations/generated_add_section-testimonials.ts
|
437
|
+
- lib/generators/wcc/templates/section-testimonial/models/section_testimonial.rb
|
438
|
+
- lib/generators/wcc/templates/section-video-highlight/migrations/generated_add_section-video-highlights.ts
|
439
|
+
- lib/generators/wcc/templates/section-video-highlight/models/section_video_highlight.rb
|
440
|
+
- lib/generators/wcc/templates/section-video/migrations/generated_add_section-videos.ts
|
441
|
+
- lib/generators/wcc/templates/section-video/models/section_video.rb
|
442
|
+
- lib/generators/wcc/templates/site-config/migrations/generated_add_site-configs.ts
|
443
|
+
- lib/generators/wcc/templates/site-config/models/site_config.rb
|
404
444
|
- lib/generators/wcc/templates/wcc_contentful.rb
|
405
|
-
- lib/tasks/validate.rake
|
406
445
|
- lib/wcc/contentful/app.rb
|
446
|
+
- lib/wcc/contentful/app/configuration.rb
|
447
|
+
- lib/wcc/contentful/app/engine.rb
|
407
448
|
- lib/wcc/contentful/app/exceptions.rb
|
408
|
-
- lib/wcc/contentful/app/
|
409
|
-
- lib/wcc/contentful/app/model_validators/dsl.rb
|
449
|
+
- lib/wcc/contentful/app/rails.rb
|
410
450
|
- lib/wcc/contentful/app/version.rb
|
411
|
-
- lib/wcc/contentful/ext/model.rb
|
412
451
|
- lib/wcc/contentful/model/dropdown_menu.rb
|
452
|
+
- lib/wcc/contentful/model/form_field.rb
|
413
453
|
- lib/wcc/contentful/model/menu.rb
|
414
454
|
- lib/wcc/contentful/model/menu_button.rb
|
415
455
|
- lib/wcc/contentful/model/page.rb
|
416
456
|
- lib/wcc/contentful/model/redirect.rb
|
457
|
+
- lib/wcc/contentful/model/section_contact_form.rb
|
458
|
+
- lib/wcc/contentful/model/site_config.rb
|
417
459
|
- wcc-contentful-app.gemspec
|
418
|
-
homepage: https://github.com/watermarkchurch/wcc-contentful
|
460
|
+
homepage: https://github.com/watermarkchurch/wcc-contentful
|
419
461
|
licenses:
|
420
462
|
- MIT
|
421
463
|
metadata: {}
|
422
|
-
post_install_message:
|
464
|
+
post_install_message:
|
423
465
|
rdoc_options: []
|
424
466
|
require_paths:
|
425
467
|
- lib
|
@@ -434,9 +476,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
434
476
|
- !ruby/object:Gem::Version
|
435
477
|
version: 1.3.1
|
436
478
|
requirements: []
|
437
|
-
rubyforge_project:
|
438
|
-
rubygems_version: 2.6.
|
439
|
-
signing_key:
|
479
|
+
rubyforge_project:
|
480
|
+
rubygems_version: 2.7.6.2
|
481
|
+
signing_key:
|
440
482
|
specification_version: 4
|
441
|
-
summary:
|
483
|
+
summary: "[](https://rubygems.org/gems/wcc-contentful-app)
|
484
|
+
[](https://travis-ci.org/watermarkchurch/wcc-contentful)
|
485
|
+
[](https://coveralls.io/github/watermarkchurch/wcc-contentful?branch=master)
|
486
|
+
\ # WCC::Contentful::App This gem specifies default models, controllers, views,
|
487
|
+
and javascripts that get installed into all Watermarkchurch apps that use contentful.
|
488
|
+
\ It is a highly opinionated starting point for a very flexible site design using
|
489
|
+
Contentful. You probably should not use this."
|
442
490
|
test_files: []
|