rails_amp 0.1.4

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 (104) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +14 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.md +370 -0
  6. data/Rakefile +23 -0
  7. data/gemfiles/Gemfile-rails.4.1.x +4 -0
  8. data/gemfiles/Gemfile-rails.4.2.x +4 -0
  9. data/lib/generators/rails_amp/install_generator.rb +23 -0
  10. data/lib/generators/rails_amp/templates/rails_amp.yml +39 -0
  11. data/lib/generators/rails_amp/templates/rails_amp_application.amp.erb +34 -0
  12. data/lib/rails_amp/config.rb +106 -0
  13. data/lib/rails_amp/overrider.rb +44 -0
  14. data/lib/rails_amp/railtie.rb +17 -0
  15. data/lib/rails_amp/version.rb +3 -0
  16. data/lib/rails_amp/view_helpers/action_view.rb +68 -0
  17. data/lib/rails_amp/view_helpers/image_tag_helper.rb +57 -0
  18. data/lib/rails_amp.rb +95 -0
  19. data/rails_amp.gemspec +23 -0
  20. data/spec/controllers/application_controller_spec.rb +142 -0
  21. data/spec/dummy/.rspec +2 -0
  22. data/spec/dummy/Rakefile +6 -0
  23. data/spec/dummy/app/assets/config/manifest.js +4 -0
  24. data/spec/dummy/app/assets/images/.keep +0 -0
  25. data/spec/dummy/app/assets/images/rails.png +0 -0
  26. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  27. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  28. data/spec/dummy/app/assets/javascripts/channels/.keep +0 -0
  29. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  30. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  31. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  32. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  33. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  34. data/spec/dummy/app/controllers/home_controller.rb +17 -0
  35. data/spec/dummy/app/controllers/users_controller.rb +25 -0
  36. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  37. data/spec/dummy/app/jobs/application_job.rb +2 -0
  38. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  39. data/spec/dummy/app/models/application_record.rb +3 -0
  40. data/spec/dummy/app/models/concerns/.keep +0 -0
  41. data/spec/dummy/app/models/user.rb +2 -0
  42. data/spec/dummy/app/views/home/_amp_info.html.erb +19 -0
  43. data/spec/dummy/app/views/home/about.html.erb +2 -0
  44. data/spec/dummy/app/views/home/help.html.erb +2 -0
  45. data/spec/dummy/app/views/home/index.html.erb +2 -0
  46. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  47. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  48. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  49. data/spec/dummy/app/views/layouts/rails_amp_application.amp.erb +34 -0
  50. data/spec/dummy/app/views/users/index.html.erb +11 -0
  51. data/spec/dummy/app/views/users/show.html.erb +7 -0
  52. data/spec/dummy/bin/bundle +3 -0
  53. data/spec/dummy/bin/rails +4 -0
  54. data/spec/dummy/bin/rake +4 -0
  55. data/spec/dummy/bin/setup +34 -0
  56. data/spec/dummy/bin/update +29 -0
  57. data/spec/dummy/config/application.rb +23 -0
  58. data/spec/dummy/config/boot.rb +5 -0
  59. data/spec/dummy/config/cable.yml +9 -0
  60. data/spec/dummy/config/database.yml +25 -0
  61. data/spec/dummy/config/environment.rb +5 -0
  62. data/spec/dummy/config/environments/development.rb +54 -0
  63. data/spec/dummy/config/environments/production.rb +86 -0
  64. data/spec/dummy/config/environments/test.rb +42 -0
  65. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  66. data/spec/dummy/config/initializers/assets.rb +11 -0
  67. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  68. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  69. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  70. data/spec/dummy/config/initializers/inflections.rb +16 -0
  71. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  72. data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
  73. data/spec/dummy/config/initializers/session_store.rb +3 -0
  74. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  75. data/spec/dummy/config/locales/en.yml +23 -0
  76. data/spec/dummy/config/puma.rb +47 -0
  77. data/spec/dummy/config/rails_amp.yml +39 -0
  78. data/spec/dummy/config/routes.rb +10 -0
  79. data/spec/dummy/config/secrets.yml +22 -0
  80. data/spec/dummy/config/spring.rb +6 -0
  81. data/spec/dummy/config.ru +5 -0
  82. data/spec/dummy/db/migrate/20170130074559_create_users.rb +10 -0
  83. data/spec/dummy/db/schema.rb +22 -0
  84. data/spec/dummy/lib/assets/.keep +0 -0
  85. data/spec/dummy/log/.keep +0 -0
  86. data/spec/dummy/public/404.html +67 -0
  87. data/spec/dummy/public/422.html +67 -0
  88. data/spec/dummy/public/500.html +66 -0
  89. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  90. data/spec/dummy/public/apple-touch-icon.png +0 -0
  91. data/spec/dummy/public/favicon.ico +0 -0
  92. data/spec/rails_amp_spec.rb +242 -0
  93. data/spec/rails_helper.rb +66 -0
  94. data/spec/spec_helper.rb +99 -0
  95. data/spec/support/config/amp_format.yml +4 -0
  96. data/spec/support/config/controller_actions.yml +5 -0
  97. data/spec/support/config/controller_all.yml +3 -0
  98. data/spec/support/config/disable_all.yml +2 -0
  99. data/spec/support/config/enable_all.yml +3 -0
  100. data/spec/support/config/enable_analytics.yml +2 -0
  101. data/spec/support/config/various.yml +12 -0
  102. data/spec/utilities.rb +5 -0
  103. data/spec/view_helpers/action_view_spec.rb +37 -0
  104. metadata +287 -0
