amp-html 0.7.18 → 1.0.0

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.
Files changed (204) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +82 -77
  3. data/README.md +61 -75
  4. data/app/helpers/amp_html/asset_helper.rb +11 -0
  5. data/app/helpers/amp_html/base_helper.rb +14 -0
  6. data/app/helpers/amp_html/dynamic_content_helper.rb +14 -0
  7. data/app/helpers/amp_html/layouts_helper.rb +11 -0
  8. data/app/helpers/amp_html/media_helper.rb +15 -0
  9. data/app/views/mozaic/amp/_amp-link.html.erb +1 -0
  10. data/app/views/mozaic/amp/_audio.html.erb +11 -0
  11. data/app/views/mozaic/amp/_canonical-link.html.erb +1 -0
  12. data/app/views/mozaic/amp/_components.html.erb +6 -0
  13. data/app/views/mozaic/amp/_doctype.html.erb +4 -0
  14. data/app/views/mozaic/amp/_font.html.erb +2 -0
  15. data/app/views/mozaic/amp/_form-response.html.erb +5 -0
  16. data/app/views/mozaic/amp/_form.html.erb +3 -0
  17. data/app/views/mozaic/amp/_head.html.erb +13 -0
  18. data/app/views/mozaic/amp/_img.html.erb +1 -0
  19. data/app/views/mozaic/amp/_input.html.erb +1 -0
  20. data/app/views/mozaic/amp/_mustache.html.erb +3 -0
  21. data/app/views/mozaic/amp/_selector.html.erb +3 -0
  22. data/app/views/mozaic/amp/_video.html.erb +11 -0
  23. data/lib/amp-html.rb +4 -20
  24. data/lib/amp-html/configuration.rb +13 -158
  25. data/lib/amp-html/engine.rb +6 -0
  26. data/lib/amp-html/railtie.rb +109 -0
  27. data/lib/amp-html/version.rb +1 -9
  28. data/lib/generators/amp_html_generator.rb +27 -0
  29. data/lib/generators/templates/{assets/stylesheets/application.scss → application.css} +1 -1
  30. data/lib/generators/templates/initializer.rb +14 -0
  31. data/lib/generators/templates/layout.html.erb +15 -0
  32. metadata +53 -204
  33. data/.github/issue_template.md +0 -16
  34. data/.github/pull_request_template.md +0 -21
  35. data/.gitignore +0 -13
  36. data/.travis.yml +0 -4
  37. data/CODE_OF_CONDUCT.md +0 -46
  38. data/CONTRIBUTING.md +0 -1
  39. data/DEPRECATIONS.md +0 -9
  40. data/Gemfile +0 -12
  41. data/Gemfile.lock +0 -164
  42. data/INSTALL.md +0 -2
  43. data/OWNERS.yaml +0 -1
  44. data/Rakefile +0 -6
  45. data/amp-html.gemspec +0 -30
  46. data/bin/amp-html +0 -4
  47. data/lib/amp-html/cli.rb +0 -113
  48. data/lib/amp-html/components/docs/README.md +0 -101
  49. data/lib/amp-html/components/docs/ad.md +0 -83
  50. data/lib/amp-html/components/docs/analytics.md +0 -131
  51. data/lib/amp-html/components/docs/anim.md +0 -66
  52. data/lib/amp-html/components/docs/fonts.md +0 -63
  53. data/lib/amp-html/components/docs/forms.md +0 -79
  54. data/lib/amp-html/components/docs/iframe.md +0 -62
  55. data/lib/amp-html/components/docs/javascript.md +0 -71
  56. data/lib/amp-html/components/docs/lists.md +0 -168
  57. data/lib/amp-html/components/docs/media.md +0 -52
  58. data/lib/amp-html/components/docs/mustache.md +0 -46
  59. data/lib/amp-html/components/docs/notifications.md +0 -0
  60. data/lib/amp-html/components/docs/schema.md +0 -80
  61. data/lib/amp-html/components/docs/service_worker.md +0 -60
  62. data/lib/amp-html/components/docs/social.md +0 -130
  63. data/lib/amp-html/components/docs/stylesheets.md +0 -50
  64. data/lib/amp-html/components/help.rb +0 -19
  65. data/lib/amp-html/components/install.rb +0 -34
  66. data/lib/amp-html/components/templates/ERROR.md +0 -5
  67. data/lib/amp-html/components/templates/README.md +0 -12
  68. data/lib/amp-html/configuration/docs/README.md +0 -0
  69. data/lib/amp-html/configuration/help.rb +0 -11
  70. data/lib/amp-html/helpers/docs/README.md +0 -98
  71. data/lib/amp-html/helpers/docs/amp.md +0 -0
  72. data/lib/amp-html/helpers/docs/amp_ad.md +0 -86
  73. data/lib/amp-html/helpers/docs/amp_analytics.md +0 -76
  74. data/lib/amp-html/helpers/docs/amp_anim.md +0 -68
  75. data/lib/amp-html/helpers/docs/amp_audio.md +0 -54
  76. data/lib/amp-html/helpers/docs/amp_auto_ads.md +0 -43
  77. data/lib/amp-html/helpers/docs/amp_close_user_notification_button.md +0 -0
  78. data/lib/amp-html/helpers/docs/amp_css.md +0 -37
  79. data/lib/amp-html/helpers/docs/amp_css_link.md +0 -0
  80. data/lib/amp-html/helpers/docs/amp_custom_ad.md +0 -0
  81. data/lib/amp-html/helpers/docs/amp_document_link.md +0 -0
  82. data/lib/amp-html/helpers/docs/amp_embed.md +0 -86
  83. data/lib/amp-html/helpers/docs/amp_facebook.md +0 -70
  84. data/lib/amp-html/helpers/docs/amp_fallback.md +0 -47
  85. data/lib/amp-html/helpers/docs/amp_font.md +0 -0
  86. data/lib/amp-html/helpers/docs/amp_font_link.md +0 -0
  87. data/lib/amp-html/helpers/docs/amp_form.md +0 -0
  88. data/lib/amp-html/helpers/docs/amp_form_response.md +0 -0
  89. data/lib/amp-html/helpers/docs/amp_gfycat.md +0 -0
  90. data/lib/amp-html/helpers/docs/amp_global_css.md +0 -0
  91. data/lib/amp-html/helpers/docs/amp_google_analytics.md +0 -0
  92. data/lib/amp-html/helpers/docs/amp_google_font.md +0 -0
  93. data/lib/amp-html/helpers/docs/amp_head.md +0 -0
  94. data/lib/amp-html/helpers/docs/amp_html_doctype.md +0 -0
  95. data/lib/amp-html/helpers/docs/amp_iframe.md +0 -0
  96. data/lib/amp-html/helpers/docs/amp_image.md +0 -0
  97. data/lib/amp-html/helpers/docs/amp_input.md +0 -0
  98. data/lib/amp-html/helpers/docs/amp_instagram.md +0 -0
  99. data/lib/amp-html/helpers/docs/amp_js.md +0 -0
  100. data/lib/amp-html/helpers/docs/amp_link.md +0 -0
  101. data/lib/amp-html/helpers/docs/amp_list.md +0 -0
  102. data/lib/amp-html/helpers/docs/amp_live_list.md +0 -0
  103. data/lib/amp-html/helpers/docs/amp_live_list_items.md +0 -0
  104. data/lib/amp-html/helpers/docs/amp_live_list_pagination.md +0 -0
  105. data/lib/amp-html/helpers/docs/amp_live_list_update.md +0 -0
  106. data/lib/amp-html/helpers/docs/amp_mustache.md +0 -0
  107. data/lib/amp-html/helpers/docs/amp_pin_it.md +0 -0
  108. data/lib/amp-html/helpers/docs/amp_pin_widget.md +0 -0
  109. data/lib/amp-html/helpers/docs/amp_pinterest_follow.md +0 -0
  110. data/lib/amp-html/helpers/docs/amp_pixel.md +0 -0
  111. data/lib/amp-html/helpers/docs/amp_placeholder.md +0 -0
  112. data/lib/amp-html/helpers/docs/amp_reddit.md +0 -0
  113. data/lib/amp-html/helpers/docs/amp_resources.md +0 -0
  114. data/lib/amp-html/helpers/docs/amp_selector.md +0 -0
  115. data/lib/amp-html/helpers/docs/amp_serviceworker.md +0 -0
  116. data/lib/amp-html/helpers/docs/amp_social_share.md +0 -0
  117. data/lib/amp-html/helpers/docs/amp_soundcloud.md +0 -0
  118. data/lib/amp-html/helpers/docs/amp_twitter.md +0 -0
  119. data/lib/amp-html/helpers/docs/amp_user_notification.md +0 -0
  120. data/lib/amp-html/helpers/docs/amp_video.md +0 -0
  121. data/lib/amp-html/helpers/docs/amp_video_ad.md +0 -0
  122. data/lib/amp-html/helpers/docs/amp_vine.md +0 -0
  123. data/lib/amp-html/helpers/docs/amp_youtube.md +0 -0
  124. data/lib/amp-html/helpers/docs/audio_tag.md +0 -0
  125. data/lib/amp-html/helpers/docs/canonical_document_link.md +0 -0
  126. data/lib/amp-html/helpers/docs/form_tag.md +0 -0
  127. data/lib/amp-html/helpers/docs/image_tag.md +0 -0
  128. data/lib/amp-html/helpers/docs/input_tag.md +0 -0
  129. data/lib/amp-html/helpers/docs/javascript_include_tag.md +0 -0
  130. data/lib/amp-html/helpers/docs/noscript_tag.md +0 -0
  131. data/lib/amp-html/helpers/docs/schema_tag.md +0 -0
  132. data/lib/amp-html/helpers/docs/stylesheet_link_tag.md +0 -0
  133. data/lib/amp-html/helpers/docs/video_tag.md +0 -0
  134. data/lib/amp-html/helpers/help.rb +0 -23
  135. data/lib/amp-html/root.rb +0 -7
  136. data/lib/amp-html/test.rb +0 -169
  137. data/lib/amp-html/test/help.rb +0 -11
  138. data/lib/amp-html/test/templates/README.md +0 -43
  139. data/lib/amp-html/test/templates/css/!important.md +0 -1
  140. data/lib/amp-html/test/templates/css/-amp-.md +0 -1
  141. data/lib/amp-html/test/templates/css/-moz-binding.md +0 -1
  142. data/lib/amp-html/test/templates/css/@import.md +0 -1
  143. data/lib/amp-html/test/templates/css/behavior.md +0 -1
  144. data/lib/amp-html/test/templates/css/filter.md +0 -1
  145. data/lib/amp-html/test/templates/css/i-amp-.md +0 -1
  146. data/lib/amp-html/test/templates/css/overflow.md +0 -1
  147. data/lib/amp-html/test/templates/html/applet.md +0 -1
  148. data/lib/amp-html/test/templates/html/audio.md +0 -1
  149. data/lib/amp-html/test/templates/html/base.md +0 -1
  150. data/lib/amp-html/test/templates/html/embed.md +0 -1
  151. data/lib/amp-html/test/templates/html/frame.md +0 -1
  152. data/lib/amp-html/test/templates/html/frameset.md +0 -1
  153. data/lib/amp-html/test/templates/html/http-equiv.md +0 -1
  154. data/lib/amp-html/test/templates/html/iframe.md +0 -1
  155. data/lib/amp-html/test/templates/html/img.md +0 -1
  156. data/lib/amp-html/test/templates/html/javascript_include_tag.md +0 -1
  157. data/lib/amp-html/test/templates/html/object.md +0 -1
  158. data/lib/amp-html/test/templates/html/onclick.md +0 -1
  159. data/lib/amp-html/test/templates/html/onmousehover.md +0 -1
  160. data/lib/amp-html/test/templates/html/param.md +0 -1
  161. data/lib/amp-html/test/templates/html/stylesheet_link_tag.md +0 -1
  162. data/lib/amp-html/test/templates/html/video.md +0 -1
  163. data/lib/amp-html/test/templates/markup/!doctype.md +0 -1
  164. data/lib/amp-html/test/templates/markup/amp_document_link.md +0 -1
  165. data/lib/amp-html/test/templates/markup/amp_head.md +0 -1
  166. data/lib/amp-html/test/templates/markup/amp_html_doctype.md +0 -1
  167. data/lib/amp-html/test/templates/markup/canonical_document_link.md +0 -1
  168. data/lib/amp-html/test/templates/markup/head_body.md +0 -1
  169. data/lib/amp-html/test/templates/markup/html.md +0 -1
  170. data/lib/amp-html/test/templates/markup/meta_viewport.md +0 -1
  171. data/lib/amp-html/validate.rb +0 -46
  172. data/lib/amp-html/validate/help.rb +0 -11
  173. data/lib/amp-html/validate/templates/README.md +0 -32
  174. data/lib/generators/amp_html/assets_generator.rb +0 -31
  175. data/lib/generators/amp_html/bundle_generator.rb +0 -50
  176. data/lib/generators/amp_html/components_generator.rb +0 -84
  177. data/lib/generators/amp_html/helpers_generator.rb +0 -32
  178. data/lib/generators/amp_html/install_generator.rb +0 -53
  179. data/lib/generators/amp_html/views_generator.rb +0 -62
  180. data/lib/generators/templates/assets/README.md +0 -0
  181. data/lib/generators/templates/components/README.md +0 -0
  182. data/lib/generators/templates/components/views/_components.html.erb +0 -141
  183. data/lib/generators/templates/components/views/_google_analytics.html.erb +0 -23
  184. data/lib/generators/templates/helpers/README.md +0 -0
  185. data/lib/generators/templates/helpers/amp/fallback_tag_helper.rb +0 -16
  186. data/lib/generators/templates/helpers/amp/font_tag_helper.rb +0 -37
  187. data/lib/generators/templates/helpers/amp/link_tag_helper.rb +0 -11
  188. data/lib/generators/templates/helpers/amp/mustache_tag_helper.rb +0 -13
  189. data/lib/generators/templates/helpers/amp/noscript_tag_helper.rb +0 -13
  190. data/lib/generators/templates/helpers/amp/placeholder_tag_helper.rb +0 -16
  191. data/lib/generators/templates/helpers/amp/schema_tag_helper.rb +0 -16
  192. data/lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb +0 -21
  193. data/lib/generators/templates/helpers/amp_tag_helper.rb.erb +0 -65
  194. data/lib/generators/templates/helpers/asset_tag_helper.rb.erb +0 -119
  195. data/lib/generators/templates/helpers/form_tag_helper.rb.erb +0 -79
  196. data/lib/generators/templates/install/README.md +0 -0
  197. data/lib/generators/templates/install/amp-html.rb.erb +0 -19
  198. data/lib/generators/templates/install/amp-html.yml.erb +0 -189
  199. data/lib/generators/templates/views/README.md +0 -0
  200. data/lib/generators/templates/views/application.html.erb +0 -71
  201. data/lib/generators/templates/views/application/_head.html.erb +0 -47
  202. data/lib/generators/templates/views/application/_resources.html.erb +0 -16
  203. data/lib/generators/templates/views/application/_schema.html.erb +0 -6
  204. data/lib/generators/templates/views/config/mime_types.rb +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a8818a848ca98c5f753b7f2f7e4c06d750448caa
4
- data.tar.gz: 1c7176ac929d34dbb171cfd69c5b0c03efea617f
2
+ SHA256:
3
+ metadata.gz: c3d04137dc58a45e0d839c7c8ebda233933742d811eb24f77d28b55540d0ceeb
4
+ data.tar.gz: b6af3f3e9eb81ad71bdfda150c3192221af46a8fd63b7f74f94926a35341e959
5
5
  SHA512:
6
- metadata.gz: 41718012a2c3cbc5c783d8e4c47dec2b6fa97b2fa91ddce51f76c3b692858a3e9922983176e26fc5c8cc214b6ca8fcdbb5b406b85c263007b3e4d4858ac0f324
7
- data.tar.gz: f29a7640f729eb9c998bc4a503356954bc2fc2c84bb4c672bbc3ee471d24dfbbc75e52fdfd828a773ac79500a4c4c69a7a116fd86b493bc8e31976f61affcdfd
6
+ metadata.gz: f0e7527572c0322273f426a213f50d3bf7a1fbea30a409645dffc39fd5c680439457427e8a4a6706a24a5a48cd673c52931b88a62c5cde59c3d8abf7774de5e9
7
+ data.tar.gz: 9746b409662ecdef3b4c291d2b335164ce63ddc3da609cb09d79884b2c9c8a67181431f25ab4e2b8bb4be4a9f5a56188af2b6706edea99e5650eebfa5139f638
@@ -4,90 +4,95 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
- ### 0.7.18 (Pre-release) - 2017-08-24
7
+ ### 1.0.0 - 2018/01/14
8
8
 
