rubyc 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/rubyc/cli.rb +3 -2
- data/lib/rubyc/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/rubyc/cli.rb
CHANGED
@@ -5,12 +5,13 @@ require 'rubyc/core_extensions'
|
|
5
5
|
module Rubyc
|
6
6
|
class CLI < Thor
|
7
7
|
class_option :require, :aliases => '-r'
|
8
|
-
|
8
|
+
class_option :sync, :type => :boolean, :default => false, :aliases => '-s', :banner => 'Synchronize stdout'
|
9
|
+
|
9
10
|
def initialize(*args)
|
10
11
|
super
|
11
12
|
libs = options[:require] ? options[:require].strip.split(":") : []
|
12
13
|
libs.each {|lib| require lib}
|
13
|
-
$stdout.sync =
|
14
|
+
$stdout.sync = options[:sync]
|
14
15
|
end
|
15
16
|
|
16
17
|
def help(*args)
|
data/lib/rubyc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -153,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
segments:
|
155
155
|
- 0
|
156
|
-
hash:
|
156
|
+
hash: -3499535431891997109
|
157
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
158
|
none: false
|
159
159
|
requirements:
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
segments:
|
164
164
|
- 0
|
165
|
-
hash:
|
165
|
+
hash: -3499535431891997109
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project: rubyc
|
168
168
|
rubygems_version: 1.8.24
|