simple_gemset 0.0.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/simple_gemset +15 -20
- metadata +52 -61
data/bin/simple_gemset
CHANGED
@@ -12,8 +12,8 @@ class Simple_gemset < Thor::Group
|
|
12
12
|
|
13
13
|
class_option :ruby, :type => :boolean, :default => false, :desc => 'Display the list of rubies as options.'
|
14
14
|
|
15
|
-
def
|
16
|
-
ruby_options = [
|
15
|
+
def define_rubies
|
16
|
+
@ruby_options = [
|
17
17
|
'ruby-1.8.6-p420',
|
18
18
|
'ruby-1.8.6-head',
|
19
19
|
'ruby-1.8.7-p352',
|
@@ -52,34 +52,29 @@ class Simple_gemset < Thor::Group
|
|
52
52
|
'macruby-0.10',
|
53
53
|
'macruby-nightly',
|
54
54
|
'macruby-head'
|
55
|
-
]
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
else
|
60
|
-
rvmrc_path = '.rvmrc'
|
61
|
-
end
|
55
|
+
]
|
56
|
+
end
|
57
|
+
|
58
|
+
def generate_rvmrc
|
59
|
+
if ENV['testing'] then rvmrc_path = 'spec/rvmrc' else rvmrc_path = '.rvmrc' end
|
62
60
|
|
63
61
|
if options[:ruby]
|
64
62
|
say('Choose which Ruby version do you want to use') unless ENV['testing']
|
65
|
-
ruby_options.each_index { |i| puts i.to_s+': '+ ruby_options[i] } unless ENV['testing']
|
66
|
-
|
67
|
-
ruby_option = 7
|
68
|
-
if not ENV['testing']
|
69
|
-
ruby_option = ask('Which ruby? Just tell me the number: ')
|
70
|
-
end
|
63
|
+
@ruby_options.each_index { |i| puts i.to_s+': '+ @ruby_options[i] } unless ENV['testing']
|
71
64
|
|
65
|
+
if ENV['testing'] then ruby_option = 7 else ruby_option = ask('Which ruby? Just tell me the number: ') end
|
66
|
+
|
72
67
|
create_file(rvmrc_path) do
|
73
68
|
"# Generated with Simple_gemset \n" +
|
74
|
-
"rvm use
|
75
|
-
"rvm gemset create
|
76
|
-
"rvm gemset use
|
69
|
+
"rvm use #{@ruby_options[ruby_option.to_i]}\n" +
|
70
|
+
"rvm gemset create #{gemset}\n" +
|
71
|
+
"rvm gemset use #{gemset}"
|
77
72
|
end
|
78
73
|
else
|
79
74
|
create_file(rvmrc_path) do
|
80
75
|
"# Generated with Simple_gemset \n" +
|
81
|
-
"rvm gemset create
|
82
|
-
"rvm gemset use
|
76
|
+
"rvm gemset create #{gemset}\n" +
|
77
|
+
"rvm gemset use #{gemset}"
|
83
78
|
end
|
84
79
|
end
|
85
80
|
end
|
metadata
CHANGED
@@ -1,99 +1,90 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_gemset
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Gonzalo Rodriguez-Baltanas Diaz
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-07-31 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: rspec
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70110594124020 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
25
22
|
type: :development
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: thor
|
29
23
|
prerelease: false
|
30
|
-
|
24
|
+
version_requirements: *70110594124020
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: thor
|
27
|
+
requirement: &70110594123580 !ruby/object:Gem::Requirement
|
31
28
|
none: false
|
32
|
-
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version:
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
36
33
|
type: :development
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: wrong
|
40
34
|
prerelease: false
|
41
|
-
|
35
|
+
version_requirements: *70110594123580
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: wrong
|
38
|
+
requirement: &70110594123160 !ruby/object:Gem::Requirement
|
42
39
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version:
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
47
44
|
type: :development
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: thor
|
51
45
|
prerelease: false
|
52
|
-
|
46
|
+
version_requirements: *70110594123160
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: thor
|
49
|
+
requirement: &70110594122740 !ruby/object:Gem::Requirement
|
53
50
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version:
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
58
55
|
type: :runtime
|
59
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70110594122740
|
60
58
|
description: Generator for simple and agile .rvmrc files
|
61
59
|
email: siotopo@gmail.com
|
62
|
-
executables:
|
60
|
+
executables:
|
63
61
|
- simple_gemset
|
64
62
|
extensions: []
|
65
|
-
|
66
63
|
extra_rdoc_files: []
|
67
|
-
|
68
|
-
files:
|
64
|
+
files:
|
69
65
|
- bin/simple_gemset
|
70
|
-
has_rdoc: true
|
71
66
|
homepage: https://github.com/nerian/simple_gemset
|
72
67
|
licenses: []
|
73
|
-
|
74
68
|
post_install_message:
|
75
69
|
rdoc_options: []
|
76
|
-
|
77
|
-
require_paths:
|
70
|
+
require_paths:
|
78
71
|
- lib
|
79
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
73
|
none: false
|
81
|
-
requirements:
|
82
|
-
- -
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version:
|
85
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
79
|
none: false
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version:
|
80
|
+
requirements:
|
81
|
+
- - ! '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
91
84
|
requirements: []
|
92
|
-
|
93
85
|
rubyforge_project:
|
94
|
-
rubygems_version: 1.6
|
86
|
+
rubygems_version: 1.8.6
|
95
87
|
signing_key:
|
96
88
|
specification_version: 3
|
97
89
|
summary: Generator for simple and agile .rvmrc files
|
98
90
|
test_files: []
|
99
|
-
|