mascot-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -0
  3. data/Rakefile +37 -0
  4. data/app/controllers/mascot/sitemap_controller.rb +59 -0
  5. data/app/helpers/mascot/application_helper.rb +4 -0
  6. data/config/routes.rb +5 -0
  7. data/lib/mascot/engine.rb +4 -0
  8. data/lib/mascot/route_constraint.rb +12 -0
  9. data/lib/mascot-rails.rb +10 -1
  10. data/lib/tasks/mascot_tasks.rake +4 -0
  11. data/spec/dummy/Rakefile +6 -0
  12. data/spec/dummy/app/assets/config/manifest.js +5 -0
  13. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  14. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  15. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  16. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  17. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  18. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  19. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  20. data/spec/dummy/app/jobs/application_job.rb +2 -0
  21. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  22. data/spec/dummy/app/models/application_record.rb +3 -0
  23. data/spec/dummy/app/pages/hi.html +3 -0
  24. data/spec/dummy/app/pages/time.html.erb +7 -0
  25. data/spec/dummy/app/views/layouts/application.html.erb +10 -0
  26. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  27. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  28. data/spec/dummy/bin/bundle +3 -0
  29. data/spec/dummy/bin/rails +4 -0
  30. data/spec/dummy/bin/rake +4 -0
  31. data/spec/dummy/bin/setup +34 -0
  32. data/spec/dummy/bin/update +29 -0
  33. data/spec/dummy/config/application.rb +15 -0
  34. data/spec/dummy/config/boot.rb +5 -0
  35. data/spec/dummy/config/cable.yml +9 -0
  36. data/spec/dummy/config/database.yml +25 -0
  37. data/spec/dummy/config/environment.rb +5 -0
  38. data/spec/dummy/config/environments/development.rb +38 -0
  39. data/spec/dummy/config/environments/production.rb +81 -0
  40. data/spec/dummy/config/environments/test.rb +35 -0
  41. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  42. data/spec/dummy/config/initializers/assets.rb +11 -0
  43. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  45. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  46. data/spec/dummy/config/initializers/inflections.rb +16 -0
  47. data/spec/dummy/config/initializers/mascot.rb +3 -0
  48. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  49. data/spec/dummy/config/initializers/session_store.rb +3 -0
  50. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  51. data/spec/dummy/config/locales/en.yml +23 -0
  52. data/spec/dummy/config/puma.rb +47 -0
  53. data/spec/dummy/config/routes.rb +2 -0
  54. data/spec/dummy/config/secrets.yml +22 -0
  55. data/spec/dummy/config/spring.rb +6 -0
  56. data/spec/dummy/config.ru +5 -0
  57. data/spec/dummy/db/test.sqlite3 +0 -0
  58. data/spec/dummy/log/test.log +3820 -0
  59. data/spec/dummy/public/404.html +67 -0
  60. data/spec/dummy/public/422.html +67 -0
  61. data/spec/dummy/public/500.html +66 -0
  62. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  63. data/spec/dummy/public/apple-touch-icon.png +0 -0
  64. data/spec/dummy/public/favicon.ico +0 -0
  65. data/spec/mascot-rails_spec.rb +63 -0
  66. data/spec/pages/nothing +1 -0
  67. data/spec/pages/sin_frontmatter.html.haml +8 -0
  68. data/spec/pages/test.html.haml +14 -0
  69. data/spec/pages/text.txt +1 -0
  70. data/spec/spec_helper.rb +43 -0
  71. metadata +165 -12
  72. data/lib/mascot/rails/route_constraint.rb +0 -14
  73. data/lib/mascot/rails.rb +0 -7
  74. data/mascot-rails.gemspec +0 -23
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
File without changes
@@ -0,0 +1,63 @@
1
+ require "spec_helper"
2
+ require "rails"
3
+ require "mascot-rails"
4
+
5
+ describe Mascot::RouteConstraint do
6
+ let(:sitemap) { Mascot::Sitemap.new(file_path: "spec/pages") }
7
+ let(:route_constraint) { Mascot::RouteConstraint.new(sitemap) }
8
+
9
+ context "#matches?" do
10
+ it "returns true if match" do
11
+ request = double("request", path: "/test")
12
+ expect(route_constraint.matches?(request)).to be(true)
13
+ end
14
+ it "returns false if not match" do
15
+ request = double("request", path: "/does-not-exist")
16
+ expect(route_constraint.matches?(request)).to be(false)
17
+ end
18
+ end
19
+ end
20
+
21
+ describe Mascot::SitemapController, type: :controller do
22
+ context "existing templated page" do
23
+ render_views
24
+ before { get :show, path: "/time" }
25
+ it "is status 200" do
26
+ expect(response.status).to eql(200)
27
+ end
28
+ it "renders body" do
29
+ expect(response.body).to include("<h1>Tick tock, tick tock</h1>")
30
+ end
31
+ it "renders layout" do
32
+ expect(response.body).to include("<title>Dummy</title>")
33
+ end
34
+ it "responds with content type" do
35
+ expect(response.content_type).to eql("text/html")
36
+ end
37
+ end
38
+
39
+ context "existing static page" do
40
+ render_views
41
+ before { get :show, path: "/hi" }
42
+ it "is status 200" do
43
+ expect(response.status).to eql(200)
44
+ end
45
+ it "renders body" do
46
+ expect(response.body).to include("<h1>Hi!</h1>")
47
+ end
48
+ it "renders layout" do
49
+ expect(response.body).to include("<title>Dummy</title>")
50
+ end
51
+ it "responds with content type" do
52
+ expect(response.content_type).to eql("text/html")
53
+ end
54
+ end
55
+
56
+ context "non-existent page" do
57
+ it "is status 404" do
58
+ expect {
59
+ get :show, path: "/non-existent"
60
+ }.to raise_exception(ActionController::RoutingError)
61
+ end
62
+ end
63
+ end
@@ -0,0 +1 @@
1
+ No mime type or extension
@@ -0,0 +1,8 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %title=current_page.data["title"]
5
+ %body
6
+ %h1 Hi
7
+ %p This is just some content, but with no front matter
8
+ %h2 There
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: Name
3
+ meta:
4
+ keywords: One
5
+ ---
6
+
7
+ !!!
8
+ %html
9
+ %head
10
+ %title=current_page.data["title"]
11
+ %body
12
+ %h1 Hi
13
+ %p This is just some content
14
+ %h2 There
@@ -0,0 +1 @@
1
+ Well, here's a plain text file
@@ -0,0 +1,43 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+
3
+ ENV['RAILS_ENV'] ||= 'test'
4
+
5
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
6
+ require 'rspec/rails'
7
+
8
+ Rails.backtrace_cleaner.remove_silencers!
9
+
10
+ # Load support files
11
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
12
+
13
+ RSpec.configure do |config|
14
+ config.mock_with :rspec
15
+ config.use_transactional_fixtures = true
16
+ config.infer_base_class_for_anonymous_controllers = false
17
+ config.order = "random"
18
+ end
19
+
20
+ require "codeclimate-test-reporter"
21
+ CodeClimate::TestReporter.start
22
+
23
+ # From test folder...
24
+ # # Configure Rails Environment
25
+ # ENV["RAILS_ENV"] = "test"
26
+
27
+ # require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
28
+ # ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
29
+ # ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
30
+ # require "rails/test_help"
31
+
32
+ # # Filter out Minitest backtrace while allowing backtrace from other libraries
33
+ # # to be shown.
34
+ # Minitest.backtrace_filter = Minitest::BacktraceFilter.new
35
+
36
+
37
+ # # Load fixtures from the engine
38
+ # if ActiveSupport::TestCase.respond_to?(:fixture_path=)
39
+ # ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
40
+ # ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
41
+ # ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files"
42
+ # ActiveSupport::TestCase.fixtures :all
43
+ # end
metadata CHANGED
@@ -1,43 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mascot-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-21 00:00:00.000000000 Z
11
+ date: 2016-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: actionpack
14
+ name: sqlite3
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: '4.2'
33
+ version: '0'
20
34
  type: :development
21
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: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 4.2.0
48
+ type: :runtime
49
+ prerelease: false
22
50
  version_requirements: !ruby/object:Gem::Requirement
23
51
  requirements:
24
52
  - - "~>"
25
53
  - !ruby/object:Gem::Version
26
- version: '4.2'
54
+ version: 4.2.0
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: mascot
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
59
  - - '='
32
60
  - !ruby/object:Gem::Version
33
- version: 0.1.2
61
+ version: 0.1.3
34
62
  type: :runtime
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
66
  - - '='
39
67
  - !ruby/object:Gem::Version
40
- version: 0.1.2
68
+ version: 0.1.3
41
69
  description:
42
70
  email:
43
71
  - bradgessler@gmail.com
@@ -45,10 +73,75 @@ executables: []
45
73
  extensions: []
46
74
  extra_rdoc_files: []
47
75
  files:
76
+ - README.md
77
+ - Rakefile
78
+ - app/controllers/mascot/sitemap_controller.rb
79
+ - app/helpers/mascot/application_helper.rb
80
+ - config/routes.rb
48
81
  - lib/mascot-rails.rb
49
- - lib/mascot/rails.rb
50
- - lib/mascot/rails/route_constraint.rb
51
- - mascot-rails.gemspec
82
+ - lib/mascot/engine.rb
83
+ - lib/mascot/route_constraint.rb
84
+ - lib/tasks/mascot_tasks.rake
85
+ - spec/dummy/Rakefile
86
+ - spec/dummy/app/assets/config/manifest.js
87
+ - spec/dummy/app/assets/javascripts/application.js
88
+ - spec/dummy/app/assets/javascripts/cable.js
89
+ - spec/dummy/app/assets/stylesheets/application.css
90
+ - spec/dummy/app/channels/application_cable/channel.rb
91
+ - spec/dummy/app/channels/application_cable/connection.rb
92
+ - spec/dummy/app/controllers/application_controller.rb
93
+ - spec/dummy/app/helpers/application_helper.rb
94
+ - spec/dummy/app/jobs/application_job.rb
95
+ - spec/dummy/app/mailers/application_mailer.rb
96
+ - spec/dummy/app/models/application_record.rb
97
+ - spec/dummy/app/pages/hi.html
98
+ - spec/dummy/app/pages/time.html.erb
99
+ - spec/dummy/app/views/layouts/application.html.erb
100
+ - spec/dummy/app/views/layouts/mailer.html.erb
101
+ - spec/dummy/app/views/layouts/mailer.text.erb
102
+ - spec/dummy/bin/bundle
103
+ - spec/dummy/bin/rails
104
+ - spec/dummy/bin/rake
105
+ - spec/dummy/bin/setup
106
+ - spec/dummy/bin/update
107
+ - spec/dummy/config.ru
108
+ - spec/dummy/config/application.rb
109
+ - spec/dummy/config/boot.rb
110
+ - spec/dummy/config/cable.yml
111
+ - spec/dummy/config/database.yml
112
+ - spec/dummy/config/environment.rb
113
+ - spec/dummy/config/environments/development.rb
114
+ - spec/dummy/config/environments/production.rb
115
+ - spec/dummy/config/environments/test.rb
116
+ - spec/dummy/config/initializers/application_controller_renderer.rb
117
+ - spec/dummy/config/initializers/assets.rb
118
+ - spec/dummy/config/initializers/backtrace_silencers.rb
119
+ - spec/dummy/config/initializers/cookies_serializer.rb
120
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
121
+ - spec/dummy/config/initializers/inflections.rb
122
+ - spec/dummy/config/initializers/mascot.rb
123
+ - spec/dummy/config/initializers/mime_types.rb
124
+ - spec/dummy/config/initializers/session_store.rb
125
+ - spec/dummy/config/initializers/wrap_parameters.rb
126
+ - spec/dummy/config/locales/en.yml
127
+ - spec/dummy/config/puma.rb
128
+ - spec/dummy/config/routes.rb
129
+ - spec/dummy/config/secrets.yml
130
+ - spec/dummy/config/spring.rb
131
+ - spec/dummy/db/test.sqlite3
132
+ - spec/dummy/log/test.log
133
+ - spec/dummy/public/404.html
134
+ - spec/dummy/public/422.html
135
+ - spec/dummy/public/500.html
136
+ - spec/dummy/public/apple-touch-icon-precomposed.png
137
+ - spec/dummy/public/apple-touch-icon.png
138
+ - spec/dummy/public/favicon.ico
139
+ - spec/mascot-rails_spec.rb
140
+ - spec/pages/nothing
141
+ - spec/pages/sin_frontmatter.html.haml
142
+ - spec/pages/test.html.haml
143
+ - spec/pages/text.txt
144
+ - spec/spec_helper.rb
52
145
  homepage: https://github.com/bradgessler/mascot
53
146
  licenses: []
54
147
  metadata: {}
@@ -72,5 +165,65 @@ rubygems_version: 2.5.1
72
165
  signing_key:
73
166
  specification_version: 4
74
167
  summary: Mascot rails integration.
75
- test_files: []
168
+ test_files:
169
+ - spec/dummy/app/assets/config/manifest.js
170
+ - spec/dummy/app/assets/javascripts/application.js
171
+ - spec/dummy/app/assets/javascripts/cable.js
172
+ - spec/dummy/app/assets/stylesheets/application.css
173
+ - spec/dummy/app/channels/application_cable/channel.rb
174
+ - spec/dummy/app/channels/application_cable/connection.rb
175
+ - spec/dummy/app/controllers/application_controller.rb
176
+ - spec/dummy/app/helpers/application_helper.rb
177
+ - spec/dummy/app/jobs/application_job.rb
178
+ - spec/dummy/app/mailers/application_mailer.rb
179
+ - spec/dummy/app/models/application_record.rb
180
+ - spec/dummy/app/pages/hi.html
181
+ - spec/dummy/app/pages/time.html.erb
182
+ - spec/dummy/app/views/layouts/application.html.erb
183
+ - spec/dummy/app/views/layouts/mailer.html.erb
184
+ - spec/dummy/app/views/layouts/mailer.text.erb
185
+ - spec/dummy/bin/bundle
186
+ - spec/dummy/bin/rails
187
+ - spec/dummy/bin/rake
188
+ - spec/dummy/bin/setup
189
+ - spec/dummy/bin/update
190
+ - spec/dummy/config/application.rb
191
+ - spec/dummy/config/boot.rb
192
+ - spec/dummy/config/cable.yml
193
+ - spec/dummy/config/database.yml
194
+ - spec/dummy/config/environment.rb
195
+ - spec/dummy/config/environments/development.rb
196
+ - spec/dummy/config/environments/production.rb
197
+ - spec/dummy/config/environments/test.rb
198
+ - spec/dummy/config/initializers/application_controller_renderer.rb
199
+ - spec/dummy/config/initializers/assets.rb
200
+ - spec/dummy/config/initializers/backtrace_silencers.rb
201
+ - spec/dummy/config/initializers/cookies_serializer.rb
202
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
203
+ - spec/dummy/config/initializers/inflections.rb
204
+ - spec/dummy/config/initializers/mascot.rb
205
+ - spec/dummy/config/initializers/mime_types.rb
206
+ - spec/dummy/config/initializers/session_store.rb
207
+ - spec/dummy/config/initializers/wrap_parameters.rb
208
+ - spec/dummy/config/locales/en.yml
209
+ - spec/dummy/config/puma.rb
210
+ - spec/dummy/config/routes.rb
211
+ - spec/dummy/config/secrets.yml
212
+ - spec/dummy/config/spring.rb
213
+ - spec/dummy/config.ru
214
+ - spec/dummy/db/test.sqlite3
215
+ - spec/dummy/log/test.log
216
+ - spec/dummy/public/404.html
217
+ - spec/dummy/public/422.html
218
+ - spec/dummy/public/500.html
219
+ - spec/dummy/public/apple-touch-icon-precomposed.png
220
+ - spec/dummy/public/apple-touch-icon.png
221
+ - spec/dummy/public/favicon.ico
222
+ - spec/dummy/Rakefile
223
+ - spec/mascot-rails_spec.rb
224
+ - spec/pages/nothing
225
+ - spec/pages/sin_frontmatter.html.haml
226
+ - spec/pages/test.html.haml
227
+ - spec/pages/text.txt
228
+ - spec/spec_helper.rb
76
229
  has_rdoc:
