ruby-mobile-appium-template 1.0.8 → 1.1.1

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 +57 -56
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4088f155843c3ffb222898c0cf2640395c3ef81190dbe335efcd8128c89aeaa
4
- data.tar.gz: bfbedc0a9a5453c9540cc7df0668125ae30f3fd91a814062b35cfd5dbdf121d5
3
+ metadata.gz: 8d94362babb8b06c6fbc979a2214bf8ff299531b6f9720ce7bf1f1c192db7d87
4
+ data.tar.gz: c6b84ede61361825ab61e9e3810f3e465f601b0ad5e3e7be839b46110c6ca94c
5
5
  SHA512:
6
- metadata.gz: ad1cf5db0ec137da740b0054dace727387d271730e32de756718d958665d87ba92301a4aa1bd482a246275019379fef6828bf36ac87c03bd86f47ab8b231f2f7
7
- data.tar.gz: 21c1e8192922e02ed74588ef7543e2d667decc1db0dc69f4792cb87b512a458833c25b83cb4c2f70351aabb92b99f198b01edf856432d9087511541bfc5fd8b2
6
+ metadata.gz: 7c2df95310169ee95b40479c3f9acc829f7126ec207eb3792416393c4e3ed3cdd1e8e4d150bf5d3c58783a3603068a4250ad2ab7468f04322b789fe3f3101eaf
7
+ data.tar.gz: 235e3de849709d0d752f3b73fba66308202eaaaf113ceedd7b6b2d98beeb5a1890ea8646bc611facd41c655dd52a2bf681f703abbc4029ffea053754acfd4890
data/lib/ruby_appium.rb CHANGED
@@ -1,21 +1,21 @@
1
- require 'thor'
2
- require 'thor/group'
3
- require 'fileutils'
1
+ require "thor"
2
+ require "thor/group"
3
+ require "fileutils"
4
4
 
5
5
  class RubyAppium < Thor::Group
6
6
  include Thor::Actions
7
7
 
8
- VERSION = "1.0.8"
8
+ VERSION = "1.1.1"
9
9
 
10
10
  argument :dir_name
11
11
 
12
12
  def self.source_root
13
- File.join(File.dirname(__FILE__), '..', 'templates')
13
+ File.join(File.dirname(__FILE__), "..", "templates")
14
14
 
15
15
  end
16
16
 
17
17
  def create_new_cucumber_directory
18
- self.destination_root = File.expand_path(dir_name, destination_root)
18
+ self.destination_root = File.expand_path(dir_name)
19
19
  make_empty_directory
20
20
  FileUtils.cd(destination_root)
21
21
  gemfile_rakefile_cukeyml
@@ -26,89 +26,90 @@ class RubyAppium < Thor::Group
26
26
  protected
27
27
 
28
28
  def make_empty_directory
29
- empty_directory '.'
29
+ empty_directory "."
30
30
  end
31
31
 
32
32
  def create_folders
33
- empty_directory 'app'
34
- empty_directory 'config'
35
- empty_directory 'features'
33
+ empty_directory "app"
34
+ empty_directory "config"
35
+ empty_directory "features"
36
36
 
37
- inside 'app' do
38
- empty_directory 'ios'
39
- empty_directory 'android'
37
+ inside "app" do
38
+ empty_directory "ios"
39
+ empty_directory "android"
40
40
  end
41
41
 
42
- inside 'config' do
43
- empty_directory 'ios'
44
- empty_directory 'android'
42
+ inside "config" do
43
+ empty_directory "ios"
44
+ empty_directory "android"
45
45
  end
46
46
 
47
- inside 'features' do
48
- empty_directory 'login'
49
- empty_directory 'support'
47
+ inside "features" do
48
+ empty_directory "login"
49
+ empty_directory "support"
50
50
  end
51
51
 
52
- inside 'features/login' do
53
- empty_directory 'features'
54
- empty_directory 'data'
55
- empty_directory 'elements'
56
- empty_directory 'pageobjects'
57
- empty_directory 'steps'
52
+ inside "features/login" do
53
+ empty_directory "features"
54
+ empty_directory "data"
55
+ empty_directory "elements"
56
+ empty_directory "pageobjects"
57
+ empty_directory "steps"
58
58
  end
59
59
  end
60
60
 
61
61
  def create_files
