spec_views 1.0.0 → 1.0.1

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: 8278245502dacbcd31ef70f86ff4662761b85145a0b266aab61cada76d7972fa
4
- data.tar.gz: bcb0df09b2f54eb9fb46aa0cf8861dc3a3aee8af831c99bae385dd2328c3e620
3
+ metadata.gz: 327822c86f6aac9cd2d8e9c31e06465df710a3b4806d42c5899cbbf6e6a59a02
4
+ data.tar.gz: 99f42b68d14679146f5b2a7c9e01bad4e9c9a0a1b241d1880a223bb560004126
5
5
  SHA512:
6
- metadata.gz: c3801ed87b71487132c9588021b1e169f00b2115b9f17f78eb61acae13d1141b7016bce76b5c7353ab393ad65f4a48405bbe57bc53cfef93c8cd790393757653
7
- data.tar.gz: 9780e7d55922bd751e9bd3a30e62445b2b54757f00c5744d10146ec0ec5df2f06f88fcf07643f48d99c39615b1c78fd34a7dd466ddb06008b0953a00e4342fd3
6
+ metadata.gz: c02702e4aa11e099daf606f54bedae303f330a6e5135e786835ff7c5483d329a9ac6218e1e584e76aa9f74feb69d64bfb29a38bd9087cc5c9141917e004aa8d5
7
+ data.tar.gz: 186aa286db5f8d583f747a39a46ac8531036156715308468d1eb07847626e8337260583d48e084a5063b2200dc1ae1e29e9e1f3cc06221037cd46a82b96b93c7
data/README.md CHANGED
@@ -31,5 +31,11 @@ And then execute:
31
31
  $ bundle
32
32
  ```
33
33
 
34
+ Ignore some generated files in your .gitignore:
35
+ ```bash
36
+ /spec/fixtures/views/*/challenger.html
37
+ /spec/fixtures/views/*/last_run.txt
38
+ ```
39
+
34
40
  ## License
35
41
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -96,7 +96,7 @@ module SpecViews
96
96
  end
97
97
 
98
98
  def controller_name
99
- splitted_name.first.gsub(/Controller(_.*)$/, 'Controller').gsub('_', '::')
99
+ splitted_name.first.gsub(/Controller(_.*)$/, 'Controller').gsub(/Controller$/, '').gsub('_', '::')
100
100
  end
101
101
 
102
102
  def method
@@ -141,6 +141,7 @@
141
141
  margin: 5rem auto 0
142
142
  list-style-type: none
143
143
  padding: 0
144
+ padding-bottom: 2rem
144
145
 
145
146
  > div
146
147
  margin-top: 1rem
@@ -149,6 +150,7 @@
149
150
  display: flex
150
151
  flex: 1 0 auto
151
152
  align-items: stretch
153
+ line-height: 1.5
152
154
 
153
155
  &:hover, &:focus
154
156
  background-color: $dark-bg-light
@@ -1,23 +1,24 @@
1
1
  .iframes
2
- .directories.w-100
3
- - @directories.each do |dir|
4
- - body = capture do
5
- %div
6
- %div= dir.controller_name
7
- %div= dir.method
8
- %div= dir.description
9
- - if dir.challenger?
10
- = link_to({ action: :compare, id: dir }, class: 'challenger') do
11
- %div CHALLENGER
12
- = body
13
- - elsif dir.last_run < @latest_run
14
- = link_to({ action: :preview, id: dir }, class: 'outdated') do
15
- %div OUTDATED
16
- = body
17
- - else
18
- = link_to(action: :preview, id: dir) do
2
+ %div.w-100
3
+ .directories
4
+ - @directories.each do |dir|
5
+ - body = capture do
19
6
  %div
20
- = body
7
+ %div= dir.controller_name
8
+ %div= dir.method
9
+ %div= dir.description
10
+ - if dir.challenger?
11
+ = link_to({ action: :compare, id: dir }, class: 'challenger') do
12
+ %div CHALLENGER
13
+ = body
14
+ - elsif dir.last_run < @latest_run
15
+ = link_to({ action: :preview, id: dir }, class: 'outdated') do
16
+ %div OUTDATED
17
+ = body
18
+ - else
19
+ = link_to(action: :preview, id: dir) do
20
+ %div
21
+ = body
21
22
 
22
23
  .footer
23
24
  .info
@@ -1,3 +1,3 @@
1
1
  module SpecViews
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Gaul
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: timecop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.0'
55
69
  description: Render views from controller specs for comparision
56
70
  email:
57
71
  - sebastian.gaul@lichtbit.com