amp-html 0.7.7

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 (191) hide show
  1. checksums.yaml +7 -0
  2. data/.github/issue_template.md +16 -0
  3. data/.github/pull_request_template.md +21 -0
  4. data/.gitignore +13 -0
  5. data/.travis.yml +4 -0
  6. data/CHANGELOG.md +302 -0
  7. data/CONTRIBUTING.md +1 -0
  8. data/DEPRECATIONS.md +9 -0
  9. data/Gemfile +12 -0
  10. data/Gemfile.lock +162 -0
  11. data/INSTALL.md +1 -0
  12. data/LICENSE +21 -0
  13. data/OWNERS.yaml +1 -0
  14. data/README.md +192 -0
  15. data/Rakefile +6 -0
  16. data/amp-html.gemspec +29 -0
  17. data/bin/amp-html +4 -0
  18. data/lib/amp_html.rb +27 -0
  19. data/lib/amp_html/cli.rb +113 -0
  20. data/lib/amp_html/components/docs/README.md +101 -0
  21. data/lib/amp_html/components/docs/ad.md +83 -0
  22. data/lib/amp_html/components/docs/analytics.md +131 -0
  23. data/lib/amp_html/components/docs/anim.md +66 -0
  24. data/lib/amp_html/components/docs/fonts.md +63 -0
  25. data/lib/amp_html/components/docs/forms.md +79 -0
  26. data/lib/amp_html/components/docs/iframe.md +62 -0
  27. data/lib/amp_html/components/docs/javascript.md +71 -0
  28. data/lib/amp_html/components/docs/lists.md +168 -0
  29. data/lib/amp_html/components/docs/media.md +52 -0
  30. data/lib/amp_html/components/docs/mustache.md +46 -0
  31. data/lib/amp_html/components/docs/notifications.md +0 -0
  32. data/lib/amp_html/components/docs/schema.md +80 -0
  33. data/lib/amp_html/components/docs/service_worker.md +60 -0
  34. data/lib/amp_html/components/docs/social.md +130 -0
  35. data/lib/amp_html/components/docs/stylesheets.md +50 -0
  36. data/lib/amp_html/components/help.rb +19 -0
  37. data/lib/amp_html/components/install.rb +34 -0
  38. data/lib/amp_html/components/templates/ERROR.md +5 -0
  39. data/lib/amp_html/components/templates/README.md +12 -0
  40. data/lib/amp_html/configuration.rb +170 -0
  41. data/lib/amp_html/configuration/docs/README.md +0 -0
  42. data/lib/amp_html/configuration/help.rb +11 -0
  43. data/lib/amp_html/helpers/docs/README.md +98 -0
  44. data/lib/amp_html/helpers/docs/amp.md +0 -0
  45. data/lib/amp_html/helpers/docs/amp_ad.md +86 -0
  46. data/lib/amp_html/helpers/docs/amp_analytics.md +76 -0
  47. data/lib/amp_html/helpers/docs/amp_anim.md +68 -0
  48. data/lib/amp_html/helpers/docs/amp_audio.md +54 -0
  49. data/lib/amp_html/helpers/docs/amp_auto_ads.md +43 -0
  50. data/lib/amp_html/helpers/docs/amp_close_user_notification_button.md +0 -0
  51. data/lib/amp_html/helpers/docs/amp_css.md +37 -0
  52. data/lib/amp_html/helpers/docs/amp_css_link.md +0 -0
  53. data/lib/amp_html/helpers/docs/amp_custom_ad.md +0 -0
  54. data/lib/amp_html/helpers/docs/amp_document_link.md +0 -0
  55. data/lib/amp_html/helpers/docs/amp_embed.md +86 -0
  56. data/lib/amp_html/helpers/docs/amp_facebook.md +70 -0
  57. data/lib/amp_html/helpers/docs/amp_fallback.md +47 -0
  58. data/lib/amp_html/helpers/docs/amp_font.md +0 -0
  59. data/lib/amp_html/helpers/docs/amp_font_link.md +0 -0
  60. data/lib/amp_html/helpers/docs/amp_form.md +0 -0
  61. data/lib/amp_html/helpers/docs/amp_form_response.md +0 -0
  62. data/lib/amp_html/helpers/docs/amp_gfycat.md +0 -0
  63. data/lib/amp_html/helpers/docs/amp_global_css.md +0 -0
  64. data/lib/amp_html/helpers/docs/amp_google_analytics.md +0 -0
  65. data/lib/amp_html/helpers/docs/amp_google_font.md +0 -0
  66. data/lib/amp_html/helpers/docs/amp_head.md +0 -0
  67. data/lib/amp_html/helpers/docs/amp_html_doctype.md +0 -0
  68. data/lib/amp_html/helpers/docs/amp_iframe.md +0 -0
  69. data/lib/amp_html/helpers/docs/amp_image.md +0 -0
  70. data/lib/amp_html/helpers/docs/amp_input.md +0 -0
  71. data/lib/amp_html/helpers/docs/amp_instagram.md +0 -0
  72. data/lib/amp_html/helpers/docs/amp_js.md +0 -0
  73. data/lib/amp_html/helpers/docs/amp_link.md +0 -0
  74. data/lib/amp_html/helpers/docs/amp_list.md +0 -0
  75. data/lib/amp_html/helpers/docs/amp_live_list.md +0 -0
  76. data/lib/amp_html/helpers/docs/amp_live_list_items.md +0 -0
  77. data/lib/amp_html/helpers/docs/amp_live_list_pagination.md +0 -0
  78. data/lib/amp_html/helpers/docs/amp_live_list_update.md +0 -0
  79. data/lib/amp_html/helpers/docs/amp_mustache.md +0 -0
  80. data/lib/amp_html/helpers/docs/amp_pin_it.md +0 -0
  81. data/lib/amp_html/helpers/docs/amp_pin_widget.md +0 -0
  82. data/lib/amp_html/helpers/docs/amp_pinterest_follow.md +0 -0
  83. data/lib/amp_html/helpers/docs/amp_pixel.md +0 -0
  84. data/lib/amp_html/helpers/docs/amp_placeholder.md +0 -0
  85. data/lib/amp_html/helpers/docs/amp_reddit.md +0 -0
  86. data/lib/amp_html/helpers/docs/amp_resources.md +0 -0
  87. data/lib/amp_html/helpers/docs/amp_selector.md +0 -0
  88. data/lib/amp_html/helpers/docs/amp_serviceworker.md +0 -0
  89. data/lib/amp_html/helpers/docs/amp_social_share.md +0 -0
  90. data/lib/amp_html/helpers/docs/amp_soundcloud.md +0 -0
  91. data/lib/amp_html/helpers/docs/amp_twitter.md +0 -0
  92. data/lib/amp_html/helpers/docs/amp_user_notification.md +0 -0
  93. data/lib/amp_html/helpers/docs/amp_video.md +0 -0
  94. data/lib/amp_html/helpers/docs/amp_video_ad.md +0 -0
  95. data/lib/amp_html/helpers/docs/amp_vine.md +0 -0
  96. data/lib/amp_html/helpers/docs/amp_youtube.md +0 -0
  97. data/lib/amp_html/helpers/docs/audio_tag.md +0 -0
  98. data/lib/amp_html/helpers/docs/canonical_document_link.md +0 -0
  99. data/lib/amp_html/helpers/docs/form_tag.md +0 -0
  100. data/lib/amp_html/helpers/docs/image_tag.md +0 -0
  101. data/lib/amp_html/helpers/docs/input_tag.md +0 -0
  102. data/lib/amp_html/helpers/docs/javascript_include_tag.md +0 -0
  103. data/lib/amp_html/helpers/docs/noscript_tag.md +0 -0
  104. data/lib/amp_html/helpers/docs/schema_tag.md +0 -0
  105. data/lib/amp_html/helpers/docs/stylesheet_link_tag.md +0 -0
  106. data/lib/amp_html/helpers/docs/video_tag.md +0 -0
  107. data/lib/amp_html/helpers/help.rb +23 -0
  108. data/lib/amp_html/root.rb +7 -0
  109. data/lib/amp_html/test.rb +169 -0
  110. data/lib/amp_html/test/help.rb +11 -0
  111. data/lib/amp_html/test/templates/README.md +43 -0
  112. data/lib/amp_html/test/templates/css/!important.md +1 -0
  113. data/lib/amp_html/test/templates/css/-amp-.md +1 -0
  114. data/lib/amp_html/test/templates/css/-moz-binding.md +1 -0
  115. data/lib/amp_html/test/templates/css/@import.md +1 -0
  116. data/lib/amp_html/test/templates/css/behavior.md +1 -0
  117. data/lib/amp_html/test/templates/css/filter.md +1 -0
  118. data/lib/amp_html/test/templates/css/i-amp-.md +1 -0
  119. data/lib/amp_html/test/templates/css/overflow.md +1 -0
  120. data/lib/amp_html/test/templates/html/applet.md +1 -0
  121. data/lib/amp_html/test/templates/html/audio.md +1 -0
  122. data/lib/amp_html/test/templates/html/base.md +1 -0
  123. data/lib/amp_html/test/templates/html/embed.md +1 -0
  124. data/lib/amp_html/test/templates/html/frame.md +1 -0
  125. data/lib/amp_html/test/templates/html/frameset.md +1 -0
  126. data/lib/amp_html/test/templates/html/http-equiv.md +1 -0
  127. data/lib/amp_html/test/templates/html/iframe.md +1 -0
  128. data/lib/amp_html/test/templates/html/img.md +1 -0
  129. data/lib/amp_html/test/templates/html/javascript_include_tag.md +1 -0
  130. data/lib/amp_html/test/templates/html/object.md +1 -0
  131. data/lib/amp_html/test/templates/html/onclick.md +1 -0
  132. data/lib/amp_html/test/templates/html/onmousehover.md +1 -0
  133. data/lib/amp_html/test/templates/html/param.md +1 -0
  134. data/lib/amp_html/test/templates/html/stylesheet_link_tag.md +1 -0
  135. data/lib/amp_html/test/templates/html/video.md +1 -0
  136. data/lib/amp_html/test/templates/markup/!doctype.md +1 -0
  137. data/lib/amp_html/test/templates/markup/amp_document_link.md +1 -0
  138. data/lib/amp_html/test/templates/markup/amp_head.md +1 -0
  139. data/lib/amp_html/test/templates/markup/amp_html_doctype.md +1 -0
  140. data/lib/amp_html/test/templates/markup/canonical_document_link.md +1 -0
  141. data/lib/amp_html/test/templates/markup/head_body.md +1 -0
  142. data/lib/amp_html/test/templates/markup/html.md +1 -0
  143. data/lib/amp_html/test/templates/markup/meta_viewport.md +1 -0
  144. data/lib/amp_html/validate.rb +46 -0
  145. data/lib/amp_html/validate/help.rb +11 -0
  146. data/lib/amp_html/validate/templates/README.md +32 -0
  147. data/lib/amp_html/version.rb +13 -0
  148. data/lib/generators/amphtml/assets_generator.rb +31 -0
  149. data/lib/generators/amphtml/bundle_generator.rb +50 -0
  150. data/lib/generators/amphtml/components_generator.rb +84 -0
  151. data/lib/generators/amphtml/helpers_generator.rb +32 -0
  152. data/lib/generators/amphtml/install_generator.rb +53 -0
  153. data/lib/generators/amphtml/views_generator.rb +62 -0
  154. data/lib/generators/templates/assets/README.md +0 -0
  155. data/lib/generators/templates/assets/stylesheets/application.scss +15 -0
  156. data/lib/generators/templates/components/README.md +0 -0
  157. data/lib/generators/templates/components/assets/javascripts/application.js +15 -0
  158. data/lib/generators/templates/components/helpers/ad_tag_helper.rb +83 -0
  159. data/lib/generators/templates/components/helpers/analytics_tag_helper.rb +30 -0
  160. data/lib/generators/templates/components/helpers/anim_tag_helper.rb +42 -0
  161. data/lib/generators/templates/components/helpers/iframe_tag_helper.rb +27 -0
  162. data/lib/generators/templates/components/helpers/javascript_tag_helper.rb +12 -0
  163. data/lib/generators/templates/components/helpers/lists_tag_helper.rb +82 -0
  164. data/lib/generators/templates/components/helpers/notification_tag_helper.rb +16 -0
  165. data/lib/generators/templates/components/helpers/serviceworker_tag_helper.rb +15 -0
  166. data/lib/generators/templates/components/helpers/social_tag_helper.rb +228 -0
  167. data/lib/generators/templates/components/public/remote.html +28 -0
  168. data/lib/generators/templates/components/views/_components.html.erb +141 -0
  169. data/lib/generators/templates/components/views/_google_analytics.html.erb +23 -0
  170. data/lib/generators/templates/helpers/README.md +1 -0
  171. data/lib/generators/templates/helpers/amp/fallback_tag_helper.rb +16 -0
  172. data/lib/generators/templates/helpers/amp/font_tag_helper.rb +37 -0
  173. data/lib/generators/templates/helpers/amp/link_tag_helper.rb +11 -0
  174. data/lib/generators/templates/helpers/amp/mustache_tag_helper.rb +13 -0
  175. data/lib/generators/templates/helpers/amp/noscript_tag_helper.rb +13 -0
  176. data/lib/generators/templates/helpers/amp/placeholder_tag_helper.rb +16 -0
  177. data/lib/generators/templates/helpers/amp/schema_tag_helper.rb +16 -0
  178. data/lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb +21 -0
  179. data/lib/generators/templates/helpers/amp_tag_helper.rb.erb +65 -0
  180. data/lib/generators/templates/helpers/asset_tag_helper.rb.erb +119 -0
  181. data/lib/generators/templates/helpers/form_tag_helper.rb.erb +79 -0
  182. data/lib/generators/templates/install/README.md +1 -0
  183. data/lib/generators/templates/install/amphtml.rb.erb +19 -0
  184. data/lib/generators/templates/install/amphtml.yml.erb +189 -0
  185. data/lib/generators/templates/views/README.md +1 -0
  186. data/lib/generators/templates/views/application.html.erb +71 -0
  187. data/lib/generators/templates/views/application/_head.html.erb +47 -0
  188. data/lib/generators/templates/views/application/_resources.html.erb +16 -0
  189. data/lib/generators/templates/views/application/_schema.html.erb +6 -0
  190. data/lib/generators/templates/views/config/mime_types.rb +8 -0
  191. metadata +294 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d71b3c17ab990050af0aedf1df9d3bb9f3f0b23f
