rim 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 1.3.0
2
+ New tasks: rimrc, ripl
3
+
1
4
  1.2.0
2
5
  New tasks: install, uninstall, gem:install, gem:uninstall
3
6
  API extension: Rim.defaults and Rim.setup accept now a parameter in block and
data/Rakefile CHANGED
@@ -4,9 +4,8 @@ require 'rim/core'
4
4
  require 'rim/check_version'
5
5
  require 'rim/gem'
6
6
  require 'rim/git'
7
- require 'rim/info'
8
- require 'rim/irb'
9
7
  require 'rim/rdoc'
8
+ require 'rim/rimrc'
10
9
  require 'rim/test'
11
10
 
12
11
  Rim.setup do
data/lib/rim.rb CHANGED
@@ -9,7 +9,7 @@ require 'singleton'
9
9
  # versions as possible and is easy to extend. Feel free to dislike it. ;)
10
10
  class Rim
11
11
 
12
- VERSION = '1.2.0'
12
+ VERSION = '1.3.0'
13
13
 
14
14
  begin
15
15
  require 'rake/dsl_definition'
@@ -18,7 +18,8 @@ class Rim
18
18
  end
19
19
  include Singleton
20
20
 
21
- # Setting the default values of attributes. Useful when writing Rim extensions.
21
+ # Setting the default values of attributes. Useful when writing Rim
22
+ # extensions.
22
23
  # The block is evaluated in Rim.instance when no parameter is used.
23
24
  # Otherwise the method yields Rim.instance.
24
25
  def self.defaults(&blk)
@@ -30,8 +31,8 @@ class Rim
30
31
  end
31
32
  end
32
33
 
33
- # Setting up Rim. This method is usual used in Rakefiles to setting the project specific
34
- # values of the Rim instance.
34
+ # Setting up Rim. This method is usual used in Rakefiles to setting
35
+ # the project specific values of the Rim instance.
35
36
  # The block is evaluated in Rim.instance when no parameter is used.
36
37
  # Otherwise the method yields Rim.instance.
37
38
  def self.setup(&blk)
@@ -46,7 +47,7 @@ class Rim
46
47
 
47
48
  # The block is executed after setup is completed.
48
49
  # Useful when writing rim extensions.
49
- # At execution time the Rim instance is coplete initialized.
50
+ # At execution time the Rim instance is complete initialized.
50
51
  def self.after_setup(&blk)
51
52
  @definitions << blk
52
53
  end
@@ -0,0 +1,13 @@
1
+ # -- encoding: utf-8 --
2
+
3
+ # Load ~/.rimrc if it exist
4
+ home = if Dir.respond_to? :home
5
+ Dir.home
6
+ else
7
+ # This will hopefully work on *NIX and Windows systems
8
+ ENV['HOME'] || ENV['HOMEDRIVE'] + ENV['HOMEPATH'] || ENV['USERPROFILE']
9
+ end
10
+ rimrc = File.join(home, '.rimrc')
11
+ if File.exist?(rimrc)
12
+ load rimrc
13
+ end
@@ -0,0 +1,8 @@
1
+ # -- encoding: utf-8 --
2
+ Rim.after_setup do
3
+ desc 'Start a ripl session an loading lib'
4
+ task :ripl do
5
+ i_params = Array(require_paths).map {|e| '-I ' << e}.join(' ')
6
+ sh "ripl #{i_params} -r #{name}"
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-15 00:00:00.000000000 Z
12
+ date: 2012-03-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Goal is to have a project managing that just works on many Ruby
15
15
 
@@ -25,17 +25,19 @@ files:
25
25
  - Changelog
26
26
  - LICENSE
27
27
  - Rakefile
28
- - lib/rim/check_version.rb
29
- - lib/rim/core.rb
28
+ - lib/rim.rb
29
+ - lib/rim/release.rb
30
30
  - lib/rim/gem.rb
31
- - lib/rim/git.rb
31
+ - lib/rim/rimrc.rb
32
32
  - lib/rim/info.rb
33
- - lib/rim/install.rb
34
33
  - lib/rim/irb.rb
35
34
  - lib/rim/rdoc.rb
36
- - lib/rim/release.rb
35
+ - lib/rim/install.rb
36
+ - lib/rim/check_version.rb
37
+ - lib/rim/ripl.rb
37
38
  - lib/rim/test.rb
38
- - lib/rim.rb
39
+ - lib/rim/git.rb
40
+ - lib/rim/core.rb
39
41
  - test/test_helper_methods.rb
40
42
  homepage: http://gitorious.org/rim
41
43
  licenses: []
@@ -57,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
59
  version: '0'
58
60
  requirements: []
59
61
  rubyforge_project:
60
- rubygems_version: 1.8.6.1
62
+ rubygems_version: 1.8.17
61
63
  signing_key:
62
64
  specification_version: 3
63
65
  summary: A simple project / gem manager