ruby-mobile-appium-template 1.0.6 → 1.0.9

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruby_appium.rb +25 -24
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6fdbaa8818b10d7b6c40a785d25f05c493ec63e2ef89b74282cb807129cc1af
4
- data.tar.gz: e774c39b4b1c2bd4d540cc136b8fdfa9639f013ca57857e26e50dea0e4b578b8
3
+ metadata.gz: b4d297ea3fc2cade59d85c8ea2ceb6c4ca8f005b9fb17fe01d18b96e0beb912d
4
+ data.tar.gz: be6a6d19b77bb6234ab72d9f2c41848bf62286523aced8d1d0bf26926dee4799
5
5
  SHA512:
6
- metadata.gz: f4070d6140af575eca4df29196d1cd9687343979e0fb8c46dc249bfe28eb2f1bbd61bc400ab319514969dd465b2e7316b602fe4c317c07bd774a9ae37c6333a6
7
- data.tar.gz: c584ea896ad46605ba71eaba771d810d31c1e426a1929a94a2f46a7c23e2d86a1ccf191945441527f85a5918b6071b1e28139be47198470e9a00944a82979d4e
6
+ metadata.gz: edf609b6010c3c6d189462690951f0be42e6383e22c557bbaeff2fc5c8bff0cca3ee261bae12a8a9fffbf6137a915a75589bbf5508cbefe2d99ba381b7f569b4
7
+ data.tar.gz: 301a7c5e9ea32f83c5045db7f5a773d11cb97a04376c03a773c63974668629f85a7fed6c15f27ab98bef35cbb33333a497abf7cfbd272733c7c1e708ef0820c9
data/lib/ruby_appium.rb CHANGED
@@ -5,16 +5,18 @@ require 'fileutils'
5
5
  class RubyAppium < Thor::Group
6
6
  include Thor::Actions
7
7
 
8
- VERSION = "1.0.6"
8
+ VERSION = "1.0.9"
9
9
 
10
10
  argument :dir_name
11
11
 
12
12
  def self.source_root
13
- File.join(File.dirname(__FILE__), '..', 'falei')
13
+ File.join(File.dirname(__FILE__), '..', 'templates')
14
+
14
15
  end
15
16
 
16
17
  def create_new_cucumber_directory
17
18
  self.destination_root = File.expand_path(dir_name, destination_root)
19
+ puts destination_root
18
20
  make_empty_directory
19
21
  FileUtils.cd(destination_root)
20
22
  gemfile_rakefile_cukeyml
@@ -57,53 +59,52 @@ class RubyAppium < Thor::Group
57
59
  end
58
60
  end
59
61
 
60
- def create_files
62
+ def create_files
61
63
  inside 'config/ios' do
62
- template 'appium.txt'
63
- template 'appium_farm.txt'
64
+ template 'config/ios/appium.txt', 'appium.txt'
65
+ template 'config/ios/appium_farm.txt', 'appium_farm.txt'
64
66
  end
65
67
 
66
68
  inside 'config/android' do
67
- template 'appium.txt'
68
- template 'appium_farm.txt'
69
+ template 'config/android/appium.txt', 'appium.txt'
70
+ template 'config/android/appium_farm.txt', 'appium_farm.txt'
69
71
  end
70
72
 
71
73
  inside 'features/support' do
72
- template 'env.rb'
73
- template 'hooks.rb'
74
- template 'utils.rb'
75
- template 'appium_custom.rb'
74
+ template 'features/support/env.rb', 'env.rb'
75
+ template 'features/support/hooks.rb', 'hooks.rb'
76
+ template 'features/support/utils.rb', 'utils.rb'
77
+ template 'features/support/appium_custom.rb', 'appium_custom.rb'
76
78
  end
77
79
 
78
80
  inside 'features/login/features' do
79
- template 'login.feature'
81
+ template 'features/login/features/login.feature', 'login.feature'
80
82
  end
81
83
 
82
84
  inside 'features/login/data' do
83
- template 'data/login.yaml'
85
+ template 'features/login/data/login.yaml','data/login.yaml'
84
86
  end
85
87
 
86
88
  inside 'features/login/elements' do
87
- template 'screen_mappings_home.yaml'
88
- template 'screen_mappings_login.yaml'
89
- template 'screen_mappings_organizadorhome.yaml'
90
- template 'screen_mappings_token.yaml'
89
+ template 'features/login/elements/screen_mappings_home.yaml','screen_mappings_home.yaml'
90
+ template 'features/login/elements/screen_mappings_login.yaml','screen_mappings_login.yaml'
91
+ template 'features/login/elements/screen_mappings_organizadorhome.yaml','screen_mappings_organizadorhome.yaml'
92
+ template 'features/login/elements/screen_mappings_token.yaml','screen_mappings_token.yaml'
91
93
  end
92
94
 
93
95
  inside 'features/login/pageobjects' do
94
- template 'home.rb'
95
- template 'login.rb'
96
- template 'loginPages.rb'
97
- template 'organizadorHome.rb'
98
- template 'token.rb'
96
+ template 'features/login/pageobjects/home.rb','home.rb'
97
+ template 'features/login/pageobjects/login.rb','login.rb'
98
+ template 'features/login/pageobjects/loginPages.rb','loginPages.rb'
99
+ template 'features/login/pageobjects/organizadorHome.rb','organizadorHome.rb'
100
+ template 'features/login/pageobjects/token.rb','token.rb'
99
101
  end
100
102
 
101
103
  inside 'features/login/steps' do
102
- template 'login_steps.rb'
104
+ template 'features/login/steps/login_steps.rb','login_steps.rb'
103
105
  end
104
106
  end
105
107
 
106
-
107
108
  def gemfile_rakefile_cukeyml
108
109
  inside destination_root do
109
110
  template 'Gemfile'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-mobile-appium-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Fernandes