ruby-mobile-appium-template 1.0.2 → 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 +72 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99c5d81290a7ba8f5e946047aaa0a71704a3d718575126f0de8a1f683145a9d9
4
- data.tar.gz: d6f5a383ca1bd02ef92eef7f4a113038e78b7262b89f243b6b0119d3d5deadb2
3
+ metadata.gz: 7a5c863455692c6be100534688875f13598a62d2237cf12aa8d13fc402916a81
4
+ data.tar.gz: 5862a9c51727709b14afd783aad0e63edfdf6c20a4f723da1a760527336167fc
5
5
  SHA512:
6
- metadata.gz: 8f3719c87352f7b70872e39ac9c2cfbc0ee39088c42e818d2f5f52e9fc44c251d0f2425218ecd16ee5ec9a928d505725bff8b7ea46ed87d9e326c28d0d1e3053
7
- data.tar.gz: c5294343089ef8dbd97f8a0f25b16e668282070bd8b87917ce9e5266a03c8b5b2aad94412b90b8ea7fd6d84bb8a55f7f3a8a0c5fff357a3dffc1c1626b5cfb01
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.2"
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,19 +28,82 @@ class RubyAppium < Thor::Group
27
28
  empty_directory '.'
28
29
  end
29
30
 
30
- def directory_and_files
31
+ def create_folders
32
+ empty_directory 'app'
33
+ empty_directory 'config'
31
34
  empty_directory 'features'
32
35
 
36
+ inside 'app' do
37
+ empty_directory 'ios'
38
+ empty_directory 'android'
39
+ end
40
+
41
+ inside 'config' do
42
+ empty_directory 'ios'
43
+ empty_directory 'android'
44
+ end
45
+
33
46
  inside 'features' do
34
- template 'example.feature', 'example.feature'
47
+ empty_directory 'login'
35
48
  empty_directory 'support'
36
- template 'support/env.rb', 'support/env.rb'
37
- template 'support/hooks.rb', 'support/hooks.rb'
38
- template 'support/paths.rb', 'support/paths.rb'
39
- template 'step_definitions/web_steps.rb'
49
+ end
50
+
51
+ inside 'features/login' do
52
+ empty_directory 'features'
53
+ empty_directory 'data'
54
+ empty_directory 'elements'
55
+ empty_directory 'pageobjects'
56
+ empty_directory 'steps'
57
+ end
58
+ end
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'
40
103
  end
41
104
  end
42
105
 
106
+
43
107
  def gemfile_rakefile_cukeyml
44
108
  inside destination_root do
45
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Fernandes