ruby-mobile-appium-template 1.0.0 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruby_appium.rb +51 -23
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d32efb696b9b84bc25d4756ffbf854ca90d5c9ed74ce013c22ac2a60c8b004a
4
- data.tar.gz: 733fb67acf84d2381d94bf86e659e1cc1b1b7fc0523576524484cc5360051511
3
+ metadata.gz: 7a5c863455692c6be100534688875f13598a62d2237cf12aa8d13fc402916a81
4
+ data.tar.gz: 5862a9c51727709b14afd783aad0e63edfdf6c20a4f723da1a760527336167fc
5
5
  SHA512:
6
- metadata.gz: 4f83cab52dbaa2921f5d4d9186654080623a3fab315093b807ce57c2d6302b5118dd07442fb0375a4b40282fb686b50c3bdde2826a05dbbb026d47c350764e20
7
- data.tar.gz: 141339ec936f1076e568561418e1ef2c00d8cc7d88be15bdd910a65eed2fd68d0679e6bea0806d1c5a25e51de7f27ef78ec97d22fe99b10270ddda4bf29b9ac0
6
+ metadata.gz: 5742360669342e4088de15cee853357f4d87cdeef827003b07b11ebdd444d1d288f0e8fc3970b879be163a6e727165b3d6b708e9043c9e11a1fb5cbdf8286fea
7
+ data.tar.gz: e203294c286dfd96fc58dc66add448cc64b24a7c3044a1daf78823bd8e6baa516e388c845f4ee83a7aa5e8a51316b9e6a3394491080f66962a72923087b7c045
data/lib/ruby_appium.rb CHANGED
@@ -5,7 +5,7 @@ require 'fileutils'
5
5
  class RubyAppium < Thor::Group
6
6
  include Thor::Actions
7
7
 
8
- VERSION = "1.0.0"
8
+ VERSION = "1.0.3"
9
9
 
10
10
  argument :dir_name
11
11
 
@@ -18,7 +18,8 @@ class RubyAppium < Thor::Group
18
18
  make_empty_directory
19
19
  FileUtils.cd(destination_root)
20
20
  gemfile_rakefile_cukeyml
21
- directory_and_files
21
+ create_folders
22
+ create_files
22
23
  end
23
24
 
24
25
  protected
@@ -27,7 +28,7 @@ class RubyAppium < Thor::Group
27
28
  empty_directory '.'
28
29
  end
29
30
 
30
- def directory_and_files
31
+ def create_folders
31
32
  empty_directory 'app'
32
33
  empty_directory 'config'
33
34
  empty_directory 'features'
@@ -40,42 +41,69 @@ class RubyAppium < Thor::Group
40
41
  inside 'config' do
41
42
  empty_directory 'ios'
42
43
  empty_directory 'android'
43
- template 'ios/appium.txt', 'ios/appium.txt'
44
- template 'ios/appium_farm.txt', 'ios/appium_farm.txt'
45
- template 'android/appium.txt', 'android/appium.txt'
46
- template 'android/appium_farm.txt', 'android/appium_farm.txt'
47
44
  end
48
45
 
49
46
  inside 'features' do
50
47
  empty_directory 'login'
51
48
  empty_directory 'support'
52
- template 'support/env.rb', 'support/env.rb'
53
- template 'support/hooks.rb', 'support/hooks.rb'
54
- template 'support/utils.rb', 'support/utils.rb'
55
- template 'support/appium_custom.rb', 'support/appium_custom.rb'
56
49
  end
57
50
 
58
51
  inside 'features/login' do
59
52
  empty_directory 'features'
60
- template 'features/login.feature', 'features/login.feature'
61
53
  empty_directory 'data'
62
- template 'data/login.yaml','data/login.yaml'
63
54
  empty_directory 'elements'
64
- template 'elements/screen_mappings_home.yaml','elements/screen_mappings_home.yaml'
65
- template 'elements/screen_mappings_login.yaml','elements/screen_mappings_login.yaml'
66
- template 'elements/screen_mappings_organizadorhome.yaml','elements/screen_mappings_organizadorhome.yaml'
67
- template 'elements/screen_mappings_token.yaml','elements/screen_mappings_token.yaml'
68
55
  empty_directory 'pageobjects'
69
- template 'pageobjects/home.rb','pageobjects/home.rb'
70
- template 'pageobjects/login.rb','pageobjects/login.rb'
71
- template 'pageobjects/loginPages.rb','pageobjects/loginPages.rb'
72
- template 'pageobjects/organizadorHome.rb','pageobjects/organizadorHome.rb'
73
- template 'pageobjects/token.rb','pageobjects/token.rb'
74
56
  empty_directory 'steps'
75
- template 'steps/login_steps.rb','steps/login_steps.rb'
76
57
  end
77
58
  end
78
59
 
60
+ def create_files
61
+ inside 'config/ios' do
62
+ template 'templates/config/ios/appium.txt', 'appium.txt'
63
+ template 'templates/config/ios/appium_farm.txt', 'appium_farm.txt'
64
+ end
65
+
66
+ inside 'config/android' do
67
+ template 'templates/config/android/appium.txt', 'appium.txt'
68
+ template 'templates/config/android/appium_farm.txt', 'appium_farm.txt'
69
+ end
70
+
71
+ inside 'features/support' do
72
+ template 'templates/features/support/env.rb', 'env.rb'
73
+ template 'templates/features/support/hooks.rb', 'hooks.rb'
74
+ template 'templates/features/support/utils.rb', 'utils.rb'
75
+ template 'templates/features/support/appium_custom.rb', 'appium_custom.rb'
76
+ end
77
+
78
+ inside 'features/login/features' do
79
+ template 'templates/features/login/features/login.feature', 'login.feature'
80
+ end
81
+
82
+ inside 'features/login/data' do
83
+ template 'templates/features/login/data/login.yaml','data/login.yaml'
84
+ end
85
+
86
+ inside 'features/login/elements' do
87
+ template 'templates/features/login/elements/screen_mappings_home.yaml','screen_mappings_home.yaml'
88
+ template 'templates/features/login/elements/screen_mappings_login.yaml','screen_mappings_login.yaml'
89
+ template 'templates/features/login/elements/screen_mappings_organizadorhome.yaml','screen_mappings_organizadorhome.yaml'
90
+ template 'templates/features/login/elements/screen_mappings_token.yaml','screen_mappings_token.yaml'
91
+ end
92
+
93
+ inside 'features/login/pageobjects' do
94
+ template 'templates/features/login/pageobjects/home.rb','home.rb'
95
+ template 'templates/features/login/pageobjects/login.rb','login.rb'
96
+ template 'templates/features/login/pageobjects/loginPages.rb','loginPages.rb'
97
+ template 'templates/features/login/pageobjects/organizadorHome.rb','organizadorHome.rb'
98
+ template 'templates/features/login/pageobjects/token.rb','token.rb'
99
+ end
100
+
101
+ inside 'features/login/steps' do
102
+ template 'templates/features/login/steps/login_steps.rb','login_steps.rb'
103
+ end
104
+ end
105
+
106
+
79
107
  def gemfile_rakefile_cukeyml
80
108
  inside destination_root do
81
109
  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.0
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Fernandes