dragonruby-egg 1.0.0 → 1.0.2
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/app/main.rb +1 -0
- data/app/signals.rb +5 -0
- data/lib/dragonruby_egg/constants.rb +1 -1
- data/lib/dragonruby_egg/executable.rb +3 -0
- data/lib/dragonruby_egg/io.rb +20 -0
- data/lib/dragonruby_egg.rb +1 -0
- metadata +19 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa1215a33227e33d8d232ecdade6ff3ab3d1b6bb09be929882ff379606793aec
|
4
|
+
data.tar.gz: a3d9d14e5c9ee1e0151ace87b62d7f05ee5f1608144a27ceff486dffb3727ba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e53feb25ca8d1aa3f17ab87d10624441679dc587f19caa7559f5730614c0ecaf5c7797af65ec5f0db2ccf655c7c34e47364a2dffcbe6aad1b9d57ba8d68417ed
|
7
|
+
data.tar.gz: 7c4e0d17345d42ebefdbd74c95e4a97ec09ae106f986a7fa3a7e71efae0d1cf375e45f8735f93cdc105664b2d7fc86dbd20cec39d23be84947bfe568611102e1
|
data/app/main.rb
CHANGED
data/app/signals.rb
ADDED
@@ -65,6 +65,9 @@ module DragonrubyEgg
|
|
65
65
|
Event.print('INSTALL', "The '#{repo_module}' module " +
|
66
66
|
"has been installed in this '.#{module_path.sub(path, '')}' folder.")
|
67
67
|
end
|
68
|
+
|
69
|
+
IO.change_require(module_path, repo_module)
|
70
|
+
Event.print('INSTALL', "Require paths have been changed for this '#{repo_module}' module.")
|
68
71
|
end
|
69
72
|
|
70
73
|
def new_project name, path
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module DragonrubyEgg
|
2
|
+
module IO
|
3
|
+
module_function
|
4
|
+
|
5
|
+
def change_require(module_path, repo_module)
|
6
|
+
rb_files = Dir.glob("#{module_path}/**/*.rb")
|
7
|
+
rb_files.each do |path|
|
8
|
+
content = nil
|
9
|
+
File.open path do |f|
|
10
|
+
content = f.read.gsub("require \"lib", "require \"modules/#{repo_module}/lib")
|
11
|
+
end
|
12
|
+
if content
|
13
|
+
File.open path, "w+" do |f|
|
14
|
+
f.write content
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/dragonruby_egg.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dragonruby-egg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Filip Vrba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
12
|
-
dependencies:
|
11
|
+
date: 2023-05-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rest-client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.1.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.1.0
|
13
27
|
description: With the tool, you can create new projects, install modules into a game
|
14
28
|
project and open documentation using a command. There are many more functions and
|
15
29
|
they are started with the 'dre' command.
|
@@ -23,12 +37,14 @@ files:
|
|
23
37
|
- app/configuration.rb
|
24
38
|
- app/inputs.rb
|
25
39
|
- app/main.rb
|
40
|
+
- app/signals.rb
|
26
41
|
- bin/dre
|
27
42
|
- lib/dragonruby_egg.rb
|
28
43
|
- lib/dragonruby_egg/constants.rb
|
29
44
|
- lib/dragonruby_egg/database.rb
|
30
45
|
- lib/dragonruby_egg/event.rb
|
31
46
|
- lib/dragonruby_egg/executable.rb
|
47
|
+
- lib/dragonruby_egg/io.rb
|
32
48
|
- lib/dragonruby_egg/modules.rb
|
33
49
|
- lib/json_parser.rb
|
34
50
|
- lib/option_parser.rb
|