souls 1.6.6 → 1.6.10
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 452dc3398639a6de3f41ad408d81471a54efc276d932a4ee3007030b7a95f90a
|
4
|
+
data.tar.gz: dc9ee74e9fd7fc5f12df211c0047e2dc63bd5de2e013bdc9de83c22949edd5a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 241a6d4c6eb4d17997d8ac8fff4c9fbe9179b619314a3cbe94a81e8affaadd2df85976b3ecba3be33e1fd6e6fcf707cb11fa80b3a3f1760c65c3d281f695cabb
|
7
|
+
data.tar.gz: bd578580a7548260545686e969108877ccdb7ebec041476506d02837142eb91fcb558e24a7acc380266f0d62481cce7bd68e776eaa5498939194c9e586cbd7b0
|
data/lib/souls/cli/db/index.rb
CHANGED
@@ -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
|
@@ -7,6 +7,7 @@ module Souls
|
|
7
7
|
system("gem install souls")
|
8
8
|
sleep(3)
|
9
9
|
current_souls_ver = Souls::VERSION.strip.split(".").map(&:to_i)
|
10
|
+
p(current_souls_ver)
|
10
11
|
prompt = TTY::Prompt.new
|
11
12
|
choices = [
|
12
13
|
"1. Patch(#{Souls.version_detector(current_ver: current_souls_ver, update_kind: 'patch')})",
|
@@ -33,6 +34,12 @@ module Souls
|
|
33
34
|
puts("before build")
|
34
35
|
system("rake build")
|
35
36
|
system("rake release")
|
37
|
+
p(current_souls_ver)
|
38
|
+
system(
|
39
|
+
"git -c log.ShowSignature=false log v#{current_souls_ver}... \
|
40
|
+
--reverse --merges --grep='Merge pull request' --pretty=format:%B > ./CHANGELOG.md"
|
41
|
+
)
|
42
|
+
system("gh release create v#{souls_new_ver} -t v#{souls_new_ver} -F ./CHANGELOG.md")
|
36
43
|
system("gsutil -m -q cp -r coverage gs://souls-bucket/souls-coverage")
|
37
44
|
Whirly.status = Paint["soul-v#{souls_new_ver} successfully updated!"]
|
38
45
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.10
|
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.10
|
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.10
|
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.10
|
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.
|