62
- inside 'config/ios' do
63
- template 'config/ios/appium.txt', 'appium.txt'
64
- template 'config/ios/appium_farm.txt', 'appium_farm.txt'
62
+ inside "config/ios" do
63
+ template "config/ios/appium.txt", "appium.txt"
64
+ template "config/ios/appium_farm.txt", "appium_farm.txt"
65
65
  end
66
66
 
67
- inside 'config/android' do
68
- template 'config/android/appium.txt', 'appium.txt'
69
- template 'config/android/appium_farm.txt', 'appium_farm.txt'
67
+ inside "config/android" do
68
+ template "config/android/appium.txt", "appium.txt"
69
+ template "config/android/appium_farm.txt", "appium_farm.txt"
70
70
  end
71
71
 
72
- inside 'features/support' do
73
- template 'features/support/env.rb', 'env.rb'
74
- template 'features/support/hooks.rb', 'hooks.rb'
75
- template 'features/support/utils.rb', 'utils.rb'
76
- template 'features/support/appium_custom.rb', 'appium_custom.rb'
72
+ inside "features/support" do
73
+ template "features/support/env.rb", "env.rb"
74
+ template "features/support/hooks.rb", "hooks.rb"
75
+ template "eatures/support/utils.rb", "utils.rb"
76
+ template "features/support/appium_custom.rb", "appium_custom.rb"
77
77
  end
78
78
 
79
- inside 'features/login/features' do
80
- template 'features/login/features/login.feature', 'login.feature'
79
+ inside "features/login/features" do
80
+ template "eatures/login/features/login.feature", "login.feature"
81
81
  end
82
82
 
83
- inside 'features/login/data' do
84
- template 'features/login/data/login.yaml','data/login.yaml'
83
+ inside "features/login/data" do
84
+ template "features/login/data/login.yaml","data/login.yaml"
85
85
  end
86
86
 
87
- inside 'features/login/elements' do
88
- template 'features/login/elements/screen_mappings_home.yaml','screen_mappings_home.yaml'
89
- template 'features/login/elements/screen_mappings_login.yaml','screen_mappings_login.yaml'
90
- template 'features/login/elements/screen_mappings_organizadorhome.yaml','screen_mappings_organizadorhome.yaml'
91
- template 'features/login/elements/screen_mappings_token.yaml','screen_mappings_token.yaml'
87
+ inside "features/login/elements" do
88
+ template "features/login/elements/screen_mappings_home.yaml","screen_mappings_home.yaml"
89
+ template "features/login/elements/screen_mappings_login.yaml","screen_mappings_login.yaml"
90
+ template "features/login/elements/screen_mappings_organizadorhome.yaml","screen_mappings_organizadorhome.yaml"
91
+ template "features/login/elements/screen_mappings_token.yaml","screen_mappings_token.yaml"
92
92
  end
93
93
 
94
- inside 'features/login/pageobjects' do
95
- template 'features/login/pageobjects/home.rb','home.rb'
96
- template 'features/login/pageobjects/login.rb','login.rb'
97
- template 'features/login/pageobjects/loginPages.rb','loginPages.rb'
98
- template 'features/login/pageobjects/organizadorHome.rb','organizadorHome.rb'
99
- template 'features/login/pageobjects/token.rb','token.rb'
94
+ inside "features/login/pageobjects" do
95
+ template "features/login/pageobjects/home.rb","home.rb"
96
+ template "features/login/pageobjects/login.rb","login.rb"
97
+ template "features/login/pageobjects/loginPages.rb","loginPages.rb"
98
+ template "features/login/pageobjects/organizadorHome.rb","organizadorHome.rb"
99
+ template "features/login/pageobjects/token.rb","token.rb"
100
100
  end
101
101
 
102
- inside 'features/login/steps' do
103
- template 'features/login/steps/login_steps.rb','login_steps.rb'
102
+ inside "features/login/steps" do
103
+ template "features/login/steps/login_steps.rb","login_steps.rb"
104
104
  end
105
105
  end
106
106
 
107
107
  def gemfile_rakefile_cukeyml
108
108
  inside destination_root do
109
- template 'Gemfile'
110
- template 'Rakefile'
111
- template 'cucumber.yml'
109
+ template "Gemfile"
110
+ template "Rakefile"
111
+ template "cucumber.yml"
112
+ template "appium.txt", "config/ios/appium.txt"
112
113
  end
113
114
  end
114
115
 
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.8
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Fernandes