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 +4 -4
- data/lib/simrb/command.rb +14 -3
- data/lib/simrb/info.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: 1a88527cc45f4cae32fce14a3fd8dbe190959a07
|
4
|
+
data.tar.gz: 1034495ddeb8980f7ff097f036bfe060d272209c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
15
|
-
|
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
|
-
#
|
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