souls 1.7.2 → 1.7.6

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: 604dd7ee9586360aff67c1dc45aabcf0e9d66038d280aae8abb829af7856932a
4
- data.tar.gz: 6d405c4bfa0def7d24e10290cf1e412f860849b142eb9515892f84c26ae22dd5
3
+ metadata.gz: e741718ebcabb0d9a8f4e8845fe54fe43f1986f8f213943647976ef1c42fe29b
4
+ data.tar.gz: 3175f7064e569a2ea7d66a6658d0a0b228d5419023e9c8920a7776bef8c4d9a5
5
5
  SHA512:
6
- metadata.gz: 3f6f0b54ce0703d05cc654cb91907ad9ac9e74a2380de623d3b3db38982784faf45652b96f77866778a312af94443fc427f85452a4b2392cae146efa69475126
7
- data.tar.gz: 0fdba239a2f5f94e4990013207aa55c246f4dcf2457d03305e6f7f22ebe1f258cd2a142508391cf1365c6db42c0e80a7b052c0ba47b15595b22102e23b58bf1b
6
+ metadata.gz: 543bb689d4f1ae0ae5f5d9225eddce463b9eafffa8b1fec51f2d291cb7fb650355b21ca057d7ab899cb84c91f40f1a51c2a48f833b0da61f34d58b2f4fd0f662
7
+ data.tar.gz: 6bc06c28e7756dc1be35b0732d67f057d5cd528ef9bfdbb422747f36190c59271526471566f2f80947c87e399b77154fdce46d4b1e1712fcbc8b961235e85f79
@@ -39,8 +39,6 @@ module Souls
39
39
  query_rbs(class_name)
40
40
  mutation(class_name)
41
41
  mutation_rbs(class_name)
42
- policy(class_name)
43
- policy_rbs(class_name)
44
42
  edge(class_name)
45
43
  edge_rbs(class_name)
46
44
  connection(class_name)
@@ -51,14 +49,12 @@ module Souls
51
49
  rspec_mutation(class_name)
52
50
  rspec_query(class_name)
53
51
  rspec_resolver(class_name)
54
- rspec_policy(class_name)
55
52
  end
56
53
 
57
54
  def run_rbs_scaffold(class_name: "user")
58
55
  type_rbs(class_name)
59
56
  query_rbs(class_name)
60
57
  mutation_rbs(class_name)
61
- policy_rbs(class_name)
62
58
  edge_rbs(class_name)
63
59
  connection_rbs(class_name)
64
60
  resolver_rbs(class_name)
@@ -131,10 +131,11 @@ module Souls
131
131
  end
132
132
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [api_workflow_path.to_s, :white] }])
133
133
  worker_workflow_paths.each do |file_path|
134
- File.open(file_path, "a") do |line|
135
- line.write(" \\ --vpc-connector=#{app_name}-connector \\")
136
- line.write("\n --vpc-egress=all")
137
- end
134
+ worker_workflow = File.readlines(file_path)
135
+ worker_workflow[worker_workflow.size - 1] = worker_workflow.last.chomp
136
+ worker_workflow << " \\ \n --vpc-connector=#{app_name}-connector \\"
137
+ worker_workflow << "\n --vpc-egress=all"
138
+ File.open(file_path, "w") { |f| f.write(worker_workflow.join) }
138
139
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
139
140
  end
140
141
  end
@@ -39,8 +39,6 @@ module Souls
39
39
  query_rbs(class_name)
40
40
  mutation(class_name)
41
41
  mutation_rbs(class_name)
42
- policy(class_name)
43
- policy_rbs(class_name)
44
42
  edge(class_name)
45
43
  edge_rbs(class_name)
46
44
  connection(class_name)
@@ -51,14 +49,12 @@ module Souls
51
49
  rspec_mutation(class_name)
52
50
  rspec_query(class_name)
53
51
  rspec_resolver(class_name)
54
- rspec_policy(class_name)
55
52
  end
56
53
 
57
54
  def run_rbs_scaffold(class_name)
58
55
  type_rbs(class_name)
