rim 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Changelog +4 -0
  2. data/README.rdoc +2 -2
  3. data/lib/rim.rb +3 -3
  4. data/lib/rim/gem.rb +14 -1
  5. data/lib/rim/git.rb +1 -1
  6. metadata +33 -35
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 1.5.0
2
+ Bugfix for Ruby 1.8.7.
3
+ Adding more attributes for gem spec.
4
+
1
5
  1.4.0
2
6
  New task: git:push
3
7
  Require task rimrc implicit.
data/README.rdoc CHANGED
@@ -26,7 +26,7 @@ For advanced usuage have a look at the Rakefile of rim.
26
26
  * Define tasks with +Rim.after_setup+.
27
27
 
28
28
  A very simple example extension:
29
- # require other extensions if neccessary
29
+ # require other extensions if necessary
30
30
 
31
31
  require 'rim/another_extension'
32
32
 
@@ -52,7 +52,7 @@ A very simple example extension:
52
52
  end
53
53
  end
54
54
 
55
- For more examples have a look at the tasks comming with rim in lib/rim/*.rb
55
+ For more examples have a look at the tasks coming with rim in lib/rim/*.rb
56
56
 
57
57
 
58
58
  === License
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.4.0'
12
+ VERSION = '1.5.0'
13
13
 
14
14
  begin
15
15
  require 'rake/dsl_definition'
@@ -24,7 +24,7 @@ class Rim
24
24
  # Otherwise the method yields Rim.instance.
25
25
  def self.defaults(&blk)
26
26
  rim = Rim.instance
27
- if blk.arity == 0
27
+ if blk.arity < 1
28
28
  rim.instance_eval &blk
29
29
  else
30
30
  yield rim
@@ -37,7 +37,7 @@ class Rim
37
37
  # Otherwise the method yields Rim.instance.
38
38
  def self.setup(&blk)
39
39
  rim = Rim.instance
40
- if blk.arity == 0
40
+ if blk.arity < 1
41
41
  rim.instance_eval &blk
42
42
  else
43
43
  yield rim
data/lib/rim/gem.rb CHANGED
@@ -19,11 +19,21 @@ class Rim
19
19
 
20
20
  # Dependencies for development (default: <code>rim ~> Rim::VERSION</code>)
21
21
  attr_accessor :development_dependencies
22
+
23
+ # Required Ruby version
24
+ attr_accessor :ruby_version
25
+
26
+ # Installation message
27
+ attr_accessor :install_message
28
+
29
+ # Requirements (external to rubygems)
30
+ attr_accessor :requirements
22
31
  end
23
32
 
24
33
  Rim.defaults do
25
34
  gem_files filelist(/^README/i, /^Changelog/i, /^COPYING/i, /^LICENSE/i, /^Rakefile/i, 'bin/*', 'lib/**/*', 'test/**/*')
26
- development_dependencies "rim ~> #{Rim::VERSION}"
35
+ development_dependencies ["rim ~> #{Rim::VERSION}"]
36
+ requirements []
27
37
  end
28
38
 
29
39
  Rim.after_setup do
@@ -51,6 +61,9 @@ Rim.after_setup do
51
61
  s.version = version
52
62
  s.require_paths = require_paths
53
63
  s.files = gem_files
64
+ s.required_ruby_version = ruby_version if ruby_version
65
+ s.post_install_message = install_message
66
+ s.requirements = Array(requirements)
54
67
  Array(development_dependencies).each do |depend|
55
68
  g, v = depend.split(' ', 2)
56
69
  s.add_development_dependency *[g, v]
data/lib/rim/git.rb CHANGED
@@ -11,7 +11,7 @@ Rim.defaults do
11
11
  end
12
12
 
13
13
  Rim.after_setup do
14
- if Dir.exist?('.git')
14
+ if File.exist?('.git') && File.directory?('.git')
15
15
  tag_name = "v#{version}"
16
16
  namespace :git do
17
17
  desc "Create git tag #{tag_name}"
metadata CHANGED
@@ -1,40 +1,42 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rim
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.5.0
4
5
  prerelease:
5
- version: 1.4.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Jan Friedrich
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-04-03 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-05-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: rim
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
18
+ requirements:
21
19
  - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 1.4.0
20
+ - !ruby/object:Gem::Version
21
+ version: 1.5.0
24
22
  type: :development
25
- version_requirements: *id001
26
- description: |
27
- Goal is to have a project managing that just works on many Ruby
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.5.0
30
+ description: ! 'Goal is to have a project managing that just works on many Ruby
31
+
28
32
  versions as possible and is easy to extend. Feel free to dislike it. ;)
29
33
 
34
+ '
30
35
  email: janfri26@gmail.com
31
36
  executables: []
32
-
33
37
  extensions: []
34
-
35
38
  extra_rdoc_files: []
36
-
37
- files:
39
+ files:
38
40
  - README.rdoc
39
41
  - Changelog
40
42
  - LICENSE
@@ -55,30 +57,26 @@ files:
55
57
  - test/test_helper_methods.rb
56
58
  homepage: http://gitorious.org/rim
57
59
  licenses: []
58
-
59
60
  post_install_message:
60
61
  rdoc_options: []
61
-
62
- require_paths:
62
+ require_paths:
63
63
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: "0"
70
- required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: "0"
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
76
  requirements: []
77
-
78
77
  rubyforge_project:
79
78
  rubygems_version: 1.8.21
80
79
  signing_key:
81
80
  specification_version: 3
82
81
  summary: A simple project / gem manager
83
82
  test_files: []
84
-