niaga-ghost 0.1.1 → 0.1.4
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 +4 -4
- data/lib/generators/{ghost/ghost_generator.rb → generator.rb} +4 -2
- data/lib/{ghost/ghost.rb → niaga-ghost/niaga-ghost.rb} +1 -1
- data/lib/{ghost → niaga-ghost}/railtie.rb +2 -2
- data/lib/{ghost → niaga-ghost}/reflection.rb +1 -1
- data/lib/niaga-ghost/version.rb +5 -0
- data/lib/niaga-ghost.rb +7 -0
- metadata +9 -9
- data/lib/ghost/version.rb +0 -5
- data/lib/ghost.rb +0 -7
- /data/lib/generators/{ghost/templates → templates}/model.rb +0 -0
- /data/lib/generators/{ghost/templates → templates}/resolver.rb +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ffd1eeb7549ff2e5c3fb278e96438c7cacae72d1c1dc29c2b4106479beb8c7fc
|
|
4
|
+
data.tar.gz: b01554a232f5bb4f218a45487e3cefadb1ad03287fb4aead5c5b957c6608ba86
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a9a6b0a35644f0c9f185182d8d7d6dc6c9afe60b8d143c7e37b36060810fcaa7645f0139db0ea78ca313a716622b9657e9ecfe2809faff1fc65b07c8d007d55
|
|
7
|
+
data.tar.gz: 82a5ea488d0502f65c303e0b43895e80f92cdf5eb0f3bc594b9c8f4a5cc2a5cf4d594739f01d68ca9debc318e99c75740ef475f084a851d34c25104d28c7c687
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
require "rails/generators"
|
|
2
2
|
|
|
3
|
-
module
|
|
4
|
-
class
|
|
3
|
+
module NiagaGhost
|
|
4
|
+
class NiagaGhostGenerator < ::Rails::Generators::NamedBase # rubocop:disable Style/Documentation
|
|
5
5
|
source_root File.expand_path("templates", __dir__)
|
|
6
6
|
|
|
7
|
+
desc "Generates a resolver in app/models/resolvers"
|
|
8
|
+
|
|
7
9
|
def create_ghost_resolver
|
|
8
10
|
template "resolver.rb", "app/models/resolvers/#{file_name}_resolver.rb"
|
|
9
11
|
end
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require "rails/railtie"
|
|
2
2
|
|
|
3
|
-
module
|
|
3
|
+
module NiagaGhost
|
|
4
4
|
class Railtie < ::Rails::Railtie # rubocop:disable Style/Documentation
|
|
5
|
-
initializer "ghost
|
|
5
|
+
initializer "ghost.extensions" do
|
|
6
6
|
ActiveSupport.on_load(:active_record) do
|
|
7
7
|
include Ghost
|
|
8
8
|
end
|
data/lib/niaga-ghost.rb
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: niaga-ghost
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- azman abdullah
|
|
@@ -21,14 +21,14 @@ files:
|
|
|
21
21
|
- CHANGELOG.md
|
|
22
22
|
- LICENSE.txt
|
|
23
23
|
- README.md
|
|
24
|
-
- lib/generators/
|
|
25
|
-
- lib/generators/
|
|
26
|
-
- lib/generators/
|
|
27
|
-
- lib/ghost.rb
|
|
28
|
-
- lib/ghost/ghost.rb
|
|
29
|
-
- lib/ghost/railtie.rb
|
|
30
|
-
- lib/ghost/reflection.rb
|
|
31
|
-
- lib/ghost/version.rb
|
|
24
|
+
- lib/generators/generator.rb
|
|
25
|
+
- lib/generators/templates/model.rb
|
|
26
|
+
- lib/generators/templates/resolver.rb
|
|
27
|
+
- lib/niaga-ghost.rb
|
|
28
|
+
- lib/niaga-ghost/niaga-ghost.rb
|
|
29
|
+
- lib/niaga-ghost/railtie.rb
|
|
30
|
+
- lib/niaga-ghost/reflection.rb
|
|
31
|
+
- lib/niaga-ghost/version.rb
|
|
32
32
|
homepage: https://github.com/Maluku-Niaga/ghost.
|
|
33
33
|
licenses:
|
|
34
34
|
- MIT
|
data/lib/ghost/version.rb
DELETED
data/lib/ghost.rb
DELETED
|
File without changes
|
|
File without changes
|