qa_at_migration 1.1.0 → 1.2.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: a491fbd9050638764d4ab3a170d402e4dfb3faac078b386087919d16dee836f3
4
- data.tar.gz: 9c82c1b74ebb6c46fbdbbc1db185d484b5267ceeae170638e72bce46904167ba
3
+ metadata.gz: 63bcec780b2d5d37a6a1d3e9ab2d4669ed5fcb53fcd34101ab9afbc2e73584cc
4
+ data.tar.gz: f8a6fc6677b01605c5101e18d0675ce49f9f595f0d0ad628ec4653aefad6edbc
5
5
  SHA512:
6
- metadata.gz: 4191456845c4cdd78f17040770f2130a082b800fa2e3920bafd281847a89d26f46983b29ff8c74906b968e5c4bfc84a9691363b23e6b0926f0695f9468141e89
7
- data.tar.gz: 67ccbd67717c5578486716db8677a3dd36c6eda3718d26d6c025a511b3ebc3a121d41c0703e98faa017feca907eaef5d95f211d4067a981f0419d217c6ba45db
6
+ metadata.gz: db979a76aebaaa6cfeacc3ec7af088e217fc8183c96f8839f1d2ce9c5b93a4cd9b4a38e15d6b894a495b16bca40ddd2bc9f78535c9d4002d8b14bd043c91ed68
7
+ data.tar.gz: 062efd700aba96e2c58de2e869d67fabb6da7bd1d9a8d80a8d071bbd15184a261d644f905b2625b1f8da4c90ba4eb1b79637beaf6714b052b00462b11ce8f1e5
@@ -8,7 +8,7 @@ require 'qa_at_migration/generator'
8
8
 
9
9
  module QaAtMigration
10
10
  class ThorCommands < Thor
11
- option :sourcepath, :aliases => "-s", :required => true, :banner => '</path/to/project>'
11
+ option :sourcepath, :aliases => "-s", :required => false, :banner => '</path/to/project>, current path if no sourcepath is provided'
12
12
  option :targetpath, :aliases => "-t", :required => false, :banner => '</path/to/generate>, current path if no targetpath is provided'
13
13
  desc "generate_csv [<OUTPUT_FILENAME>.csv]",
14
14
  "The default value will be 'master.csv' if no OUTPUT_FILENAME is provided"
@@ -6,7 +6,7 @@ module QaAtMigration
6
6
  CSV_HEADERS = %w(Title Description Preconditions Steps Status).freeze
7
7
 
8
8
  def generate sourcepath, targetpath, output_filename = 'master.csv'
9
- @sourcepath = sourcepath
9
+ @sourcepath = sourcepath ? sourcepath : Dir.pwd
10
10
  output_path_filename = targetpath ? File.join(targetpath, output_filename) : output_filename
11
11
  CSV.open(output_path_filename, 'w', headers: CSV_HEADERS, write_headers: true) do |csv|
12
12
  paths.each { |path| csv << TestFile.new(path).content }
@@ -16,6 +16,7 @@ module QaAtMigration
16
16
  private
17
17
 
18
18
  def paths
19
+ p "@sourcepath = #{@sourcepath}"
19
20
  Dir.glob(File.join(@sourcepath, TEST_FILE_PATTERN), File::FNM_CASEFOLD).reject do |filename|
20
21
  File.directory?(filename) || File.basename(filename).start_with?(*ignored_files)
21
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qa_at_migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Huillca