spec_views 3.6.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +106 -0
- data/README.md +18 -0
- data/app/assets/javascripts/spec_views/diff.js +0 -2
- data/app/controllers/spec_views/views_controller.rb +13 -2
- data/app/models/spec_views/batch_diff.rb +19 -20
- data/app/models/spec_views/directory.rb +2 -2
- data/app/models/spec_views/html_matcher.rb +0 -2
- data/app/models/spec_views/mail_message_extractor.rb +1 -1
- data/app/models/spec_views/pdf_matcher.rb +1 -1
- data/app/views/layouts/spec_views.html.erb +1 -1
- data/app/views/spec_views/views/_directory_footer.html.erb +1 -1
- data/app/views/spec_views/views/batch.html.erb +2 -2
- data/app/views/spec_views/views/diff.html.erb +1 -1
- data/app/views/spec_views/views/index.html.erb +1 -1
- data/app/views/spec_views/views/preview.html.erb +1 -1
- data/config/routes.rb +4 -0
- data/lib/spec_views/configuration.rb +2 -1
- data/lib/spec_views/engine.rb +0 -4
- data/lib/spec_views/support.rb +18 -14
- data/lib/spec_views/version.rb +1 -1
- data/lib/spec_views.rb +0 -4
- metadata +53 -36
- data/Rakefile +0 -34
- data/app/assets/config/spec_views_manifest.js +0 -1
- data/lib/tasks/spec_views_tasks.rake +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72b5ecdd4398b7b33961990a99c205c1f3e79adb1242510cdb61b9cdbcacbb36
|
|
4
|
+
data.tar.gz: 5a9ea00cebac5970564e47b3493d98efcf602a38c2f3d6228972f94e256b7bf7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd413673ee48e1eac7acc2f1145a920aaaea72701a9f19274ab27b0dc01d1e2af0b6abca2b03ce018342d10b0c6e5bac0d739bc7bbb78236b541538c4265366d
|
|
7
|
+
data.tar.gz: d61ed1fc07c9c97e7825b32e0fa840726a813d8ce3cc3a7d77be7dca8bc7439ea143a47eb4aad1978db55162af084c593f48ed3de5306fb0f17e9d80b5327fed
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
## [Unreleased]
|
|
5
|
+
|
|
6
|
+
## [4.0.0] - 2026-11-02
|
|
7
|
+
### Changed
|
|
8
|
+
- **Breaking:** Require Rails >= 7.2 and Ruby >= 3.2.
|
|
9
|
+
- **Breaking:** Depend on `railties`, `actionpack` and `activesupport` instead of the `rails` meta gem.
|
|
10
|
+
- **Breaking:** Replace Timecop with `travel_to`. The `timecop` dependency is gone.
|
|
11
|
+
- **Breaking:** Rename `SpecViews::Directory#method` to `#http_method`.
|
|
12
|
+
- **Breaking:** Remove the asset manifest `spec_views_manifest.js` and the `spec_views/diff.js` precompile entry. Drop `//= link spec_views_manifest.js` from your manifest if you added it.
|
|
13
|
+
- Make the frozen time configurable with `config.spec_views.freeze_time`, `false` disables it.
|
|
14
|
+
- Only draw the UI routes in local environments.
|
|
15
|
+
- Serve the diff script from the UI controller, so the diff UI works with Sprockets, Propshaft or no asset pipeline. A Content Security Policy allowing `'self'` is sufficient.
|
|
16
|
+
- Respond with 404 for unknown views in the UI.
|
|
17
|
+
- Use `RSpec.current_example` instead of RSpec internals.
|
|
18
|
+
- Fix PDF matching of frozen response bodies.
|
|
19
|
+
- Fix mail extraction for objects without parts.
|
|
20
|
+
- Fix fallback spec type of views without meta data.
|
|
21
|
+
|
|
22
|
+
## [3.6.2] - 2026-09-22
|
|
23
|
+
### Added
|
|
24
|
+
- Add support for rails 8.0
|
|
25
|
+
|
|
26
|
+
## [3.6.1] - 2026-08-26
|
|
27
|
+
### Added
|
|
28
|
+
- Add support for rspec-rails 7.
|
|
29
|
+
|
|
30
|
+
## [3.6.0] - 2025-11-18
|
|
31
|
+
### Added
|
|
32
|
+
- Add diff preview for HTML matchings.
|
|
33
|
+
|
|
34
|
+
## [3.5.0] - 2024-05-13
|
|
35
|
+
### Added
|
|
36
|
+
- Add affix for multiple use in one request spec.
|
|
37
|
+
|
|
38
|
+
## [3.4.0] - 2023-11-16
|
|
39
|
+
### Added
|
|
40
|
+
- Add Reject All to remove all challengers with one click.
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
- Fix presentation of controller/request spec name.
|
|
44
|
+
|
|
45
|
+
## [3.3.1] - 2023-11-09
|
|
46
|
+
### Changed
|
|
47
|
+
- Fix handling of response message encoding.
|
|
48
|
+
|
|
49
|
+
## [3.3.0] - 2023-10-31
|
|
50
|
+
### Added
|
|
51
|
+
- Add Batch Diff to accept identical changes with one click.
|
|
52
|
+
|
|
53
|
+
## [3.2.1] - 2023-01-20
|
|
54
|
+
### Changed
|
|
55
|
+
- Skip abandoned spec view directories.
|
|
56
|
+
|
|
57
|
+
## [3.2.0] - 2022-11-02
|
|
58
|
+
### Added
|
|
59
|
+
- Support for Rails 7, rspec-rails 6, and Ruby 3.
|
|
60
|
+
|
|
61
|
+
## [3.1.0] - 2022-08-08
|
|
62
|
+
### Changed
|
|
63
|
+
- Switch back to `last_run.txt` for better git integration.
|
|
64
|
+
|
|
65
|
+
## [3.0.0] - 2022-08-08
|
|
66
|
+
### Added
|
|
67
|
+
- Introduce match_html_fixture for feature specs.
|
|
68
|
+
- Introduce view_sanitizer.gsub to sanitize dynamic parts.
|
|
69
|
+
|
|
70
|
+
### Changed
|
|
71
|
+
- Replace `description.txt` and `last_run.txt` with combined and extended `meta.txt`.
|
|
72
|
+
- List challenged and outdated views first.
|
|
73
|
+
|
|
74
|
+
## [2.0.0] - 2022-07-26
|
|
75
|
+
### Added
|
|
76
|
+
- Introduce real RSpec matcher match_html_fixture (see [README](./README.md#installation)).
|
|
77
|
+
- Add request specs as prefered spec type.
|
|
78
|
+
- Save original spec description as text file, so the UI doesn't rely on filename-based descriptions anymore.
|
|
79
|
+
- Add mailer spec support.
|
|
80
|
+
|
|
81
|
+
### Changed
|
|
82
|
+
- Rename `render` into `it_renders` and add "renders" to the description automtically. `it_renders` cannot be used for PDF responses anymore.
|
|
83
|
+
|
|
84
|
+
## [1.1.1] - 2021-01-18
|
|
85
|
+
### Changed
|
|
86
|
+
- Remove digests from ICO files.
|
|
87
|
+
- Remove ModDate and ID from PDF files.
|
|
88
|
+
- Improve view selection screen layout.
|
|
89
|
+
|
|
90
|
+
## [1.1.0] - 2021-01-18
|
|
91
|
+
### Changed
|
|
92
|
+
- Fix .gitignore hint in [README](./README.md#installation) to allow different file extensions.
|
|
93
|
+
- Remove CreationDate-header before comparing PDFs.
|
|
94
|
+
- Improve [README's Usage section](./README.md#usage).
|
|
95
|
+
|
|
96
|
+
## [1.0.1] - 2021-01-17
|
|
97
|
+
### Added
|
|
98
|
+
- Add .gitignore hint to [README](./README.md#installation).
|
|
99
|
+
- Add missing timecop dependency.
|
|
100
|
+
|
|
101
|
+
### Changed
|
|
102
|
+
- Improve view selection screen layout.
|
|
103
|
+
|
|
104
|
+
## [1.0.0] - 2021-01-17
|
|
105
|
+
### Changed
|
|
106
|
+
- Switch to manual requiring of 'spec_views/support' (see [README](./README.md#installation)).
|
data/README.md
CHANGED
|
@@ -160,7 +160,25 @@ Configure SpecView by adding and modifying lines to `config/environments/test.rb
|
|
|
160
160
|
```ruby
|
|
161
161
|
config.spec_views.directory = 'spec/fixtures/views'
|
|
162
162
|
config.spec_views.ui_url = 'http://localhost:3000/spec_views'
|
|
163
|
+
config.spec_views.freeze_time = '2024-02-29 00:17:42'
|
|
163
164
|
```
|
|
164
165
|
|
|
166
|
+
### Frozen time
|
|
167
|
+
Controller, feature, mailer and request specs run with a frozen time (via `travel_to`) so rendered dates stay stable. The default is `2024-02-29 00:17:42` in `Time.zone`. Set `freeze_time` to another time (`String` or `Time`) or disable it with `false`.
|
|
168
|
+
|
|
169
|
+
### Routes
|
|
170
|
+
The SpecViews UI is only routed in local environments (`development` and `test`), because it writes and deletes fixture files.
|
|
171
|
+
|
|
172
|
+
## Development
|
|
173
|
+
The specs run against a dummy app for each supported Rails version (`spec/dummy_7_2`, `spec/dummy_8_0`, `spec/dummy_8_1`). The dummy app is chosen by the Rails version of the bundle:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
$ bundle exec rake # Rails 8.1, specs and RuboCop
|
|
177
|
+
$ BUNDLE_GEMFILE=gemfiles/rails_7_2.gemfile bundle exec rspec # Rails 7.2
|
|
178
|
+
$ bundle exec rake spec:all # every Rails version
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Start the UI of a dummy app with `spec/dummy_8_1/bin/rails server`.
|
|
182
|
+
|
|
165
183
|
## License
|
|
166
184
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
@@ -5,6 +5,8 @@ require 'diff/lcs'
|
|
|
5
5
|
module SpecViews
|
|
6
6
|
class ViewsController < ApplicationController
|
|
7
7
|
skip_authorization_check if respond_to?(:skip_authorization_check)
|
|
8
|
+
# Rails rejects JavaScript responses to GET requests under forgery protection.
|
|
9
|
+
skip_forgery_protection only: :script
|
|
8
10
|
layout 'spec_views'
|
|
9
11
|
|
|
10
12
|
def index
|
|
@@ -20,6 +22,14 @@ module SpecViews
|
|
|
20
22
|
end
|
|
21
23
|
end
|
|
22
24
|
|
|
25
|
+
# Served as a file, so a Content Security Policy allowing 'self' is enough.
|
|
26
|
+
def script
|
|
27
|
+
js = %w[jsdiff diff].map do |name|
|
|
28
|
+
SpecViews::Engine.root.join("app/assets/javascripts/spec_views/#{name}.js").read
|
|
29
|
+
end
|
|
30
|
+
send_data js.join("\n"), type: 'text/javascript', disposition: 'inline'
|
|
31
|
+
end
|
|
32
|
+
|
|
23
33
|
def batch
|
|
24
34
|
@change = BatchDiff.new(directories).biggest_change
|
|
25
35
|
redirect_to(url_for(action: :index), notice: 'No identical changes found') unless @change
|
|
@@ -27,7 +37,7 @@ module SpecViews
|
|
|
27
37
|
|
|
28
38
|
def batch_accept
|
|
29
39
|
batch_diff = BatchDiff.new(directories)
|
|
30
|
-
batch_diff.
|
|
40
|
+
batch_diff.accept_by_key!(params[:key])
|
|
31
41
|
if batch_diff.changes.size > 1
|
|
32
42
|
redirect_to(action: :batch)
|
|
33
43
|
else
|
|
@@ -126,7 +136,8 @@ module SpecViews
|
|
|
126
136
|
end
|
|
127
137
|
|
|
128
138
|
def directory
|
|
129
|
-
directories.detect { |dir| dir.to_param == params[:id] }
|
|
139
|
+
directories.detect { |dir| dir.to_param == params[:id] } ||
|
|
140
|
+
raise(ActionController::RoutingError, "Unknown spec view #{params[:id]}")
|
|
130
141
|
end
|
|
131
142
|
|
|
132
143
|
def get_view(path, html_safe: true)
|
|
@@ -4,7 +4,18 @@ module SpecViews
|
|
|
4
4
|
class BatchDiff
|
|
5
5
|
attr_reader :directories
|
|
6
6
|
|
|
7
|
-
Change
|
|
7
|
+
class Change
|
|
8
|
+
attr_reader :key
|
|
9
|
+
|
|
10
|
+
def initialize(key)
|
|
11
|
+
@key = key
|
|
12
|
+
@pairs = []
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def count
|
|
16
|
+
@pairs.size
|
|
17
|
+
end
|
|
18
|
+
|
|
8
19
|
def patched_champion
|
|
9
20
|
Diff::LCS.patch!(champion, diff)
|
|
10
21
|
end
|
|
@@ -14,17 +25,15 @@ module SpecViews
|
|
|
14
25
|
end
|
|
15
26
|
|
|
16
27
|
def add(directory, diff)
|
|
17
|
-
@pairs ||= []
|
|
18
28
|
@pairs.push([directory, diff])
|
|
19
|
-
self.count += 1
|
|
20
29
|
end
|
|
21
30
|
|
|
22
31
|
def directory
|
|
23
|
-
@pairs
|
|
32
|
+
@pairs.first&.first
|
|
24
33
|
end
|
|
25
34
|
|
|
26
35
|
def diff
|
|
27
|
-
@pairs
|
|
36
|
+
@pairs.first&.second
|
|
28
37
|
end
|
|
29
38
|
|
|
30
39
|
def accept!
|
|
@@ -52,9 +61,9 @@ module SpecViews
|
|
|
52
61
|
element = '\n' if element == "\n"
|
|
53
62
|
[change.action, element]
|
|
54
63
|
end
|
|
55
|
-
|
|
56
|
-
map[
|
|
57
|
-
map[
|
|
64
|
+
diff_key = raw_diff.map(&:join).join
|
|
65
|
+
map[diff_key] ||= Change.new(diff_key)
|
|
66
|
+
map[diff_key].add(directory, diff)
|
|
58
67
|
end
|
|
59
68
|
end
|
|
60
69
|
map.values.filter { |change| change.count > 1 }
|
|
@@ -65,18 +74,8 @@ module SpecViews
|
|
|
65
74
|
changes.max_by(&:count)
|
|
66
75
|
end
|
|
67
76
|
|
|
68
|
-
def
|
|
69
|
-
changes.select { |change| change.
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
private
|
|
73
|
-
|
|
74
|
-
def get_view(path, html_safe: true)
|
|
75
|
-
content = File.read(path)
|
|
76
|
-
content = content.html_safe if html_safe
|
|
77
|
-
content
|
|
78
|
-
rescue Errno::ENOENT
|
|
79
|
-
''
|
|
77
|
+
def accept_by_key!(key)
|
|
78
|
+
changes.select { |change| change.key == key }.map(&:accept!)
|
|
80
79
|
end
|
|
81
80
|
end
|
|
82
81
|
end
|
|
@@ -30,7 +30,7 @@ module SpecViews
|
|
|
30
30
|
splitted_description.first.gsub(/Controller(_.*)$/, 'Controller').gsub(/Controller$/, '')
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
def
|
|
33
|
+
def http_method
|
|
34
34
|
splitted_description.second[0, 4]
|
|
35
35
|
end
|
|
36
36
|
|
|
@@ -112,7 +112,7 @@ module SpecViews
|
|
|
112
112
|
def spec_type
|
|
113
113
|
ActiveSupport::StringInquirer.new(meta[2])
|
|
114
114
|
rescue Errno::ENOENT
|
|
115
|
-
|
|
115
|
+
ActiveSupport::StringInquirer.new('response')
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
def content_type
|
|
@@ -21,7 +21,7 @@ module SpecViews
|
|
|
21
21
|
return extract_body(part.body) if part.respond_to?(:body)
|
|
22
22
|
return part if part.is_a?(String)
|
|
23
23
|
|
|
24
|
-
return
|
|
24
|
+
return unless part.respond_to?(:parts)
|
|
25
25
|
|
|
26
26
|
part.parts.map do |inner_part|
|
|
27
27
|
extract_body(inner_part)
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
</head>
|
|
290
290
|
<body>
|
|
291
291
|
<% flash.each do |type, msg| %>
|
|
292
|
-
<div class="flash flash-<%= type %>"><div
|
|
292
|
+
<div class="flash flash-<%= type %>"><div><%= msg %></div></div>
|
|
293
293
|
<% end %>
|
|
294
294
|
<%= yield %>
|
|
295
295
|
</body>
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
<div class="actions">
|
|
21
21
|
<%= link_to 'Index', url_for(action: :index), class: 'index btn' %>
|
|
22
|
-
<%= button_to "Accept Change for #{@change.count} Views", url_for(action: :batch_accept), { class: 'accept', params: {
|
|
22
|
+
<%= button_to "Accept Change for #{@change.count} Views", url_for(action: :batch_accept), { class: 'accept', params: { key: @change.key } } %>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
<%=
|
|
27
|
+
<%= tag.script(src: url_for(action: :script, id: nil, format: :js), nonce: content_security_policy_nonce) %>
|
data/config/routes.rb
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
# The UI writes and deletes fixture files, so it must never be reachable in production.
|
|
4
|
+
return unless Rails.env.local?
|
|
5
|
+
|
|
3
6
|
Rails.application.routes.draw do
|
|
4
7
|
namespace :spec_views do
|
|
5
8
|
root to: redirect('spec_views/views')
|
|
@@ -7,6 +10,7 @@ Rails.application.routes.draw do
|
|
|
7
10
|
resources :views, only: %i[index show] do
|
|
8
11
|
collection do
|
|
9
12
|
get :batch
|
|
13
|
+
get :script
|
|
10
14
|
delete :destroy_outdated
|
|
11
15
|
post :accept_all
|
|
12
16
|
post :reject_all
|
data/lib/spec_views/engine.rb
CHANGED
|
@@ -6,10 +6,6 @@ module SpecViews
|
|
|
6
6
|
class Engine < ::Rails::Engine
|
|
7
7
|
config.spec_views = Configuration.default
|
|
8
8
|
|
|
9
|
-
initializer 'spec_views.assets.precompile' do |app|
|
|
10
|
-
app.config.assets.precompile += %w[spec_views/diff.js]
|
|
11
|
-
end
|
|
12
|
-
|
|
13
9
|
config.generators do |g|
|
|
14
10
|
g.test_framework :rspec
|
|
15
11
|
end
|
data/lib/spec_views/support.rb
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'timecop'
|
|
4
|
-
|
|
5
3
|
module SpecViews
|
|
6
4
|
module Support
|
|
5
|
+
class << self
|
|
6
|
+
attr_accessor :run_time
|
|
7
|
+
|
|
8
|
+
def freeze_time
|
|
9
|
+
time = Rails.configuration.spec_views.freeze_time
|
|
10
|
+
time.is_a?(String) ? Time.zone.parse(time) : time
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
7
14
|
module SpecViewExample
|
|
8
15
|
def it_renders(description = nil, focus: nil, pending: nil, status: :ok, &block)
|
|
9
16
|
context do
|
|
@@ -27,20 +34,19 @@ RSpec.shared_context 'SpecViews ViewSanitizer' do
|
|
|
27
34
|
end
|
|
28
35
|
|
|
29
36
|
RSpec.configure do |c|
|
|
30
|
-
c.before(:suite) do
|
|
31
|
-
|
|
37
|
+
c.before(:suite) do
|
|
38
|
+
SpecViews::Support.run_time = Time.zone.now
|
|
32
39
|
end
|
|
33
40
|
c.include_context 'SpecViews ViewSanitizer'
|
|
34
41
|
%i[controller feature mailer request].each do |type|
|
|
35
42
|
c.extend SpecViews::Support::SpecViewExample, type: type
|
|
36
|
-
c.
|
|
37
|
-
@_spec_view_example = example
|
|
38
|
-
end
|
|
43
|
+
c.include ActiveSupport::Testing::TimeHelpers, type: type
|
|
39
44
|
c.before(:each, type: type) do
|
|
40
|
-
|
|
45
|
+
time = SpecViews::Support.freeze_time
|
|
46
|
+
travel_to(time) if time
|
|
41
47
|
end
|
|
42
48
|
c.after(:each, type: type) do
|
|
43
|
-
|
|
49
|
+
travel_back
|
|
44
50
|
end
|
|
45
51
|
end
|
|
46
52
|
end
|
|
@@ -60,19 +66,17 @@ matchers.each do |matcher|
|
|
|
60
66
|
end
|
|
61
67
|
|
|
62
68
|
match do |actual|
|
|
63
|
-
example =
|
|
69
|
+
example = RSpec.current_example
|
|
64
70
|
description = example.full_description
|
|
65
71
|
description = "#{description}-#{@affix}" if @affix.present?
|
|
66
|
-
type = example.metadata[:type]
|
|
67
|
-
run_time = $_spec_view_time # rubocop:disable Style/GlobalVars
|
|
68
72
|
@status ||= :ok
|
|
69
73
|
@matcher = matcher.second.new(
|
|
70
74
|
actual,
|
|
71
75
|
description,
|
|
72
76
|
expected_status: @status,
|
|
73
|
-
run_time: run_time,
|
|
77
|
+
run_time: SpecViews::Support.run_time,
|
|
74
78
|
sanitizer: view_sanitizer,
|
|
75
|
-
type: type
|
|
79
|
+
type: example.metadata[:type]
|
|
76
80
|
)
|
|
77
81
|
return @matcher.match?
|
|
78
82
|
end
|
data/lib/spec_views/version.rb
CHANGED
data/lib/spec_views.rb
CHANGED
metadata
CHANGED
|
@@ -1,97 +1,114 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spec_views
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sebastian Gaul
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
13
|
+
name: actionpack
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
18
|
+
version: '7.2'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '9'
|
|
20
22
|
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
25
|
requirements:
|
|
24
|
-
- - "
|
|
26
|
+
- - ">="
|
|
25
27
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
28
|
+
version: '7.2'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '9'
|
|
27
32
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
33
|
+
name: activesupport
|
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
|
30
35
|
requirements:
|
|
31
36
|
- - ">="
|
|
32
37
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
38
|
+
version: '7.2'
|
|
34
39
|
- - "<"
|
|
35
40
|
- !ruby/object:Gem::Version
|
|
36
|
-
version: '
|
|
41
|
+
version: '9'
|
|
37
42
|
type: :runtime
|
|
38
43
|
prerelease: false
|
|
39
44
|
version_requirements: !ruby/object:Gem::Requirement
|
|
40
45
|
requirements:
|
|
41
46
|
- - ">="
|
|
42
47
|
- !ruby/object:Gem::Version
|
|
43
|
-
version: '
|
|
48
|
+
version: '7.2'
|
|
44
49
|
- - "<"
|
|
45
50
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
51
|
+
version: '9'
|
|
47
52
|
- !ruby/object:Gem::Dependency
|
|
48
|
-
name:
|
|
53
|
+
name: diff-lcs
|
|
49
54
|
requirement: !ruby/object:Gem::Requirement
|
|
50
55
|
requirements:
|
|
51
56
|
- - ">="
|
|
52
57
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '5
|
|
58
|
+
version: '1.5'
|
|
54
59
|
- - "<"
|
|
55
60
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: '
|
|
61
|
+
version: '3'
|
|
57
62
|
type: :runtime
|
|
58
63
|
prerelease: false
|
|
59
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
60
65
|
requirements:
|
|
61
66
|
- - ">="
|
|
62
67
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: '5
|
|
68
|
+
version: '1.5'
|
|
64
69
|
- - "<"
|
|
65
70
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: '
|
|
71
|
+
version: '3'
|
|
67
72
|
- !ruby/object:Gem::Dependency
|
|
68
|
-
name:
|
|
73
|
+
name: railties
|
|
69
74
|
requirement: !ruby/object:Gem::Requirement
|
|
70
75
|
requirements:
|
|
71
|
-
- - "
|
|
76
|
+
- - ">="
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
version: '7.2'
|
|
79
|
+
- - "<"
|
|
72
80
|
- !ruby/object:Gem::Version
|
|
73
|
-
version: '
|
|
81
|
+
version: '9'
|
|
74
82
|
type: :runtime
|
|
75
83
|
prerelease: false
|
|
76
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
77
85
|
requirements:
|
|
78
|
-
- - "
|
|
86
|
+
- - ">="
|
|
79
87
|
- !ruby/object:Gem::Version
|
|
80
|
-
version: '
|
|
88
|
+
version: '7.2'
|
|
89
|
+
- - "<"
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '9'
|
|
81
92
|
- !ruby/object:Gem::Dependency
|
|
82
|
-
name:
|
|
93
|
+
name: rspec-rails
|
|
83
94
|
requirement: !ruby/object:Gem::Requirement
|
|
84
95
|
requirements:
|
|
85
96
|
- - ">="
|
|
86
97
|
- !ruby/object:Gem::Version
|
|
87
|
-
version: '0'
|
|
88
|
-
|
|
98
|
+
version: '7.0'
|
|
99
|
+
- - "<"
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '9'
|
|
102
|
+
type: :runtime
|
|
89
103
|
prerelease: false
|
|
90
104
|
version_requirements: !ruby/object:Gem::Requirement
|
|
91
105
|
requirements:
|
|
92
106
|
- - ">="
|
|
93
107
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: '0'
|
|
108
|
+
version: '7.0'
|
|
109
|
+
- - "<"
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: '9'
|
|
95
112
|
description: Render views from controller specs for comparision
|
|
96
113
|
email:
|
|
97
114
|
- sebastian.gaul@lichtbit.com
|
|
@@ -99,10 +116,9 @@ executables: []
|
|
|
99
116
|
extensions: []
|
|
100
117
|
extra_rdoc_files: []
|
|
101
118
|
files:
|
|
119
|
+
- CHANGELOG.md
|
|
102
120
|
- MIT-LICENSE
|
|
103
121
|
- README.md
|
|
104
|
-
- Rakefile
|
|
105
|
-
- app/assets/config/spec_views_manifest.js
|
|
106
122
|
- app/assets/javascripts/spec_views/diff.js
|
|
107
123
|
- app/assets/javascripts/spec_views/jsdiff.js
|
|
108
124
|
- app/controllers/spec_views/views_controller.rb
|
|
@@ -129,12 +145,14 @@ files:
|
|
|
129
145
|
- lib/spec_views/engine.rb
|
|
130
146
|
- lib/spec_views/support.rb
|
|
131
147
|
- lib/spec_views/version.rb
|
|
132
|
-
|
|
133
|
-
homepage: https://lichtbit.com
|
|
148
|
+
homepage: https://github.com/Lichtbit/spec_views
|
|
134
149
|
licenses:
|
|
135
150
|
- MIT
|
|
136
|
-
metadata:
|
|
137
|
-
|
|
151
|
+
metadata:
|
|
152
|
+
source_code_uri: https://github.com/Lichtbit/spec_views
|
|
153
|
+
changelog_uri: https://github.com/Lichtbit/spec_views/blob/master/CHANGELOG.md
|
|
154
|
+
bug_tracker_uri: https://github.com/Lichtbit/spec_views/issues
|
|
155
|
+
rubygems_mfa_required: 'true'
|
|
138
156
|
rdoc_options: []
|
|
139
157
|
require_paths:
|
|
140
158
|
- lib
|
|
@@ -142,15 +160,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
142
160
|
requirements:
|
|
143
161
|
- - ">="
|
|
144
162
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: '
|
|
163
|
+
version: '3.2'
|
|
146
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
165
|
requirements:
|
|
148
166
|
- - ">="
|
|
149
167
|
- !ruby/object:Gem::Version
|
|
150
168
|
version: '0'
|
|
151
169
|
requirements: []
|
|
152
|
-
rubygems_version: 3.
|
|
153
|
-
signing_key:
|
|
170
|
+
rubygems_version: 3.6.9
|
|
154
171
|
specification_version: 4
|
|
155
172
|
summary: Render views from controller specs for comparision
|
|
156
173
|
test_files: []
|
data/Rakefile
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
begin
|
|
4
|
-
require 'bundler/setup'
|
|
5
|
-
rescue LoadError
|
|
6
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
require 'rdoc/task'
|
|
10
|
-
|
|
11
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
|
12
|
-
rdoc.rdoc_dir = 'rdoc'
|
|
13
|
-
rdoc.title = 'SpecViews'
|
|
14
|
-
rdoc.options << '--line-numbers'
|
|
15
|
-
rdoc.rdoc_files.include('README.md')
|
|
16
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
APP_RAKEFILE = File.expand_path('spec/dummy/Rakefile', __dir__)
|
|
20
|
-
load 'rails/tasks/engine.rake'
|
|
21
|
-
|
|
22
|
-
load 'rails/tasks/statistics.rake'
|
|
23
|
-
|
|
24
|
-
require 'bundler/gem_tasks'
|
|
25
|
-
|
|
26
|
-
require 'rake/testtask'
|
|
27
|
-
|
|
28
|
-
Rake::TestTask.new(:test) do |t|
|
|
29
|
-
t.libs << 'test'
|
|
30
|
-
t.pattern = 'test/**/*_test.rb'
|
|
31
|
-
t.verbose = false
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
task default: :test
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//= link spec_views/diff.js
|