rag 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +7 -13
- data/Gemfile.lock +6 -14
- data/lib/rag/version.rb +1 -1
- data/lib/rag.rb +20 -12
- data/rag.gemspec +12 -12
- metadata +14 -11
data/Gemfile
CHANGED
@@ -1,18 +1,12 @@
|
|
1
1
|
source :rubygems
|
2
2
|
|
3
|
-
gem
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
gem 'pa', :path => '/home/guten/dev/one/pa'
|
8
|
-
|
9
|
-
#gem 'optimism', '~>3.0.0'
|
10
|
-
gem 'optimism', :path => '/home/guten/dev/one/optimism'
|
11
|
-
|
12
|
-
gem 'thor', '~>0.14.0'
|
3
|
+
gem "tagen", "~>1.1.0", :require => "tagen/core"
|
4
|
+
gem "pa", "~>1.2.0"
|
5
|
+
gem "optimism", "~>3.1.0"
|
6
|
+
gem "thor", "~>0.14.0"
|
13
7
|
|
14
8
|
group :development do
|
15
|
-
gem
|
16
|
-
gem
|
17
|
-
gem
|
9
|
+
gem "rspec"
|
10
|
+
gem "watchr"
|
11
|
+
gem "yard"
|
18
12
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,3 @@
|
|
1
|
-
PATH
|
2
|
-
remote: /home/guten/dev/one/optimism
|
3
|
-
specs:
|
4
|
-
optimism (3.1.0)
|
5
|
-
hike (~> 1.2.0)
|
6
|
-
|
7
|
-
PATH
|
8
|
-
remote: /home/guten/dev/one/pa
|
9
|
-
specs:
|
10
|
-
pa (1.1.4)
|
11
|
-
|
12
1
|
GEM
|
13
2
|
remote: http://rubygems.org/
|
14
3
|
specs:
|
@@ -17,6 +6,9 @@ GEM
|
|
17
6
|
diff-lcs (1.1.3)
|
18
7
|
hike (1.2.1)
|
19
8
|
multi_json (1.0.4)
|
9
|
+
optimism (3.1.0)
|
10
|
+
hike (~> 1.2.0)
|
11
|
+
pa (1.2.0)
|
20
12
|
rspec (2.8.0)
|
21
13
|
rspec-core (~> 2.8.0)
|
22
14
|
rspec-expectations (~> 2.8.0)
|
@@ -25,7 +17,7 @@ GEM
|
|
25
17
|
rspec-expectations (2.8.0)
|
26
18
|
diff-lcs (~> 1.1.2)
|
27
19
|
rspec-mocks (2.8.0)
|
28
|
-
tagen (1.1.
|
20
|
+
tagen (1.1.4)
|
29
21
|
activesupport (~> 3.1.0)
|
30
22
|
thor (0.14.6)
|
31
23
|
watchr (0.7)
|
@@ -35,8 +27,8 @@ PLATFORMS
|
|
35
27
|
ruby
|
36
28
|
|
37
29
|
DEPENDENCIES
|
38
|
-
optimism
|
39
|
-
pa
|
30
|
+
optimism (~> 3.1.0)
|
31
|
+
pa (~> 1.2.0)
|
40
32
|
rspec
|
41
33
|
tagen (~> 1.1.0)
|
42
34
|
thor (~> 0.14.0)
|
data/lib/rag/version.rb
CHANGED
data/lib/rag.rb
CHANGED
@@ -15,25 +15,33 @@ class Rag < Thor
|
|
15
15
|
|
16
16
|
Rc = Optimism.require "rag/rc", "~/.ragrc"
|
17
17
|
|
18
|
-
|
18
|
+
include Thor::Actions
|
19
19
|
|
20
|
-
|
21
|
-
|
20
|
+
class_option "no-color", :type => :boolean, :banner => "Disable colorization in output"
|
21
|
+
class_option "verbose", :type => :boolean, :banner => "Enable verbose output mode", :aliases => "-V"
|
22
22
|
|
23
23
|
class << self
|
24
24
|
attr_accessor :ui
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
def ui
|
27
|
+
@ui ||= UI::Base.new
|
28
|
+
end
|
29
29
|
end
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
def initialize(*)
|
32
|
+
super
|
33
|
+
the_shell = (options["no-color"] ? Thor::Shell::Basic.new : shell)
|
34
|
+
Rag.ui = UI::Shell.new(the_shell)
|
35
|
+
Rag.ui.debug! if options["verbose"]
|
36
|
+
|
37
|
+
# generate Rc.o
|
38
|
+
o = Rc.o = OpenOption.new
|
39
|
+
if gemspec_file=Dir["*.gemspec"][0]
|
40
|
+
gemspec = Gem::Specification.load(gemspec_file)
|
41
|
+
o.project = gemspec.name
|
42
|
+
o.version = gemspec.version
|
43
|
+
end
|
44
|
+
end
|
37
45
|
end
|
38
46
|
|
39
47
|
require "rag/new"
|
data/rag.gemspec
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
$: << File.expand_path(
|
2
|
-
require
|
1
|
+
$: << File.expand_path("../lib", __FILE__)
|
2
|
+
require "rag/version"
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
|
-
s.name =
|
5
|
+
s.name = "rag"
|
6
6
|
s.version = Rag::VERSION
|
7
|
-
s.summary =
|
7
|
+
s.summary = "A project helper, include create, developing, testing, release"
|
8
8
|
s.description = <<-EOF
|
9
9
|
A project helper, include create, develop, test, release helper.
|
10
10
|
EOF
|
11
11
|
|
12
|
-
s.author =
|
13
|
-
s.email =
|
14
|
-
s.homepage =
|
15
|
-
s.rubyforge_project =
|
12
|
+
s.author = "Guten"
|
13
|
+
s.email = "ywzhaifei@gmail.com"
|
14
|
+
s.homepage = "http://github.com/GutenYe/rag"
|
15
|
+
s.rubyforge_project = "xx"
|
16
16
|
|
17
17
|
s.files = `git ls-files`.split("\n")
|
18
18
|
s.executables = %w(rag)
|
19
19
|
|
20
|
-
s.add_dependency
|
21
|
-
s.add_dependency
|
22
|
-
s.add_dependency
|
23
|
-
s.add_dependency
|
20
|
+
s.add_dependency "tagen", "~>1.1.0"
|
21
|
+
s.add_dependency "pa", "~>1.2.0"
|
22
|
+
s.add_dependency "optimism", "~>3.1.0"
|
23
|
+
s.add_dependency "thor", "~>0.14.0"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: tagen
|
16
|
-
requirement: &
|
16
|
+
requirement: &18782500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,32 +21,32 @@ dependencies:
|
|
21
21
|
version: 1.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *18782500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: pa
|
27
|
-
requirement: &
|
27
|
+
requirement: &18780400 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
32
|
+
version: 1.2.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *18780400
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: optimism
|
38
|
-
requirement: &
|
38
|
+
requirement: &18779700 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 3.
|
43
|
+
version: 3.1.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *18779700
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: thor
|
49
|
-
requirement: &
|
49
|
+
requirement: &18779000 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 0.14.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *18779000
|
58
58
|
description: ! "A project helper, include create, develop, test, release helper. \n"
|
59
59
|
email: ywzhaifei@gmail.com
|
60
60
|
executables:
|
@@ -113,6 +113,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- - ! '>='
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
hash: 4121878122574563370
|
116
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
120
|
none: false
|
118
121
|
requirements:
|