9
- * minor bugfixes
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-08-24
16
+ ### 0.7.17 (Pre-release) - 2017/08/24
12
17
 
13
- * minor bugfixes
18
+ * bugfixes
14
19
 
15
- ### 0.7.16 (Pre-release) - 2017-08-24
20
+ ### 0.7.16 (Pre-release) - 2017/08/24
16
21
 
17
- * minor bugfixes
22
+ * bugfixes
18
23
 
19
- ### 0.7.15 (Pre-release) - 2017-08-24
24
+ ### 0.7.15 (Pre-release) - 2017/08/24
20
25
 
21
- * minor bugfixes
26
+ * bugfixes
22
27
 
23
- ### 0.7.14 (Pre-release) - 2017-08-24
28
+ ### 0.7.14 (Pre-release) - 2017/08/24
24
29
 
25
- * minor bugfixes
30
+ * bugfixes
26
31
 
27
- ### 0.7.13 (Pre-release) - 2017-08-24
32
+ ### 0.7.13 (Pre-release) - 2017/08/24
28
33
 
29
- * minor bugfixes
34
+ * bugfixes
30
35
 
31
- ### 0.7.12 (Pre-release) - 2017-08-24
36
+ ### 0.7.12 (Pre-release) - 2017/08/24
32
37
 
