mruby_gem_scaffolding 1.0.0 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 783eb964ba50e66fb179d27ed507d4c70ef6247a34af6cdaf6c7119e50721946
4
- data.tar.gz: 466bddf489420f787e08185cde1298ffd780b8494644558be6063a1bc6736d7c
3
+ metadata.gz: af0126112659292aea2e07bab18a90685b1762dab485d75a590f4e4f84e2b95b
4
+ data.tar.gz: 0b0a447295e232df4bad8374a318ee2d09ccca96b5538234d182b0850e4efb16
5
5
  SHA512:
6
- metadata.gz: 4e0952293610de3d05b4614f7baab9a987fcd403d444d158d208abab889a156c08b81a27689b5cc4c66f011328d10685f97c9b084bca885c6c822642145a954e
7
- data.tar.gz: 30b44945f4c728ce689a057ca7073d992681d0fef2e831ed1b77631b116db1db7a55dd9faa81b29b098f61ed3e7d6dda0bc5e69f45b21d12897e4febffc9b995
6
+ metadata.gz: 51a1dae5ce1cb035940f0d6f32902d317f445c914dd57074317b6bb82cc78f2b40126024a09e6fd7d27621355ca1f537a9121698c72abc4897b3884366e1dc87
7
+ data.tar.gz: 49e2bc687be166a3254f6047f69e9cf3909c72a1170d12806392c370553481d62e715b560e207080377d6be8e1974d58b702daebf79bf0ce946d11596ef9020f
@@ -1,3 +1,3 @@
1
1
  module MrubyGemScaffolding
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -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"]["main.c"] =
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.0.0
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-07 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: