souls 1.18.5 → 1.18.6

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: 5ba70edb311a90f1f057ff1f2b2c389b00a410ad70c71b65690fce6c99ed421b
4
- data.tar.gz: 7b275943c3fa409bcf61afa5d9cec33d1851a41758c23ea9e05f8e3704d74e2f
3
+ metadata.gz: aa2251464a8273c041836b1cce9d46b933cceeb09f2f700087b1a170db16c283
4
+ data.tar.gz: 9bcbbd4198df7b759126b998ccfc10830783f78524e0b742df3fd8b6402ae548
5
5
  SHA512:
6
- metadata.gz: ecfc23cc35de0ff0445222441a0a8650098cca66de7f688e513bf8a4a2ef2fa771e4214939962f9e0a3e7205898504dfc66a1fd41dbf59036a5cd555677d1034
7
- data.tar.gz: 594e93876a6cab03cc3d5a4fd95c7f74f9a913cacb264413aad36e141f68be1cc8e91f9eb419649c1e742aab5f8097a9fa5815fa8754de9cea7254b7e6790d52
6
+ metadata.gz: d233bc008f2f0e2263d6c91362bc5900a7c1c7a47ec326376c5e1372e43007c59d13d774c4bc0a0216bd4635a2b6f9c5796d9171d83f38da962e47a13f52c583
7
+ data.tar.gz: 3d84364a1495a6ca673b41473f0c5b581c24ff52a67f56ca442a2f2d5e2c4f02c4d16ac8267465d21b0ef6b79ee3be12862a7a533730fd99a72455e14b508459
@@ -1,7 +1,7 @@
1
1
  module SOULs
2
2
  module Types
3
3
  class MutationObject < SOULs::Types::BaseObject
4
- unless FileUtils.pwd.split("/").last == "souls"
4
+ if (FileUtils.pwd.split("/").last != "souls") && File.exist?("./db/schema.rb")
5
5
  get_tables.each do |t|
6
6
  %w[create update delete destroy_delete].each do |a|
7
7
  field "#{a}_#{t.singularize.underscore}".to_sym,
@@ -23,10 +23,10 @@ module SOULs
23
23
  field file[:name].underscore.to_s.to_sym,
24
24
  mutation: Object.const_get(
25
25
  "Mutations::Managers::#{
26
- file[:class].singularize.camelize
27
- }Manager::#{
28
- file[:name].singularize.camelize
29
- }"
26
+ file[:class].singularize.camelize
27
+ }Manager::#{
28
+ file[:name].singularize.camelize
29
+ }"
30
30
  )
31
31
  end
32
32
  end
@@ -1,7 +1,7 @@
1
1
  module SOULs
2
2
  module Types
3
3
  class QueryObject < SOULs::Types::BaseObject
4
- unless FileUtils.pwd.split("/").last == "souls"
4
+ if (FileUtils.pwd.split("/").last != "souls") && File.exist?("./db/schema.rb")
5
5
  add_field(GraphQL::Types::Relay::NodeField)
6
6
  add_field(GraphQL::Types::Relay::NodesField)
7
7
  get_tables.each do |t|
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module SOULs
2
- VERSION = "1.18.5".freeze
2
+ VERSION = "1.18.6".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.18.5
1
+ 1.18.6
@@ -1 +1 @@
1
- 1.18.5
1
+ 1.18.6
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.18.5
4
+ version: 1.18.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI