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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56fcbb1a476193faa7a265ac62d60b83a35f7daa5299b123e14ac06d11eb257b
4
- data.tar.gz: e93d2cf26c37ad3e84c01bbae0e8a0b64ca6709750686a1cd665b60d9cb463e4
3
+ metadata.gz: a58c9546b355f4afce2aa87769f8e6d1095ef6d8785aadc3eb02120c6d65a391
4
+ data.tar.gz: 7f5a3f0f494f4f8629ae9e6c11a2daed56c80d880f80b4b2dae2092bc16f0f24
5
5
  SHA512:
6
- metadata.gz: 27d2ce8b338189e4a5d67c75ee708ec826983034067804e861f4542f90851ea72f2c96b6e8d91e3b46b6af513ddebd9e7abd2fa4ad89f8b95df7615e5e9956cf
7
- data.tar.gz: 12d72a6b3fac9a7edf674dcac2dbbdbc57e569d3b67bb2467a92143b00aba924433d302e6c588d40676a3f54633a6eecfba01790132b19662fe2e32dfd6bd484
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 and Mobile Test Automation project with Cucumber, Rspec,
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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: :en
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__),
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeneSaudeId
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -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
- QUERIES_POSTEGRESS = YAML.load_file('features/support/libs/queries_postgress.yml')
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
@@ -1,4 +1,8 @@
1
1
  class <%= config[:name] %>Page < BasePage
2
+ # attr_reader :element
2
3
 
4
+ # def initialize
5
+ # @element = EL['element']
6
+ # end
3
7
 
4
8
  end
@@ -1,8 +1,11 @@
1
- module <%= config[:name] %>Service
1
+ class <%= config[:name] %>Service
2
2
  include HTTParty
3
3
 
4
4
  # <%= I18n.translate 'comments.services' %>
5
- base_uri CONFIG['url_default'].to_s
6
- headers 'Content-Type' => 'application/json'
7
- format :json
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.2
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-13 00:00:00.000000000 Z
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 and Mobile Test Automation project with Cucumber, Rspec,
190
- Capybara, Selenium, Httparty and JsonSchema.
189
+ summary: Generates an Web, Api Test Automation project with Cucumber, Rspec, Capybara,
190
+ Selenium, Httparty and JsonSchema.
191
191
  test_files: []