ro_commands 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/Rakefile +1 -1
- data/bin/ro_client +1 -0
- data/bin/ro_server +1 -1
- data/config/rorc.rb +1 -0
- data/lib/bash_builder.rb +10 -7
- data/lib/bash_builder_helper.rb +25 -23
- data/lib/bash_templates/file.sh +1 -0
- data/lib/bash_templates/git.sh +1 -0
- data/lib/bash_templates/jekyll.sh +3 -0
- data/lib/bash_templates/misc.sh +6 -39
- data/lib/bash_templates/ruby.sh +1 -0
- data/lib/bash_templates/rubymine_idea.sh +41 -0
- data/lib/bash_templates/shortcuts.sh +1 -1
- data/lib/bash_templates/video.sh +4 -0
- data/lib/builder_templates/set_envs.erb +3 -2
- data/lib/drb/client.rb +14 -4
- data/lib/drb/server.rb +2 -1
- data/lib/git_flow_builder_helper.rb +24 -22
- data/lib/rails_builder_helper.rb +31 -28
- data/lib/ro_commands/base.rb +13 -2
- data/lib/ro_commands/core_ext/string.rb +4 -0
- data/lib/ro_commands/core_ext/thor.rb +0 -71
- data/lib/ro_commands/dsl/{file.rb → ro_file.rb} +3 -4
- data/lib/ro_commands/generators/spec_file.rb +24 -17
- data/lib/ro_commands/generators/templates/ex.erb +4 -0
- data/lib/ro_commands/generators/templates/spec.erb +3 -0
- data/lib/ro_commands/helpers/bash.rb +33 -7
- data/lib/ro_commands/helpers/out.rb +61 -2
- data/lib/ro_commands/info.rb +12 -8
- data/lib/ro_commands/navigate.rb +5 -1
- data/lib/ro_commands/rails.rb +1 -1
- data/lib/ro_commands/shortcuts.rb +82 -3
- data/lib/ro_commands/try.rb +8 -1
- data/lib/ro_commands/version.rb +1 -1
- data/lib/ro_commands/zeus_templates/custom_plan.rb +15 -7
- data/lib/ro_commands/zeus_templates/zeus.json +12 -5
- data/lib/set_envs_helper.rb +70 -0
- data/ro_commands.sh +839 -0
- metadata +66 -5
- data/lib/shortcuts.rb +0 -43
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ro_commands
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,6 +66,62 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 4.0.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: thor
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: term-ansicolor
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coderay
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
69
125
|
description: ''
|
70
126
|
email:
|
71
127
|
- zhuxingruo3@gmail.com
|
@@ -102,7 +158,7 @@ files:
|
|
102
158
|
- lib/ro_commands/git.rb
|
103
159
|
- lib/ro_commands/misc.rb
|
104
160
|
- lib/ro_commands/base.rb
|
105
|
-
- lib/ro_commands/dsl/
|
161
|
+
- lib/ro_commands/dsl/ro_file.rb
|
106
162
|
- lib/ro_commands/core_ext/string.rb
|
107
163
|
- lib/ro_commands/core_ext/thor.rb
|
108
164
|
- lib/ro_commands/core_ext/symbol.rb
|
@@ -123,14 +179,18 @@ files:
|
|
123
179
|
- lib/builder_templates/set_envs.erb
|
124
180
|
- lib/builder_templates/rails.erb
|
125
181
|
- lib/builder_templates/completions.erb
|
182
|
+
- lib/set_envs_helper.rb
|
126
183
|
- lib/spec_element/describe.rb.erb
|
184
|
+
- lib/bash_templates/file.sh
|
185
|
+
- lib/bash_templates/ruby.sh
|
127
186
|
- lib/bash_templates/rails.sh
|
187
|
+
- lib/bash_templates/video.sh
|
128
188
|
- lib/bash_templates/gitflow.sh
|
129
189
|
- lib/bash_templates/shortcuts.sh
|
130
190
|
- lib/bash_templates/git.sh
|
131
191
|
- lib/bash_templates/rubymine_idea.sh
|
132
192
|
- lib/bash_templates/misc.sh
|
133
|
-
- lib/
|
193
|
+
- lib/bash_templates/jekyll.sh
|
134
194
|
- lib/bash_debug.rb
|
135
195
|
- lib/rails_builder_helper.rb
|
136
196
|
- lib/ro_helper.rb
|
@@ -140,6 +200,7 @@ files:
|
|
140
200
|
- MIT-LICENSE
|
141
201
|
- Rakefile
|
142
202
|
- README.rdoc
|
203
|
+
- ro_commands.sh
|
143
204
|
- test/roro_commands_test.rb
|
144
205
|
- test/dummy/public/422.html
|
145
206
|
- test/dummy/public/500.html
|
@@ -195,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
256
|
version: '0'
|
196
257
|
requirements: []
|
197
258
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.0.
|
259
|
+
rubygems_version: 2.0.14
|
199
260
|
signing_key:
|
200
261
|
specification_version: 4
|
201
262
|
summary: ''
|
data/lib/shortcuts.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
$LOAD_PATH.unshift File.expand_path("../", __FILE__)
|
2
|
-
require "ro_commands/base"
|
3
|
-
require "fileutils"
|
4
|
-
|
5
|
-
module RoCommands
|
6
|
-
class Shortcuts
|
7
|
-
|
8
|
-
# def map
|
9
|
-
# {
|
10
|
-
# ro_server: "rails",
|
11
|
-
# }
|
12
|
-
# end
|
13
|
-
#
|
14
|
-
# def create
|
15
|
-
# map.each do |shortcut, full|
|
16
|
-
# shortcut = shortcut.to_s
|
17
|
-
# puts "creating bin/#{shortcut}"
|
18
|
-
# _create shortcut, full
|
19
|
-
# end
|
20
|
-
# end
|
21
|
-
#
|
22
|
-
# private
|
23
|
-
# def file(path)
|
24
|
-
# dir = File.dirname path
|
25
|
-
# FileUtils.mkpath dir
|
26
|
-
# FileUtils.touch path
|
27
|
-
# end
|
28
|
-
#
|
29
|
-
# def _create(shortcut, full)
|
30
|
-
# bin = File.expand_path("../../bin", __FILE__)
|
31
|
-
# path = File.join(bin, shortcut)
|
32
|
-
#
|
33
|
-
# file(path)
|
34
|
-
# ctn = <<-CONTENT
|
35
|
-
#Kernel.system "ro <%= full %>"
|
36
|
-
# CONTENT
|
37
|
-
#
|
38
|
-
# result = ERB.new(ctn).result(binding)
|
39
|
-
# File.write(path, result)
|
40
|
-
# end
|
41
|
-
|
42
|
-
end
|
43
|
-
end
|