59
56
  query_rbs(class_name)
60
57
  mutation_rbs(class_name)
61
- policy_rbs(class_name)
62
58
  edge_rbs(class_name)
63
59
  connection_rbs(class_name)
64
60
  resolver_rbs(class_name)
@@ -69,7 +65,6 @@ module Souls
69
65
  pluralized_class_name = class_name.pluralize.underscore
70
66
  [
71
67
  "./app/models/#{singularized_class_name}.rb",
72
- "./app/policies/#{singularized_class_name}_policy.rb",
73
68
  "./app/graphql/mutations/create_#{singularized_class_name}.rb",
74
69
  "./app/graphql/mutations/delete_#{singularized_class_name}.rb",
75
70
  "./app/graphql/mutations/destroy_delete_#{singularized_class_name}.rb",
@@ -84,29 +79,8 @@ module Souls
84
79
  "./spec/mutations/#{singularized_class_name}_spec.rb",
85
80
  "./spec/models/#{singularized_class_name}_spec.rb",
86
81
  "./spec/queries/#{singularized_class_name}_spec.rb",
87
- "./spec/policies/#{singularized_class_name}_policy_spec.rb",
88
82
  "./spec/resolvers/#{singularized_class_name}_search_spec.rb"
89
83
  ]
90
84
  end
91
-
92
- def test_dir
93
- FileUtils.mkdir_p("./app/graphql/mutations")
94
- FileUtils.mkdir_p("./app/graphql/queries")
95
- FileUtils.mkdir_p("./app/graphql/types")
96
- FileUtils.mkdir_p("./app/graphql/resolvers")
97
- FileUtils.mkdir_p("./app/models")
98
- FileUtils.mkdir_p("./app/policies")
99
- FileUtils.mkdir_p("./spec/factories")
100
- FileUtils.mkdir_p("./spec/queries")
101
- FileUtils.mkdir_p("./spec/mutations")
102
- FileUtils.mkdir_p("./spec/models")
103
- FileUtils.mkdir_p("./spec/resolvers")
104
- FileUtils.mkdir_p("./spec/policies")
105
- FileUtils.mkdir_p("./config")
106
- FileUtils.touch("./config/souls.rb")
107
- FileUtils.mkdir_p("./db/")
108
- FileUtils.touch("./db/schema.rb")
109
- puts("test dir created!")
110
- end
111
85
  end
112
86
  end
@@ -25,13 +25,13 @@ module Souls
25
25
  end
26
26
 
27
27
  subject(:result) do
28
- SoulsApiSchema.execute(mutation).as_json
28
+ SoulsApiSchema.execute(query).as_json
29
29
  end
30
30
 
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
-
34
+ #{' '}
35
35
  a1 = result.dig("data", "#{singularized_class_name.camelize(:lower)}")
36
36
  expect(a1).not_to be_empty
37
37
  expect(a1).to(include("response" => be_a(String)))
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.7.2".freeze
2
+ VERSION = "1.7.6".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.7.2
1
+ 1.7.6
@@ -1 +1 @@
1
- 1.7.2
1
+ 1.7.6
data/lib/souls.rb CHANGED
@@ -19,13 +19,11 @@ module Souls
19
19
  mutation
20
20
  type
21
21
  resolver
22
- policy
23
22
  rspec_factory
24
23
  rspec_model
25
24
  rspec_query
26
25
  rspec_mutation
27
26
  rspec_resolver
28
- rspec_policy
29
27
  ].freeze
30
28
  public_constant :SOULS_METHODS
31
29
  class Error < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -226,7 +226,7 @@ licenses:
226
226
  metadata:
227
227
  homepage_uri: https://souls.elsoul.nl
228
228
  source_code_uri: https://github.com/elsoul/souls
229
- changelog_uri: https://github.com/elsoul/souls/releases/tag/v1.7.2
229
+ changelog_uri: https://github.com/elsoul/souls/releases/tag/v1.7.6
230
230
  post_install_message:
231
231
  rdoc_options: []
232
232
  require_paths: