souls 1.6.6 → 1.6.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25ee0de0f9c28874dc6201e1cbe27644bc7b3f1a8f484eb35f1d09cae66d4490
|
4
|
+
data.tar.gz: caa656342e58a8e91c2fd4373ca933da2def2bdf101591e9ccd09bbb1fa9e5ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddc22be57371d30a46d167502f4edd8ba1b680a4f59094428df85c1b4b32f4b863b90b57634064bcf1fb34714ac15a9e1335dfa224eed4b51a2ae9429d1911aa
|
7
|
+
data.tar.gz: fccce39e3346db82988f5eb9f1bc23f2e586f83ef8963dca440815c81daec72679d1767abf5fd381c8789b3f957f036ca7f475b4ae724f4c9a57af58dde892cc
|
@@ -4,7 +4,7 @@ module Souls
|
|
4
4
|
method_option :mailer, type: :boolean, aliases: "--mailer", default: false, desc: "Mailgun Template"
|
5
5
|
def rspec_job(class_name)
|
6
6
|
singularized_class_name = class_name.underscore.singularize
|
7
|
-
file_dir = "./spec/
|
7
|
+
file_dir = "./spec/queries/jobs/"
|
8
8
|
FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
|
9
9
|
file_path = "#{file_dir}/#{singularized_class_name}_spec.rb"
|
10
10
|
return "RspecJob already exist! #{file_path}" if File.exist?(file_path)
|
@@ -15,9 +15,9 @@ module Souls
|
|
15
15
|
RSpec.describe("#{singularized_class_name.camelize}") do
|
16
16
|
describe "Define #{singularized_class_name.camelize}" do
|
17
17
|
|
18
|
-
let(:
|
19
|
-
%(
|
20
|
-
#{singularized_class_name.camelize(:lower)}
|
18
|
+
let(:query) do
|
19
|
+
%(query {
|
20
|
+
#{singularized_class_name.camelize(:lower)} {
|
21
21
|
response
|
22
22
|
}
|
23
23
|
}
|
@@ -31,12 +31,9 @@ module Souls
|
|
31
31
|
it "return #{singularized_class_name.camelize} response" do
|
32
32
|
stub_request(:post, "https://api.mailgun.net/v3/YOUR-MAILGUN-DOMAIN/messages")
|
33
33
|
.to_return(status: 200, body: "", headers: {})
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
rescue StandardError
|
38
|
-
raise(StandardError, result)
|
39
|
-
end
|
34
|
+
|
35
|
+
a1 = result.dig("data", "#{singularized_class_name.camelize(:lower)}")
|
36
|
+
expect(a1).not_to be_empty
|
40
37
|
expect(a1).to(include("response" => be_a(String)))
|
41
38
|
end
|
42
39
|
end
|
@@ -49,9 +46,9 @@ module Souls
|
|
49
46
|
RSpec.describe("#{singularized_class_name.camelize}") do
|
50
47
|
describe "Define #{singularized_class_name.camelize}" do
|
51
48
|
|
52
|
-
let(:
|
53
|
-
%(
|
54
|
-
#{singularized_class_name.camelize(:lower)}
|
49
|
+
let(:query) do
|
50
|
+
%(query {
|
51
|
+
#{singularized_class_name.camelize(:lower)} {
|
55
52
|
response
|
56
53
|
}
|
57
54
|
}
|
@@ -59,16 +56,12 @@ module Souls
|
|
59
56
|
end
|
60
57
|
|
61
58
|
subject(:result) do
|
62
|
-
SoulsApiSchema.execute(
|
59
|
+
SoulsApiSchema.execute(query).as_json
|
63
60
|
end
|
64
61
|
|
65
62
|
it "return #{singularized_class_name.camelize} response" do
|
66
|
-
|
67
|
-
|
68
|
-
raise unless a1.present?
|
69
|
-
rescue StandardError
|
70
|
-
raise(StandardError, result)
|
71
|
-
end
|
63
|
+
a1 = result.dig("data", "#{singularized_class_name.camelize(:lower)}")
|
64
|
+
expect(a1).not_to be_empty
|
72
65
|
expect(a1).to(include("response" => be_a(String)))
|
73
66
|
end
|
74
67
|
end
|
@@ -33,6 +33,11 @@ module Souls
|
|
33
33
|
puts("before build")
|
34
34
|
system("rake build")
|
35
35
|
system("rake release")
|
36
|
+
system(
|
37
|
+
"git -c log.ShowSignature=false log v#{current_souls_ver}...v#{souls_new_ver}
|
38
|
+
--reverse --merges --grep='Merge pull request' --pretty=format:%B > ./CHANGELOG.md"
|
39
|
+
)
|
40
|
+
system("gh release create v#{souls_new_ver} -t v#{souls_new_ver} -F ./CHANGELOG.md")
|
36
41
|
system("gsutil -m -q cp -r coverage gs://souls-bucket/souls-coverage")
|
37
42
|
Whirly.status = Paint["soul-v#{souls_new_ver} successfully updated!"]
|
38
43
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.7
|
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.7
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: souls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
8
8
|
- KishiTheMechanic
|
9
9
|
- James Neve
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
13
|
date: 2021-11-11 00:00:00.000000000 Z
|
@@ -232,8 +232,8 @@ licenses:
|
|
232
232
|
metadata:
|
233
233
|
homepage_uri: https://souls.elsoul.nl
|
234
234
|
source_code_uri: https://github.com/elsoul/souls
|
235
|
-
changelog_uri: https://github.com/elsoul/souls/releases/tag/v1.6.
|
236
|
-
post_install_message:
|
235
|
+
changelog_uri: https://github.com/elsoul/souls/releases/tag/v1.6.7
|
236
|
+
post_install_message:
|
237
237
|
rdoc_options: []
|
238
238
|
require_paths:
|
239
239
|
- lib
|
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
249
|
version: '0'
|
250
250
|
requirements: []
|
251
251
|
rubygems_version: 3.2.22
|
252
|
-
signing_key:
|
252
|
+
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: Build Serverless Apps faster like Rails. Powered by Ruby GraphQL, RBS/Steep,
|
255
255
|
Active Record, RSpec, RuboCop, and Google Cloud.
|