automation_wizard 2.0.1 → 2.0.2

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: a4e40efe5d2b6bc0f7138745918c7555bf054676
4
- data.tar.gz: e9edec72de24c9897a47167a108fd82c8d42e19b
3
+ metadata.gz: be63825b056d4d16cdb51d8996ecd17b932fc9e6
4
+ data.tar.gz: 2f0f50d10890e31a6844027704f397b4f7c4ed97
5
5
  SHA512:
6
- metadata.gz: fb29ba4eaa141296c83f2e0dfd9545eeebc398eab708836cf79ad81a2d94dd352092cc515f7cac17386e67fb405baaf51f8408790e4c8e989b5bf46dc0445d91
7
- data.tar.gz: 604ca1b1e7d71ac3ea35f6ab8fba4ca7cb4f784f12ff78bbc155f98701b5d615f436e0fe77d4143501353f54602ec2a2b1f3beb5dc63ebaf3a756179128a08b9
6
+ metadata.gz: 876d725116a8c13ca0bd83f0f25e3acc07006db51743cb162b1dab498ecb7415db66127b48f6d74b5f6156e7658576c6c1c5a447ae98f3d90098fa178c9ce5b7
7
+ data.tar.gz: dc01af97e91834582e4ca6f783d6deb892e318931ddd1a8117a7d9adb78bace290582b1cd7136718a18850cb4969ae8811b20b166418467c75f41b69672b3242
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- automation_wizard (2.0)
4
+ automation_wizard (2.0.2)
5
5
  thor (~> 0.17, >= 0.17.0)
6
6
 
7
7
  GEM
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
  require 'automation_wizard/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
- s.name = "automation_wizard"
6
+ s.name = 'automation_wizard'
7
7
  s.version = AutomationWizard::VERSION
8
8
  s.license = 'MIT'
9
9
  s.authors = ['Avery Roswell']
@@ -1,12 +1,11 @@
1
1
  require 'thor'
2
2
  require 'automation_wizard/generators/project'
3
- require 'pry'
4
3
 
5
4
  module AutomationWizard
6
5
  class CLI < Thor
7
6
 
8
7
  desc 'testproject <project_name>', 'Create a new test project'
9
- method_option :level, type: :string, required: true, desc: 'Provide level option.'
8
+ method_option :level, type: :string, required: false, desc: 'Provide level option.'
10
9
 
11
10
  def testproject(name)
12
11
  driver = options[:level]
@@ -1,4 +1,4 @@
1
- <% if level.downcase == 'jr' -%>
1
+ <% if !level.nil? && level.downcase == 'jr' -%>
2
2
  class LoblawsHome < WatirDrops::PageObject
3
3
 
4
4
  page_url { 'https://www.loblaws.ca' }
@@ -1,4 +1,4 @@
1
- <% if level.downcase == 'jr' -%>
1
+ <% if !level.nil? && level.downcase == 'jr' -%>
2
2
  require_relative 'spec_helper'
3
3
  require_relative '../lib/pages/loblaws_home'
4
4
  require_relative '../lib/models/model_loblaws_search'
@@ -1,4 +1,4 @@
1
- <% if level.downcase == 'jr' -%>
1
+ <% if !level.nil? && level.downcase == 'jr' -%>
2
2
  class ModelLoblawsSearch < WatirModel
3
3
  key(:search_term) { 'cheese' }
4
4
  end
@@ -6,7 +6,7 @@ module AutomationWizard
6
6
  include Thor::Actions
7
7
 
8
8
  argument :name, type: :string, desc: 'The name of the project'
9
- argument :level, type: :string, desc: 'Project level'
9
+ argument :level, type: :string, required: false, desc: 'Project level'
10
10
 
11
11
  desc 'Generates a project structure for automation applicant test'
12
12
 
@@ -39,7 +39,7 @@ module AutomationWizard
39
39
  end
40
40
 
41
41
  def copy_specs
42
- template 'spec_helper.rb', "#{name}/spec/spec_helper.rb"
42
+ copy_file 'spec_helper.rb', "#{name}/spec/spec_helper.rb"
43
43
  template 'loblaws_search_spec.rb.tt', "#{name}/spec/loblaws_search_spec.rb"
44
44
  end
45
45
 
@@ -1,3 +1,3 @@
1
1
  module AutomationWizard
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: automation_wizard
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avery Roswell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-01 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor