amp-html 0.7.10 → 0.7.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/amp-html.gemspec +1 -1
  5. data/lib/amp-html.rb +12 -12
  6. data/lib/{amp_html → amp-html}/cli.rb +0 -0
  7. data/lib/{amp_html → amp-html}/components/docs/README.md +0 -0
  8. data/lib/{amp_html → amp-html}/components/docs/ad.md +0 -0
  9. data/lib/{amp_html → amp-html}/components/docs/analytics.md +0 -0
  10. data/lib/{amp_html → amp-html}/components/docs/anim.md +0 -0
  11. data/lib/{amp_html → amp-html}/components/docs/fonts.md +0 -0
  12. data/lib/{amp_html → amp-html}/components/docs/forms.md +0 -0
  13. data/lib/{amp_html → amp-html}/components/docs/iframe.md +0 -0
  14. data/lib/{amp_html → amp-html}/components/docs/javascript.md +0 -0
  15. data/lib/{amp_html → amp-html}/components/docs/lists.md +0 -0
  16. data/lib/{amp_html → amp-html}/components/docs/media.md +0 -0
  17. data/lib/{amp_html → amp-html}/components/docs/mustache.md +0 -0
  18. data/lib/{amp_html → amp-html}/components/docs/notifications.md +0 -0
  19. data/lib/{amp_html → amp-html}/components/docs/schema.md +0 -0
  20. data/lib/{amp_html → amp-html}/components/docs/service_worker.md +0 -0
  21. data/lib/{amp_html → amp-html}/components/docs/social.md +0 -0
  22. data/lib/{amp_html → amp-html}/components/docs/stylesheets.md +0 -0
  23. data/lib/{amp_html → amp-html}/components/help.rb +2 -2
  24. data/lib/{amp_html → amp-html}/components/install.rb +4 -4
  25. data/lib/{amp_html → amp-html}/components/templates/ERROR.md +0 -0
  26. data/lib/{amp_html → amp-html}/components/templates/README.md +0 -0
  27. data/lib/{amp_html → amp-html}/configuration.rb +0 -0
  28. data/lib/{amp_html → amp-html}/configuration/docs/README.md +0 -0
  29. data/lib/{amp_html → amp-html}/configuration/help.rb +1 -1
  30. data/lib/{amp_html → amp-html}/helpers/docs/README.md +0 -0
  31. data/lib/{amp_html → amp-html}/helpers/docs/amp.md +0 -0
  32. data/lib/{amp_html → amp-html}/helpers/docs/amp_ad.md +0 -0
  33. data/lib/{amp_html → amp-html}/helpers/docs/amp_analytics.md +0 -0
  34. data/lib/{amp_html → amp-html}/helpers/docs/amp_anim.md +0 -0
  35. data/lib/{amp_html → amp-html}/helpers/docs/amp_audio.md +0 -0
  36. data/lib/{amp_html → amp-html}/helpers/docs/amp_auto_ads.md +0 -0
  37. data/lib/{amp_html → amp-html}/helpers/docs/amp_close_user_notification_button.md +0 -0
  38. data/lib/{amp_html → amp-html}/helpers/docs/amp_css.md +0 -0
  39. data/lib/{amp_html → amp-html}/helpers/docs/amp_css_link.md +0 -0
  40. data/lib/{amp_html → amp-html}/helpers/docs/amp_custom_ad.md +0 -0
  41. data/lib/{amp_html → amp-html}/helpers/docs/amp_document_link.md +0 -0
  42. data/lib/{amp_html → amp-html}/helpers/docs/amp_embed.md +0 -0
  43. data/lib/{amp_html → amp-html}/helpers/docs/amp_facebook.md +0 -0
  44. data/lib/{amp_html → amp-html}/helpers/docs/amp_fallback.md +0 -0
  45. data/lib/{amp_html → amp-html}/helpers/docs/amp_font.md +0 -0
  46. data/lib/{amp_html → amp-html}/helpers/docs/amp_font_link.md +0 -0
  47. data/lib/{amp_html → amp-html}/helpers/docs/amp_form.md +0 -0
  48. data/lib/{amp_html → amp-html}/helpers/docs/amp_form_response.md +0 -0
  49. data/lib/{amp_html → amp-html}/helpers/docs/amp_gfycat.md +0 -0
  50. data/lib/{amp_html → amp-html}/helpers/docs/amp_global_css.md +0 -0
  51. data/lib/{amp_html → amp-html}/helpers/docs/amp_google_analytics.md +0 -0
  52. data/lib/{amp_html → amp-html}/helpers/docs/amp_google_font.md +0 -0
  53. data/lib/{amp_html → amp-html}/helpers/docs/amp_head.md +0 -0
  54. data/lib/{amp_html → amp-html}/helpers/docs/amp_html_doctype.md +0 -0
  55. data/lib/{amp_html → amp-html}/helpers/docs/amp_iframe.md +0 -0
  56. data/lib/{amp_html → amp-html}/helpers/docs/amp_image.md +0 -0
  57. data/lib/{amp_html → amp-html}/helpers/docs/amp_input.md +0 -0
  58. data/lib/{amp_html → amp-html}/helpers/docs/amp_instagram.md +0 -0
  59. data/lib/{amp_html → amp-html}/helpers/docs/amp_js.md +0 -0
  60. data/lib/{amp_html → amp-html}/helpers/docs/amp_link.md +0 -0
  61. data/lib/{amp_html → amp-html}/helpers/docs/amp_list.md +0 -0
  62. data/lib/{amp_html → amp-html}/helpers/docs/amp_live_list.md +0 -0
  63. data/lib/{amp_html → amp-html}/helpers/docs/amp_live_list_items.md +0 -0
  64. data/lib/{amp_html → amp-html}/helpers/docs/amp_live_list_pagination.md +0 -0
  65. data/lib/{amp_html → amp-html}/helpers/docs/amp_live_list_update.md +0 -0
  66. data/lib/{amp_html → amp-html}/helpers/docs/amp_mustache.md +0 -0
  67. data/lib/{amp_html → amp-html}/helpers/docs/amp_pin_it.md +0 -0
  68. data/lib/{amp_html → amp-html}/helpers/docs/amp_pin_widget.md +0 -0
  69. data/lib/{amp_html → amp-html}/helpers/docs/amp_pinterest_follow.md +0 -0
  70. data/lib/{amp_html → amp-html}/helpers/docs/amp_pixel.md +0 -0
  71. data/lib/{amp_html → amp-html}/helpers/docs/amp_placeholder.md +0 -0
  72. data/lib/{amp_html → amp-html}/helpers/docs/amp_reddit.md +0 -0
  73. data/lib/{amp_html → amp-html}/helpers/docs/amp_resources.md +0 -0
  74. data/lib/{amp_html → amp-html}/helpers/docs/amp_selector.md +0 -0
  75. data/lib/{amp_html → amp-html}/helpers/docs/amp_serviceworker.md +0 -0
  76. data/lib/{amp_html → amp-html}/helpers/docs/amp_social_share.md +0 -0
  77. data/lib/{amp_html → amp-html}/helpers/docs/amp_soundcloud.md +0 -0
  78. data/lib/{amp_html → amp-html}/helpers/docs/amp_twitter.md +0 -0
  79. data/lib/{amp_html → amp-html}/helpers/docs/amp_user_notification.md +0 -0
  80. data/lib/{amp_html → amp-html}/helpers/docs/amp_video.md +0 -0
  81. data/lib/{amp_html → amp-html}/helpers/docs/amp_video_ad.md +0 -0
  82. data/lib/{amp_html → amp-html}/helpers/docs/amp_vine.md +0 -0
  83. data/lib/{amp_html → amp-html}/helpers/docs/amp_youtube.md +0 -0
  84. data/lib/{amp_html → amp-html}/helpers/docs/audio_tag.md +0 -0
  85. data/lib/{amp_html → amp-html}/helpers/docs/canonical_document_link.md +0 -0
  86. data/lib/{amp_html → amp-html}/helpers/docs/form_tag.md +0 -0
  87. data/lib/{amp_html → amp-html}/helpers/docs/image_tag.md +0 -0
  88. data/lib/{amp_html → amp-html}/helpers/docs/input_tag.md +0 -0
  89. data/lib/{amp_html → amp-html}/helpers/docs/javascript_include_tag.md +0 -0
  90. data/lib/{amp_html → amp-html}/helpers/docs/noscript_tag.md +0 -0
  91. data/lib/{amp_html → amp-html}/helpers/docs/schema_tag.md +0 -0
  92. data/lib/{amp_html → amp-html}/helpers/docs/stylesheet_link_tag.md +0 -0
  93. data/lib/{amp_html → amp-html}/helpers/docs/video_tag.md +0 -0
  94. data/lib/{amp_html → amp-html}/helpers/help.rb +3 -3
  95. data/lib/{amp_html → amp-html}/root.rb +0 -0
  96. data/lib/{amp_html → amp-html}/test.rb +11 -11
  97. data/lib/{amp_html → amp-html}/test/help.rb +1 -1
  98. data/lib/{amp_html → amp-html}/test/templates/README.md +0 -0
  99. data/lib/{amp_html → amp-html}/test/templates/css/!important.md +0 -0
  100. data/lib/{amp_html → amp-html}/test/templates/css/-amp-.md +0 -0
  101. data/lib/{amp_html → amp-html}/test/templates/css/-moz-binding.md +0 -0
  102. data/lib/{amp_html → amp-html}/test/templates/css/@import.md +0 -0
  103. data/lib/{amp_html → amp-html}/test/templates/css/behavior.md +0 -0
  104. data/lib/{amp_html → amp-html}/test/templates/css/filter.md +0 -0
  105. data/lib/{amp_html → amp-html}/test/templates/css/i-amp-.md +0 -0
  106. data/lib/{amp_html → amp-html}/test/templates/css/overflow.md +0 -0
  107. data/lib/{amp_html → amp-html}/test/templates/html/applet.md +0 -0
  108. data/lib/{amp_html → amp-html}/test/templates/html/audio.md +0 -0
  109. data/lib/{amp_html → amp-html}/test/templates/html/base.md +0 -0
  110. data/lib/{amp_html → amp-html}/test/templates/html/embed.md +0 -0
  111. data/lib/{amp_html → amp-html}/test/templates/html/frame.md +0 -0
  112. data/lib/{amp_html → amp-html}/test/templates/html/frameset.md +0 -0
  113. data/lib/{amp_html → amp-html}/test/templates/html/http-equiv.md +0 -0
  114. data/lib/{amp_html → amp-html}/test/templates/html/iframe.md +0 -0
  115. data/lib/{amp_html → amp-html}/test/templates/html/img.md +0 -0
  116. data/lib/{amp_html → amp-html}/test/templates/html/javascript_include_tag.md +0 -0
  117. data/lib/{amp_html → amp-html}/test/templates/html/object.md +0 -0
  118. data/lib/{amp_html → amp-html}/test/templates/html/onclick.md +0 -0
  119. data/lib/{amp_html → amp-html}/test/templates/html/onmousehover.md +0 -0
  120. data/lib/{amp_html → amp-html}/test/templates/html/param.md +0 -0
  121. data/lib/{amp_html → amp-html}/test/templates/html/stylesheet_link_tag.md +0 -0
  122. data/lib/{amp_html → amp-html}/test/templates/html/video.md +0 -0
  123. data/lib/{amp_html → amp-html}/test/templates/markup/!doctype.md +0 -0
  124. data/lib/{amp_html → amp-html}/test/templates/markup/amp_document_link.md +0 -0
  125. data/lib/{amp_html → amp-html}/test/templates/markup/amp_head.md +0 -0
  126. data/lib/{amp_html → amp-html}/test/templates/markup/amp_html_doctype.md +0 -0
  127. data/lib/{amp_html → amp-html}/test/templates/markup/canonical_document_link.md +0 -0
  128. data/lib/{amp_html → amp-html}/test/templates/markup/head_body.md +0 -0
  129. data/lib/{amp_html → amp-html}/test/templates/markup/html.md +0 -0
  130. data/lib/{amp_html → amp-html}/test/templates/markup/meta_viewport.md +0 -0
  131. data/lib/{amp_html → amp-html}/validate.rb +0 -0
  132. data/lib/{amp_html → amp-html}/validate/help.rb +1 -1
  133. data/lib/{amp_html → amp-html}/validate/templates/README.md +0 -0
  134. data/lib/{amp_html → amp-html}/version.rb +1 -1
  135. metadata +130 -130
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53593a0fcf5bbfc44c78fa8b1562c719b94b65c8
4
- data.tar.gz: a638c3593fa06c63984a65d5b2622440bf4fbe96
3
+ metadata.gz: e1c34055d61449fff6ade83e37cddee936596dc4
4
+ data.tar.gz: 23c58db6eedf3beaa4750c3c1b3df99aa65ca5fa
5
5
  SHA512:
