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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a051bdb14b02c92045fd8905b8722efa29af9d9
4
- data.tar.gz: 0dd47009f9e228c5b5e280458e23bdb762566a8d
3
+ metadata.gz: 95b5daeb1629afdcdf407fe9594af643f277cefe
4
+ data.tar.gz: 048446096fcb3ebcfd4fa25ec37f5fdae97c76a6
5
5
  SHA512:
6
- metadata.gz: 635dcdfc5a3c4e8a6f1164f30820ebd068653e79187bed05465c7805ee5fb15d597d364f110b3b83513dc0605d1ca5f0421b22b6952074113106208c1387951c
7
- data.tar.gz: 2c353e4eff9f7a0546ca818375778ad8919941cb49ee100972e13e12ea90d7b4e76f23d54372c7bdd8e4b5568ff84fa4141d42014656647caa87300411b67342
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 layout will generate the maximal GEM structure based on mruby standard:
18
+ the mgem project will generate the maximal GEM structure based on mruby standard:
19
19
 
20
20
  ```
21
- +- GEM_NAME <- Name of GEM
21
+ +- GEM_NAME <- Name of GEM
22
22
  |
23
- +- include/ <- Header for Ruby extension (will exported)
23
+ +- include/ <- Header for Ruby extension (will exported)
24
24
  |
25
- +- mrblib/ <- Source for Ruby extension
25
+ +- mrblib/ <- Source for Ruby extension
26
26
  |
27
- +- src/ <- Source for C extension
27
+ +- src/ <- Source for C extension
28
28
  |
29
- +- test/ <- Test code (Ruby)
29
+ +- test/ <- Test code (Ruby)
30
30
  |
31
- +- mrbgem.rake <- GEM Specification
31
+ +- mrbgem.rake <- GEM Specification
32
32
  |
33
- +- README.md <- Readme for GEM
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
@@ -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
 
@@ -0,0 +1,12 @@
1
+ # mruby-<%= app_name %>
2
+
3
+ ## Getting started:
4
+
5
+ ### test
6
+
7
+ rake test
8
+
9
+ ### compile
10
+
11
+ rake compile
12
+
@@ -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/static"
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/static #{INSTALL_PREFIX}/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/static"
33
+ sh "rm #{STATIC_ROOT}/bin/<%= app_name %>"
34
34
  sh "cd #{MRUBY_ROOT} && rake deep_clean"
35
35
  end
36
36
 
@@ -1,7 +1,7 @@
1
1
  MRuby::Gem::Specification.new('mruby-<%= app_name %>') do |spec|
2
2
  spec.license = 'MIT'
3
3
  spec.authors = 'your name <your@email>'
4
- spec.summary = 'drescription here'
4
+ spec.summary = 'description here'
5
5
 
6
6
  #spec.add_dependency 'mruby-io'
7
7
 
@@ -1,3 +1,3 @@
1
1
  module Mgen
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - miguel michelson