ripl-profiles 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +3 -0
- data/Rakefile +2 -8
- data/lib/ripl/profiles.rb +4 -6
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ def gemspec
|
|
6
6
|
end
|
7
7
|
|
8
8
|
desc "Build the gem"
|
9
|
-
task :gem
|
9
|
+
task :gem => :gemspec do
|
10
10
|
sh "gem build .gemspec"
|
11
11
|
FileUtils.mkdir_p 'pkg'
|
12
12
|
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
|
@@ -14,7 +14,7 @@ end
|
|
14
14
|
|
15
15
|
desc "Install the gem locally"
|
16
16
|
task :install => :gem do
|
17
|
-
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version}}
|
17
|
+
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version} --no-rdoc --no-ri}
|
18
18
|
end
|
19
19
|
|
20
20
|
desc "Generate the gemspec"
|
@@ -27,9 +27,3 @@ task :gemspec do
|
|
27
27
|
gemspec.validate
|
28
28
|
end
|
29
29
|
|
30
|
-
desc 'Run tests'
|
31
|
-
task :test do |t|
|
32
|
-
sh 'bacon -q -Ilib -I. test/*_test.rb'
|
33
|
-
end
|
34
|
-
|
35
|
-
task :default => :test
|
data/lib/ripl/profiles.rb
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
require 'ripl'
|
2
2
|
|
3
3
|
module Ripl::Profiles
|
4
|
-
VERSION = '0.2.
|
4
|
+
VERSION = '0.2.1'
|
5
5
|
|
6
6
|
@loaded = []
|
7
7
|
|
8
|
-
Ripl::Runner::OPTIONS << ['-p, --profile NAME', 'Use a profile']
|
9
|
-
|
10
8
|
class << self
|
11
9
|
attr_reader :loaded
|
12
10
|
|
@@ -66,15 +64,15 @@ module Ripl::Profiles
|
|
66
64
|
end
|
67
65
|
end
|
68
66
|
end
|
67
|
+
Ripl::Runner.add_options ['-p, --profile NAME', 'Use a profile']
|
69
68
|
end
|
70
69
|
|
71
70
|
# hack into Shell#loop to get extra rights (run before before_loop)
|
72
71
|
class Ripl::Shell
|
72
|
+
alias loop_without_profiles loop
|
73
73
|
def loop
|
74
74
|
Ripl::Profiles.load_from_config
|
75
|
-
|
76
|
-
catch(:ripl_exit) { while(true) do; loop_once; end }
|
77
|
-
after_loop
|
75
|
+
loop_without_profiles
|
78
76
|
end
|
79
77
|
end
|
80
78
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ripl-profiles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jan Lelis
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-05-07 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ripl
|