6
- metadata.gz: 49872a44d7db73a9409cd9f72587ba191a85ecc28dca705352d3b6828f2e97e81297d411b63df444b63e444f970fe6fa5cc6f470c1fb95aed995976e839cd777
7
- data.tar.gz: 05d0e9c75ec85bab956789593c99ee07b80b7b7d25253505dce295a38fef81e79ae3bcb27d747d944f46591b47b455caeb57f862ed7405f97123432fcb28f5c7
6
+ metadata.gz: ceb8de1c706701e9369f3236ebc284ec637517af0a1e47076079525b1b4a681b2dc92b0661f9edea11b6216615400d13a3596ce37b170b993ef70072aeef34c8
7
+ data.tar.gz: dde2fa3bc670da52cb13d7ea31023e40c4e11e89e2ad768b7b9332f486b0c2ee8dc827425b085826fc7f23c6c0fa349152566abe03c15633fbf2ee627be44169
@@ -4,6 +4,10 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 0.7.11 (Pre-release) - 2017-08-24
8
+
9
+ * minor bugfixes
10
+
7
11
  ### 0.7.10 (Pre-release) - 2017-08-24
8
12
 
9
13
  * minor bugfixes
data/README.md CHANGED
@@ -37,7 +37,7 @@ Use the powerful features of AMP to make your Rails app consistently fast, beaut
37
37
 
