puzzly_api_plugin 0.1.4 → 0.1.5

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: 5b821f3611700697ed1875b2ce456df23182e6838eb6b0d779e5ff992b8fbfd4
4
- data.tar.gz: 5cfda4b4833579ddca6e43fcdd623e5d1de173142251b3dc068954165bd4ed15
3
+ metadata.gz: c00f52554c35f88d0c6283a1a28c17d5d3bba862fbe08e75a242c7008da31650
4
+ data.tar.gz: 5d764e13ebda544f65aa2a1cdc6bc1afc8c667830b66297651b5fa483ce1c4f6
5
5
  SHA512:
6
- metadata.gz: 9ae0c24c9c56481baac5e286b065ba7aa367a1f96f6aec77fa407130ff07bce15877d709b50ec9abcab9e3ef7faf141359f53ed31f072063215005532b3c8c0f
7
- data.tar.gz: 3765a3870d77789c17e69d67522f895812ba73b994a5322966382db5ddad9d86e8c60803a86bee9b4917d109a9cc5879f3c4dc09adde0274470ec846e9196d52
6
+ metadata.gz: 75d7792582ba9dd5db783abeefc48b2eb840548b0ad4715918355d288a1b06a40c0fc949e93f45324cdc8d31d99eb922d240bb0a59b06bf68599c46f0b585959
7
+ data.tar.gz: a2bee80691743891fc78a79494db88faa47a97a087ff5e6e487a119bf5df9b5b24765e7f36e65a71746fd0b98c9dd4b7009a5e02a022202cfa4154b957d70a5a
@@ -14,7 +14,7 @@ module PuzzlyApiPlugin
14
14
  end
15
15
 
16
16
  def get_by_module(mod)
17
- select { |_id, api| mod.id <=> api.module_id }
17
+ select { |_id, api| mod.id == api.module_id }
18
18
  end
19
19
  end
20
20
  end
@@ -14,11 +14,11 @@ module PuzzlyApiPlugin
14
14
  end
15
15
 
16
16
  def get_by_module(mod)
17
- select { |_id, cache| mod.id <=> cache.module_id }
17
+ select { |_id, cache| mod.id == cache.module_id }
18
18
  end
19
19
 
20
20
  def get_by_schema(schema)
21
- select { |_id, cache| schema.id <=> cache.schema_id }
21
+ select { |_id, cache| schema.id == cache.schema_id }
22
22
  end
23
23
  end
24
24
  end
@@ -10,7 +10,7 @@ module PuzzlyApiPlugin
10
10
  end
11
11
 
12
12
  def get_by_context(context)
13
- select { |_id, mod| mod.context_id <=> context.id }
13
+ select { |_id, mod| mod.context_id == context.id }
14
14
  end
15
15
 
16
16
  def get_consumers(topic)
@@ -14,7 +14,7 @@ module PuzzlyApiPlugin
14
14
  end
15
15
 
16
16
  def get_by_module(mod)
17
- select { |_id, query| mod.id <=> query.module_id }
17
+ select { |_id, query| mod.id == query.module_id }
18
18
  end
19
19
  end
20
20
  end
@@ -10,7 +10,7 @@ module PuzzlyApiPlugin
10
10
  end
11
11
 
12
12
  def get_by_context(context)
13
- select { |_id, schema| schema.context_id <=> context.id }
13
+ select { |_id, schema| schema.context_id == context.id }
14
14
  end
15
15
  end
16
16
  end
@@ -14,7 +14,7 @@ module PuzzlyApiPlugin
14
14
  end
15
15
 
16
16
  def get_by_module(mod)
17
- select { |_id, table| mod.id <=> table.module_id }
17
+ select { |_id, table| mod.id == table.module_id }
18
18
  end
19
19
  end
20
20
  end
@@ -14,11 +14,11 @@ module PuzzlyApiPlugin
14
14
  end
15
15
 
16
16
  def get_by_module mod
17
- select { |_id, topic| mod.id <=> topic.module_id }
17
+ select { |_id, topic| mod.id == topic.module_id }
18
18
  end
19
19
 
20
20
  def get_by_schema schema
21
- select { |_id, topic| schema.id <=> topic.schema_id }
21
+ select { |_id, topic| schema.id == topic.schema_id }
22
22
  end
23
23
  end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PuzzlyApiPlugin
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
@@ -10,7 +10,11 @@ module PuzzlyApiPlugin
10
10
  schema = SchemasCollection.instance.get_by_id cache.schema_id
11
11
  end
12
12
 
13
- CacheView.new(mod.to_identity, schema.to_identity,
13
+ if(!schema.nil?)
14
+ schema = schema.to_identity
15
+ end
16
+
17
+ CacheView.new(mod.to_identity, schema,
14
18
  cache)
15
19
  end
16
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puzzly_api_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mr. Braz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-27 00:00:00.000000000 Z
11
+ date: 2020-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll