spec_views 3.6.2 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 342f945fe2d7908457df8c17c2759eecef72f95c83ad497001b8f8910cfbfc29
4
- data.tar.gz: c5ee7e710d2d81b473c213e89e690ca4d1106e86badd513f72bbdd448a5625fa
3
+ metadata.gz: 72b5ecdd4398b7b33961990a99c205c1f3e79adb1242510cdb61b9cdbcacbb36
4
+ data.tar.gz: 5a9ea00cebac5970564e47b3493d98efcf602a38c2f3d6228972f94e256b7bf7
5
5
  SHA512:
6
- metadata.gz: 074dd0db49f6bd717607e32172c7360408f3e1a9515612a493eb6875a3a068e30b111b7f3c52e2dd2f596d87c2c61beeffb63a84e27c711cc2ea71de3e54eebf
7
- data.tar.gz: 32a80a7d7036496d55d452f6b1e3fa5878d621d3a777fde613d1c72d15f7afd368fb9b349d26bc4da9fc61db38576698a05cf20f44b5be5e509440925446b1f0
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).
@@ -1,5 +1,3 @@
1
- //= require spec_views/jsdiff
2
-
3
1
  var a = document.getElementById('diff-champion');
4
2
  var b = document.getElementById('diff-challenger');
5
3
  var result = document.getElementById('diff-result');
@@ -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.accept_by_hash!(params[:hash])
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 = Struct.new(:hash, :count) do
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&.first&.first
32
+ @pairs.first&.first
24
33
  end
25
34
 
26
35
  def diff
27
- @pairs&.first&.second
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
- diff_hash = raw_diff.map(&:join).join
56
- map[diff_hash] ||= Change.new(diff_hash, 0)
57
- map[diff_hash].add(directory, diff)
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 accept_by_hash!(hash)
69
- changes.select { |change| change.hash == hash }.map(&:accept!)
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 method
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
- :response
115
+ ActiveSupport::StringInquirer.new('response')
116
116
  end
117
117
 
118
118
  def content_type
@@ -4,8 +4,6 @@ require 'diff/lcs'
4
4
 
5
5
  module SpecViews
6
6
  class HtmlMatcher < BaseMatcher
7
- delegate :champion_html, to: :directory
8
-
9
7
  protected
10
8
 
11
9
  def subject_name
@@ -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 if !part.respond_to?(:parts) && nil
24
+ return unless part.respond_to?(:parts)
25
25
 
26
26
  part.parts.map do |inner_part|
27
27
  extract_body(inner_part)
@@ -44,7 +44,7 @@ module SpecViews
44
44
 
45
45
  def remove_headers_from_pdf(body)
46
46
  body
47
- .force_encoding('BINARY')
47
+ .b
48
48
  .gsub(%r{^/CreationDate \(.*\)$}, '')
49
49
  .gsub(%r{^/ModDate \(.*\)$}, '')
50
50
  .gsub(%r{^/ID \[<.+><.+>\]$}, '')
@@ -289,7 +289,7 @@
289
289
  </head>
290
290
  <body>
291
291
  <% flash.each do |type, msg| %>
292
- <div class="flash flash-<%= type %>"><div onclick="console.log(this.parent)"><%= msg %></div></div>
292
+ <div class="flash flash-<%= type %>"><div><%= msg %></div></div>
293
293
  <% end %>
294
294
  <%= yield %>
295
295
  </body>
@@ -4,7 +4,7 @@
4
4
  <%= directory.controller_name %>
5
5
  </div>
6
6
  <div>
7
- <%= directory.method %>
7
+ <%= directory.http_method %>
8
8
  </div>
9
9
  <div>
10
10
  <%= directory.description_tail %>
@@ -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: { hash: @change.hash } } %>
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
- <%= javascript_include_tag 'spec_views/diff' %>
27
+ <%= tag.script(src: url_for(action: :script, id: nil, format: :js), nonce: content_security_policy_nonce) %>
@@ -13,4 +13,4 @@
13
13
  </div>
14
14
  <%= render 'directory_footer', directory: @directory %>
15
15
 
16
- <%= javascript_include_tag 'spec_views/diff' %>
16
+ <%= tag.script(src: url_for(action: :script, id: nil, format: :js), nonce: content_security_policy_nonce) %>
@@ -8,7 +8,7 @@
8
8
  <%= dir.controller_name %>
9
9
  </div>
10
10
  <div>
11
- <%= dir.method %>
11
+ <%= dir.http_method %>
12
12
  </div>
13
13
  <div>
14
14
  <%= dir.description_tail %>
@@ -10,7 +10,7 @@
10
10
  <%= @directory.controller_name %>
11
11
  </div>
12
12
  <div>
13
- <%= @directory.method %>
13
+ <%= @directory.http_method %>
14
14
  </div>
15
15
  <div>
16
16
  <%= @directory.description_tail %>
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
@@ -5,7 +5,8 @@ module SpecViews
5
5
  def self.default
6
6
  new(
7
7
  directory: 'spec/fixtures/views',
8
- ui_url: 'http://localhost:3000/spec_views'
8
+ ui_url: 'http://localhost:3000/spec_views',
9
+ freeze_time: '2024-02-29 00:17:42'
9
10
  )
10
11
  end
11
12
  end
@@ -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
@@ -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 |_example|
31
- $_spec_view_time = Time.zone.now # rubocop:disable Style/GlobalVars
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.before(type: type) do |example|
37
- @_spec_view_example = example
38
- end
43
+ c.include ActiveSupport::Testing::TimeHelpers, type: type
39
44
  c.before(:each, type: type) do
