ripl-profiles 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/.gemspec +1 -1
  2. data/CHANGELOG.rdoc +6 -0
  3. data/lib/ripl/profiles.rb +6 -3
  4. metadata +5 -5
data/.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.summary = "This ripl plugin adds a --profile option to ripl that loads profile files in ~/.ripl/profiles."
14
14
  s.description = "This ripl plugin adds a --profile option to ripl that loads profile files in ~/.ripl/profiles before starting ripl."
15
15
  s.required_rubygems_version = ">= 1.3.6"
16
- s.add_dependency 'ripl', '>= 0.2.7'
16
+ s.add_dependency 'ripl', '>= 0.2.8'
17
17
  s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
18
18
  s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
19
19
  s.license = 'MIT'
@@ -1,3 +1,9 @@
1
+ == 0.1.4
2
+ * Load profiles before irbrc.
3
+
4
+ == 0.1.3
5
+ * Fixed available_profiles.
6
+
1
7
  == 0.1.2
2
8
  * Fixed warning.
3
9
 
@@ -1,7 +1,7 @@
1
1
  require 'ripl'
2
2
 
3
3
  module Ripl::Profiles
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.4'
5
5
 
6
6
  @loaded = []
7
7
 
@@ -33,7 +33,7 @@ module Ripl::Profiles
33
33
  # command shortcuts
34
34
  module Commands
35
35
  def available_profiles
36
- Ripl::Profiles.list
36
+ Ripl::Profiles.available
37
37
  end
38
38
 
39
39
  def load_profile( name )
@@ -48,13 +48,16 @@ module Ripl::Profiles
48
48
  module Shell
49
49
  # load default profile if non is set
50
50
  def before_loop
51
- super
52
51
  if Ripl.config[:profiles_default] && Ripl::Profiles.loaded.empty?
53
52
  Ripl::Profiles.load Ripl.config[:profiles_default]
54
53
  end
54
+
55
55
  if Ripl.config[:profiles_base]
56
56
  Ripl::Profiles.load Ripl.config[:profiles_base]
57
57
  end
58
+
59
+ # next plugins, load irbrc and make Ripl::Commands available
60
+ super
58
61
  end
59
62
  end
60
63
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jan Lelis
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-16 00:00:00 +01:00
17
+ date: 2010-12-20 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -28,8 +28,8 @@ dependencies:
28
28
  segments:
29
29
  - 0
30
30
  - 2
31
- - 7
32
- version: 0.2.7
31
+ - 8
32
+ version: 0.2.8
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  description: This ripl plugin adds a --profile option to ripl that loads profile files in ~/.ripl/profiles before starting ripl.