@@ -1,14 +0,0 @@
1
- module Mascot
2
- module Rails
3
- # Route constraint for rails routes.rb file.
4
- class RouteConstraint
5
- def initialize(sitemap)
6
- @sitemap = sitemap
7
- end
8
-
9
- def matches?(request)
10
- !!@sitemap.find_by_request_path(request.path)
11
- end
12
- end
13
- end
14
- end
data/lib/mascot/rails.rb DELETED
@@ -1,7 +0,0 @@
1
- require "mascot"
2
- require "mascot/rails/route_constraint"
3
-
4
- module Mascot
5
- module Rails
6
- end
7
- end
data/mascot-rails.gemspec DELETED
@@ -1,23 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require File.expand_path('../../mascot/lib/mascot/version', __FILE__)
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "mascot-rails"
8
- spec.version = Mascot::VERSION
9
- spec.authors = ["Brad Gessler"]
10
- spec.email = ["bradgessler@gmail.com"]
11
-
12
- spec.summary = %q{Mascot rails integration.}
13
- spec.homepage = "https://github.com/bradgessler/mascot"
14
-
15
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
- spec.bindir = "exe"
17
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
- spec.require_paths = ["lib"]
19
-
20
- spec.add_development_dependency "actionpack", "~> 4.2"
21
-
22
- spec.add_runtime_dependency "mascot", spec.version
23
- end