33
- * minor bugfixes
38
+ * bugfixes
34
39
 
35
- ### 0.7.11 (Pre-release) - 2017-08-24
40
+ ### 0.7.11 (Pre-release) - 2017/08/24
36
41
 
37
- * minor bugfixes
42
+ * bugfixes
38
43
 
39
- ### 0.7.10 (Pre-release) - 2017-08-24
44
+ ### 0.7.10 (Pre-release) - 2017/08/24
40
45
 
41
- * minor bugfixes
46
+ * bugfixes
42
47
 
43
- ### 0.7.9 (Pre-release) - 2017-08-24
48
+ ### 0.7.9 (Pre-release) - 2017/08/24
44
49
 
45
- * minor bugfixes
50
+ * bugfixes
46
51
 
47
- ### 0.7.8 (Pre-release) - 2017-08-24
52
+ ### 0.7.8 (Pre-release) - 2017/08/24
48
53
 
49
- * minor bugfixes
54
+ * bugfixes
50
55
 
51
- ### 0.7.7 (Pre-release) - 2017-08-24
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-04-11
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-03-23
66
+ ### 0.7.5 (Pre-release) - 2017/03/23
62
67
 
63
- * bug fixes
68
+ * bugfixes
64
69
  * fix assets pipeline
65
70
  * fix assets helpers
66
71
 
67
- ### 0.7.4 (Pre-release) - 2017-03-22
72
+ ### 0.7.4 (Pre-release) - 2017/03/22
68
73
 
69
- * bug fixes
74
+ * bugfixes
70
75
  * fix component bundler
71
76
 
72
- ### 0.7.3 (Pre-release) - 2017-03-22
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-03-22
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-03-21
88
+ ### 0.7.1 (Pre-release) - 2017/03/21
84
89
 
85
90
  * enhancements
86
91
  * add DeepIntegration to forms component
87
- * bug fixes
92
+ * bugfixes
88
93
  * fix syntax error
89
94
 
90
- ### 0.7.0 (Pre-release) - 2017-03-21
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-03-21
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-03-20
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
- * bug fixes
130
+ * bugfixes
126
131
  * fix tests
127
132
 
128
- ### 0.6.1 (Pre-release) - 2017-03-19
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
- * bug fixes
144
+ * bugfixes
140
145
  * fix `noscript_tag` helper
141
146
 
142
- ### 0.6.0 (Pre-release) - 2017-03-19
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
- * bug fixes
154
+ * bugfixes
150
155
  * fix `config/initializers/amphtml.rb`
151
156
  * fix helpers
152
157
 
153
- ### 0.5.4 (Pre-release) - 2017-03-19
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
- * bug fixes
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-03-18
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
- * bug fixes
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-03-18
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
- * bug fixes
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-03-18
195
+ ### 0.5.1 (Pre-release) - 2017/03/18
191
196
 
192
197
  * enhancements
193
198
  * improve `config/amphtml.yml` template
194
- * bug fixes
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-03-18
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
- * bug fixes
217
+ * bugfixes
213
218
  * fix AMP issue in `amp_head` helper
214
219
 
215
- ### 0.4.5 (Pre-release) - 2017-03-17
220
+ ### 0.4.5 (Pre-release) - 2017/03/17
216
221
 
217
222
  * removals
218
223
  * `meta_tag` renamed to `amp_head`
219
- * bug fixes
224
+ * bugfixes
220
225
  * fix `ViewsGenerator`
221
226
  * fix `config/amphtml.yml` template
222
227
 
223
- ### 0.4.4 (Pre-release) - 2017-03-17
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
- * bug fixes
235
+ * bugfixes
231
236
  * [#21](https://github.com/jonhue/amphtml/issues/21) - File open issues
232
237
 
233
- ### 0.4.3 (Pre-release) - 2017-03-17
238
+ ### 0.4.3 (Pre-release) - 2017/03/17
234
239
 
235
- * bug fixes
240
+ * bugfixes
236
241
  * fix `--format` option in generators
237
242
 
238
- ### 0.4.2 (Pre-release) - 2017-03-17
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
- * bug fixes
251
+ * bugfixes
247
252
  * fix `amphtml bundle`
248
253
  * fix `BundleGenerator`
249
254
 
250
- ### 0.4.1 (Pre-release) - 2017-03-16
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
- * bug fixes
262
+ * bugfixes
258
263
  * fix `amphtml validate`
259
264
 
260
- ### 0.4.0 (Pre-release) - 2017-03-16
265
+ ### 0.4.0 (Pre-release) - 2017/03/16
261
266
 
262
267
  * features
263
268
  * add command line executables
264
- * bug fixes
269
+ * bugfixes
265
270
  * fix generators
266
271
 
267
- ### 0.3.1 (Pre-release) - 2017-03-16
272
+ ### 0.3.1 (Pre-release) - 2017/03/16
268
273
 
269
- * bug fixes
274
+ * bugfixes
270
275
  * fix Rails dependency
271
276
 
272
- ### 0.3.0 (Pre-release) - 2017-03-15
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-03-14
290
+ ### 0.2.1 (Pre-release) - 2017/03/14
286
291
 
287
- * bug fixes
292
+ * bugfixes
288
293
  * fix `Amphtml::Test` class
289
294
 
290
- ### 0.2.0 (Pre-release) - 2017-03-14
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
- * bug fixes
314
+ * bugfixes
310
315
  * improve `TagHelper`'s
311
316
 
312
- ### 0.1.5 (Pre-release) - 2017-03-13
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
- * bug fixes
328
+ * bugfixes
324
329
  * Improve `AssetTagHelper`'s
325
330
 
326
- ### 0.1.4 (Pre-release) - 2017-03-13
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-03-12
337
+ ### 0.1.3 (Pre-release) - 2017/03/12
333
338
 
334
- * bug fixes
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-03-12
343
+ ### 0.1.2 (Pre-release) - 2017/03/12
339
344
 
340
- * bug fixes
345
+ * bugfixes
341
346
  * `Amphtml is not a module`
342
347
  * not all files included
343
348
 
344
- ### 0.1.0 (Pre-release) - 2017-03-12
349
+ ### 0.1.0 (Pre-release) - 2017/03/12
345
350
 
346
351
  Initial release
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
- # [BETA] AMP-HTML - Reliable high-:zap: apps with AMP & Rails
1
+ # amp-html
2
2
 
3
- <img src="https://travis-ci.org/slooob/amp-html.svg?branch=master" /> [![Gem Version](https://badge.fury.io/rb/amp-html.svg)](https://badge.fury.io/rb/amp-html)
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
- AmpHtml is a universal solution to integrate the AMP Project (Accelerated Mobile Pages Project) 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.
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/slooob/amp-html/wiki/Getting-started)
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 AMP-HTML wiki](#the-amp-html-wiki)
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
- * [Concept](#concept)
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.7.18 (Pre-release)
43
+ #### Latest release: 1.0.0
43
44
 
44
- [**Changelog**](https://github.com/slooob/amp-html/blob/master/CHANGELOG.md), [Grab it from Rubygems](https://rubygems.org/gems/amp-html)
45
+ [**Changelog**](CHANGELOG.md), [Grab it from Rubygems](https://rubygems.org/gems/amp-html)
45
46
 
46
47
  #### Supported versions
47
48
 
48
- Rails >= 4.0.0
49
- Ruby >= 2.0
49
+ Rails >= 5.0
50
+ Ruby >= 2.3
50
51
 
51
- ### The AMP-HTML wiki & documentation
52
+ ### The amp-html wiki & documentation
52
53
 
53
- 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
+ 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
- [https://github.com/slooob/amp-html/wiki](https://github.com/slooob/amp-html/wiki)
56
+ https://github.com/jonhue/amp-html/wiki
56
57
 
57
58
  ### Bug reports
58
59
 
59
- 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:
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
- If you have discovered a security related bug, please do *NOT* use the GitHub issue tracker. Send an email to [developer@slooob.com](mailto:developer@slooob.com).
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 AMP-HTML. You can view them here:
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
- [https://github.com/slooob/amp-html/wiki/Example-Applications](https://github.com/slooob/amp-html/wiki/Example-Applications)
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 AMP-HTML. Please read this short overview for some information about how to get started:
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](https://github.com/slooob/amp-html/blob/master/CONTRIBUTING.md), [Code of Conduct](https://github.com/slooob/amp-html/blob/master/CODE_OF_CONDUCT.md)
74
+ [Contributing](CONTRIBUTING.md), [Code of Conduct](CODE_OF_CONDUCT.md)
76
75
 
77
76
  ### Versioning
78
77
 
79
- AmpHtml follows Semantic Versioning 2.0 as defined at http://semver.org.
78
+ amp-html follows Semantic Versioning 2.0 as defined at http://semver.org.
80
79
 
81
- ## Concept
80
+ ### Deprecations
82
81
 
83
- ## Features
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/slooob/amp-html/wiki/Getting-started).
86
+ You can also follow the [**Getting Started Guide**](https://github.com/jonhue/amp-html/wiki/Getting-started).
88
87
 
89
- AMP-HTML works with Rails 4.0 onwards. You can add it to your `Gemfile` with:
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: 'https://github.com/slooob/amp-html.git'
105
+ gem 'amp-html', github: 'jonhue/amp-html'
107
106
  ```
108
107
 
109
- ### Generators
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
- To add components ([List of components](https://github.com/slooob/amp-html/blob/master/lib/amp-html/components/docs/README.md)) to the generator simply include the component as an option:
110
+ $ rails g mozaic:install
111
+ $ rails g amp_html
122
112
 
123
- $ rails g amp_html:bundle --analytics --notifications
113
+ Replace the contents of your `app/views/layouts/application.html.erb` file with:
124
114
 
125
- You can also run the three generators independently:
126
-
127
- $ rails g amp_html:install
128
- $ rails g amp_html:helpers
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
- ### Test and validate AMP
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
- AmpHtml allows you to test and validate your views out of the box:
122
+ ## Usage
137
123
 
138
- $ amp-html test all
124
+ ### SplitView
139
125
 
140
- Pass `--split` as an option if you are using SplitView:
126
+ ---
141
127
 
142
- $ amp-html test all --split
128
+ ## Guides
143
129
 
144
- `test all` runs multiple tests to check if your code is valid. You can also run each test specifically.
130
+ ---
145
131
 
146
- To get a list of all tests and learn how to run them, go to [how to test and validate](https://github.com/slooob/amp-html/wiki/Guides:-Test-and-validate)
132
+ ## Components
147
133
 
148
- To all tests (even `test all`) you can pass the option `--fix || -f` and AmpHtml will suggest changes you could make. You can accept or reject them.
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
- AMP has a validator built in. To validate:
136
+ ## Configuration
152
137
 
153
- $ amp-html validate root # validates "http://localhost:3000"
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
- **Note:** `root` is only available as a parameter in development environment..
140
+ ```ruby
141
+ AmpHtml.configure do |config|
142
+ config.inherit_stylesheets = false
143
+ end
144
+ ```
157
145
 
158
- ## Usage
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
- ### Helpers
150
+ ---
161
151
 
162
- ### SplitView
152
+ ## To Do
163
153
 
164
- ## Guides
154
+ [Here](https://github.com/jonhue/amp-html/projects/1) is the full list of current projects.
165
155
 
166
- ## Components
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. Check them all at:
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
- [Accelerated Mobile Pages](https://www.ampproject.org/)
164
+ https://github.com/jonhue/amp-html/graphs/contributors
179
165
 
180
166
  ## License
181
167