38
38
  ### Quick info
39
39
 
40
- #### Latest release: 0.7.10 (Pre-release)
40
+ #### Latest release: 0.7.11 (Pre-release)
41
41
 
42
42
  [**Changelog**](https://github.com/slooob/amp-html/blob/master/CHANGELOG.md), [Grab it from Rubygems](https://rubygems.org/gems/amp-html)
43
43
 
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path File.join('..', 'lib', 'amp_html', 'version'), __FILE__
2
+ require File.expand_path File.join('..', 'lib', 'amp-html', 'version'), __FILE__
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = 'amp-html'
@@ -6,22 +6,22 @@ end
6
6
 
7
7
  module AmpHtml
8
8
 
9
- require 'amp_html/root'
10
- require 'amp_html/version'
9
+ require 'amp-html/root'
10
+ require 'amp-html/version'
11
11
 
12
- require 'amp_html/cli'
12
+ require 'amp-html/cli'
13
13
 
14
- require 'amp_html/configuration'
15
- require 'amp_html/configuration/help'
14
+ require 'amp-html/configuration'
15
+ require 'amp-html/configuration/help'
16
16
 
17
- require 'amp_html/test'
18
- require 'amp_html/validate'
17
+ require 'amp-html/test'
18
+ require 'amp-html/validate'
19
19
 
20
- require 'amp_html/components/install'
20
+ require 'amp-html/components/install'
21
21
 
22
- require 'amp_html/helpers/help'
23
- require 'amp_html/components/help'
24
- require 'amp_html/test/help'
25
- require 'amp_html/validate/help'
22
+ require 'amp-html/helpers/help'
23
+ require 'amp-html/components/help'
24
+ require 'amp-html/test/help'
25
+ require 'amp-html/validate/help'
26
26
 
27
27
  end
File without changes
@@ -3,12 +3,12 @@ module AmpHtml
3
3
  class Help
4
4
 
5
5
  def self.all
6
- puts IO.read File.join AmpHtml.root, 'amp_html', 'components', 'docs', 'README.md'
6
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'components', 'docs', 'README.md'
7
7
  end
8
8
 
9
9
  def self.component name
10
10
  begin
11
- puts IO.read File.join AmpHtml.root, 'amp_html', 'components', 'docs', "#{name}.md"
11
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'components', 'docs', "#{name}.md"
12
12
  rescue Exception
13
13
  warn 'Component is not available'
14
14
  end
@@ -9,9 +9,9 @@ module AmpHtml
9
9
  success1 = system "rails g amp-html:components#{ ' -s' if AmpHtml.split_view }#{ ' -f ' + AmpHtml.raw_format if AmpHtml.raw_format }#{ ' --analytics' if AmpHtml.components && AmpHtml.components.include?('analytics') || AmpHtml.components && AmpHtml.components.include?('notifications') }#{ ' --iframe' if AmpHtml.components && AmpHtml.components.include?('iframe') || AmpHtml.components && AmpHtml.components.include?('javascript') || AmpHtml.components && AmpHtml.components.include?('service_worker') }#{' --notifications' if AmpHtml.components && AmpHtml.components.include?('notifications') }#{ ' --anim' if AmpHtml.components && AmpHtml.components.include?('anim') }#{ ' --ad' if AmpHtml.components && AmpHtml.components.include?('ad') }#{ ' --social' if AmpHtml.components && AmpHtml.components.include?('social') }#{ ' --javascript' if (AmpHtml.components && AmpHtml.components.include?('javascript')) }#{ ' --service_worker' if (AmpHtml.components && AmpHtml.components.include?('service_worker')) }#{ ' --lists' if (AmpHtml.components && AmpHtml.components.include?('lists')) }"
10
10
  success2 = system "rails g amp-html:install --only_initializer#{ ' --javascript' if (AmpHtml.components && AmpHtml.components.include?('javascript')) }"
11
11
  if success1 && success2
12
- puts IO.read File.join AmpHtml.root, 'amp_html', 'components', 'templates', 'README.md'
12
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'components', 'templates', 'README.md'
13
13
  else
14
- puts IO.read File.join AmpHtml.root, 'amp_html', 'components', 'templates', 'ERROR.md'
14
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'components', 'templates', 'ERROR.md'
15
15
  end
16
16
  end
17
17
 
@@ -22,9 +22,9 @@ module AmpHtml
22
22
  success3 = system "rails g amp-html:views --only_resources#{ ' --javascript' if (AmpHtml.components && AmpHtml.components.include?('javascript')) || component == 'javascript' }"
23
23
  if success1 && success2 && success3
24
24
  puts "Successfully installed '#{component}' component!"
25
- puts IO.read File.join AmpHtml.root, 'amp_html', 'components', 'templates', 'README.md'
25
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'components', 'templates', 'README.md'
26
26
  else
27
- puts IO.read File.join AmpHtml.root, 'amp_html', 'components', 'templates', 'ERROR.md'
27
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'components', 'templates', 'ERROR.md'
28
28
  end
29
29
  end
30
30
  end
@@ -3,7 +3,7 @@ module AmpHtml
3
3
  class Help
4
4
 
5
5
  def self.all
6
- puts IO.read File.join AmpHtml.root, 'amp_html', 'configuration', 'docs', 'README.md'
6
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'configuration', 'docs', 'README.md'
7
7
  end
8
8
 
9
9
  end
@@ -3,15 +3,15 @@ module AmpHtml
3
3
  class Help
4
4
 
5
5
  def self.all
6
- puts IO.read File.join AmpHtml.root, 'amp_html', 'helpers', 'docs', 'README.md'
6
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'helpers', 'docs', 'README.md'
7
7
  end
8
8
 
9
9
  def self.helper name
10
10
  begin
11
11
  if name == 'amp?'
12
- puts IO.read File.join AmpHtml.root, 'amp_html', 'helpers', 'docs', 'amp.md'
12
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'helpers', 'docs', 'amp.md'
13
13
  else
14
- puts IO.read File.join AmpHtml.root, 'amp_html', 'helpers', 'docs', "#{name}.md"
14
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'helpers', 'docs', "#{name}.md"
15
15
  end
16
16
  rescue Exception
17
17
  warn 'Helper is not available'
File without changes
@@ -105,12 +105,12 @@ module AmpHtml
105
105
 
106
106
  def self.markup_test results
107
107
  if results.present?
108
- puts check1 = IO.read(File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'markup', 'meta_viewport.md') unless results.has_value?('<meta name="viewport" content="width=device-width,minimum-scale=1')
109
- puts check2 = IO.read(File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'markup', 'head_body.md') unless results.has_value?('<head') || results.has_value?('<body')
110
- puts check3 = IO.read(File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'markup', 'amp_html_doctype.md') unless results.has_value?('amp_html_doctype')
111
- puts check4 = IO.read(File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'markup', 'canonical_document_link.md') unless results.has_value?('canonical_document_link')
112
- puts check5 = IO.read(File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'markup', 'amp_head.md') unless results.has_value?('amp_head')
113
- puts check6 = IO.read(File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'markup', 'canonical_document_link.md') if AmpHtml.split_view && results.has_value?('amp_document_link') == false
108
+ puts check1 = IO.read(File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'markup', 'meta_viewport.md') unless results.has_value?('<meta name="viewport" content="width=device-width,minimum-scale=1')
109
+ puts check2 = IO.read(File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'markup', 'head_body.md') unless results.has_value?('<head') || results.has_value?('<body')
110
+ puts check3 = IO.read(File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'markup', 'amp_html_doctype.md') unless results.has_value?('amp_html_doctype')
111
+ puts check4 = IO.read(File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'markup', 'canonical_document_link.md') unless results.has_value?('canonical_document_link')
112
+ puts check5 = IO.read(File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'markup', 'amp_head.md') unless results.has_value?('amp_head')
113
+ puts check6 = IO.read(File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'markup', 'canonical_document_link.md') if AmpHtml.split_view && results.has_value?('amp_document_link') == false
114
114
  end
115
115
  unless check1 && check2 && check3 && check4 && check5 && check6
116
116
  return true
@@ -125,10 +125,10 @@ module AmpHtml
125
125
  results.each do |source, string|
126
126
  case string
127
127
  when "<input type='image'" || "<input type='button'" || "<input type='password'" || "<input type='file'"
128
- puts IO.read File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'html', 'input.md'
128
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'html', 'input.md'
129
129
  puts source
130
130
  else
131
- puts IO.read(File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'html', "#{string.gsub('<', '')}.md")
131
+ puts IO.read(File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'html', "#{string.gsub('<', '')}.md")
132
132
  puts source
133
133
  end
134
134
  end
@@ -145,15 +145,15 @@ module AmpHtml
145
145
  results.each do |source, string|
146
146
  case string
147
147
  when 'overflow: auto' || 'overflow: scroll' || 'overflow-x: auto' || 'overflow-x: scroll' || 'overflow-y: auto' || 'overflow-y: scroll'
148
- puts IO.read File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'css', 'overflow.md'
148
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'css', 'overflow.md'
149
149
  puts source
150
150
  when '-amp-'
151
151
  unless source.include? 'application/amp/_resources.html'
152
- puts IO.read File.join AmpHtml.root, 'amp_html', 'test', "templates', 'css', "#{string}.md"
152
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'test', "templates', 'css', "#{string}.md"
153
153
  puts source
154
154
  end
155
155
  else
156
- puts IO.read File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'css', "#{string}.md"
156
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'css', "#{string}.md"
157
157
  puts source
158
158
  end
159
159
  end
@@ -3,7 +3,7 @@ module AmpHtml
3
3
  class Help
4
4
 
5
5
  def self.all
6
- puts IO.read File.join AmpHtml.root, 'amp_html', 'test', 'templates', 'README.md'
6
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'test', 'templates', 'README.md'
7
7
  end
8
8
 
9
9
  end
File without changes
@@ -3,7 +3,7 @@ module AmpHtml
3
3
  class Help
4
4
 
5
5
  def self.all
6
- puts IO.read File.join AmpHtml.root, 'amp_html', 'validate', 'templates', 'README.md'
6
+ puts IO.read File.join AmpHtml.root, 'amp-html', 'validate', 'templates', 'README.md'
7
7
  end
8
8
 
9
9
  end
@@ -1,6 +1,6 @@
1
1
  module AmpHtml
2
2
 
3
- VERSION = '0.7.10'
3
+ VERSION = '0.7.11'
4
4
 
5
5
  class Version
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amp-html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.10
4
+ version: 0.7.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
@@ -95,135 +95,135 @@ files:
95
95
  - amp-html.gemspec
96
96
  - bin/amp-html
97
97
  - lib/amp-html.rb
98
- - lib/amp_html/cli.rb
99
- - lib/amp_html/components/docs/README.md
100
- - lib/amp_html/components/docs/ad.md
101
- - lib/amp_html/components/docs/analytics.md
102
- - lib/amp_html/components/docs/anim.md
103
- - lib/amp_html/components/docs/fonts.md
104
- - lib/amp_html/components/docs/forms.md
105
- - lib/amp_html/components/docs/iframe.md
106
- - lib/amp_html/components/docs/javascript.md
107
- - lib/amp_html/components/docs/lists.md
108
- - lib/amp_html/components/docs/media.md
109
- - lib/amp_html/components/docs/mustache.md
110
- - lib/amp_html/components/docs/notifications.md
111
- - lib/amp_html/components/docs/schema.md
112
- - lib/amp_html/components/docs/service_worker.md
113
- - lib/amp_html/components/docs/social.md
114
- - lib/amp_html/components/docs/stylesheets.md
115
- - lib/amp_html/components/help.rb
116
- - lib/amp_html/components/install.rb
117
- - lib/amp_html/components/templates/ERROR.md
118
- - lib/amp_html/components/templates/README.md
119
- - lib/amp_html/configuration.rb
120
- - lib/amp_html/configuration/docs/README.md
121
- - lib/amp_html/configuration/help.rb
122
- - lib/amp_html/helpers/docs/README.md
123
- - lib/amp_html/helpers/docs/amp.md
124
- - lib/amp_html/helpers/docs/amp_ad.md
125
- - lib/amp_html/helpers/docs/amp_analytics.md
126
- - lib/amp_html/helpers/docs/amp_anim.md
127
- - lib/amp_html/helpers/docs/amp_audio.md
128
- - lib/amp_html/helpers/docs/amp_auto_ads.md
129
- - lib/amp_html/helpers/docs/amp_close_user_notification_button.md
130
- - lib/amp_html/helpers/docs/amp_css.md
131
- - lib/amp_html/helpers/docs/amp_css_link.md
132
- - lib/amp_html/helpers/docs/amp_custom_ad.md
133
- - lib/amp_html/helpers/docs/amp_document_link.md
134
- - lib/amp_html/helpers/docs/amp_embed.md
135
- - lib/amp_html/helpers/docs/amp_facebook.md
136
- - lib/amp_html/helpers/docs/amp_fallback.md
137
- - lib/amp_html/helpers/docs/amp_font.md
138
- - lib/amp_html/helpers/docs/amp_font_link.md
139
- - lib/amp_html/helpers/docs/amp_form.md
140
- - lib/amp_html/helpers/docs/amp_form_response.md
141
- - lib/amp_html/helpers/docs/amp_gfycat.md
142
- - lib/amp_html/helpers/docs/amp_global_css.md
143
- - lib/amp_html/helpers/docs/amp_google_analytics.md
144
- - lib/amp_html/helpers/docs/amp_google_font.md
145
- - lib/amp_html/helpers/docs/amp_head.md
146
- - lib/amp_html/helpers/docs/amp_html_doctype.md
147
- - lib/amp_html/helpers/docs/amp_iframe.md
148
- - lib/amp_html/helpers/docs/amp_image.md
149
- - lib/amp_html/helpers/docs/amp_input.md
150
- - lib/amp_html/helpers/docs/amp_instagram.md
151
- - lib/amp_html/helpers/docs/amp_js.md
152
- - lib/amp_html/helpers/docs/amp_link.md
153
- - lib/amp_html/helpers/docs/amp_list.md
154
- - lib/amp_html/helpers/docs/amp_live_list.md
155
- - lib/amp_html/helpers/docs/amp_live_list_items.md
156
- - lib/amp_html/helpers/docs/amp_live_list_pagination.md
157
- - lib/amp_html/helpers/docs/amp_live_list_update.md
158
- - lib/amp_html/helpers/docs/amp_mustache.md
159
- - lib/amp_html/helpers/docs/amp_pin_it.md
160
- - lib/amp_html/helpers/docs/amp_pin_widget.md
161
- - lib/amp_html/helpers/docs/amp_pinterest_follow.md
162
- - lib/amp_html/helpers/docs/amp_pixel.md
163
- - lib/amp_html/helpers/docs/amp_placeholder.md
164
- - lib/amp_html/helpers/docs/amp_reddit.md
165
- - lib/amp_html/helpers/docs/amp_resources.md
166
- - lib/amp_html/helpers/docs/amp_selector.md
167
- - lib/amp_html/helpers/docs/amp_serviceworker.md
168
- - lib/amp_html/helpers/docs/amp_social_share.md
169
- - lib/amp_html/helpers/docs/amp_soundcloud.md
170
- - lib/amp_html/helpers/docs/amp_twitter.md
171
- - lib/amp_html/helpers/docs/amp_user_notification.md
172
- - lib/amp_html/helpers/docs/amp_video.md
173
- - lib/amp_html/helpers/docs/amp_video_ad.md
174
- - lib/amp_html/helpers/docs/amp_vine.md
175
- - lib/amp_html/helpers/docs/amp_youtube.md
176
- - lib/amp_html/helpers/docs/audio_tag.md
177
- - lib/amp_html/helpers/docs/canonical_document_link.md
178
- - lib/amp_html/helpers/docs/form_tag.md
179
- - lib/amp_html/helpers/docs/image_tag.md
180
- - lib/amp_html/helpers/docs/input_tag.md
181
- - lib/amp_html/helpers/docs/javascript_include_tag.md
182
- - lib/amp_html/helpers/docs/noscript_tag.md
183
- - lib/amp_html/helpers/docs/schema_tag.md
184
- - lib/amp_html/helpers/docs/stylesheet_link_tag.md
185
- - lib/amp_html/helpers/docs/video_tag.md
186
- - lib/amp_html/helpers/help.rb
187
- - lib/amp_html/root.rb
188
- - lib/amp_html/test.rb
189
- - lib/amp_html/test/help.rb
190
- - lib/amp_html/test/templates/README.md
191
- - lib/amp_html/test/templates/css/!important.md
192
- - lib/amp_html/test/templates/css/-amp-.md
193
- - lib/amp_html/test/templates/css/-moz-binding.md
194
- - lib/amp_html/test/templates/css/@import.md
195
- - lib/amp_html/test/templates/css/behavior.md
196
- - lib/amp_html/test/templates/css/filter.md
197
- - lib/amp_html/test/templates/css/i-amp-.md
198
- - lib/amp_html/test/templates/css/overflow.md
199
- - lib/amp_html/test/templates/html/applet.md
200
- - lib/amp_html/test/templates/html/audio.md
201
- - lib/amp_html/test/templates/html/base.md
202
- - lib/amp_html/test/templates/html/embed.md
203
- - lib/amp_html/test/templates/html/frame.md
204
- - lib/amp_html/test/templates/html/frameset.md
205
- - lib/amp_html/test/templates/html/http-equiv.md
206
- - lib/amp_html/test/templates/html/iframe.md
207
- - lib/amp_html/test/templates/html/img.md
208
- - lib/amp_html/test/templates/html/javascript_include_tag.md
209
- - lib/amp_html/test/templates/html/object.md
210
- - lib/amp_html/test/templates/html/onclick.md
211
- - lib/amp_html/test/templates/html/onmousehover.md
212
- - lib/amp_html/test/templates/html/param.md
213
- - lib/amp_html/test/templates/html/stylesheet_link_tag.md
214
- - lib/amp_html/test/templates/html/video.md
215
- - lib/amp_html/test/templates/markup/!doctype.md
216
- - lib/amp_html/test/templates/markup/amp_document_link.md
217
- - lib/amp_html/test/templates/markup/amp_head.md
218
- - lib/amp_html/test/templates/markup/amp_html_doctype.md
219
- - lib/amp_html/test/templates/markup/canonical_document_link.md
220
- - lib/amp_html/test/templates/markup/head_body.md
221
- - lib/amp_html/test/templates/markup/html.md
222
- - lib/amp_html/test/templates/markup/meta_viewport.md
223
- - lib/amp_html/validate.rb
224
- - lib/amp_html/validate/help.rb
225
- - lib/amp_html/validate/templates/README.md
226
- - lib/amp_html/version.rb
98
+ - lib/amp-html/cli.rb
99
+ - lib/amp-html/components/docs/README.md
100
+ - lib/amp-html/components/docs/ad.md
101
+ - lib/amp-html/components/docs/analytics.md
102
+ - lib/amp-html/components/docs/anim.md
103
+ - lib/amp-html/components/docs/fonts.md
104
+ - lib/amp-html/components/docs/forms.md
105
+ - lib/amp-html/components/docs/iframe.md
106
+ - lib/amp-html/components/docs/javascript.md
107
+ - lib/amp-html/components/docs/lists.md
108
+ - lib/amp-html/components/docs/media.md
109
+ - lib/amp-html/components/docs/mustache.md
110
+ - lib/amp-html/components/docs/notifications.md
111
+ - lib/amp-html/components/docs/schema.md
112
+ - lib/amp-html/components/docs/service_worker.md
113
+ - lib/amp-html/components/docs/social.md
114
+ - lib/amp-html/components/docs/stylesheets.md
115
+ - lib/amp-html/components/help.rb
116
+ - lib/amp-html/components/install.rb
117
+ - lib/amp-html/components/templates/ERROR.md
118
+ - lib/amp-html/components/templates/README.md
119
+ - lib/amp-html/configuration.rb
120
+ - lib/amp-html/configuration/docs/README.md
121
+ - lib/amp-html/configuration/help.rb
122
+ - lib/amp-html/helpers/docs/README.md
123
+ - lib/amp-html/helpers/docs/amp.md
124
+ - lib/amp-html/helpers/docs/amp_ad.md
125
+ - lib/amp-html/helpers/docs/amp_analytics.md
126
+ - lib/amp-html/helpers/docs/amp_anim.md
127
+ - lib/amp-html/helpers/docs/amp_audio.md
128
+ - lib/amp-html/helpers/docs/amp_auto_ads.md
129
+ - lib/amp-html/helpers/docs/amp_close_user_notification_button.md
130
+ - lib/amp-html/helpers/docs/amp_css.md
131
+ - lib/amp-html/helpers/docs/amp_css_link.md
132
+ - lib/amp-html/helpers/docs/amp_custom_ad.md
133
+ - lib/amp-html/helpers/docs/amp_document_link.md
134
+ - lib/amp-html/helpers/docs/amp_embed.md
135
+ - lib/amp-html/helpers/docs/amp_facebook.md
136
+ - lib/amp-html/helpers/docs/amp_fallback.md
137
+ - lib/amp-html/helpers/docs/amp_font.md
138
+ - lib/amp-html/helpers/docs/amp_font_link.md
139
+ - lib/amp-html/helpers/docs/amp_form.md
140
+ - lib/amp-html/helpers/docs/amp_form_response.md
141
+ - lib/amp-html/helpers/docs/amp_gfycat.md
142
+ - lib/amp-html/helpers/docs/amp_global_css.md
143
+ - lib/amp-html/helpers/docs/amp_google_analytics.md
144
+ - lib/amp-html/helpers/docs/amp_google_font.md
145
+ - lib/amp-html/helpers/docs/amp_head.md
146
+ - lib/amp-html/helpers/docs/amp_html_doctype.md
147
+ - lib/amp-html/helpers/docs/amp_iframe.md
148
+ - lib/amp-html/helpers/docs/amp_image.md
149
+ - lib/amp-html/helpers/docs/amp_input.md
150
+ - lib/amp-html/helpers/docs/amp_instagram.md
151
+ - lib/amp-html/helpers/docs/amp_js.md
152
+ - lib/amp-html/helpers/docs/amp_link.md
153
+ - lib/amp-html/helpers/docs/amp_list.md
154
+ - lib/amp-html/helpers/docs/amp_live_list.md
155
+ - lib/amp-html/helpers/docs/amp_live_list_items.md
156
+ - lib/amp-html/helpers/docs/amp_live_list_pagination.md
157
+ - lib/amp-html/helpers/docs/amp_live_list_update.md
158
+ - lib/amp-html/helpers/docs/amp_mustache.md
159
+ - lib/amp-html/helpers/docs/amp_pin_it.md
160
+ - lib/amp-html/helpers/docs/amp_pin_widget.md
161
+ - lib/amp-html/helpers/docs/amp_pinterest_follow.md
162
+ - lib/amp-html/helpers/docs/amp_pixel.md
163
+ - lib/amp-html/helpers/docs/amp_placeholder.md
164
+ - lib/amp-html/helpers/docs/amp_reddit.md
165
+ - lib/amp-html/helpers/docs/amp_resources.md
166
+ - lib/amp-html/helpers/docs/amp_selector.md
167
+ - lib/amp-html/helpers/docs/amp_serviceworker.md
168
+ - lib/amp-html/helpers/docs/amp_social_share.md
169
+ - lib/amp-html/helpers/docs/amp_soundcloud.md
170
+ - lib/amp-html/helpers/docs/amp_twitter.md
171
+ - lib/amp-html/helpers/docs/amp_user_notification.md
172
+ - lib/amp-html/helpers/docs/amp_video.md
173
+ - lib/amp-html/helpers/docs/amp_video_ad.md
174
+ - lib/amp-html/helpers/docs/amp_vine.md
175
+ - lib/amp-html/helpers/docs/amp_youtube.md
176
+ - lib/amp-html/helpers/docs/audio_tag.md
177
+ - lib/amp-html/helpers/docs/canonical_document_link.md
178
+ - lib/amp-html/helpers/docs/form_tag.md
179
+ - lib/amp-html/helpers/docs/image_tag.md
180
+ - lib/amp-html/helpers/docs/input_tag.md
181
+ - lib/amp-html/helpers/docs/javascript_include_tag.md
182
+ - lib/amp-html/helpers/docs/noscript_tag.md
183
+ - lib/amp-html/helpers/docs/schema_tag.md
184
+ - lib/amp-html/helpers/docs/stylesheet_link_tag.md
185
+ - lib/amp-html/helpers/docs/video_tag.md
186
+ - lib/amp-html/helpers/help.rb
187
+ - lib/amp-html/root.rb
188
+ - lib/amp-html/test.rb
189
+ - lib/amp-html/test/help.rb
190
+ - lib/amp-html/test/templates/README.md
191
+ - lib/amp-html/test/templates/css/!important.md
192
+ - lib/amp-html/test/templates/css/-amp-.md
193
+ - lib/amp-html/test/templates/css/-moz-binding.md
194
+ - lib/amp-html/test/templates/css/@import.md
195
+ - lib/amp-html/test/templates/css/behavior.md
196
+ - lib/amp-html/test/templates/css/filter.md
197
+ - lib/amp-html/test/templates/css/i-amp-.md
198
+ - lib/amp-html/test/templates/css/overflow.md
199
+ - lib/amp-html/test/templates/html/applet.md
200
+ - lib/amp-html/test/templates/html/audio.md
201
+ - lib/amp-html/test/templates/html/base.md
202
+ - lib/amp-html/test/templates/html/embed.md
203
+ - lib/amp-html/test/templates/html/frame.md
204
+ - lib/amp-html/test/templates/html/frameset.md
205
+ - lib/amp-html/test/templates/html/http-equiv.md
206
+ - lib/amp-html/test/templates/html/iframe.md
207
+ - lib/amp-html/test/templates/html/img.md
208
+ - lib/amp-html/test/templates/html/javascript_include_tag.md
209
+ - lib/amp-html/test/templates/html/object.md
210
+ - lib/amp-html/test/templates/html/onclick.md
211
+ - lib/amp-html/test/templates/html/onmousehover.md
212
+ - lib/amp-html/test/templates/html/param.md
213
+ - lib/amp-html/test/templates/html/stylesheet_link_tag.md
214
+ - lib/amp-html/test/templates/html/video.md
215
+ - lib/amp-html/test/templates/markup/!doctype.md
216
+ - lib/amp-html/test/templates/markup/amp_document_link.md
217
+ - lib/amp-html/test/templates/markup/amp_head.md
218
+ - lib/amp-html/test/templates/markup/amp_html_doctype.md
219
+ - lib/amp-html/test/templates/markup/canonical_document_link.md
220
+ - lib/amp-html/test/templates/markup/head_body.md
221
+ - lib/amp-html/test/templates/markup/html.md
222
+ - lib/amp-html/test/templates/markup/meta_viewport.md
223
+ - lib/amp-html/validate.rb
224
+ - lib/amp-html/validate/help.rb
225
+ - lib/amp-html/validate/templates/README.md
226
+ - lib/amp-html/version.rb
227
227
  - lib/generators/amp-html/assets_generator.rb
228
228
  - lib/generators/amp-html/bundle_generator.rb
229
229
  - lib/generators/amp-html/components_generator.rb