mruby_gem_scaffolding 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mruby_gem_scaffolding/version.rb +1 -1
- data/lib/mruby_gem_scaffolding.rb +13 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af0126112659292aea2e07bab18a90685b1762dab485d75a590f4e4f84e2b95b
|
4
|
+
data.tar.gz: 0b0a447295e232df4bad8374a318ee2d09ccca96b5538234d182b0850e4efb16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51a1dae5ce1cb035940f0d6f32902d317f445c914dd57074317b6bb82cc78f2b40126024a09e6fd7d27621355ca1f537a9121698c72abc4897b3884366e1dc87
|
7
|
+
data.tar.gz: 49e2bc687be166a3254f6047f69e9cf3909c72a1170d12806392c370553481d62e715b560e207080377d6be8e1974d58b702daebf79bf0ce946d11596ef9020f
|
@@ -49,7 +49,7 @@ MRuby::Gem::Specification.new('#{Utility.snake_case(project_name)}') do |spec|
|
|
49
49
|
end
|
50
50
|
MULTILINE
|
51
51
|
|
52
|
-
result["src"]["
|
52
|
+
result["src"]["#{Utility.snake_case(project_name)}.c"] =
|
53
53
|
<<MULTILINE
|
54
54
|
#include <mruby.h>
|
55
55
|
#include <stdio.h>
|
@@ -58,7 +58,7 @@ MULTILINE
|
|
58
58
|
static mrb_value
|
59
59
|
hello_world(mrb_state *mrb, mrb_value self)
|
60
60
|
{
|
61
|
-
printf("Hello World");
|
61
|
+
printf("Hello World\\n");
|
62
62
|
|
63
63
|
return mrb_nil_value(); // return null
|
64
64
|
}
|
@@ -81,6 +81,17 @@ void
|
|
81
81
|
mrb_#{Utility.snake_case(project_name)}_gem_final(mrb_state* mrb) {
|
82
82
|
|
83
83
|
}
|
84
|
+
MULTILINE
|
85
|
+
|
86
|
+
result["mrblib"]["#{Utility.snake_case(project_name)}.rb"] =
|
87
|
+
<<MULTILINE
|
88
|
+
module #{Utility.camel_case(project_name)}
|
89
|
+
class << self
|
90
|
+
def say_goodbye
|
91
|
+
puts "Goodbye"
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
84
95
|
MULTILINE
|
85
96
|
|
86
97
|
result["LICENSE"] =
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mruby_gem_scaffolding
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tradam
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|