pretty_face 0.8.2 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e45bd28da1c788cbe7b0324de85de7e7f02b587d
4
- data.tar.gz: e8d403d867e2d9ef08a6e47ff66731f6a3def96b
3
+ metadata.gz: 0416c6439549ce94e753d287ff97b3fac83ab74a
4
+ data.tar.gz: ab763d25e47d948dbcc78da465603650ff3752df
5
5
  SHA512:
6
- metadata.gz: d28c14e54fe096ee821990d3528189de95b32e67ef0dc4f0b2a57652b0fa036a83830041e6cc505d89472df7f89fd3f628d518ac74bf1010fbb0c6930e507f2b
7
- data.tar.gz: 65dd7192109d6bfead112994875fc790d3ac3de46cd4e014f6962933c11fc15358d4befd765169566fc73d8a68771c751192811b328a7577e976e530656776ad
6
+ metadata.gz: 8894c1b533efb55a481ed57772a6958607280d7fc8b7cf9bd0d02d94a38d2b277c1a23debaed0d82dc8071fe6fc14752ec6bfdaece28888e25c686fee69d4fd0
7
+ data.tar.gz: 1dedbfaf4ba5c38573ec882c0a06bebcc799272aacf018c3346dbb3660f287f03221ecb359a0f993c0e34854f8b1deb9b83b0303a4be6b3d0648994c4e44741a
data/ChangeLog CHANGED
@@ -1,10 +1,12 @@
1
- === Release 0.8.2
2
- * More issues fixed with Windows
1
+ === Release 0.9 / 2013-9-4
2
+ * Support for utf-8 (Thanks Eugene Batogov)
3
+ * Fixed error when multiple nested directories
3
4
 
4
- === Release 0.8.1
5
- * Fixing issues with windows paths
5
+ === Release 0.8.2 / 2013-8-16
6
+ * More issues fixed with Windows
6
7
 
7
8
  === Release 0.8.1 / 2013-8-11
9
+ * Fixing issues with windows paths
8
10
  * Fixed issue with back link not working when page is nested in directory
9
11
 
10
12
  === Release 0.8 / 2013-8-8
@@ -94,6 +94,11 @@ Feature: pages that show details for features
94
94
  Then the following files should exist:
95
95
  | results/more/more.html |
96
96
 
97
+ Scenario: Should create a directory for each directory under features
98
+ Then the following files should exist:
99
+ | results/onemore/more.html |
100
+ | results/onemore/deep/more.html |
101
+
97
102
  Scenario: It should replace the header for the feature pages
98
103
  When I have a feature header partial in the correct location
99
104
  And I run `cucumber fixtures --profile fixture`
@@ -0,0 +1,8 @@
1
+ Feature: More scenarios
2
+ As a stakeholder
3
+ I want to see some details about this feature
4
+ So that I have some idea why this test matters
5
+
6
+ Scenario: A passing scenario with more
7
+ When Cucumber puts "hello"
8
+ Then it should say hello
@@ -0,0 +1,8 @@
1
+ Feature: More scenarios
2
+ As a stakeholder
3
+ I want to see some details about this feature
4
+ So that I have some idea why this test matters
5
+
6
+ Scenario: A passing scenario with more
7
+ When Cucumber puts "hello"
8
+ Then it should say hello
@@ -164,7 +164,7 @@ module PrettyFace
164
164
  output_file = "#{File.dirname(@path)}#{separator}#{feature.file}"
165
165
  to_cut = output_file.split(separator).last
166
166
  directory = output_file.sub("#{separator}#{to_cut}", '')
167
- FileUtils.mkdir directory unless File.directory? directory
167
+ FileUtils.mkdir_p directory unless File.directory? directory
168
168
  file = File.new(output_file, Cucumber.file_mode('w'))
169
169
  file.puts renderer.render(:file => filename, :locals => {:feature => feature, :logo => @logo, :customize => custom_feature_header?})
170
170
  file.flush
@@ -178,7 +178,7 @@ module PrettyFace
178
178
 
179
179
  def make_directory(dir)
180
180
  path = "#{File.dirname(@path)}#{separator}#{dir}"
181
- FileUtils.mkdir path unless File.directory? path
181
+ FileUtils.mkdir_p path unless File.directory? path
182
182
  end
183
183
 
184
184
  def copy_directory(dir, file_names, file_extension)
@@ -10,6 +10,8 @@ module PrettyFace
10
10
  def formatted_duration(duration)
11
11
  m, s = duration.divmod(60)
12
12
  "#{m}m#{'%.3f' % s}s"
13
+ rescue
14
+ "N m Ns"
13
15
  end
14
16
 
15
17
  def image_tag_for(status, source=nil)
@@ -2,7 +2,7 @@
2
2
  <html xmlns='http://www.w3.org/1999/xhtml'>
3
3
  <head>
4
4
  <link href='<%= feature.directory_prefix_for(feature.file) %>stylesheets/style.css' type='text/css' rel='stylesheet' />
5
-
5
+ <meta charset="utf-8">
6
6
  <title>Feature Results</title>
7
7
  </head>
8
8
 
@@ -2,7 +2,7 @@
2
2
  <html xmlns='http://www.w3.org/1999/xhtml'>
3
3
  <head>
4
4
  <link href='stylesheets/style.css' type='text/css' rel='stylesheet' />
5
-
5
+ <meta charset="utf-8">
6
6
  <title>Test Results</title>
7
7
  </head>
8
8
 
@@ -1,3 +1,3 @@
1
1
  module PrettyFace
2
- VERSION = "0.8.2"
2
+ VERSION = "0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_face
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: '0.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey S. Morgan
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-08-16 00:00:00.000000000 Z
15
+ date: 2013-09-04 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: actionpack
@@ -136,6 +136,8 @@ files:
136
136
  - fixtures/basic.feature
137
137
  - fixtures/failing_background.feature
138
138
  - fixtures/more/more.feature
139
+ - fixtures/onemore/deep/more.feature
140
+ - fixtures/onemore/more.feature
139
141
  - fixtures/step_definitions/advanced_steps.rb
140
142
  - fixtures/step_definitions/basic_steps.rb
141
143
  - fixtures/support/env.rb
@@ -204,6 +206,8 @@ test_files:
204
206
  - fixtures/basic.feature
205
207
  - fixtures/failing_background.feature
206
208
  - fixtures/more/more.feature
209
+ - fixtures/onemore/deep/more.feature
210
+ - fixtures/onemore/more.feature
207
211
  - fixtures/step_definitions/advanced_steps.rb
208
212
  - fixtures/step_definitions/basic_steps.rb
209
213
  - fixtures/support/env.rb