crtu 0.2.4.2 → 0.2.4.3

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
  SHA1:
3
- metadata.gz: f383fddcb492fc85c8b38a2813fec9cb62c4b69e
4
- data.tar.gz: a0f6ae6f7dc79f41fa5d2c6daabc9bae219905a5
3
+ metadata.gz: 81cb94afede8874152b32509a2dca58322455ea0
4
+ data.tar.gz: f3aa06a1c8b331feae685845e9c74a1aa7e75c2a
5
5
  SHA512:
6
- metadata.gz: a0b6e89e1640602b36114eb69a79a6efa9fdb6b2bc0be62a72ca86b769c61b01750cde9c7bd78da98f0ec989fe141490e919589c088b5ee4083be3cdc507caf3
7
- data.tar.gz: bda10955bfece4f2ad8d099779b424a532f6e44ef6d476f232f0e49c817020a7a57b7bb767190a59d5532ad6a4344c67fd14d160b78a76e07c5c0b7c7eb5c346
6
+ metadata.gz: d50ea822ceee55db7db66db232984f288a76f48fbcb0532cd422f193e415537577497ce52d8b5859d82a5c5a00f0125345b9701d0b72ed0642f8fc66b6b5bb77
7
+ data.tar.gz: 5aea136f0062bcc1e9acddfa743a6402d027b331e6ffbb706bbf60a89fb6b2518f9532abf4f8710a50fbda41d17d3a07949fb318abf8f75601303d5f41024154
@@ -1,3 +1,3 @@
1
1
  module Crtu
2
- VERSION = "0.2.4.2"
2
+ VERSION = "0.2.4.3"
3
3
  end
@@ -69,30 +69,11 @@ namespace :features do
69
69
  end
70
70
 
71
71
 
72
- desc 'Run specific feature file'
72
+ desc 'Run specific feature file by name'
73
73
  task :run_cucumber_feature, [:feature_name] do |t,args|
74
- if File.extname(args[:feature_name].to_s).empty?
75
- filename = "#{args[:feature_name]}.feature"
76
- else
77
- filename = :feature_name.to_s
78
- end
79
-
80
- #if we only give filename, no paths behind
81
- if File.dirname(filename).empty?
82
- filepath = File.join(Dir.pwd, 'features', filename)
83
- else
84
- # we shoud extract each pathname and process it
85
- filefolders = File.dirname(filename).split(File::SEPARATOR)
86
- filepath = File.join(Dir.pwd, 'features')
87
-
88
- filefolders.each do |folder|
89
- filepath = File.join(filepath,folder)
90
- end
91
- filepath = File.join(filepath, File.basename(filename))
92
- end
93
74
 
94
75
  Cucumber::Rake::Task.new(t) do |c|
95
- c.cucumber_opts = "-r #{filepath} --format progress --out reports/progress.out --format html --out reports/report.html --format json --out reports/cucumber.json"
76
+ c.cucumber_opts = "features --name #{args[:feature_name]} --format progress --out reports/progress.out --format html --out reports/report.html --format json --out reports/cucumber.json"
96
77
  end
97
78
 
98
79
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crtu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.2
4
+ version: 0.2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fábio André Ramos Rodrigues