simrb 1.0.2 → 1.0.3

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
  SHA1:
3
- metadata.gz: e8e3b3c595c6b9e6d2ddd993c46eb28f1f5318f4
4
- data.tar.gz: afb3fd2ec8e508c16185cd6c8212bab098733fe5
3
+ metadata.gz: 1a88527cc45f4cae32fce14a3fd8dbe190959a07
4
+ data.tar.gz: 1034495ddeb8980f7ff097f036bfe060d272209c
5
5
  SHA512:
6
- metadata.gz: 4dda479227dc92fc8c1c99603dde62c90bca98b3acb1f95c6cfa7be0cb634de198618085eb7945a0076ebd7628cea642b46a30e659b46bb8921f3577b1c3e32f
7
- data.tar.gz: 33a7b2ad424a2126d3d39a2bb02a477917d87e87fb89991009ce45f950d17828204c846da133051afa6392edcbf762bc07877a59aa2fc026c972b82b806e4c68
6
+ metadata.gz: dd98351345ee9d49c6b23a2dd5ba5ad69e9c2058955756dfdb68d9d7e8fb615a5ed337bc7ade562cd99349db3ecedd29837f20c32d3e5c1981e7e3da2af7e324
7
+ data.tar.gz: 82b7aa3ca01f94b2394f85e31956a2d455c854f440bc03d281aad02986b2599de3551cd36dd5b18594a05a8e0d0535cdec1022e7ed82cc89ff90fc64184e0b5b
data/lib/simrb/command.rb CHANGED
@@ -11,18 +11,29 @@ module Simrb
11
11
  # $ simrb init myapp
12
12
  #
13
13
  def self.init
14
- name = @args[0] ? @args[0] : 'simrb'
15
- `git clone https://github.com/simrb/simrb.git #{name}`
14
+ # get the copy from remote repository
15
+ @appname = @args[0] ? @args[0] : 'simrb'
16
+ system("git clone https://github.com/simrb/simrb.git #{@appname}")
16
17
 
17
18
  # initializes detected the running environment
18
19
  init_env
19
20
  end
20
21
 
21
- # pull the module
22
+ # initialize environment
22
23
  def self.init_env
24
+ # bash command
23
25
  if `which 3s`.empty?
24
26
  `echo 'alias 3s="ruby cmd.rb"' >> ~/.bashrc && source`
25
27
  end
28
+
29
+ # basic gem bundling
30
+ if @args.include? '--dev'
31
+ system("bundle install --gemfile=#{@appname}/modules/system/stores/Gemfile --without=production")
32
+ elsif @args.include? '--pro'
33
+ system("bundle install --gemfile=#{@appname}/modules/system/stores/Gemfile --without=develpment")
34
+ else
35
+
36
+ end
26
37
  end
27
38
 
28
39
  def self.run argv
data/lib/simrb/info.rb CHANGED
@@ -4,7 +4,7 @@ module Simrb
4
4
  :name => 'simrb',
5
5
  :created => '2014-01-01',
6
6
  :alias_name => '3s',
7
- :version => '1.0.2',
7
+ :version => '1.0.3',
8
8
  :author => 'Linyu Deng',
9
9
  :email => 'coolesting@gmail.com',
10
10
  :homepage => 'https://github.com/simrb/simrb-gem',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linyu Deng