ruby-mobile-appium-template 1.0.9 → 1.1.0

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 +57 -56
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4d297ea3fc2cade59d85c8ea2ceb6c4ca8f005b9fb17fe01d18b96e0beb912d
4
- data.tar.gz: be6a6d19b77bb6234ab72d9f2c41848bf62286523aced8d1d0bf26926dee4799
3
+ metadata.gz: 0152d4b0a4ed5cb1bd17dbcefa23913a81e2b9153fc29b245e9fb563fd42bf89
4
+ data.tar.gz: 2a0c32c2745a16f64a27cb846996a3691ad4dcd72ea7a171b18ca9c0631fb7c6
5
5
  SHA512:
6
- metadata.gz: edf609b6010c3c6d189462690951f0be42e6383e22c557bbaeff2fc5c8bff0cca3ee261bae12a8a9fffbf6137a915a75589bbf5508cbefe2d99ba381b7f569b4
7
- data.tar.gz: 301a7c5e9ea32f83c5045db7f5a773d11cb97a04376c03a773c63974668629f85a7fed6c15f27ab98bef35cbb33333a497abf7cfbd272733c7c1e708ef0820c9
6
+ metadata.gz: '095af323928046a9fce3b3a0e9f305a672e18a830eb58f7a240f8e9920cd9fca7ae7f51ca0cd3f8dc37601ce2047e29328dc6719877e925423dfca2719ea0d28'
7
+ data.tar.gz: f7584ccbccaaf73c7f4ed29d3bc4ee42d10a550dc6ff6bcd6553dcd064ac50b139061984cda1fc78bf68f2ac4479900c25950ba238c584246b38c07f685843df
data/lib/ruby_appium.rb CHANGED
@@ -1,22 +1,23 @@
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.9"
8
+ VERSION = "1.1.0"
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
  puts destination_root
20
+ puts self.destination_root
20
21
  make_empty_directory
21
22
  FileUtils.cd(destination_root)
22
23
  gemfile_rakefile_cukeyml
@@ -27,89 +28,89 @@ class RubyAppium < Thor::Group
27
28
  protected
28
29
 
29
30
  def make_empty_directory
30
- empty_directory '.'
31
+ empty_directory "."
31
32
  end
32
33
 
33
34
  def create_folders
34
- empty_directory 'app'
35
- empty_directory 'config'
36
- empty_directory 'features'
35
+ empty_directory "app"
36
+ empty_directory "config"
37
+ empty_directory "features"
37
38
 
38
- inside 'app' do
39
- empty_directory 'ios'
40
- empty_directory 'android'
39
+ inside "app" do
40
+ empty_directory "ios"
41
+ empty_directory "android"
41
42
  end
42
43
 
43
- inside 'config' do
44
- empty_directory 'ios'
45
- empty_directory 'android'
44
+ inside "config" do
45
+ empty_directory "ios"
46
+ empty_directory "android"
46
47
  end
47
48
 
48
- inside 'features' do
49
- empty_directory 'login'
50
- empty_directory 'support'
49
+ inside "features" do
50
+ empty_directory "login"
51
+ empty_directory "support"
51
52
  end
52
53
 
53
- inside 'features/login' do
54
- empty_directory 'features'
55
- empty_directory 'data'
56
- empty_directory 'elements'
57
- empty_directory 'pageobjects'
58
- empty_directory 'steps'
54
+ inside "features/login" do
55
+ empty_directory "features"
56
+ empty_directory "data"
57
+ empty_directory "elements"
58
+ empty_directory "pageobjects"
59
+ empty_directory "steps"
59
60
  end
60
61
  end
61
62
 
62
63
  def create_files
63
- inside 'config/ios' do
64
- template 'config/ios/appium.txt', 'appium.txt'
65
- template 'config/ios/appium_farm.txt', 'appium_farm.txt'
64
+ inside "#{destination_root}/config/ios" do
65
+ template "#{destination_root}/config/ios/appium.txt", "appium.txt"
66
+ template "#{destination_root}/config/ios/appium_farm.txt", "appium_farm.txt"
66
67
  end
67
68
 
68
- inside 'config/android' do
69
- template 'config/android/appium.txt', 'appium.txt'
70
- template 'config/android/appium_farm.txt', 'appium_farm.txt'
69
+ inside "#{destination_root}/config/android" do
70
+ template "#{destination_root}/config/android/appium.txt", "appium.txt"
71
+ template "#{destination_root}/config/android/appium_farm.txt", "appium_farm.txt"
71
72
  end
72
73
 
73
- inside 'features/support' do
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'
74
+ inside "#{destination_root}/features/support" do
75
+ template "#{destination_root}/features/support/env.rb", "env.rb"
76
+ template "#{destination_root}/features/support/hooks.rb", "hooks.rb"
77
+ template "#{destination_root}/eatures/support/utils.rb", "utils.rb"
78
+ template "#{destination_root}/features/support/appium_custom.rb", "appium_custom.rb"
78
79
  end
79
80
 
80
- inside 'features/login/features' do
81
- template 'features/login/features/login.feature', 'login.feature'
81
+ inside "#{destination_root}/features/login/features" do
82
+ template "#{destination_root}/eatures/login/features/login.feature", "login.feature"
82
83
  end
83
84
 
84
- inside 'features/login/data' do
85
- template 'features/login/data/login.yaml','data/login.yaml'
85
+ inside "#{destination_root}/features/login/data" do
86
+ template "#{destination_root}/features/login/data/login.yaml","data/login.yaml"
86
87
  end
87
88
 
88
- inside 'features/login/elements' do
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'
89
+ inside "#{destination_root}/features/login/elements" do
90
+ template "#{destination_root}/features/login/elements/screen_mappings_home.yaml","screen_mappings_home.yaml"
91
+ template "#{destination_root}/features/login/elements/screen_mappings_login.yaml","screen_mappings_login.yaml"
92
+ template "#{destination_root}/features/login/elements/screen_mappings_organizadorhome.yaml","screen_mappings_organizadorhome.yaml"
93
+ template "#{destination_root}/features/login/elements/screen_mappings_token.yaml","screen_mappings_token.yaml"
93
94
  end
94
95
 
95
- inside 'features/login/pageobjects' do
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'
96
+ inside "#{destination_root}/features/login/pageobjects" do
97
+ template "#{destination_root}/features/login/pageobjects/home.rb","home.rb"
98
+ template "#{destination_root}/features/login/pageobjects/login.rb","login.rb"
99
+ template "#{destination_root}/features/login/pageobjects/loginPages.rb","loginPages.rb"
100
+ template "#{destination_root}/features/login/pageobjects/organizadorHome.rb","organizadorHome.rb"
101
+ template "#{destination_root}/features/login/pageobjects/token.rb","token.rb"
101
102
  end
102
103
 
103
- inside 'features/login/steps' do
104
- template 'features/login/steps/login_steps.rb','login_steps.rb'
104
+ inside "#{destination_root}/features/login/steps" do
105
+ template "#{destination_root}/features/login/steps/login_steps.rb","login_steps.rb"
105
106
  end
106
107
  end
107
108
 
108
109
  def gemfile_rakefile_cukeyml
109
110
  inside destination_root do
110
- template 'Gemfile'
111
- template 'Rakefile'
112
- template 'cucumber.yml'
111
+ template "Gemfile"
112
+ template "Rakefile"
113
+ template "cucumber.yml"
113
114
  end
114
115
  end
115
116
 
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.9
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Fernandes