@@ -0,0 +1,99 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
44
+ # have no way to turn it off -- the option exists only for backwards
45
+ # compatibility in RSpec 3). It causes shared context metadata to be
46
+ # inherited by the metadata hash of host groups and examples, rather than
47
+ # triggering implicit auto-inclusion in groups with matching metadata.
48
+ config.shared_context_metadata_behavior = :apply_to_host_groups
49
+
50
+ # The settings below are suggested to provide a good initial experience
51
+ # with RSpec, but feel free to customize to your heart's content.
52
+ =begin
53
+ # This allows you to limit a spec run to individual examples or groups
54
+ # you care about by tagging them with `:focus` metadata. When nothing
55
+ # is tagged with `:focus`, all examples get run. RSpec also provides
56
+ # aliases for `it`, `describe`, and `context` that include `:focus`
57
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
58
+ config.filter_run_when_matching :focus
59
+
60
+ # Allows RSpec to persist some state between runs in order to support
61
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
62
+ # you configure your source control system to ignore this file.
63
+ config.example_status_persistence_file_path = "spec/examples.txt"
64
+
65
+ # Limits the available syntax to the non-monkey patched syntax that is
66
+ # recommended. For more details, see:
67
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
68
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
69
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
70
+ config.disable_monkey_patching!
71
+
72
+ # Many RSpec users commonly either run the entire suite or an individual
73
+ # file, and it's useful to allow more verbose output when running an
74
+ # individual spec file.
75
+ if config.files_to_run.one?
76
+ # Use the documentation formatter for detailed output,
77
+ # unless a formatter has already been configured
78
+ # (e.g. via a command-line flag).
79
+ config.default_formatter = 'doc'
80
+ end
81
+
82
+ # Print the 10 slowest examples and example groups at the
83
+ # end of the spec run, to help surface which specs are running
84
+ # particularly slow.
85
+ config.profile_examples = 10
86
+
87
+ # Run specs in random order to surface order dependencies. If you find an
88
+ # order dependency and want to debug it, you can fix the order by providing
89
+ # the seed, which is printed after each run.
90
+ # --seed 1234
91
+ config.order = :random
92
+
93
+ # Seed global randomization in this process using the `--seed` CLI option.
94
+ # Setting this allows you to use `--seed` to deterministically reproduce
95
+ # test failures related to randomization by passing the same `--seed` value
96
+ # as the one that triggered the failure.
97
+ Kernel.srand config.seed
98
+ =end
99
+ end
@@ -0,0 +1,4 @@
1
+ # ### Change default amp format. The default value is amp.
2
+ # ### If you want to use 'mobile' as amp format, set 'mobile' to default_format.
3
+ # ### And you can access to amp page like /users/index.mobile
4
+ default_format: mobile
@@ -0,0 +1,5 @@
1
+ # ### Enable amp on home#about, home#help, users#show
2
+ # ### controller: action1 action2 action3 ...
3
+ targets:
4
+ home: about help
5
+ users: show
@@ -0,0 +1,3 @@
1
+ # ### Enable amp on home and users all actions.
2
+ targets:
3
+ home:
@@ -0,0 +1,2 @@
1
+ # ### Disable amp completely.
2
+ targets:
@@ -0,0 +1,3 @@
1
+ # ### Enable amp on all controllers and actions.
2
+ targets:
3
+ application: all
@@ -0,0 +1,2 @@
1
+ # ### Enable Google Analytics page tracking. Set your Google Analytics Account.
2
+ analytics: UA-12345-6
@@ -0,0 +1,12 @@
1
+ # ### Enable amp on home#index, home#about, users#index
2
+ targets:
3
+ home: index about
4
+ users: index
5
+
6
+ # ### Enable Google Analytics page tracking. Set your Google Analytics Account.
7
+ analytics: UA-12345-6
8
+
9
+ # ### Change default amp format. The default value is amp.
10
+ # ### If you want to use 'amphtml' as amp format, set 'amphtml' to default_format.
11
+ # ### And you can access to amp page like /users/index.amphtml
12
+ default_format: amphtml
data/spec/utilities.rb ADDED
@@ -0,0 +1,5 @@
1
+ module Utilities
2
+ def config_dir
3
+ File.dirname(__FILE__) + '/support/config'
4
+ end
5
+ end
@@ -0,0 +1,37 @@
1
+ require 'rails_helper'
2
+
3
+ # Specs for view helpers: rails_amp_html_header, rails_amp_google_analytics_page_tracking
4
+ # These helpers don't use controller or request object.
5
+ describe RailsAmp::ViewHelpers::ActionView do
6
+ context '#rails_amp_html_header' do
7
+ it 'returns correct amp header' do
8
+ expect(rails_amp_html_header).to include('style amp-boilerplate')
9
+ expect(rails_amp_html_header).to include('script async src="https://cdn.ampproject.org')
10
+ end
11
+ end
12
+
13
+ context '#rails_amp_google_analytics_page_tracking disabled' do
14
+ it 'returns analytics off' do
15
+ expect(RailsAmp.analytics).to eq ''
16
+ expect(rails_amp_google_analytics_page_tracking).to eq ''
17
+ end
18
+ end
19
+
20
+ context '#rails_amp_google_analytics_page_tracking enabled' do
21
+ before(:each) do
22
+ RailsAmp.analytics = 'UA-12345-6'
23
+ end
24
+
25
+ after(:each) do
26
+ RailsAmp.config_file = "#{Rails.root}/config/rails_amp.yml"
27
+ RailsAmp.reload_config!
28
+ end
29
+
30
+ it 'returns analytics on' do
31
+ expect(RailsAmp.analytics).to eq 'UA-12345-6'
32
+ expect(rails_amp_google_analytics_page_tracking).to include('script async custom-element="amp-analytics"')
33
+ expect(rails_amp_google_analytics_page_tracking).to include('"account": "UA-12345-6"')
34
+ end
35
+ end
36
+
37
+ end
metadata ADDED
@@ -0,0 +1,287 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_amp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ platform: ruby
6
+ authors:
7
+ - Takafumi Yamano
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: fastimage
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: RailsAmp is a Ruby on Rails plugin that makes it easy to build views
70
+ for AMP(Accelerated Mobile Pages).
71
+ email:
72
+ - takafumiyamano@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - Gemfile
79
+ - MIT-LICENSE
80
+ - README.md
81
+ - Rakefile
82
+ - gemfiles/Gemfile-rails.4.1.x
83
+ - gemfiles/Gemfile-rails.4.2.x
84
+ - lib/generators/rails_amp/install_generator.rb
85
+ - lib/generators/rails_amp/templates/rails_amp.yml
86
+ - lib/generators/rails_amp/templates/rails_amp_application.amp.erb
87
+ - lib/rails_amp.rb
88
+ - lib/rails_amp/config.rb
89
+ - lib/rails_amp/overrider.rb
90
+ - lib/rails_amp/railtie.rb
91
+ - lib/rails_amp/version.rb
92
+ - lib/rails_amp/view_helpers/action_view.rb
93
+ - lib/rails_amp/view_helpers/image_tag_helper.rb
94
+ - rails_amp.gemspec
95
+ - spec/controllers/application_controller_spec.rb
96
+ - spec/dummy/.rspec
97
+ - spec/dummy/Rakefile
98
+ - spec/dummy/app/assets/config/manifest.js
99
+ - spec/dummy/app/assets/images/.keep
100
+ - spec/dummy/app/assets/images/rails.png
101
+ - spec/dummy/app/assets/javascripts/application.js
102
+ - spec/dummy/app/assets/javascripts/cable.js
103
+ - spec/dummy/app/assets/javascripts/channels/.keep
104
+ - spec/dummy/app/assets/stylesheets/application.css
105
+ - spec/dummy/app/channels/application_cable/channel.rb
106
+ - spec/dummy/app/channels/application_cable/connection.rb
107
+ - spec/dummy/app/controllers/application_controller.rb
108
+ - spec/dummy/app/controllers/concerns/.keep
109
+ - spec/dummy/app/controllers/home_controller.rb
110
+ - spec/dummy/app/controllers/users_controller.rb
111
+ - spec/dummy/app/helpers/application_helper.rb
112
+ - spec/dummy/app/jobs/application_job.rb
113
+ - spec/dummy/app/mailers/application_mailer.rb
114
+ - spec/dummy/app/models/application_record.rb
115
+ - spec/dummy/app/models/concerns/.keep
116
+ - spec/dummy/app/models/user.rb
117
+ - spec/dummy/app/views/home/_amp_info.html.erb
118
+ - spec/dummy/app/views/home/about.html.erb
119
+ - spec/dummy/app/views/home/help.html.erb
120
+ - spec/dummy/app/views/home/index.html.erb
121
+ - spec/dummy/app/views/layouts/application.html.erb
122
+ - spec/dummy/app/views/layouts/mailer.html.erb
123
+ - spec/dummy/app/views/layouts/mailer.text.erb
124
+ - spec/dummy/app/views/layouts/rails_amp_application.amp.erb
125
+ - spec/dummy/app/views/users/index.html.erb
126
+ - spec/dummy/app/views/users/show.html.erb
127
+ - spec/dummy/bin/bundle
128
+ - spec/dummy/bin/rails
129
+ - spec/dummy/bin/rake
130
+ - spec/dummy/bin/setup
131
+ - spec/dummy/bin/update
132
+ - spec/dummy/config.ru
133
+ - spec/dummy/config/application.rb
134
+ - spec/dummy/config/boot.rb
135
+ - spec/dummy/config/cable.yml
136
+ - spec/dummy/config/database.yml
137
+ - spec/dummy/config/environment.rb
138
+ - spec/dummy/config/environments/development.rb
139
+ - spec/dummy/config/environments/production.rb
140
+ - spec/dummy/config/environments/test.rb
141
+ - spec/dummy/config/initializers/application_controller_renderer.rb
142
+ - spec/dummy/config/initializers/assets.rb
143
+ - spec/dummy/config/initializers/backtrace_silencers.rb
144
+ - spec/dummy/config/initializers/cookies_serializer.rb
145
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
146
+ - spec/dummy/config/initializers/inflections.rb
147
+ - spec/dummy/config/initializers/mime_types.rb
148
+ - spec/dummy/config/initializers/new_framework_defaults.rb
149
+ - spec/dummy/config/initializers/session_store.rb
150
+ - spec/dummy/config/initializers/wrap_parameters.rb
151
+ - spec/dummy/config/locales/en.yml
152
+ - spec/dummy/config/puma.rb
153
+ - spec/dummy/config/rails_amp.yml
154
+ - spec/dummy/config/routes.rb
155
+ - spec/dummy/config/secrets.yml
156
+ - spec/dummy/config/spring.rb
157
+ - spec/dummy/db/migrate/20170130074559_create_users.rb
158
+ - spec/dummy/db/schema.rb
159
+ - spec/dummy/lib/assets/.keep
160
+ - spec/dummy/log/.keep
161
+ - spec/dummy/public/404.html
162
+ - spec/dummy/public/422.html
163
+ - spec/dummy/public/500.html
164
+ - spec/dummy/public/apple-touch-icon-precomposed.png
165
+ - spec/dummy/public/apple-touch-icon.png
166
+ - spec/dummy/public/favicon.ico
167
+ - spec/rails_amp_spec.rb
168
+ - spec/rails_helper.rb
169
+ - spec/spec_helper.rb
170
+ - spec/support/config/amp_format.yml
171
+ - spec/support/config/controller_actions.yml
172
+ - spec/support/config/controller_all.yml
173
+ - spec/support/config/disable_all.yml
174
+ - spec/support/config/enable_all.yml
175
+ - spec/support/config/enable_analytics.yml
176
+ - spec/support/config/various.yml
177
+ - spec/utilities.rb
178
+ - spec/view_helpers/action_view_spec.rb
179
+ homepage: https://github.com/takafumir/rails_amp
180
+ licenses:
181
+ - MIT
182
+ metadata: {}
183
+ post_install_message:
184
+ rdoc_options: []
185
+ require_paths:
186
+ - lib
187
+ required_ruby_version: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
192
+ required_rubygems_version: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - ">="
195
+ - !ruby/object:Gem::Version
196
+ version: '0'
197
+ requirements: []
198
+ rubyforge_project:
199
+ rubygems_version: 2.5.1
200
+ signing_key:
201
+ specification_version: 4
202
+ summary: AMP(Accelerated Mobile Pages) plugin for Ruby on Rails.
203
+ test_files:
204
+ - spec/controllers/application_controller_spec.rb
205
+ - spec/dummy/.rspec
206
+ - spec/dummy/Rakefile
207
+ - spec/dummy/app/assets/config/manifest.js
208
+ - spec/dummy/app/assets/images/.keep
209
+ - spec/dummy/app/assets/images/rails.png
210
+ - spec/dummy/app/assets/javascripts/application.js
211
+ - spec/dummy/app/assets/javascripts/cable.js
212
+ - spec/dummy/app/assets/javascripts/channels/.keep
213
+ - spec/dummy/app/assets/stylesheets/application.css
214
+ - spec/dummy/app/channels/application_cable/channel.rb
215
+ - spec/dummy/app/channels/application_cable/connection.rb
216
+ - spec/dummy/app/controllers/application_controller.rb
217
+ - spec/dummy/app/controllers/concerns/.keep
218
+ - spec/dummy/app/controllers/home_controller.rb
219
+ - spec/dummy/app/controllers/users_controller.rb
220
+ - spec/dummy/app/helpers/application_helper.rb
221
+ - spec/dummy/app/jobs/application_job.rb
222
+ - spec/dummy/app/mailers/application_mailer.rb
223
+ - spec/dummy/app/models/application_record.rb
224
+ - spec/dummy/app/models/concerns/.keep
225
+ - spec/dummy/app/models/user.rb
226
+ - spec/dummy/app/views/home/_amp_info.html.erb
227
+ - spec/dummy/app/views/home/about.html.erb
228
+ - spec/dummy/app/views/home/help.html.erb
229
+ - spec/dummy/app/views/home/index.html.erb
230
+ - spec/dummy/app/views/layouts/application.html.erb
231
+ - spec/dummy/app/views/layouts/mailer.html.erb
232
+ - spec/dummy/app/views/layouts/mailer.text.erb
233
+ - spec/dummy/app/views/layouts/rails_amp_application.amp.erb
234
+ - spec/dummy/app/views/users/index.html.erb
235
+ - spec/dummy/app/views/users/show.html.erb
236
+ - spec/dummy/bin/bundle
237
+ - spec/dummy/bin/rails
238
+ - spec/dummy/bin/rake
239
+ - spec/dummy/bin/setup
240
+ - spec/dummy/bin/update
241
+ - spec/dummy/config.ru
242
+ - spec/dummy/config/application.rb
243
+ - spec/dummy/config/boot.rb
244
+ - spec/dummy/config/cable.yml
245
+ - spec/dummy/config/database.yml
246
+ - spec/dummy/config/environment.rb
247
+ - spec/dummy/config/environments/development.rb
248
+ - spec/dummy/config/environments/production.rb
249
+ - spec/dummy/config/environments/test.rb
250
+ - spec/dummy/config/initializers/application_controller_renderer.rb
251
+ - spec/dummy/config/initializers/assets.rb
252
+ - spec/dummy/config/initializers/backtrace_silencers.rb
253
+ - spec/dummy/config/initializers/cookies_serializer.rb
254
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
255
+ - spec/dummy/config/initializers/inflections.rb
256
+ - spec/dummy/config/initializers/mime_types.rb
257
+ - spec/dummy/config/initializers/new_framework_defaults.rb
258
+ - spec/dummy/config/initializers/session_store.rb
259
+ - spec/dummy/config/initializers/wrap_parameters.rb
260
+ - spec/dummy/config/locales/en.yml
261
+ - spec/dummy/config/puma.rb
262
+ - spec/dummy/config/rails_amp.yml
263
+ - spec/dummy/config/routes.rb
264
+ - spec/dummy/config/secrets.yml
265
+ - spec/dummy/config/spring.rb
266
+ - spec/dummy/db/migrate/20170130074559_create_users.rb
267
+ - spec/dummy/db/schema.rb
268
+ - spec/dummy/lib/assets/.keep
269
+ - spec/dummy/log/.keep
270
+ - spec/dummy/public/404.html
271
+ - spec/dummy/public/422.html
272
+ - spec/dummy/public/500.html
273
+ - spec/dummy/public/apple-touch-icon-precomposed.png
274
+ - spec/dummy/public/apple-touch-icon.png
275
+ - spec/dummy/public/favicon.ico
276
+ - spec/rails_amp_spec.rb
277
+ - spec/rails_helper.rb
278
+ - spec/spec_helper.rb
279
+ - spec/support/config/amp_format.yml
280
+ - spec/support/config/controller_actions.yml
281
+ - spec/support/config/controller_all.yml
282
+ - spec/support/config/disable_all.yml
283
+ - spec/support/config/enable_all.yml
284
+ - spec/support/config/enable_analytics.yml
285
+ - spec/support/config/various.yml
286
+ - spec/utilities.rb
287
+ - spec/view_helpers/action_view_spec.rb