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.
Files changed (4) hide show
  1. data/CHANGELOG.rdoc +3 -0
  2. data/Rakefile +2 -8
  3. data/lib/ripl/profiles.rb +4 -6
  4. metadata +2 -2
@@ -1,3 +1,6 @@
1
+ == 0.2.1
2
+ * Use cleaner ways to hook in, be compatible with ripl 0.4.0.
3
+
1
4
  == 0.2.0
2
5
  * Load profiles before Shell#before_loop (be compatible with ripl-multi_line 0.3.0).
3
6
 
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ def gemspec
6
6
  end
7
7
 
8
8
  desc "Build the gem"
9
- task :gem=>:gemspec do
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
@@ -1,12 +1,10 @@
1
1
  require 'ripl'
2
2
 
3
3
  module Ripl::Profiles
4
- VERSION = '0.2.0'
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
- before_loop
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.0
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-04-28 00:00:00 Z
13
+ date: 2011-05-07 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ripl