40
- Timecop.freeze(Time.zone.local(2024, 2, 29, 0o0, 17, 42))
45
+ time = SpecViews::Support.freeze_time
46
+ travel_to(time) if time
41
47
  end
42
48
  c.after(:each, type: type) do
43
- Timecop.return
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 = @matcher_execution_context.instance_variable_get('@_spec_view_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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SpecViews
4
- VERSION = '3.6.2'
4
+ VERSION = '4.0.0'
5
5
  end
data/lib/spec_views.rb CHANGED
@@ -1,7 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'spec_views/engine'
4
-
5
- module SpecViews
6
- # Your code goes here...
7
- end
metadata CHANGED
@@ -1,85 +1,114 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.2
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: 2026-09-22 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: diff-lcs
13
+ name: actionpack
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '1.5'
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: '1.5'
28
+ version: '7.2'
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '9'
27
32
  - !ruby/object:Gem::Dependency
28
- name: rails
33
+ name: activesupport
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
36
  - - ">="
32
37
  - !ruby/object:Gem::Version
33
- version: '5.0'
38
+ version: '7.2'
39
+ - - "<"
40
+ - !ruby/object:Gem::Version
41
+ version: '9'
34
42
  type: :runtime
35
43
  prerelease: false
36
44
  version_requirements: !ruby/object:Gem::Requirement
37
45
  requirements:
38
46
  - - ">="
39
47
  - !ruby/object:Gem::Version
40
- version: '5.0'
48
+ version: '7.2'
49
+ - - "<"
50
+ - !ruby/object:Gem::Version
51
+ version: '9'
41
52
  - !ruby/object:Gem::Dependency
42
- name: rspec-rails
53
+ name: diff-lcs
43
54
  requirement: !ruby/object:Gem::Requirement
44
55
  requirements:
45
56
  - - ">="
46
57
  - !ruby/object:Gem::Version
47
- version: '5.0'
58
+ version: '1.5'
59
+ - - "<"
60
+ - !ruby/object:Gem::Version
61
+ version: '3'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '5.0'
68
+ version: '1.5'
69
+ - - "<"
70
+ - !ruby/object:Gem::Version
71
+ version: '3'
55
72
  - !ruby/object:Gem::Dependency
56
- name: timecop
73
+ name: railties
57
74
  requirement: !ruby/object:Gem::Requirement
58
75
  requirements:
59
- - - "~>"
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '7.2'
79
+ - - "<"
60
80
  - !ruby/object:Gem::Version
61
- version: '0.0'
81
+ version: '9'
62
82
  type: :runtime
63
83
  prerelease: false
64
84
  version_requirements: !ruby/object:Gem::Requirement
65
85
  requirements:
66
- - - "~>"
86
+ - - ">="
67
87
  - !ruby/object:Gem::Version
68
- version: '0.0'
88
+ version: '7.2'
89
+ - - "<"
90
+ - !ruby/object:Gem::Version
91
+ version: '9'
69
92
  - !ruby/object:Gem::Dependency
70
- name: sqlite3
93
+ name: rspec-rails
71
94
  requirement: !ruby/object:Gem::Requirement
72
95
  requirements:
73
96
  - - ">="
74
97
  - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
98
+ version: '7.0'
99
+ - - "<"
100
+ - !ruby/object:Gem::Version
101
+ version: '9'
102
+ type: :runtime
77
103
  prerelease: false
78
104
  version_requirements: !ruby/object:Gem::Requirement
79
105
  requirements:
80
106
  - - ">="
81
107
  - !ruby/object:Gem::Version
82
- version: '0'
108
+ version: '7.0'
109
+ - - "<"
110
+ - !ruby/object:Gem::Version
111
+ version: '9'
83
112
  description: Render views from controller specs for comparision
84
113
  email:
85
114
  - sebastian.gaul@lichtbit.com
@@ -87,10 +116,9 @@ executables: []
87
116
  extensions: []
88
117
  extra_rdoc_files: []
89
118
  files:
119
+ - CHANGELOG.md
90
120
  - MIT-LICENSE
91
121
  - README.md
92
- - Rakefile
93
- - app/assets/config/spec_views_manifest.js
94
122
  - app/assets/javascripts/spec_views/diff.js
95
123
  - app/assets/javascripts/spec_views/jsdiff.js
96
124
  - app/controllers/spec_views/views_controller.rb
@@ -117,12 +145,14 @@ files:
117
145
  - lib/spec_views/engine.rb
118
146
  - lib/spec_views/support.rb
119
147
  - lib/spec_views/version.rb
120
- - lib/tasks/spec_views_tasks.rake
121
- homepage: https://lichtbit.com
148
+ homepage: https://github.com/Lichtbit/spec_views
122
149
  licenses:
123
150
  - MIT
124
- metadata: {}
125
- post_install_message:
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'
126
156
  rdoc_options: []
127
157
  require_paths:
128
158
  - lib
@@ -130,15 +160,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
160
  requirements:
131
161
  - - ">="
132
162
  - !ruby/object:Gem::Version
133
- version: '0'
163
+ version: '3.2'
134
164
  required_rubygems_version: !ruby/object:Gem::Requirement
135
165
  requirements:
136
166
  - - ">="
137
167
  - !ruby/object:Gem::Version
138
168
  version: '0'
139
169
  requirements: []
140
- rubygems_version: 3.1.2
141
- signing_key:
170
+ rubygems_version: 3.6.9
142
171
  specification_version: 4
143
172
  summary: Render views from controller specs for comparision
144
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
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # desc "Explaining what the task does"
4
- # task :spec_views do
5
- # # Task goes here
6
- # end