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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c3d04137dc58a45e0d839c7c8ebda233933742d811eb24f77d28b55540d0ceeb
|
4
|
+
data.tar.gz: b6af3f3e9eb81ad71bdfda150c3192221af46a8fd63b7f74f94926a35341e959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0e7527572c0322273f426a213f50d3bf7a1fbea30a409645dffc39fd5c680439457427e8a4a6706a24a5a48cd673c52931b88a62c5cde59c3d8abf7774de5e9
|
7
|
+
data.tar.gz: 9746b409662ecdef3b4c291d2b335164ce63ddc3da609cb09d79884b2c9c8a67181431f25ab4e2b8bb4be4a9f5a56188af2b6706edea99e5650eebfa5139f638
|
data/CHANGELOG.md
CHANGED
@@ -4,90 +4,95 @@
|
|
4
4
|
|
5
5
|
* nothing yet
|
6
6
|
|
7
|
-
### 0.
|
7
|
+
### 1.0.0 - 2018/01/14
|
8
8
|
|
9
|
-
*
|
9
|
+
* features
|
10
|
+
* use Mozaic for components and SplitView layouts
|
11
|
+
|
12
|
+
### 0.7.18 (Pre-release) - 2017/08/24
|
13
|
+
|
14
|
+
* bugfixes
|
10
15
|
|
11
|
-
### 0.7.17 (Pre-release) - 2017
|
16
|
+
### 0.7.17 (Pre-release) - 2017/08/24
|
12
17
|
|
13
|
-
*
|
18
|
+
* bugfixes
|
14
19
|
|
15
|
-
### 0.7.16 (Pre-release) - 2017
|
20
|
+
### 0.7.16 (Pre-release) - 2017/08/24
|
16
21
|
|
17
|
-
*
|
22
|
+
* bugfixes
|
18
23
|
|
19
|
-
### 0.7.15 (Pre-release) - 2017
|
24
|
+
### 0.7.15 (Pre-release) - 2017/08/24
|
20
25
|
|
21
|
-
*
|
26
|
+
* bugfixes
|
22
27
|
|
23
|
-
### 0.7.14 (Pre-release) - 2017
|
28
|
+
### 0.7.14 (Pre-release) - 2017/08/24
|
24
29
|
|
25
|
-
*
|
30
|
+
* bugfixes
|
26
31
|
|
27
|
-
### 0.7.13 (Pre-release) - 2017
|
32
|
+
### 0.7.13 (Pre-release) - 2017/08/24
|
28
33
|
|
29
|
-
*
|
34
|
+
* bugfixes
|
30
35
|
|
31
|
-
### 0.7.12 (Pre-release) - 2017
|
36
|
+
### 0.7.12 (Pre-release) - 2017/08/24
|
32
37
|
|
33
|
-
*
|
38
|
+
* bugfixes
|
34
39
|
|
35
|
-
### 0.7.11 (Pre-release) - 2017
|
40
|
+
### 0.7.11 (Pre-release) - 2017/08/24
|
36
41
|
|
37
|
-
*
|
42
|
+
* bugfixes
|
38
43
|
|
39
|
-
### 0.7.10 (Pre-release) - 2017
|
44
|
+
### 0.7.10 (Pre-release) - 2017/08/24
|
40
45
|
|
41
|
-
*
|
46
|
+
* bugfixes
|
42
47
|
|
43
|
-
### 0.7.9 (Pre-release) - 2017
|
48
|
+
### 0.7.9 (Pre-release) - 2017/08/24
|
44
49
|
|
45
|
-
*
|
50
|
+
* bugfixes
|
46
51
|
|
47
|
-
### 0.7.8 (Pre-release) - 2017
|
52
|
+
### 0.7.8 (Pre-release) - 2017/08/24
|
48
53
|
|
49
|
-
*
|
54
|
+
* bugfixes
|
50
55
|
|
51
|
-
### 0.7.7 (Pre-release) - 2017
|
56
|
+
### 0.7.7 (Pre-release) - 2017/08/24
|
52
57
|
|
53
58
|
* notes
|
54
59
|
* gem renamed from `amphtml` to `amp-html`
|
55
60
|
|
56
|
-
### 0.7.6 (Pre-release) - 2017
|
61
|
+
### 0.7.6 (Pre-release) - 2017/04/11
|
57
62
|
|
58
63
|
* enhancements
|
59
64
|
* improve gemspec
|
60
65
|
|
61
|
-
### 0.7.5 (Pre-release) - 2017
|
66
|
+
### 0.7.5 (Pre-release) - 2017/03/23
|
62
67
|
|
63
|
-
*
|
68
|
+
* bugfixes
|
64
69
|
* fix assets pipeline
|
65
70
|
* fix assets helpers
|
66
71
|
|
67
|
-
### 0.7.4 (Pre-release) - 2017
|
72
|
+
### 0.7.4 (Pre-release) - 2017/03/22
|
68
73
|
|
69
|
-
*
|
74
|
+
* bugfixes
|
70
75
|
* fix component bundler
|
71
76
|
|
72
|
-
### 0.7.3 (Pre-release) - 2017
|
77
|
+
### 0.7.3 (Pre-release) - 2017/03/22
|
73
78
|
|
74
79
|
* features
|
75
80
|
* introduce lists component
|
76
81
|
* introduce Mustache.js component
|
77
82
|
|
78
|
-
### 0.7.2 (Pre-release) - 2017
|
83
|
+
### 0.7.2 (Pre-release) - 2017/03/22
|
79
84
|
|
80
85
|
* features
|
81
86
|
* introduce service worker component
|
82
87
|
|
83
|
-
### 0.7.1 (Pre-release) - 2017
|
88
|
+
### 0.7.1 (Pre-release) - 2017/03/21
|
84
89
|
|
85
90
|
* enhancements
|
86
91
|
* add DeepIntegration to forms component
|
87
|
-
*
|
92
|
+
* bugfixes
|
88
93
|
* fix syntax error
|
89
94
|
|
90
|
-
### 0.7.0 (Pre-release) - 2017
|
95
|
+
### 0.7.0 (Pre-release) - 2017/03/21
|
91
96
|
|
92
97
|
* features
|
93
98
|
* introduce build-in forms component
|
@@ -95,7 +100,7 @@
|
|
95
100
|
* add `amp_css_link` helper
|
96
101
|
* add a bunch of new helpers to social component
|
97
102
|
|
98
|
-
### 0.6.3 (Pre-release) - 2017
|
103
|
+
### 0.6.3 (Pre-release) - 2017/03/21
|
99
104
|
|
100
105
|
* removals
|
101
106
|
* `amp_document_link` helper only available with SplitView
|
@@ -103,7 +108,7 @@
|
|
103
108
|
* configuration: warn if no config file available
|
104
109
|
* enhance tests
|
105
110
|
|
106
|
-
### 0.6.2 (Pre-release) - 2017
|
111
|
+
### 0.6.2 (Pre-release) - 2017/03/20
|
107
112
|
|
108
113
|
* removals
|
109
114
|
* deprecate `amp_resources` helper - will be removed in 1.0
|
@@ -122,10 +127,10 @@
|
|
122
127
|
* update component docs
|
123
128
|
* update helper docs
|
124
129
|
* change default app name
|
125
|
-
*
|
130
|
+
* bugfixes
|
126
131
|
* fix tests
|
127
132
|
|
128
|
-
### 0.6.1 (Pre-release) - 2017
|
133
|
+
### 0.6.1 (Pre-release) - 2017/03/19
|
129
134
|
|
130
135
|
* removals
|
131
136
|
* deprecate `amp_global_css` helper - will be removed in 2.0
|
@@ -136,21 +141,21 @@
|
|
136
141
|
* improve AMP helpers
|
137
142
|
* update component docs
|
138
143
|
* update helper docs
|
139
|
-
*
|
144
|
+
* bugfixes
|
140
145
|
* fix `noscript_tag` helper
|
141
146
|
|
142
|
-
### 0.6.0 (Pre-release) - 2017
|
147
|
+
### 0.6.0 (Pre-release) - 2017/03/19
|
143
148
|
|
144
149
|
* features
|
145
150
|
* introduce javascript component
|
146
151
|
* enhancements
|
147
152
|
* add javascript component docs
|
148
153
|
* add configuration docs
|
149
|
-
*
|
154
|
+
* bugfixes
|
150
155
|
* fix `config/initializers/amphtml.rb`
|
151
156
|
* fix helpers
|
152
157
|
|
153
|
-
### 0.5.4 (Pre-release) - 2017
|
158
|
+
### 0.5.4 (Pre-release) - 2017/03/19
|
154
159
|
|
155
160
|
* features
|
156
161
|
* add `amp_auto_ads` helper
|
@@ -158,45 +163,45 @@
|
|
158
163
|
* `validate`: start server if not already running
|
159
164
|
* add analytics component docs
|
160
165
|
* add validate docs
|
161
|
-
*
|
166
|
+
* bugfixes
|
162
167
|
* fix configuration
|
163
168
|
* fix `schema_tag` helper
|
164
169
|
* fix `amp_tag` helpers
|
165
170
|
* fix `BundleGenerator`
|
166
171
|
* fix view templates
|
167
172
|
|
168
|
-
### 0.5.3 (Pre-release) - 2017
|
173
|
+
### 0.5.3 (Pre-release) - 2017/03/18
|
169
174
|
|
170
175
|
* enhancements
|
171
176
|
* add component docs
|
172
177
|
* improve add templates
|
173
178
|
* improve `config/amphtml.yml` template
|
174
|
-
*
|
179
|
+
* bugfixes
|
175
180
|
* fix test class
|
176
181
|
* fix test help
|
177
182
|
* fix validate help
|
178
183
|
|
179
|
-
### 0.5.2 (Pre-release) - 2017
|
184
|
+
### 0.5.2 (Pre-release) - 2017/03/18
|
180
185
|
|
181
186
|
* features
|
182
187
|
* add `amp_font_link` helper
|
183
188
|
* enhancements
|
184
189
|
* improve html test
|
185
|
-
*
|
190
|
+
* bugfixes
|
186
191
|
* fix `config/mime_types.rb` template
|
187
192
|
* fix helper templates
|
188
193
|
* fix `BundleGenerator`
|
189
194
|
|
190
|
-
### 0.5.1 (Pre-release) - 2017
|
195
|
+
### 0.5.1 (Pre-release) - 2017/03/18
|
191
196
|
|
192
197
|
* enhancements
|
193
198
|
* improve `config/amphtml.yml` template
|
194
|
-
*
|
199
|
+
* bugfixes
|
195
200
|
* fix `-amp-` in CSS test
|
196
201
|
* fix `HelpersGenerator`
|
197
202
|
* fix `ViewsGenerator`
|
198
203
|
|
199
|
-
### 0.5.0 (Pre-release) - 2017
|
204
|
+
### 0.5.0 (Pre-release) - 2017/03/18
|
200
205
|
|
201
206
|
* features
|
202
207
|
* add `amp_embed` helper
|
@@ -209,33 +214,33 @@
|
|
209
214
|
* enhancements
|
210
215
|
* improve `config/amphtml.yml` template
|
211
216
|
* improve `app/views/layouts/application.html.erb` template
|
212
|
-
*
|
217
|
+
* bugfixes
|
213
218
|
* fix AMP issue in `amp_head` helper
|
214
219
|
|
215
|
-
### 0.4.5 (Pre-release) - 2017
|
220
|
+
### 0.4.5 (Pre-release) - 2017/03/17
|
216
221
|
|
217
222
|
* removals
|
218
223
|
* `meta_tag` renamed to `amp_head`
|
219
|
-
*
|
224
|
+
* bugfixes
|
220
225
|
* fix `ViewsGenerator`
|
221
226
|
* fix `config/amphtml.yml` template
|
222
227
|
|
223
|
-
### 0.4.4 (Pre-release) - 2017
|
228
|
+
### 0.4.4 (Pre-release) - 2017/03/17
|
224
229
|
|
225
230
|
* features
|
226
231
|
* add `schema_tag` helper
|
227
232
|
* add `meta_tag` helper
|
228
233
|
* enhancements
|
229
234
|
* dynamically assign format for generators
|
230
|
-
*
|
235
|
+
* bugfixes
|
231
236
|
* [#21](https://github.com/jonhue/amphtml/issues/21) - File open issues
|
232
237
|
|
233
|
-
### 0.4.3 (Pre-release) - 2017
|
238
|
+
### 0.4.3 (Pre-release) - 2017/03/17
|
234
239
|
|
235
|
-
*
|
240
|
+
* bugfixes
|
236
241
|
* fix `--format` option in generators
|
237
242
|
|
238
|
-
### 0.4.2 (Pre-release) - 2017
|
243
|
+
### 0.4.2 (Pre-release) - 2017/03/17
|
239
244
|
|
240
245
|
* features
|
241
246
|
* add analytics component DeepIntegration
|
@@ -243,33 +248,33 @@
|
|
243
248
|
* add social component DeepIntegration
|
244
249
|
* enhancements
|
245
250
|
* improve generators
|
246
|
-
*
|
251
|
+
* bugfixes
|
247
252
|
* fix `amphtml bundle`
|
248
253
|
* fix `BundleGenerator`
|
249
254
|
|
250
|
-
### 0.4.1 (Pre-release) - 2017
|
255
|
+
### 0.4.1 (Pre-release) - 2017/03/16
|
251
256
|
|
252
257
|
* features
|
253
258
|
* add `ComponentsGenerator`
|
254
259
|
* enhancements
|
255
260
|
* improve `CLI`
|
256
261
|
* add docs for components and helpers
|
257
|
-
*
|
262
|
+
* bugfixes
|
258
263
|
* fix `amphtml validate`
|
259
264
|
|
260
|
-
### 0.4.0 (Pre-release) - 2017
|
265
|
+
### 0.4.0 (Pre-release) - 2017/03/16
|
261
266
|
|
262
267
|
* features
|
263
268
|
* add command line executables
|
264
|
-
*
|
269
|
+
* bugfixes
|
265
270
|
* fix generators
|
266
271
|
|
267
|
-
### 0.3.1 (Pre-release) - 2017
|
272
|
+
### 0.3.1 (Pre-release) - 2017/03/16
|
268
273
|
|
269
|
-
*
|
274
|
+
* bugfixes
|
270
275
|
* fix Rails dependency
|
271
276
|
|
272
|
-
### 0.3.0 (Pre-release) - 2017
|
277
|
+
### 0.3.0 (Pre-release) - 2017/03/15
|
273
278
|
|
274
279
|
* features
|
275
280
|
* add SplitView
|
@@ -282,12 +287,12 @@
|
|
282
287
|
* improve `Amphtml::Test` class
|
283
288
|
* drop Rails dependency to 4.0
|
284
289
|
|
285
|
-
### 0.2.1 (Pre-release) - 2017
|
290
|
+
### 0.2.1 (Pre-release) - 2017/03/14
|
286
291
|
|
287
|
-
*
|
292
|
+
* bugfixes
|
288
293
|
* fix `Amphtml::Test` class
|
289
294
|
|
290
|
-
### 0.2.0 (Pre-release) - 2017
|
295
|
+
### 0.2.0 (Pre-release) - 2017/03/14
|
291
296
|
|
292
297
|
* removals
|
293
298
|
* AMP related tag helpers changed from `name_tag` to `amp_name`
|
@@ -306,10 +311,10 @@
|
|
306
311
|
* improve `HelpersGenerator`
|
307
312
|
* re-structure `application.html.erb`
|
308
313
|
* put amp-stuff into `_amp.html`
|
309
|
-
*
|
314
|
+
* bugfixes
|
310
315
|
* improve `TagHelper`'s
|
311
316
|
|
312
|
-
### 0.1.5 (Pre-release) - 2017
|
317
|
+
### 0.1.5 (Pre-release) - 2017/03/13
|
313
318
|
|
314
319
|
* features
|
315
320
|
* introduce `--split` option for `InstallGenerator`
|
@@ -320,27 +325,27 @@
|
|
320
325
|
* custom installation message
|
321
326
|
* add `Amphtml.validate` method fallback
|
322
327
|
* improve file reading
|
323
|
-
*
|
328
|
+
* bugfixes
|
324
329
|
* Improve `AssetTagHelper`'s
|
325
330
|
|
326
|
-
### 0.1.4 (Pre-release) - 2017
|
331
|
+
### 0.1.4 (Pre-release) - 2017/03/13
|
327
332
|
|
328
333
|
* features
|
329
334
|
* introduce `--split` option for `ViewsGenerator`
|
330
335
|
* add `validate` method to `Amphtml`
|
331
336
|
|
332
|
-
### 0.1.3 (Pre-release) - 2017
|
337
|
+
### 0.1.3 (Pre-release) - 2017/03/12
|
333
338
|
|
334
|
-
*
|
339
|
+
* bugfixes
|
335
340
|
* [#1](https://github.com/jonhue/amphtml/issues/1) - `Couldn't find AssetTagHelper, expected it to be defined in helpers/asset_tag_helper.rb`
|
336
341
|
* [#2](https://github.com/jonhue/amphtml/issues/2) - `initializers/amphtml.rb - NameError`
|
337
342
|
|
338
|
-
### 0.1.2 (Pre-release) - 2017
|
343
|
+
### 0.1.2 (Pre-release) - 2017/03/12
|
339
344
|
|
340
|
-
*
|
345
|
+
* bugfixes
|
341
346
|
* `Amphtml is not a module`
|
342
347
|
* not all files included
|
343
348
|
|
344
|
-
### 0.1.0 (Pre-release) - 2017
|
349
|
+
### 0.1.0 (Pre-release) - 2017/03/12
|
345
350
|
|
346
351
|
Initial release
|
data/README.md
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# amp-html
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/amp-html.svg)](https://badge.fury.io/rb/amp-html) <img src="https://travis-ci.org/jonhue/amp-html.svg?branch=master" />
|
4
4
|
|
5
|
-
|
5
|
+
Reliable high-:zap: apps with AMP & Rails.
|
6
|
+
|
7
|
+
amp-html is a universal solution to integrate the [AMP Project](https://www.ampproject.org/) into your Rails app with ease. It enables you to quickly spin-up, build and test your app with AMP, while fulfilling the app's unique requirements. It comes with a bunch of superpowers like user authentication, notifications, blogs, animations and support for assets in AMP.
|
6
8
|
|
7
9
|
Use the powerful features of AMP to make your Rails app consistently fast, beautiful and high-performing across devices and distribution platforms.
|
8
10
|
|
9
|
-
[**Follow the Getting Started Guide**](https://github.com/
|
11
|
+
[**Follow the Getting Started Guide**](https://github.com/jonhue/amp-html/wiki/Getting-started)
|
10
12
|
|
11
13
|
---
|
12
14
|
|
@@ -14,23 +16,22 @@ Use the powerful features of AMP to make your Rails app consistently fast, beaut
|
|
14
16
|
|
15
17
|
* [Information](#information)
|
16
18
|
* [Quick info (Latest release, Dependencies)](#quick-info)
|
17
|
-
* [The
|
19
|
+
* [The amp-html wiki](#the-amp-html-wiki)
|
18
20
|
* [Bug reports](#bug-reports)
|
19
21
|
* [Example applications](#example-applications)
|
20
22
|
* [Contributing](#contributing)
|
21
23
|
* [Versioning](#versioning)
|
22
|
-
* [
|
23
|
-
* [Features](#features)
|
24
|
+
* [Deprecations](#deprecations)
|
24
25
|
* [Installation](#installation)
|
25
26
|
* [Generators](#generators)
|
26
27
|
* [Test and validate AMP](#test-and-validate-amp)
|
27
28
|
* [Usage](#usage)
|
28
|
-
* [Helpers](#helpers)
|
29
29
|
* [SplitView](#splitview)
|
30
30
|
* [Guides](#guides)
|
31
31
|
* [Components](#components)
|
32
|
+
* [Configuration](#configuration)
|
33
|
+
* [To Do](#to-do)
|
32
34
|
* [Contributors](#contributors)
|
33
|
-
* [References](#references)
|
34
35
|
* [License](#license)
|
35
36
|
|
36
37
|
---
|
@@ -39,54 +40,52 @@ Use the powerful features of AMP to make your Rails app consistently fast, beaut
|
|
39
40
|
|
40
41
|
### Quick info
|
41
42
|
|
42
|
-
#### Latest release: 0.
|
43
|
+
#### Latest release: 1.0.0
|
43
44
|
|
44
|
-
[**Changelog**](
|
45
|
+
[**Changelog**](CHANGELOG.md), [Grab it from Rubygems](https://rubygems.org/gems/amp-html)
|
45
46
|
|
46
47
|
#### Supported versions
|
47
48
|
|
48
|
-
Rails >=
|
49
|
-
Ruby >= 2.
|
49
|
+
Rails >= 5.0
|
50
|
+
Ruby >= 2.3
|
50
51
|
|
51
|
-
### The
|
52
|
+
### The amp-html wiki & documentation
|
52
53
|
|
53
|
-
The
|
54
|
+
The amp-html Wiki has lots of additional information about amp-html including many "how-to" articles and answers to the most frequently asked questions. Please browse the Wiki after finishing this README:
|
54
55
|
|
55
|
-
|
56
|
+
https://github.com/jonhue/amp-html/wiki
|
56
57
|
|
57
58
|
### Bug reports
|
58
59
|
|
59
|
-
If you discover a problem with
|
60
|
-
|
61
|
-
[https://github.com/slooob/amp-html/wiki/Bug-reports](https://github.com/slooob/amp-html/wiki/Bug-reports)
|
60
|
+
If you discover a problem with amp-html, we would like to know about it. However, we ask that you please review these guidelines before submitting a bug report:
|
62
61
|
|
63
|
-
|
62
|
+
https://github.com/jonhue/amp-html/wiki/Bug-reports
|
64
63
|
|
65
64
|
### Example applications
|
66
65
|
|
67
|
-
There are a few example applications available on GitHub that demonstrate various features of
|
66
|
+
There are a few example applications available on GitHub that demonstrate various features of amp-html. You can view them here:
|
68
67
|
|
69
|
-
|
68
|
+
https://github.com/jonhue/amp-html/wiki/Example-Applications
|
70
69
|
|
71
70
|
### Contributing
|
72
71
|
|
73
|
-
We hope that you will consider contributing to
|
72
|
+
We hope that you will consider contributing to amp-html. Please read this short overview for some information about how to get started:
|
74
73
|
|
75
|
-
[Contributing](
|
74
|
+
[Contributing](CONTRIBUTING.md), [Code of Conduct](CODE_OF_CONDUCT.md)
|
76
75
|
|
77
76
|
### Versioning
|
78
77
|
|
79
|
-
|
78
|
+
amp-html follows Semantic Versioning 2.0 as defined at http://semver.org.
|
80
79
|
|
81
|
-
|
80
|
+
### Deprecations
|
82
81
|
|
83
|
-
|
82
|
+
Deprecations are combined with new major releases of amp-html. You can see a full list of past and future deprecations [here](DEPRECATIONS.md).
|
84
83
|
|
85
84
|
## Installation
|
86
85
|
|
87
|
-
You can also follow the [**Getting Started Guide**](https://github.com/
|
86
|
+
You can also follow the [**Getting Started Guide**](https://github.com/jonhue/amp-html/wiki/Getting-started).
|
88
87
|
|
89
|
-
|
88
|
+
amp-html works with Rails 5 onwards. You can add it to your `Gemfile` with:
|
90
89
|
|
91
90
|
```ruby
|
92
91
|
gem 'amp-html'
|
@@ -103,79 +102,66 @@ Or install it yourself as:
|
|
103
102
|
If you always want to be up to date fetch the latest from GitHub in your `Gemfile`:
|
104
103
|
|
105
104
|
```ruby
|
106
|
-
gem 'amp-html', github: '
|
105
|
+
gem 'amp-html', github: 'jonhue/amp-html'
|
107
106
|
```
|
108
107
|
|
109
|
-
|
110
|
-
|
111
|
-
AmpHtml comes with three different generators. If you want to bundle them execute:
|
112
|
-
|
113
|
-
$ rails g amp_html:bundle
|
114
|
-
|
115
|
-
That will generate all the files you need to create a universal AMP app (recommended).
|
116
|
-
|
117
|
-
If you want to use [SplitView](https://github.com/slooob/amp-html/wiki/Docs:-SplitView) to create views with and without AMP simultaneously, execute instead:
|
118
|
-
|
119
|
-
$ rails g amp_html:bundle --split
|
108
|
+
Now generate the files necessary:
|
120
109
|
|
121
|
-
|
110
|
+
$ rails g mozaic:install
|
111
|
+
$ rails g amp_html
|
122
112
|
|
123
|
-
|
113
|
+
Replace the contents of your `app/views/layouts/application.html.erb` file with:
|
124
114
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
$ rails g amp_html:views
|
130
|
-
|
131
|
-
*Each* of them supports the `--split || -s` option to use **both** regular views and AMP views.
|
132
|
-
To add components, you need to pass them as option to each generator.
|
115
|
+
```haml
|
116
|
+
= amp_mozaic do
|
117
|
+
= yield
|
118
|
+
```
|
133
119
|
|
134
|
-
|
120
|
+
Lastly, make sure to remove Turbolinks from your apps asset pipeline (`app/assets/javascripts/application.js`) as it does not work well with AMP.
|
135
121
|
|
136
|
-
|
122
|
+
## Usage
|
137
123
|
|
138
|
-
|
124
|
+
### SplitView
|
139
125
|
|
140
|
-
|
126
|
+
---
|
141
127
|
|
142
|
-
|
128
|
+
## Guides
|
143
129
|
|
144
|
-
|
130
|
+
---
|
145
131
|
|
146
|
-
|
132
|
+
## Components
|
147
133
|
|
148
|
-
|
149
|
-
If you want to automatically fix the code, pass `--autofix || -af` as option. Be careful, you will not be asked to approve changes to the documents!
|
134
|
+
---
|
150
135
|
|
151
|
-
|
136
|
+
## Configuration
|
152
137
|
|
153
|
-
|
154
|
-
$ amp-html validate https://slooob.com # validates "https://slooob.com"
|
138
|
+
You can configure amp-html by passing a block to `configure`. This can be done in `config/initializers/amp-html.rb`:
|
155
139
|
|
156
|
-
|
140
|
+
```ruby
|
141
|
+
AmpHtml.configure do |config|
|
142
|
+
config.inherit_stylesheets = false
|
143
|
+
end
|
144
|
+
```
|
157
145
|
|
158
|
-
|
146
|
+
* `inherit_stylesheets` Use your regular stylesheets bundled with `app/assets/stylesheets/application.css` in your AMP views. Takes a boolean. Defaults to `false`.
|
147
|
+
* `split_view` Enable SplitView to allow for AMP enabled and AMP disabled versions of your views. Takes a boolean. Defaults to `false`.
|
148
|
+
* `split_view_default` The default view version if no `amp` param is present in the request. Must be either `'amp'` or `'html'`. Defaults to `'amp'`.
|
159
149
|
|
160
|
-
|
150
|
+
---
|
161
151
|
|
162
|
-
|
152
|
+
## To Do
|
163
153
|
|
164
|
-
|
154
|
+
[Here](https://github.com/jonhue/amp-html/projects/1) is the full list of current projects.
|
165
155
|
|
166
|
-
|
156
|
+
To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/amp-html/issues/new).
|
167
157
|
|
168
158
|
---
|
169
159
|
|
170
160
|
## Contributors
|
171
161
|
|
172
|
-
Give the people some :heart: who are working on this project.
|
173
|
-
|
174
|
-
[https://github.com/slooob/amp-html/graphs/contributors](https://github.com/slooob/amp-html/graphs/contributors)
|
175
|
-
|
176
|
-
## References
|
162
|
+
Give the people some :heart: who are working on this project. See them all at:
|
177
163
|
|
178
|
-
|
164
|
+
https://github.com/jonhue/amp-html/graphs/contributors
|
179
165
|
|
180
166
|
## License
|
181
167
|
|