simrb 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 36f22bd1fb71a1a1bd51de5854d9022ee7811d89
4
+ data.tar.gz: fba4c02831f46d28639d4bed3686d908854c4a7e
5
+ SHA512:
6
+ metadata.gz: 74d0b81bfc05bfc598b111b5b3c5c4488d7b4588e904e44f856b3a7d946f95df54c0609661716aa30664d38e410097d8a7c4c1d4396c6a5008ed7d8538675773
7
+ data.tar.gz: cbe16b8764017a453f8b83f51ed836193a5fea6996fc9f067313a99b2bdeba817ca0fc51145a0d6593869ee60c70b38d747f8c3e9f754fa5a58bc716140b3d1a
data/bin/simrb ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ require 'simrb'
@@ -0,0 +1,46 @@
1
+ require 'simrb/info'
2
+
3
+ module Simrb
4
+
5
+ class Scommand
6
+
7
+ # pull the simrb
8
+ #
9
+ # == Example
10
+ #
11
+ # $ simrb init myapp
12
+ #
13
+ def self.init
14
+ name = @args[0] ? @args[0] : 'simrb'
15
+ `git clone https://github.com/simrb/simrb.git #{name}`
16
+
17
+ # initializes detected the running environment
18
+ init_env
19
+ end
20
+
21
+ # pull the module
22
+ def self.init_env
23
+ if `which 3s`.empty?
24
+ `echo 'alias 3s="ruby cmd.rb"' >> ~/.bashrc && source`
25
+ end
26
+ end
27
+
28
+ def self.run argv
29
+ if argv.count > 0
30
+ @cmd = argv.shift
31
+ @args = argv ? argv : []
32
+ end
33
+
34
+ case @cmd
35
+ when 'init'
36
+ init
37
+ puts "Successfully initialized"
38
+ else
39
+ puts "No #{@cmd} command found in simrb"
40
+ end
41
+ end
42
+
43
+ end
44
+
45
+ end
46
+
data/lib/simrb/info.rb ADDED
@@ -0,0 +1,16 @@
1
+ module Simrb
2
+
3
+ Info = {
4
+ :name => 'simrb',
5
+ :created => '2014-01-01',
6
+ :alias_name => '3s',
7
+ :version => '1.0.1',
8
+ :author => 'Linyu Deng',
9
+ :email => 'coolesting@gmail.com',
10
+ :homepage => 'https://github.com/simrb/gem',
11
+ :license => 'MIT',
12
+ :summary => 'Simrb',
13
+ :description => 'This is a command helper for simrb'
14
+ }
15
+
16
+ end
data/lib/simrb.rb ADDED
@@ -0,0 +1,4 @@
1
+ Sroot = File.expand_path('../../', __FILE__)
2
+
3
+ require 'simrb/command'
4
+ Simrb::Scommand.run ARGV
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simrb
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Linyu Deng
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-01 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This is a command helper for simrb
14
+ email: coolesting@gmail.com
15
+ executables:
16
+ - simrb
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/simrb
21
+ - lib/simrb.rb
22
+ - lib/simrb/command.rb
23
+ - lib/simrb/info.rb
24
+ homepage: https://github.com/simrb/gem
25
+ licenses:
26
+ - MIT
27
+ metadata: {}
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubyforge_project: simrb
44
+ rubygems_version: 2.2.2
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: Simrb
48
+ test_files: []