amp-html 0.7.18 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +82 -77
- data/README.md +61 -75
- data/app/helpers/amp_html/asset_helper.rb +11 -0
- data/app/helpers/amp_html/base_helper.rb +14 -0
- data/app/helpers/amp_html/dynamic_content_helper.rb +14 -0
- data/app/helpers/amp_html/layouts_helper.rb +11 -0
- data/app/helpers/amp_html/media_helper.rb +15 -0
- data/app/views/mozaic/amp/_amp-link.html.erb +1 -0
- data/app/views/mozaic/amp/_audio.html.erb +11 -0
- data/app/views/mozaic/amp/_canonical-link.html.erb +1 -0
- data/app/views/mozaic/amp/_components.html.erb +6 -0
- data/app/views/mozaic/amp/_doctype.html.erb +4 -0
- data/app/views/mozaic/amp/_font.html.erb +2 -0
- data/app/views/mozaic/amp/_form-response.html.erb +5 -0
- data/app/views/mozaic/amp/_form.html.erb +3 -0
- data/app/views/mozaic/amp/_head.html.erb +13 -0
- data/app/views/mozaic/amp/_img.html.erb +1 -0
- data/app/views/mozaic/amp/_input.html.erb +1 -0
- data/app/views/mozaic/amp/_mustache.html.erb +3 -0
- data/app/views/mozaic/amp/_selector.html.erb +3 -0
- data/app/views/mozaic/amp/_video.html.erb +11 -0
- data/lib/amp-html.rb +4 -20
- data/lib/amp-html/configuration.rb +13 -158
- data/lib/amp-html/engine.rb +6 -0
- data/lib/amp-html/railtie.rb +109 -0
- data/lib/amp-html/version.rb +1 -9
- data/lib/generators/amp_html_generator.rb +27 -0
- data/lib/generators/templates/{assets/stylesheets/application.scss → application.css} +1 -1
- data/lib/generators/templates/initializer.rb +14 -0
- data/lib/generators/templates/layout.html.erb +15 -0
- metadata +53 -204
- data/.github/issue_template.md +0 -16
- data/.github/pull_request_template.md +0 -21
- data/.gitignore +0 -13
- data/.travis.yml +0 -4
- data/CODE_OF_CONDUCT.md +0 -46
- data/CONTRIBUTING.md +0 -1
- data/DEPRECATIONS.md +0 -9
- data/Gemfile +0 -12
- data/Gemfile.lock +0 -164
- data/INSTALL.md +0 -2
- data/OWNERS.yaml +0 -1
- data/Rakefile +0 -6
- data/amp-html.gemspec +0 -30
- data/bin/amp-html +0 -4
- data/lib/amp-html/cli.rb +0 -113
- data/lib/amp-html/components/docs/README.md +0 -101
- data/lib/amp-html/components/docs/ad.md +0 -83
- data/lib/amp-html/components/docs/analytics.md +0 -131
- data/lib/amp-html/components/docs/anim.md +0 -66
- data/lib/amp-html/components/docs/fonts.md +0 -63
- data/lib/amp-html/components/docs/forms.md +0 -79
- data/lib/amp-html/components/docs/iframe.md +0 -62
- data/lib/amp-html/components/docs/javascript.md +0 -71
- data/lib/amp-html/components/docs/lists.md +0 -168
- data/lib/amp-html/components/docs/media.md +0 -52
- data/lib/amp-html/components/docs/mustache.md +0 -46
- data/lib/amp-html/components/docs/notifications.md +0 -0
- data/lib/amp-html/components/docs/schema.md +0 -80
- data/lib/amp-html/components/docs/service_worker.md +0 -60
- data/lib/amp-html/components/docs/social.md +0 -130
- data/lib/amp-html/components/docs/stylesheets.md +0 -50
- data/lib/amp-html/components/help.rb +0 -19
- data/lib/amp-html/components/install.rb +0 -34
- data/lib/amp-html/components/templates/ERROR.md +0 -5
- data/lib/amp-html/components/templates/README.md +0 -12
- data/lib/amp-html/configuration/docs/README.md +0 -0
- data/lib/amp-html/configuration/help.rb +0 -11
- data/lib/amp-html/helpers/docs/README.md +0 -98
- data/lib/amp-html/helpers/docs/amp.md +0 -0
- data/lib/amp-html/helpers/docs/amp_ad.md +0 -86
- data/lib/amp-html/helpers/docs/amp_analytics.md +0 -76
- data/lib/amp-html/helpers/docs/amp_anim.md +0 -68
- data/lib/amp-html/helpers/docs/amp_audio.md +0 -54
- data/lib/amp-html/helpers/docs/amp_auto_ads.md +0 -43
- data/lib/amp-html/helpers/docs/amp_close_user_notification_button.md +0 -0
- data/lib/amp-html/helpers/docs/amp_css.md +0 -37
- data/lib/amp-html/helpers/docs/amp_css_link.md +0 -0
- data/lib/amp-html/helpers/docs/amp_custom_ad.md +0 -0
- data/lib/amp-html/helpers/docs/amp_document_link.md +0 -0
- data/lib/amp-html/helpers/docs/amp_embed.md +0 -86
- data/lib/amp-html/helpers/docs/amp_facebook.md +0 -70
- data/lib/amp-html/helpers/docs/amp_fallback.md +0 -47
- data/lib/amp-html/helpers/docs/amp_font.md +0 -0
- data/lib/amp-html/helpers/docs/amp_font_link.md +0 -0
- data/lib/amp-html/helpers/docs/amp_form.md +0 -0
- data/lib/amp-html/helpers/docs/amp_form_response.md +0 -0
- data/lib/amp-html/helpers/docs/amp_gfycat.md +0 -0
- data/lib/amp-html/helpers/docs/amp_global_css.md +0 -0
- data/lib/amp-html/helpers/docs/amp_google_analytics.md +0 -0
- data/lib/amp-html/helpers/docs/amp_google_font.md +0 -0
- data/lib/amp-html/helpers/docs/amp_head.md +0 -0
- data/lib/amp-html/helpers/docs/amp_html_doctype.md +0 -0
- data/lib/amp-html/helpers/docs/amp_iframe.md +0 -0
- data/lib/amp-html/helpers/docs/amp_image.md +0 -0
- data/lib/amp-html/helpers/docs/amp_input.md +0 -0
- data/lib/amp-html/helpers/docs/amp_instagram.md +0 -0
- data/lib/amp-html/helpers/docs/amp_js.md +0 -0
- data/lib/amp-html/helpers/docs/amp_link.md +0 -0
- data/lib/amp-html/helpers/docs/amp_list.md +0 -0
- data/lib/amp-html/helpers/docs/amp_live_list.md +0 -0
- data/lib/amp-html/helpers/docs/amp_live_list_items.md +0 -0
- data/lib/amp-html/helpers/docs/amp_live_list_pagination.md +0 -0
- data/lib/amp-html/helpers/docs/amp_live_list_update.md +0 -0
- data/lib/amp-html/helpers/docs/amp_mustache.md +0 -0
- data/lib/amp-html/helpers/docs/amp_pin_it.md +0 -0
- data/lib/amp-html/helpers/docs/amp_pin_widget.md +0 -0
- data/lib/amp-html/helpers/docs/amp_pinterest_follow.md +0 -0
- data/lib/amp-html/helpers/docs/amp_pixel.md +0 -0
- data/lib/amp-html/helpers/docs/amp_placeholder.md +0 -0
- data/lib/amp-html/helpers/docs/amp_reddit.md +0 -0
- data/lib/amp-html/helpers/docs/amp_resources.md +0 -0
- data/lib/amp-html/helpers/docs/amp_selector.md +0 -0
- data/lib/amp-html/helpers/docs/amp_serviceworker.md +0 -0
- data/lib/amp-html/helpers/docs/amp_social_share.md +0 -0
- data/lib/amp-html/helpers/docs/amp_soundcloud.md +0 -0
- data/lib/amp-html/helpers/docs/amp_twitter.md +0 -0
- data/lib/amp-html/helpers/docs/amp_user_notification.md +0 -0
- data/lib/amp-html/helpers/docs/amp_video.md +0 -0
- data/lib/amp-html/helpers/docs/amp_video_ad.md +0 -0
- data/lib/amp-html/helpers/docs/amp_vine.md +0 -0
- data/lib/amp-html/helpers/docs/amp_youtube.md +0 -0
- data/lib/amp-html/helpers/docs/audio_tag.md +0 -0
- data/lib/amp-html/helpers/docs/canonical_document_link.md +0 -0
- data/lib/amp-html/helpers/docs/form_tag.md +0 -0
- data/lib/amp-html/helpers/docs/image_tag.md +0 -0
- data/lib/amp-html/helpers/docs/input_tag.md +0 -0
- data/lib/amp-html/helpers/docs/javascript_include_tag.md +0 -0
- data/lib/amp-html/helpers/docs/noscript_tag.md +0 -0
- data/lib/amp-html/helpers/docs/schema_tag.md +0 -0
- data/lib/amp-html/helpers/docs/stylesheet_link_tag.md +0 -0
- data/lib/amp-html/helpers/docs/video_tag.md +0 -0
- data/lib/amp-html/helpers/help.rb +0 -23
- data/lib/amp-html/root.rb +0 -7
- data/lib/amp-html/test.rb +0 -169
- data/lib/amp-html/test/help.rb +0 -11
- data/lib/amp-html/test/templates/README.md +0 -43
- data/lib/amp-html/test/templates/css/!important.md +0 -1
- data/lib/amp-html/test/templates/css/-amp-.md +0 -1
- data/lib/amp-html/test/templates/css/-moz-binding.md +0 -1
- data/lib/amp-html/test/templates/css/@import.md +0 -1
- data/lib/amp-html/test/templates/css/behavior.md +0 -1
- data/lib/amp-html/test/templates/css/filter.md +0 -1
- data/lib/amp-html/test/templates/css/i-amp-.md +0 -1
- data/lib/amp-html/test/templates/css/overflow.md +0 -1
- data/lib/amp-html/test/templates/html/applet.md +0 -1
- data/lib/amp-html/test/templates/html/audio.md +0 -1
- data/lib/amp-html/test/templates/html/base.md +0 -1
- data/lib/amp-html/test/templates/html/embed.md +0 -1
- data/lib/amp-html/test/templates/html/frame.md +0 -1
- data/lib/amp-html/test/templates/html/frameset.md +0 -1
- data/lib/amp-html/test/templates/html/http-equiv.md +0 -1
- data/lib/amp-html/test/templates/html/iframe.md +0 -1
- data/lib/amp-html/test/templates/html/img.md +0 -1
- data/lib/amp-html/test/templates/html/javascript_include_tag.md +0 -1
- data/lib/amp-html/test/templates/html/object.md +0 -1
- data/lib/amp-html/test/templates/html/onclick.md +0 -1
- data/lib/amp-html/test/templates/html/onmousehover.md +0 -1
- data/lib/amp-html/test/templates/html/param.md +0 -1
- data/lib/amp-html/test/templates/html/stylesheet_link_tag.md +0 -1
- data/lib/amp-html/test/templates/html/video.md +0 -1
- data/lib/amp-html/test/templates/markup/!doctype.md +0 -1
- data/lib/amp-html/test/templates/markup/amp_document_link.md +0 -1
- data/lib/amp-html/test/templates/markup/amp_head.md +0 -1
- data/lib/amp-html/test/templates/markup/amp_html_doctype.md +0 -1
- data/lib/amp-html/test/templates/markup/canonical_document_link.md +0 -1
- data/lib/amp-html/test/templates/markup/head_body.md +0 -1
- data/lib/amp-html/test/templates/markup/html.md +0 -1
- data/lib/amp-html/test/templates/markup/meta_viewport.md +0 -1
- data/lib/amp-html/validate.rb +0 -46
- data/lib/amp-html/validate/help.rb +0 -11
- data/lib/amp-html/validate/templates/README.md +0 -32
- data/lib/generators/amp_html/assets_generator.rb +0 -31
- data/lib/generators/amp_html/bundle_generator.rb +0 -50
- data/lib/generators/amp_html/components_generator.rb +0 -84
- data/lib/generators/amp_html/helpers_generator.rb +0 -32
- data/lib/generators/amp_html/install_generator.rb +0 -53
- data/lib/generators/amp_html/views_generator.rb +0 -62
- data/lib/generators/templates/assets/README.md +0 -0
- data/lib/generators/templates/components/README.md +0 -0
- data/lib/generators/templates/components/views/_components.html.erb +0 -141
- data/lib/generators/templates/components/views/_google_analytics.html.erb +0 -23
- data/lib/generators/templates/helpers/README.md +0 -0
- data/lib/generators/templates/helpers/amp/fallback_tag_helper.rb +0 -16
- data/lib/generators/templates/helpers/amp/font_tag_helper.rb +0 -37
- data/lib/generators/templates/helpers/amp/link_tag_helper.rb +0 -11
- data/lib/generators/templates/helpers/amp/mustache_tag_helper.rb +0 -13
- data/lib/generators/templates/helpers/amp/noscript_tag_helper.rb +0 -13
- data/lib/generators/templates/helpers/amp/placeholder_tag_helper.rb +0 -16
- data/lib/generators/templates/helpers/amp/schema_tag_helper.rb +0 -16
- data/lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb +0 -21
- data/lib/generators/templates/helpers/amp_tag_helper.rb.erb +0 -65
- data/lib/generators/templates/helpers/asset_tag_helper.rb.erb +0 -119
- data/lib/generators/templates/helpers/form_tag_helper.rb.erb +0 -79
- data/lib/generators/templates/install/README.md +0 -0
- data/lib/generators/templates/install/amp-html.rb.erb +0 -19
- data/lib/generators/templates/install/amp-html.yml.erb +0 -189
- data/lib/generators/templates/views/README.md +0 -0
- data/lib/generators/templates/views/application.html.erb +0 -71
- data/lib/generators/templates/views/application/_head.html.erb +0 -47
- data/lib/generators/templates/views/application/_resources.html.erb +0 -16
- data/lib/generators/templates/views/application/_schema.html.erb +0 -6
- data/lib/generators/templates/views/config/mime_types.rb +0 -8
data/lib/amp-html/version.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rails/generators/base'
|
2
|
+
require 'thor'
|
3
|
+
|
4
|
+
module AmpHtml
|
5
|
+
module Generators
|
6
|
+
|
7
|
+
class AmpHtmlGenerator < Rails::Generators::Base
|
8
|
+
|
9
|
+
source_root File.join File.dirname(__FILE__), 'templates'
|
10
|
+
desc 'Install amp-html'
|
11
|
+
|
12
|
+
def create_layout
|
13
|
+
template 'layout.html.erb', 'app/views/layouts/amp.html.erb'
|
14
|
+
end
|
15
|
+
|
16
|
+
def create_assets
|
17
|
+
template 'application.css', 'app/assets/stylesheets/amp/application.css'
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_initializer
|
21
|
+
template 'initializer.rb', 'config/initializers/amp-html.rb'
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
2
|
+
* This is a manifest file that'll be compiled into amp/application.css, which will include all the files
|
3
3
|
* listed below.
|
4
4
|
*
|
5
5
|
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
@@ -0,0 +1,14 @@
|
|
1
|
+
AmpHtml.configure do |config|
|
2
|
+
|
3
|
+
# Use your regular stylesheets bundled with `app/assets/stylesheets/application.css` in your AMP views. Takes a boolean.
|
4
|
+
# config.inherit_stylesheets = false
|
5
|
+
|
6
|
+
|
7
|
+
### SplitView
|
8
|
+
|
9
|
+
# Enable SplitView to allow for AMP enabled and AMP disabled versions of your views. Takes a boolean.
|
10
|
+
# config.split_view = false
|
11
|
+
# The default view version if no `amp` param is present in the request. Must be either `'amp'` or `'html'`.
|
12
|
+
# config.split_view_default = 'amp'
|
13
|
+
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%%= component 'amp/doctype' do %>
|
2
|
+
<head>
|
3
|
+
<%%= component 'amp/head' %>
|
4
|
+
<title>Hello AMP world</title>
|
5
|
+
<%% if AmpHtml.configuration.split_view %><%%= component 'amp/canonical-link', href: request.original_url %><%% end %>
|
6
|
+
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
|
7
|
+
<%%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<h1>Hello AMP World!</h1>
|
11
|
+
<%%= mozaic_area do %>
|
12
|
+
<%%= yield %>
|
13
|
+
<%% end %>
|
14
|
+
</body>
|
15
|
+
<%% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amp-html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,224 +16,96 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '5.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:
|
26
|
+
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: mozaic
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.2'
|
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: '
|
40
|
+
version: '1.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
47
|
+
version: '3.7'
|
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: '3.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
type: :
|
61
|
+
version: '0.52'
|
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: '
|
69
|
-
description:
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
email:
|
76
|
-
executables:
|
77
|
-
- amp-html
|
68
|
+
version: '0.52'
|
69
|
+
description: amp-html is a universal solution to integrate the AMP Project (Accelerated
|
70
|
+
Mobile Pages Project) into your Rails app with ease. It enables you to quickly spin-up,
|
71
|
+
build and test your app with AMP, while fulfilling the app's unique requirements.
|
72
|
+
It comes with a bunch of superpowers like user authentication, notifications, blogs,
|
73
|
+
animations and support for assets in AMP. Make your app consistently fast, beautiful
|
74
|
+
and high-performing across devices and distribution platforms.
|
75
|
+
email: me@jonhue.me
|
76
|
+
executables: []
|
78
77
|
extensions: []
|
79
78
|
extra_rdoc_files: []
|
80
79
|
files:
|
81
|
-
- ".github/issue_template.md"
|
82
|
-
- ".github/pull_request_template.md"
|
83
|
-
- ".gitignore"
|
84
|
-
- ".travis.yml"
|
85
80
|
- CHANGELOG.md
|
86
|
-
- CODE_OF_CONDUCT.md
|
87
|
-
- CONTRIBUTING.md
|
88
|
-
- DEPRECATIONS.md
|
89
|
-
- Gemfile
|
90
|
-
- Gemfile.lock
|
91
|
-
- INSTALL.md
|
92
81
|
- LICENSE
|
93
|
-
- OWNERS.yaml
|
94
82
|
- README.md
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
83
|
+
- app/helpers/amp_html/asset_helper.rb
|
84
|
+
- app/helpers/amp_html/base_helper.rb
|
85
|
+
- app/helpers/amp_html/dynamic_content_helper.rb
|
86
|
+
- app/helpers/amp_html/layouts_helper.rb
|
87
|
+
- app/helpers/amp_html/media_helper.rb
|
88
|
+
- app/views/mozaic/amp/_amp-link.html.erb
|
89
|
+
- app/views/mozaic/amp/_audio.html.erb
|
90
|
+
- app/views/mozaic/amp/_canonical-link.html.erb
|
91
|
+
- app/views/mozaic/amp/_components.html.erb
|
92
|
+
- app/views/mozaic/amp/_doctype.html.erb
|
93
|
+
- app/views/mozaic/amp/_font.html.erb
|
94
|
+
- app/views/mozaic/amp/_form-response.html.erb
|
95
|
+
- app/views/mozaic/amp/_form.html.erb
|
96
|
+
- app/views/mozaic/amp/_head.html.erb
|
97
|
+
- app/views/mozaic/amp/_img.html.erb
|
98
|
+
- app/views/mozaic/amp/_input.html.erb
|
99
|
+
- app/views/mozaic/amp/_mustache.html.erb
|
100
|
+
- app/views/mozaic/amp/_selector.html.erb
|
101
|
+
- app/views/mozaic/amp/_video.html.erb
|
98
102
|
- lib/amp-html.rb
|
99
|
-
- lib/amp-html/cli.rb
|
100
|
-
- lib/amp-html/components/docs/README.md
|
101
|
-
- lib/amp-html/components/docs/ad.md
|
102
|
-
- lib/amp-html/components/docs/analytics.md
|
103
|
-
- lib/amp-html/components/docs/anim.md
|
104
|
-
- lib/amp-html/components/docs/fonts.md
|
105
|
-
- lib/amp-html/components/docs/forms.md
|
106
|
-
- lib/amp-html/components/docs/iframe.md
|
107
|
-
- lib/amp-html/components/docs/javascript.md
|
108
|
-
- lib/amp-html/components/docs/lists.md
|
109
|
-
- lib/amp-html/components/docs/media.md
|
110
|
-
- lib/amp-html/components/docs/mustache.md
|
111
|
-
- lib/amp-html/components/docs/notifications.md
|
112
|
-
- lib/amp-html/components/docs/schema.md
|
113
|
-
- lib/amp-html/components/docs/service_worker.md
|
114
|
-
- lib/amp-html/components/docs/social.md
|
115
|
-
- lib/amp-html/components/docs/stylesheets.md
|
116
|
-
- lib/amp-html/components/help.rb
|
117
|
-
- lib/amp-html/components/install.rb
|
118
|
-
- lib/amp-html/components/templates/ERROR.md
|
119
|
-
- lib/amp-html/components/templates/README.md
|
120
103
|
- lib/amp-html/configuration.rb
|
121
|
-
- lib/amp-html/
|
122
|
-
- lib/amp-html/
|
123
|
-
- lib/amp-html/helpers/docs/README.md
|
124
|
-
- lib/amp-html/helpers/docs/amp.md
|
125
|
-
- lib/amp-html/helpers/docs/amp_ad.md
|
126
|
-
- lib/amp-html/helpers/docs/amp_analytics.md
|
127
|
-
- lib/amp-html/helpers/docs/amp_anim.md
|
128
|
-
- lib/amp-html/helpers/docs/amp_audio.md
|
129
|
-
- lib/amp-html/helpers/docs/amp_auto_ads.md
|
130
|
-
- lib/amp-html/helpers/docs/amp_close_user_notification_button.md
|
131
|
-
- lib/amp-html/helpers/docs/amp_css.md
|
132
|
-
- lib/amp-html/helpers/docs/amp_css_link.md
|
133
|
-
- lib/amp-html/helpers/docs/amp_custom_ad.md
|
134
|
-
- lib/amp-html/helpers/docs/amp_document_link.md
|
135
|
-
- lib/amp-html/helpers/docs/amp_embed.md
|
136
|
-
- lib/amp-html/helpers/docs/amp_facebook.md
|
137
|
-
- lib/amp-html/helpers/docs/amp_fallback.md
|
138
|
-
- lib/amp-html/helpers/docs/amp_font.md
|
139
|
-
- lib/amp-html/helpers/docs/amp_font_link.md
|
140
|
-
- lib/amp-html/helpers/docs/amp_form.md
|
141
|
-
- lib/amp-html/helpers/docs/amp_form_response.md
|
142
|
-
- lib/amp-html/helpers/docs/amp_gfycat.md
|
143
|
-
- lib/amp-html/helpers/docs/amp_global_css.md
|
144
|
-
- lib/amp-html/helpers/docs/amp_google_analytics.md
|
145
|
-
- lib/amp-html/helpers/docs/amp_google_font.md
|
146
|
-
- lib/amp-html/helpers/docs/amp_head.md
|
147
|
-
- lib/amp-html/helpers/docs/amp_html_doctype.md
|
148
|
-
- lib/amp-html/helpers/docs/amp_iframe.md
|
149
|
-
- lib/amp-html/helpers/docs/amp_image.md
|
150
|
-
- lib/amp-html/helpers/docs/amp_input.md
|
151
|
-
- lib/amp-html/helpers/docs/amp_instagram.md
|
152
|
-
- lib/amp-html/helpers/docs/amp_js.md
|
153
|
-
- lib/amp-html/helpers/docs/amp_link.md
|
154
|
-
- lib/amp-html/helpers/docs/amp_list.md
|
155
|
-
- lib/amp-html/helpers/docs/amp_live_list.md
|
156
|
-
- lib/amp-html/helpers/docs/amp_live_list_items.md
|
157
|
-
- lib/amp-html/helpers/docs/amp_live_list_pagination.md
|
158
|
-
- lib/amp-html/helpers/docs/amp_live_list_update.md
|
159
|
-
- lib/amp-html/helpers/docs/amp_mustache.md
|
160
|
-
- lib/amp-html/helpers/docs/amp_pin_it.md
|
161
|
-
- lib/amp-html/helpers/docs/amp_pin_widget.md
|
162
|
-
- lib/amp-html/helpers/docs/amp_pinterest_follow.md
|
163
|
-
- lib/amp-html/helpers/docs/amp_pixel.md
|
164
|
-
- lib/amp-html/helpers/docs/amp_placeholder.md
|
165
|
-
- lib/amp-html/helpers/docs/amp_reddit.md
|
166
|
-
- lib/amp-html/helpers/docs/amp_resources.md
|
167
|
-
- lib/amp-html/helpers/docs/amp_selector.md
|
168
|
-
- lib/amp-html/helpers/docs/amp_serviceworker.md
|
169
|
-
- lib/amp-html/helpers/docs/amp_social_share.md
|
170
|
-
- lib/amp-html/helpers/docs/amp_soundcloud.md
|
171
|
-
- lib/amp-html/helpers/docs/amp_twitter.md
|
172
|
-
- lib/amp-html/helpers/docs/amp_user_notification.md
|
173
|
-
- lib/amp-html/helpers/docs/amp_video.md
|
174
|
-
- lib/amp-html/helpers/docs/amp_video_ad.md
|
175
|
-
- lib/amp-html/helpers/docs/amp_vine.md
|
176
|
-
- lib/amp-html/helpers/docs/amp_youtube.md
|
177
|
-
- lib/amp-html/helpers/docs/audio_tag.md
|
178
|
-
- lib/amp-html/helpers/docs/canonical_document_link.md
|
179
|
-
- lib/amp-html/helpers/docs/form_tag.md
|
180
|
-
- lib/amp-html/helpers/docs/image_tag.md
|
181
|
-
- lib/amp-html/helpers/docs/input_tag.md
|
182
|
-
- lib/amp-html/helpers/docs/javascript_include_tag.md
|
183
|
-
- lib/amp-html/helpers/docs/noscript_tag.md
|
184
|
-
- lib/amp-html/helpers/docs/schema_tag.md
|
185
|
-
- lib/amp-html/helpers/docs/stylesheet_link_tag.md
|
186
|
-
- lib/amp-html/helpers/docs/video_tag.md
|
187
|
-
- lib/amp-html/helpers/help.rb
|
188
|
-
- lib/amp-html/root.rb
|
189
|
-
- lib/amp-html/test.rb
|
190
|
-
- lib/amp-html/test/help.rb
|
191
|
-
- lib/amp-html/test/templates/README.md
|
192
|
-
- lib/amp-html/test/templates/css/!important.md
|
193
|
-
- lib/amp-html/test/templates/css/-amp-.md
|
194
|
-
- lib/amp-html/test/templates/css/-moz-binding.md
|
195
|
-
- lib/amp-html/test/templates/css/@import.md
|
196
|
-
- lib/amp-html/test/templates/css/behavior.md
|
197
|
-
- lib/amp-html/test/templates/css/filter.md
|
198
|
-
- lib/amp-html/test/templates/css/i-amp-.md
|
199
|
-
- lib/amp-html/test/templates/css/overflow.md
|
200
|
-
- lib/amp-html/test/templates/html/applet.md
|
201
|
-
- lib/amp-html/test/templates/html/audio.md
|
202
|
-
- lib/amp-html/test/templates/html/base.md
|
203
|
-
- lib/amp-html/test/templates/html/embed.md
|
204
|
-
- lib/amp-html/test/templates/html/frame.md
|
205
|
-
- lib/amp-html/test/templates/html/frameset.md
|
206
|
-
- lib/amp-html/test/templates/html/http-equiv.md
|
207
|
-
- lib/amp-html/test/templates/html/iframe.md
|
208
|
-
- lib/amp-html/test/templates/html/img.md
|
209
|
-
- lib/amp-html/test/templates/html/javascript_include_tag.md
|
210
|
-
- lib/amp-html/test/templates/html/object.md
|
211
|
-
- lib/amp-html/test/templates/html/onclick.md
|
212
|
-
- lib/amp-html/test/templates/html/onmousehover.md
|
213
|
-
- lib/amp-html/test/templates/html/param.md
|
214
|
-
- lib/amp-html/test/templates/html/stylesheet_link_tag.md
|
215
|
-
- lib/amp-html/test/templates/html/video.md
|
216
|
-
- lib/amp-html/test/templates/markup/!doctype.md
|
217
|
-
- lib/amp-html/test/templates/markup/amp_document_link.md
|
218
|
-
- lib/amp-html/test/templates/markup/amp_head.md
|
219
|
-
- lib/amp-html/test/templates/markup/amp_html_doctype.md
|
220
|
-
- lib/amp-html/test/templates/markup/canonical_document_link.md
|
221
|
-
- lib/amp-html/test/templates/markup/head_body.md
|
222
|
-
- lib/amp-html/test/templates/markup/html.md
|
223
|
-
- lib/amp-html/test/templates/markup/meta_viewport.md
|
224
|
-
- lib/amp-html/validate.rb
|
225
|
-
- lib/amp-html/validate/help.rb
|
226
|
-
- lib/amp-html/validate/templates/README.md
|
104
|
+
- lib/amp-html/engine.rb
|
105
|
+
- lib/amp-html/railtie.rb
|
227
106
|
- lib/amp-html/version.rb
|
228
|
-
- lib/generators/
|
229
|
-
- lib/generators/
|
230
|
-
- lib/generators/amp_html/components_generator.rb
|
231
|
-
- lib/generators/amp_html/helpers_generator.rb
|
232
|
-
- lib/generators/amp_html/install_generator.rb
|
233
|
-
- lib/generators/amp_html/views_generator.rb
|
234
|
-
- lib/generators/templates/assets/README.md
|
235
|
-
- lib/generators/templates/assets/stylesheets/application.scss
|
236
|
-
- lib/generators/templates/components/README.md
|
107
|
+
- lib/generators/amp_html_generator.rb
|
108
|
+
- lib/generators/templates/application.css
|
237
109
|
- lib/generators/templates/components/assets/javascripts/application.js
|
238
110
|
- lib/generators/templates/components/helpers/ad_tag_helper.rb
|
239
111
|
- lib/generators/templates/components/helpers/analytics_tag_helper.rb
|
@@ -245,36 +117,13 @@ files:
|
|
245
117
|
- lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
|
246
118
|
- lib/generators/templates/components/helpers/social_tag_helper.rb
|
247
119
|
- lib/generators/templates/components/public/remote.html
|
248
|
-
- lib/generators/templates/
|
249
|
-
- lib/generators/templates/
|
250
|
-
|
251
|
-
- lib/generators/templates/helpers/amp/fallback_tag_helper.rb
|
252
|
-
- lib/generators/templates/helpers/amp/font_tag_helper.rb
|
253
|
-
- lib/generators/templates/helpers/amp/link_tag_helper.rb
|
254
|
-
- lib/generators/templates/helpers/amp/mustache_tag_helper.rb
|
255
|
-
- lib/generators/templates/helpers/amp/noscript_tag_helper.rb
|
256
|
-
- lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
|
257
|
-
- lib/generators/templates/helpers/amp/schema_tag_helper.rb
|
258
|
-
- lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
|
259
|
-
- lib/generators/templates/helpers/amp_tag_helper.rb.erb
|
260
|
-
- lib/generators/templates/helpers/asset_tag_helper.rb.erb
|
261
|
-
- lib/generators/templates/helpers/form_tag_helper.rb.erb
|
262
|
-
- lib/generators/templates/install/README.md
|
263
|
-
- lib/generators/templates/install/amp-html.rb.erb
|
264
|
-
- lib/generators/templates/install/amp-html.yml.erb
|
265
|
-
- lib/generators/templates/views/README.md
|
266
|
-
- lib/generators/templates/views/application.html.erb
|
267
|
-
- lib/generators/templates/views/application/_head.html.erb
|
268
|
-
- lib/generators/templates/views/application/_resources.html.erb
|
269
|
-
- lib/generators/templates/views/application/_schema.html.erb
|
270
|
-
- lib/generators/templates/views/config/mime_types.rb
|
271
|
-
homepage: https://github.com/slooob/amp-html
|
120
|
+
- lib/generators/templates/initializer.rb
|
121
|
+
- lib/generators/templates/layout.html.erb
|
122
|
+
homepage: https://github.com/jonhue/amp-html
|
272
123
|
licenses:
|
273
124
|
- MIT
|
274
125
|
metadata: {}
|
275
|
-
post_install_message:
|
276
|
-
**Thank you for installing amp-html!**
|
277
|
-
Learn more about getting started here: https://github.com/slooob/amp-html/wiki/Getting-started
|
126
|
+
post_install_message:
|
278
127
|
rdoc_options: []
|
279
128
|
require_paths:
|
280
129
|
- lib
|
@@ -282,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
282
131
|
requirements:
|
283
132
|
- - ">="
|
284
133
|
- !ruby/object:Gem::Version
|
285
|
-
version: '2.
|
134
|
+
version: '2.3'
|
286
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
287
136
|
requirements:
|
288
137
|
- - ">="
|
@@ -290,8 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
139
|
version: '0'
|
291
140
|
requirements: []
|
292
141
|
rubyforge_project:
|
293
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.7.4
|
294
143
|
signing_key:
|
295
144
|
specification_version: 4
|
296
|
-
summary: Reliable high-
|
145
|
+
summary: Reliable high-performance apps with AMP & Rails. Formerly `amphtml`.
|
297
146
|
test_files: []
|
data/.github/issue_template.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
### Expected behavior
|
2
|
-
Tell us what should happen
|
3
|
-
|
4
|
-
### Actual behavior
|
5
|
-
Tell us what happens instead
|
6
|
-
|
7
|
-
### Steps to reproduce
|
8
|
-
|
9
|
-
(Guidelines for creating a bug report are [available
|
10
|
-
here](https://github.com/slooob/amp-html/wiki/Bug-reports))
|
11
|
-
|
12
|
-
### System configuration
|
13
|
-
|
14
|
-
**Ruby version**:
|
15
|
-
|
16
|
-
**Rails version**:
|
@@ -1,21 +0,0 @@
|
|
1
|
-
### Summary
|
2
|
-
|
3
|
-
Provide a general description of the code changes in your pull
|
4
|
-
request... were there any bugs you had fixed? If so, mention them. If
|
5
|
-
these bugs have open GitHub issues, be sure to tag them here as well,
|
6
|
-
to keep the conversation linked together.
|
7
|
-
|
8
|
-
### Other Information
|
9
|
-
|
10
|
-
If there's anything else that's important and relevant to your pull
|
11
|
-
request, mention that information here. This could include
|
12
|
-
benchmarks, or other information.
|
13
|
-
|
14
|
-
If you are updating any of the CHANGELOG files or are asked to update the
|
15
|
-
CHANGELOG files by reviewers, please add the CHANGELOG entry at the top of the file.
|
16
|
-
|
17
|
-
Finally, if your pull request affects documentation or any non-code
|
18
|
-
changes, guidelines for those changes are [available
|
19
|
-
here](https://github.com/slooob/amp-html/blob/master/CONTRIBUTING.md)
|
20
|
-
|
21
|
-
Thanks for contributing to `amp-html`!
|