mgen 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/lib/mgen/cli.rb +1 -1
- data/lib/mgen/templates/defaults/README.md.erb +12 -0
- data/lib/mgen/templates/defaults/Rakefile.erb +3 -3
- data/lib/mgen/templates/defaults/mrbgem.rake.erb +1 -1
- data/lib/mgen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95b5daeb1629afdcdf407fe9594af643f277cefe
|
4
|
+
data.tar.gz: 048446096fcb3ebcfd4fa25ec37f5fdae97c76a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46845a84f5f616b38880602f2969ba5a738a29ed1ddedfd8136f4f291535a87c783fa68b872aa0d9eb6698653b2f7bcf2281d92874e1ec2b52807d903f82b51f
|
7
|
+
data.tar.gz: 585b3ee62254b73fe63ed5c1704323d9dbc22f96bf11a1b0b66f2ff2f7a631f295865809f789665c5fa7d60badf2f421c610b4167199d3d0637e4bd8f95563f1
|
data/README.md
CHANGED
@@ -15,25 +15,26 @@ Tasks:
|
|
15
15
|
mgen new <name> # generates a new mgem project.
|
16
16
|
```
|
17
17
|
|
18
|
-
the mgem project
|
18
|
+
the mgem project will generate the maximal GEM structure based on mruby standard:
|
19
19
|
|
20
20
|
```
|
21
|
-
+- GEM_NAME
|
21
|
+
+- GEM_NAME <- Name of GEM
|
22
22
|
|
|
23
|
-
+- include/
|
23
|
+
+- include/ <- Header for Ruby extension (will exported)
|
24
24
|
|
|
25
|
-
+- mrblib/
|
25
|
+
+- mrblib/ <- Source for Ruby extension
|
26
26
|
|
|
27
|
-
+- src/
|
27
|
+
+- src/ <- Source for C extension
|
28
28
|
|
|
29
|
-
+- test/
|
29
|
+
+- test/ <- Test code (Ruby)
|
30
30
|
|
|
31
|
-
+- mrbgem.rake
|
31
|
+
+- mrbgem.rake <- GEM Specification
|
32
32
|
|
|
33
|
-
+-
|
33
|
+
+- build_config.rb <- Build configuration
|
34
|
+
|
|
35
|
+
+- README.md <- Readme for GEM
|
34
36
|
```
|
35
37
|
|
36
|
-
|
37
38
|
## Contributing
|
38
39
|
|
39
40
|
1. Fork it
|
data/lib/mgen/cli.rb
CHANGED
@@ -45,7 +45,7 @@ module Mgen
|
|
45
45
|
|
46
46
|
def create_project_directory
|
47
47
|
create_directories( @project_dir )
|
48
|
-
dirs = %w(docs mrblib test include src test).map{|o| "#{@project_dir}/#{o}"}
|
48
|
+
dirs = %w(docs mrblib test include src test bin).map{|o| "#{@project_dir}/#{o}"}
|
49
49
|
create_directories(*dirs)
|
50
50
|
end
|
51
51
|
|
@@ -14,7 +14,7 @@ end
|
|
14
14
|
desc "compile binary"
|
15
15
|
task :compile => :mruby do
|
16
16
|
sh "cd #{MRUBY_ROOT} && MRUBY_CONFIG=#{MRUBY_CONFIG} rake all"
|
17
|
-
sh "cp -p #{MRUBY_ROOT}/bin/mruby #{STATIC_ROOT}/bin
|
17
|
+
sh "cp -p #{MRUBY_ROOT}/bin/mruby #{STATIC_ROOT}/bin/<%= app_name %>"
|
18
18
|
end
|
19
19
|
|
20
20
|
desc "test"
|
@@ -25,12 +25,12 @@ end
|
|
25
25
|
desc "install"
|
26
26
|
task :install => :compile do
|
27
27
|
sh "mkdir -p #{INSTALL_PREFIX}/bin"
|
28
|
-
sh "cp -p #{STATIC_ROOT}/bin
|
28
|
+
sh "cp -p #{STATIC_ROOT}/bin/<%= app_name %> #{INSTALL_PREFIX}/bin/."
|
29
29
|
end
|
30
30
|
|
31
31
|
desc "cleanup"
|
32
32
|
task :clean do
|
33
|
-
sh "rm #{STATIC_ROOT}/bin
|
33
|
+
sh "rm #{STATIC_ROOT}/bin/<%= app_name %>"
|
34
34
|
sh "cd #{MRUBY_ROOT} && rake deep_clean"
|
35
35
|
end
|
36
36
|
|
data/lib/mgen/version.rb
CHANGED