4
+ data.tar.gz: a2a39dac982ebd13e05b6cf2f1cbe06402e7aebe
5
+ SHA512:
6
+ metadata.gz: 6b1b8195034e7e10597943a6a3cfde38b869a5fe42ec5b83ea9b508df19ec4e6c9750b9096b33d7fe654659a675af70a748b193c2eab314b3bcdc4462942c53a
7
+ data.tar.gz: 791ca16e1bae1199b60a8d1675ff66cf3c7e5a22534b95d70f028e3f8728af1aa35e660cf048d0dce6a505cee5b54db3f2e2fff50c93762e79c27d2d9af039e7
@@ -0,0 +1,16 @@
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**:
@@ -0,0 +1,21 @@
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`!
@@ -0,0 +1,13 @@
1
+ *.gem
2
+ *.rbc
3
+ .DS_Store
4
+ .bundle
5
+ .rvmrc
6
+ .ruby-version
7
+ .yardoc
8
+ .rake_tasks~
9
+ coverage/*
10
+ doc/*
11
+ log/*
12
+ pkg/*
13
+ .idea/*
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.3
4
+ install: bundle install --without development --deployment --jobs=3 --retry=3
@@ -0,0 +1,302 @@
1
+ # Changelog
2
+
3
+ ### master
4
+
5
+ * nothing yet
6
+
7
+ ### 0.7.7 (Pre-release) - 2017-08-24
8
+
9
+ * notes
10
+ * gem renamed from `amphtml` to `amp-html`
11
+
12
+ ### 0.7.6 (Pre-release) - 2017-04-11
13
+
14
+ * enhancements
15
+ * improve gemspec
16
+
17
+ ### 0.7.5 (Pre-release) - 2017-03-23
18
+
19
+ * bug fixes
20
+ * fix assets pipeline
21
+ * fix assets helpers
22
+
23
+ ### 0.7.4 (Pre-release) - 2017-03-22
24
+
25
+ * bug fixes
26
+ * fix component bundler
27
+
28
+ ### 0.7.3 (Pre-release) - 2017-03-22
29
+
30
+ * features
31
+ * introduce lists component
32
+ * introduce Mustache.js component
33
+
34
+ ### 0.7.2 (Pre-release) - 2017-03-22
35
+
36
+ * features
37
+ * introduce service worker component
38
+
39
+ ### 0.7.1 (Pre-release) - 2017-03-21
40
+
41
+ * enhancements
42
+ * add DeepIntegration to forms component
43
+ * bug fixes
44
+ * fix syntax error
45
+
46
+ ### 0.7.0 (Pre-release) - 2017-03-21
47
+
48
+ * features
49
+ * introduce build-in forms component
50
+ * add `amp?` helper
51
+ * add `amp_css_link` helper
52
+ * add a bunch of new helpers to social component
53
+
54
+ ### 0.6.3 (Pre-release) - 2017-03-21
55
+
56
+ * removals
57
+ * `amp_document_link` helper only available with SplitView
58
+ * enhancements
59
+ * configuration: warn if no config file available
60
+ * enhance tests
61
+
62
+ ### 0.6.2 (Pre-release) - 2017-03-20
63
+
64
+ * removals
65
+ * deprecate `amp_resources` helper - will be removed in 1.0
66
+ * rename `amp_document_link` helper
67
+ * rename `canonical_document_link` helper
68
+ * features
69
+ * add `amp_link` helper
70
+ * add `amp_custom_ad` helper
71
+ * add `amp_video_ad` helper
72
+ * enhancements
73
+ * improve `amp_analytics` helper
74
+ * improve `amp_audio` helper
75
+ * improve `amp_auto_ads` helper
76
+ * improve `amp_facebook` helper
77
+ * add media component docs
78
+ * update component docs
79
+ * update helper docs
80
+ * change default app name
81
+ * bug fixes
82
+ * fix tests
83
+
84
+ ### 0.6.1 (Pre-release) - 2017-03-19
85
+
86
+ * removals
87
+ * deprecate `amp_global_css` helper - will be removed in 2.0
88
+ * enhancements
89
+ * improve `amp_anim` helper
90
+ * improve `amp_ad` helper
91
+ * improve social helpers
92
+ * improve AMP helpers
93
+ * update component docs
94
+ * update helper docs
95
+ * bug fixes
96
+ * fix `noscript_tag` helper
97
+
98
+ ### 0.6.0 (Pre-release) - 2017-03-19
99
+
100
+ * features
101
+ * introduce javascript component
102
+ * enhancements
103
+ * add javascript component docs
104
+ * add configuration docs
105
+ * bug fixes
106
+ * fix `config/initializers/amphtml.rb`
107
+ * fix helpers
108
+
109
+ ### 0.5.4 (Pre-release) - 2017-03-19
110
+
111
+ * features
112
+ * add `amp_auto_ads` helper
113
+ * enhancements
114
+ * `validate`: start server if not already running
115
+ * add analytics component docs
116
+ * add validate docs
117
+ * bug fixes
118
+ * fix configuration
119
+ * fix `schema_tag` helper
120
+ * fix `amp_tag` helpers
121
+ * fix `BundleGenerator`
122
+ * fix view templates
123
+
124
+ ### 0.5.3 (Pre-release) - 2017-03-18
125
+
126
+ * enhancements
127
+ * add component docs
128
+ * improve add templates
129
+ * improve `config/amphtml.yml` template
130
+ * bug fixes
131
+ * fix test class
132
+ * fix test help
133
+ * fix validate help
134
+
135
+ ### 0.5.2 (Pre-release) - 2017-03-18
136
+
137
+ * features
138
+ * add `amp_font_link` helper
139
+ * enhancements
140
+ * improve html test
141
+ * bug fixes
142
+ * fix `config/mime_types.rb` template
143
+ * fix helper templates
144
+ * fix `BundleGenerator`
145
+
146
+ ### 0.5.1 (Pre-release) - 2017-03-18
147
+
148
+ * enhancements
149
+ * improve `config/amphtml.yml` template
150
+ * bug fixes
151
+ * fix `-amp-` in CSS test
152
+ * fix `HelpersGenerator`
153
+ * fix `ViewsGenerator`
154
+
155
+ ### 0.5.0 (Pre-release) - 2017-03-18
156
+
157
+ * features
158
+ * add `amp_embed` helper
159
+ * add `amp_resources` helper
160
+ * introduce `amphtml install COMPONENT`
161
+ * introduce `amphtml test NAME` on
162
+ * `markup`
163
+ * `html`
164
+ * `css`
165
+ * enhancements
166
+ * improve `config/amphtml.yml` template
167
+ * improve `app/views/layouts/application.html.erb` template
168
+ * bug fixes
169
+ * fix AMP issue in `amp_head` helper
170
+
171
+ ### 0.4.5 (Pre-release) - 2017-03-17
172
+
173
+ * removals
174
+ * `meta_tag` renamed to `amp_head`
175
+ * bug fixes
176
+ * fix `ViewsGenerator`
177
+ * fix `config/amphtml.yml` template
178
+
179
+ ### 0.4.4 (Pre-release) - 2017-03-17
180
+
181
+ * features
182
+ * add `schema_tag` helper
183
+ * add `meta_tag` helper
184
+ * enhancements
185
+ * dynamically assign format for generators
186
+ * bug fixes
187
+ * [#21](https://github.com/jonhue/amphtml/issues/21) - File open issues
188
+
189
+ ### 0.4.3 (Pre-release) - 2017-03-17
190
+
191
+ * bug fixes
192
+ * fix `--format` option in generators
193
+
194
+ ### 0.4.2 (Pre-release) - 2017-03-17
195
+
196
+ * features
197
+ * add analytics component DeepIntegration
198
+ * add ad component DeepIntegration
199
+ * add social component DeepIntegration
200
+ * enhancements
201
+ * improve generators
202
+ * bug fixes
203
+ * fix `amphtml bundle`
204
+ * fix `BundleGenerator`
205
+
206
+ ### 0.4.1 (Pre-release) - 2017-03-16
207
+
208
+ * features
209
+ * add `ComponentsGenerator`
210
+ * enhancements
211
+ * improve `CLI`
212
+ * add docs for components and helpers
213
+ * bug fixes
214
+ * fix `amphtml validate`
215
+
216
+ ### 0.4.0 (Pre-release) - 2017-03-16
217
+
218
+ * features
219
+ * add command line executables
220
+ * bug fixes
221
+ * fix generators
222
+
223
+ ### 0.3.1 (Pre-release) - 2017-03-16
224
+
225
+ * bug fixes
226
+ * fix Rails dependency
227
+
228
+ ### 0.3.0 (Pre-release) - 2017-03-15
229
+
230
+ * features
231
+ * add SplitView
232
+ * yml configuration file
233
+ * add fonts helpers
234
+ * add AMP links helpers
235
+ * enhancements
236
+ * improve generators
237
+ * improve generator templates
238
+ * improve `Amphtml::Test` class
239
+ * drop Rails dependency to 4.0
240
+
241
+ ### 0.2.1 (Pre-release) - 2017-03-14
242
+
243
+ * bug fixes
244
+ * fix `Amphtml::Test` class
245
+
246
+ ### 0.2.0 (Pre-release) - 2017-03-14
247
+
248
+ * removals
249
+ * AMP related tag helpers changed from `name_tag` to `amp_name`
250
+ * features
251
+ * introduce `Amphtml::Test` class
252
+ * introduce options for `ViewsGenerator` to include AMP specific tags
253
+ * introduce `amp_css` helper
254
+ * introduce Social Tag Helpers
255
+ * `twitter_tag`
256
+ * `instagram_tag`
257
+ * `facebook_tag`
258
+ * `youtube_tag`
259
+ * enhancements
260
+ * allow custom CSS in views
261
+ * warn when a `stylesheet_link_tag` or `javascript_include_tag` is being used
262
+ * improve `HelpersGenerator`
263
+ * re-structure `application.html.erb`
264
+ * put amp-stuff into `_amp.html`
265
+ * bug fixes
266
+ * improve `TagHelper`'s
267
+
268
+ ### 0.1.5 (Pre-release) - 2017-03-13
269
+
270
+ * features
271
+ * introduce `--split` option for `InstallGenerator`
272
+ * introduce `--split` option for `HelpersGenerator`
273
+ * enhancements
274
+ * add `help` method to `Amphtml`
275
+ * add `version` method to `Amphtml`
276
+ * custom installation message
277
+ * add `Amphtml.validate` method fallback
278
+ * improve file reading
279
+ * bug fixes
280
+ * Improve `AssetTagHelper`'s
281
+
282
+ ### 0.1.4 (Pre-release) - 2017-03-13
283
+
284
+ * features
285
+ * introduce `--split` option for `ViewsGenerator`
286
+ * add `validate` method to `Amphtml`
287
+
288
+ ### 0.1.3 (Pre-release) - 2017-03-12
289
+
290
+ * bug fixes
291
+ * [#1](https://github.com/jonhue/amphtml/issues/1) - `Couldn't find AssetTagHelper, expected it to be defined in helpers/asset_tag_helper.rb`
292
+ * [#2](https://github.com/jonhue/amphtml/issues/2) - `initializers/amphtml.rb - NameError`
293
+
294
+ ### 0.1.2 (Pre-release) - 2017-03-12
295
+
296
+ * bug fixes
297
+ * `Amphtml is not a module`
298
+ * not all files included
299
+
300
+ ### 0.1.0 (Pre-release) - 2017-03-12
301
+
302
+ Initial release
@@ -0,0 +1 @@
1
+ # Contributing
@@ -0,0 +1,9 @@
1
+ # Deprecations
2
+
3
+ ### 2.0
4
+
5
+ * deprecate `amp_global_css` helper - will be removed in 2.0
6
+
7
+ ### 1.0
8
+
9
+ * deprecate `amp_resources` helper - will be removed in 1.0
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+
6
+ # Travis CI
7
+ gem 'rspec-rails', '~> 3.5', '>= 3.5.2'
8
+
9
+ # Development
10
+ group :development do
11
+ gem 'rubocop', '~> 0.47.1', require: false
12
+ end
@@ -0,0 +1,162 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ amphtml (0.7.6)
5
+ highline (~> 1.7)
6
+ launchy (~> 2.4)
7
+ rails (>= 4.0.0)
8
+ thor (~> 0.19.4)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actioncable (5.1.3)
14
+ actionpack (= 5.1.3)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (~> 0.6.1)
17
+ actionmailer (5.1.3)
18
+ actionpack (= 5.1.3)
19
+ actionview (= 5.1.3)
20
+ activejob (= 5.1.3)
21
+ mail (~> 2.5, >= 2.5.4)
22
+ rails-dom-testing (~> 2.0)
23
+ actionpack (5.1.3)
24
+ actionview (= 5.1.3)
25
+ activesupport (= 5.1.3)
26
+ rack (~> 2.0)
27
+ rack-test (~> 0.6.3)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ actionview (5.1.3)
31
+ activesupport (= 5.1.3)
32
+ builder (~> 3.1)
33
+ erubi (~> 1.4)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
36
+ activejob (5.1.3)
37
+ activesupport (= 5.1.3)
38
+ globalid (>= 0.3.6)
39
+ activemodel (5.1.3)
40
+ activesupport (= 5.1.3)
41
+ activerecord (5.1.3)
42
+ activemodel (= 5.1.3)
43
+ activesupport (= 5.1.3)
44
+ arel (~> 8.0)
45
+ activesupport (5.1.3)
46
+ concurrent-ruby (~> 1.0, >= 1.0.2)
47
+ i18n (~> 0.7)
48
+ minitest (~> 5.1)
49
+ tzinfo (~> 1.1)
50
+ addressable (2.5.1)
51
+ public_suffix (~> 2.0, >= 2.0.2)
52
+ arel (8.0.0)
53
+ ast (2.3.0)
54
+ builder (3.2.3)
55
+ concurrent-ruby (1.0.5)
56
+ diff-lcs (1.3)
57
+ erubi (1.6.1)
58
+ globalid (0.4.0)
59
+ activesupport (>= 4.2.0)
60
+ highline (1.7.8)
61
+ i18n (0.8.6)
62
+ launchy (2.4.3)
63
+ addressable (~> 2.3)
64
+ loofah (2.0.3)
65
+ nokogiri (>= 1.5.9)
66
+ mail (2.6.6)
67
+ mime-types (>= 1.16, < 4)
68
+ method_source (0.8.2)
69
+ mime-types (3.1)
70
+ mime-types-data (~> 3.2015)
71
+ mime-types-data (3.2016.0521)
72
+ mini_portile2 (2.2.0)
73
+ minitest (5.10.3)
74
+ nio4r (2.1.0)
75
+ nokogiri (1.8.0)
76
+ mini_portile2 (~> 2.2.0)
77
+ nokogiri (1.8.0-x86-mingw32)
78
+ mini_portile2 (~> 2.2.0)
79
+ parser (2.4.0.0)
80
+ ast (~> 2.2)
81
+ powerpack (0.1.1)
82
+ public_suffix (2.0.5)
83
+ rack (2.0.3)
84
+ rack-test (0.6.3)
85
+ rack (>= 1.0)
86
+ rails (5.1.3)
87
+ actioncable (= 5.1.3)
88
+ actionmailer (= 5.1.3)
89
+ actionpack (= 5.1.3)
90
+ actionview (= 5.1.3)
91
+ activejob (= 5.1.3)
92
+ activemodel (= 5.1.3)
93
+ activerecord (= 5.1.3)
94
+ activesupport (= 5.1.3)
95
+ bundler (>= 1.3.0)
96
+ railties (= 5.1.3)
97
+ sprockets-rails (>= 2.0.0)
98
+ rails-dom-testing (2.0.3)
99
+ activesupport (>= 4.2.0)
100
+ nokogiri (>= 1.6)
101
+ rails-html-sanitizer (1.0.3)
102
+ loofah (~> 2.0)
103
+ railties (5.1.3)
104
+ actionpack (= 5.1.3)
105
+ activesupport (= 5.1.3)
106
+ method_source
107
+ rake (>= 0.8.7)
108
+ thor (>= 0.18.1, < 2.0)
109
+ rainbow (2.2.2)
110
+ rake
111
+ rake (12.0.0)
112
+ rspec-core (3.6.0)
113
+ rspec-support (~> 3.6.0)
114
+ rspec-expectations (3.6.0)
115
+ diff-lcs (>= 1.2.0, < 2.0)
116
+ rspec-support (~> 3.6.0)
117
+ rspec-mocks (3.6.0)
118
+ diff-lcs (>= 1.2.0, < 2.0)
119
+ rspec-support (~> 3.6.0)
120
+ rspec-rails (3.6.1)
121
+ actionpack (>= 3.0)
122
+ activesupport (>= 3.0)
123
+ railties (>= 3.0)
124
+ rspec-core (~> 3.6.0)
125
+ rspec-expectations (~> 3.6.0)
126
+ rspec-mocks (~> 3.6.0)
127
+ rspec-support (~> 3.6.0)
128
+ rspec-support (3.6.0)
129
+ rubocop (0.47.1)
130
+ parser (>= 2.3.3.1, < 3.0)
131
+ powerpack (~> 0.1)
132
+ rainbow (>= 1.99.1, < 3.0)
133
+ ruby-progressbar (~> 1.7)
134
+ unicode-display_width (~> 1.0, >= 1.0.1)
135
+ ruby-progressbar (1.8.1)
136
+ sprockets (3.7.1)
137
+ concurrent-ruby (~> 1.0)
138
+ rack (> 1, < 3)
139
+ sprockets-rails (3.2.0)
140
+ actionpack (>= 4.0)
141
+ activesupport (>= 4.0)
142
+ sprockets (>= 3.0.0)
143
+ thor (0.19.4)
144
+ thread_safe (0.3.6)
145
+ tzinfo (1.2.3)
146
+ thread_safe (~> 0.1)
147
+ unicode-display_width (1.3.0)
148
+ websocket-driver (0.6.5)
149
+ websocket-extensions (>= 0.1.0)
150
+ websocket-extensions (0.1.2)
151
+
152
+ PLATFORMS
153
+ ruby
154
+ x86-mingw32
155
+
156
+ DEPENDENCIES
157
+ amphtml!
158
+ rspec-rails (~> 3.5, >= 3.5.2)
159
+ rubocop (~> 0.47.1)
160
+
161
+ BUNDLED WITH
162
+ 1.15.4