GeneSaudeId 0.1.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/GeneSaudeId.gemspec +1 -1
- data/bin/GeneSaudeId +8 -8
- data/bin/genesaudeid +8 -8
- data/lib/GeneSaudeId/GeneSaudeId_helper.rb +0 -1
- data/lib/GeneSaudeId/version.rb +1 -1
- data/lib/SkeletonApi/features/support/env.rb +1 -3
- data/lib/SkeletonWeb/features/support/env.rb +3 -0
- data/lib/SkeletonWeb/features/support/pages/base_page.rb +3 -0
- data/lib/templates/page.tt +4 -0
- data/lib/templates/services.tt +7 -4
- metadata +5 -5
- data/lib/SkeletonWeb/features/support/pages/.gitkeep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ed08678c2028cd55b44b982fe6286f04cbb416697b37c40b7bfb214f2c8cc13
|
4
|
+
data.tar.gz: 3e99c5d724a68fcbff6fcef73749d2c6fadb67fa0ad8e030dedbbfcbcf36962e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 926d3da0f8f3765cac0183aaa6bc844ff41f9d255297e386222c93f851d021c247c0c7df49fbeafbd775c0c3295dec0ac5b770ccc633b2b6a9de16f2890b7ed9
|
7
|
+
data.tar.gz: 7ddbe04446fed7ad98c73e5c79bc197d37458a60dfdd584acd46e11c59739f8ed84f238b44c2908c266e154af451ba714daeb1265339ee88b85be0ac09811fd3
|
data/GeneSaudeId.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = GeneSaudeId::VERSION
|
8
8
|
spec.authors = ["Raphael Castro"]
|
9
9
|
spec.email = ["raphael_antonio_vieira@hotmail.com"]
|
10
|
-
spec.summary = %q{Generates an Web, Api
|
10
|
+
spec.summary = %q{Generates an Web, Api Test Automation project with Cucumber, Rspec,
|
11
11
|
Capybara, Selenium, Httparty and JsonSchema.}
|
12
12
|
spec.description = %q{A simple gem to generate all files needed in a
|
13
13
|
project Mobile, Web and Api for Testing Automation.}
|
data/bin/GeneSaudeId
CHANGED
@@ -18,7 +18,7 @@ module GeneCapybara
|
|
18
18
|
desc 'feature [RESOURCE_NAME]', 'Generates a feature'
|
19
19
|
option :lang,
|
20
20
|
banner: 'any of the gherkin support languages',
|
21
|
-
default: :
|
21
|
+
default: :pt
|
22
22
|
def feature(name)
|
23
23
|
I18n.config.default_locale = options[:lang]
|
24
24
|
in_root_project_folder?
|
@@ -28,7 +28,7 @@ module GeneCapybara
|
|
28
28
|
desc 'step [RESOURCE_NAME]', 'Generates a step'
|
29
29
|
option :lang,
|
30
30
|
banner: 'any of the gherkin supported languages',
|
31
|
-
default: :
|
31
|
+
default: :pt
|
32
32
|
def step(name)
|
33
33
|
I18n.config.default_locale = options[:lang]
|
34
34
|
in_root_project_folder?
|
@@ -38,7 +38,7 @@ module GeneCapybara
|
|
38
38
|
desc 'page [RESOURCE_NAME]', 'Generates pages'
|
39
39
|
option :lang,
|
40
40
|
banner: 'any of the gherkin supported languages',
|
41
|
-
default: :
|
41
|
+
default: :pt
|
42
42
|
def page(name)
|
43
43
|
I18n.config.default_locale = options[:lang]
|
44
44
|
in_root_project_folder?
|
@@ -48,7 +48,7 @@ module GeneCapybara
|
|
48
48
|
desc 'services [RESOURCE_NAME]', 'Generates services'
|
49
49
|
option :lang,
|
50
50
|
banner: 'any of the gherkin supported languages',
|
51
|
-
default: :
|
51
|
+
default: :pt
|
52
52
|
def service(name)
|
53
53
|
I18n.config.default_locale = options[:lang]
|
54
54
|
in_root_project_folder?
|
@@ -58,7 +58,7 @@ module GeneCapybara
|
|
58
58
|
desc 'all_web [RESOURCE_NAME]', 'Generates features, steps and pages'
|
59
59
|
option :lang,
|
60
60
|
banner: 'any of the gherkin supported languages',
|
61
|
-
default: :
|
61
|
+
default: :pt
|
62
62
|
def all_web(name)
|
63
63
|
I18n.config.default_locale = options[:lang]
|
64
64
|
in_root_project_folder?
|
@@ -70,7 +70,7 @@ module GeneCapybara
|
|
70
70
|
desc 'all_api [RESOURCE_NAME]', 'Generates feature and steps'
|
71
71
|
option :lang,
|
72
72
|
banner: 'any of the gherkin supported languages',
|
73
|
-
default: :
|
73
|
+
default: :pt
|
74
74
|
def all_api(name)
|
75
75
|
I18n.config.default_locale = options[:lang]
|
76
76
|
in_root_project_folder?
|
@@ -105,7 +105,7 @@ module GeneCapybara
|
|
105
105
|
'Capybara, Selenium and Cucumber'
|
106
106
|
option :lang,
|
107
107
|
banner: 'any of the gherkin supported languages',
|
108
|
-
default: :
|
108
|
+
default: :pt
|
109
109
|
def new_web(name)
|
110
110
|
I18n.config.default_locale = options[:lang]
|
111
111
|
directory File.join(File.dirname(__FILE__),
|
@@ -116,7 +116,7 @@ module GeneCapybara
|
|
116
116
|
'Generates the structure of api'
|
117
117
|
option :lang,
|
118
118
|
banner: 'any of the gherkin supported languages',
|
119
|
-
default: :
|
119
|
+
default: :pt
|
120
120
|
def new_api(name)
|
121
121
|
I18n.config.default_locale = options[:lang]
|
122
122
|
directory File.join(File.dirname(__FILE__),
|
data/bin/genesaudeid
CHANGED
@@ -18,7 +18,7 @@ module GeneCapybara
|
|
18
18
|
desc 'feature [RESOURCE_NAME]', 'Generates a feature'
|
19
19
|
option :lang,
|
20
20
|
banner: 'any of the gherkin support languages',
|
21
|
-
default: :
|
21
|
+
default: :pt
|
22
22
|
def feature(name)
|
23
23
|
I18n.config.default_locale = options[:lang]
|
24
24
|
in_root_project_folder?
|
@@ -28,7 +28,7 @@ module GeneCapybara
|
|
28
28
|
desc 'step [RESOURCE_NAME]', 'Generates a step'
|
29
29
|
option :lang,
|
30
30
|
banner: 'any of the gherkin supported languages',
|
31
|
-
default: :
|
31
|
+
default: :pt
|
32
32
|
def step(name)
|
33
33
|
I18n.config.default_locale = options[:lang]
|
34
34
|
in_root_project_folder?
|
@@ -38,7 +38,7 @@ module GeneCapybara
|
|
38
38
|
desc 'page [RESOURCE_NAME]', 'Generates pages'
|
39
39
|
option :lang,
|
40
40
|
banner: 'any of the gherkin supported languages',
|
41
|
-
default: :
|
41
|
+
default: :pt
|
42
42
|
def page(name)
|
43
43
|
I18n.config.default_locale = options[:lang]
|
44
44
|
in_root_project_folder?
|
@@ -48,7 +48,7 @@ module GeneCapybara
|
|
48
48
|
desc 'services [RESOURCE_NAME]', 'Generates services'
|
49
49
|
option :lang,
|
50
50
|
banner: 'any of the gherkin supported languages',
|
51
|
-
default: :
|
51
|
+
default: :pt
|
52
52
|
def service(name)
|
53
53
|
I18n.config.default_locale = options[:lang]
|
54
54
|
in_root_project_folder?
|
@@ -58,7 +58,7 @@ module GeneCapybara
|
|
58
58
|
desc 'all_web [RESOURCE_NAME]', 'Generates features, steps and pages'
|
59
59
|
option :lang,
|
60
60
|
banner: 'any of the gherkin supported languages',
|
61
|
-
default: :
|
61
|
+
default: :pt
|
62
62
|
def all_web(name)
|
63
63
|
I18n.config.default_locale = options[:lang]
|
64
64
|
in_root_project_folder?
|
@@ -70,7 +70,7 @@ module GeneCapybara
|
|
70
70
|
desc 'all_api [RESOURCE_NAME]', 'Generates feature and steps'
|
71
71
|
option :lang,
|
72
72
|
banner: 'any of the gherkin supported languages',
|
73
|
-
default: :
|
73
|
+
default: :pt
|
74
74
|
def all_api(name)
|
75
75
|
I18n.config.default_locale = options[:lang]
|
76
76
|
in_root_project_folder?
|
@@ -105,7 +105,7 @@ module GeneCapybara
|
|
105
105
|
'Capybara, Selenium and Cucumber'
|
106
106
|
option :lang,
|
107
107
|
banner: 'any of the gherkin supported languages',
|
108
|
-
default: :
|
108
|
+
default: :pt
|
109
109
|
def new_web(name)
|
110
110
|
I18n.config.default_locale = options[:lang]
|
111
111
|
directory File.join(File.dirname(__FILE__),
|
@@ -116,7 +116,7 @@ module GeneCapybara
|
|
116
116
|
'Generates the structure of api'
|
117
117
|
option :lang,
|
118
118
|
banner: 'any of the gherkin supported languages',
|
119
|
-
default: :
|
119
|
+
default: :pt
|
120
120
|
def new_api(name)
|
121
121
|
I18n.config.default_locale = options[:lang]
|
122
122
|
directory File.join(File.dirname(__FILE__),
|
data/lib/GeneSaudeId/version.rb
CHANGED
@@ -22,9 +22,7 @@ World(FactoryBot::Syntax::Methods)
|
|
22
22
|
|
23
23
|
Dotenv.load('../.env')
|
24
24
|
|
25
|
-
ENV['GOOGLE_APPLICATION_CREDENTIALS'] = File.join(Dir.pwd, '../path_file.json')
|
26
|
-
|
27
25
|
CONFIG = YAML.load_file(File.join(Dir.pwd, "features/support/config/environments/#{ENV['ENV_TYPE']}.yml"))
|
28
|
-
|
26
|
+
ENV['GOOGLE_APPLICATION_CREDENTIALS'] = File.join(Dir.pwd, '../path_file.json')
|
29
27
|
|
30
28
|
JsonMatchers.schema_root = File.join(Dir.pwd, 'features/support/data/schemas')
|
@@ -15,6 +15,9 @@ require_relative 'helper'
|
|
15
15
|
|
16
16
|
include Helper
|
17
17
|
|
18
|
+
CONFIG = YAML.load_file(File.join(Dir.pwd, "features/support/config/environments/#{ENV['ENV_TYPE']}.yml"))
|
19
|
+
EL = YAML.load_file('features/support/config/elements.yml')
|
20
|
+
|
18
21
|
@browser = ENV['BROWSER']
|
19
22
|
|
20
23
|
case @browser
|
data/lib/templates/page.tt
CHANGED
data/lib/templates/services.tt
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
|
1
|
+
class <%= config[:name] %>Service
|
2
2
|
include HTTParty
|
3
3
|
|
4
4
|
# <%= I18n.translate 'comments.services' %>
|
5
|
-
base_uri CONFIG['
|
6
|
-
headers '
|
7
|
-
|
5
|
+
base_uri CONFIG['BASE_URI'].to_s
|
6
|
+
headers CONFIG['API_HEADERS']
|
7
|
+
default_timeout 120
|
8
|
+
|
9
|
+
def initialize() end
|
10
|
+
|
8
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: GeneSaudeId
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raphael Castro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -152,7 +152,7 @@ files:
|
|
152
152
|
- lib/SkeletonWeb/features/support/env.rb
|
153
153
|
- lib/SkeletonWeb/features/support/helper.rb
|
154
154
|
- lib/SkeletonWeb/features/support/hooks.rb
|
155
|
-
- lib/SkeletonWeb/features/support/pages
|
155
|
+
- lib/SkeletonWeb/features/support/pages/base_page.rb
|
156
156
|
- lib/SkeletonWeb/report/.gitkeep
|
157
157
|
- lib/SkeletonWeb/report/junit/.gitkeep
|
158
158
|
- lib/SkeletonWeb/report/screenshots/test_failed/.gitkeep
|
@@ -186,6 +186,6 @@ requirements: []
|
|
186
186
|
rubygems_version: 3.1.6
|
187
187
|
signing_key:
|
188
188
|
specification_version: 4
|
189
|
-
summary: Generates an Web, Api
|
190
|
-
|
189
|
+
summary: Generates an Web, Api Test Automation project with Cucumber, Rspec, Capybara,
|
190
|
+
Selenium, Httparty and JsonSchema.
|
191
191
|
test_files: []
|
File without changes
|