GeneSaudeId 0.1.2 → 0.1.3
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/version.rb +1 -1
- data/lib/SkeletonApi/features/support/env.rb +1 -3
- data/lib/SkeletonWeb/features/support/env.rb +3 -0
- data/lib/templates/page.tt +4 -0
- data/lib/templates/services.tt +7 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a58c9546b355f4afce2aa87769f8e6d1095ef6d8785aadc3eb02120c6d65a391
|
4
|
+
data.tar.gz: 7f5a3f0f494f4f8629ae9e6c11a2daed56c80d880f80b4b2dae2092bc16f0f24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6c8d8cd7a96af3a30e5a5db5fa5dc3a951fc5f0143b1760072a50de85d2aaa5c24839603e168d3b75f174cf22c2a1bbf70823c101d495086ee553cb6ac6cce1
|
7
|
+
data.tar.gz: 5cc77f0123e6c6880e4894bd61956d25bc23d9a95f0f7009620c6612583122aba1d207c2c410f411825b2587882eca0ac40aa1442c086f7e41f860542f71edf9
|
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.3
|
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
|
@@ -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: []
|