rim 1.3.2 → 1.4.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 +6 -0
  2. data/Rakefile +0 -1
  3. data/lib/rim/gem.rb +8 -0
  4. data/lib/rim/git.rb +15 -1
  5. data/lib/rim.rb +2 -1
  6. metadata +46 -28
data/Changelog CHANGED
@@ -1,3 +1,9 @@
1
+ 1.4.0
2
+ New task: git:push
3
+ Require task rimrc implicit.
4
+ New attribute: development_dependencies
5
+ (default: rim ~> Rim::VERSION)
6
+
1
7
  1.3.2
2
8
  Workaround for attr_accessor in Ruby 1.9.[12].
3
9
  Make tests work on unclean directory tree.
data/Rakefile CHANGED
@@ -4,7 +4,6 @@ require 'rim/check_version'
4
4
  require 'rim/gem'
5
5
  require 'rim/git'
6
6
  require 'rim/rdoc'
7
- require 'rim/rimrc'
8
7
  require 'rim/test'
9
8
 
10
9
  Rim.setup do
data/lib/rim/gem.rb CHANGED
@@ -16,10 +16,14 @@ class Rim
16
16
 
17
17
  # Files included in the gem (default: <code>/^README/i, /^Changelog/i, /^COPYING/i, /^LICENSE/i, /^Rakefile/i, 'bin/*', 'lib/**/*', 'test/**/*'</code>)
18
18
  attr_accessor :gem_files
19
+
20
+ # Dependencies for development (default: <code>rim ~> Rim::VERSION</code>)
21
+ attr_accessor :development_dependencies
19
22
  end
20
23
 
21
24
  Rim.defaults do
22
25
  gem_files filelist(/^README/i, /^Changelog/i, /^COPYING/i, /^LICENSE/i, /^Rakefile/i, 'bin/*', 'lib/**/*', 'test/**/*')
26
+ development_dependencies "rim ~> #{Rim::VERSION}"
23
27
  end
24
28
 
25
29
  Rim.after_setup do
@@ -47,6 +51,10 @@ Rim.after_setup do
47
51
  s.version = version
48
52
  s.require_paths = require_paths
49
53
  s.files = gem_files
54
+ Array(development_dependencies).each do |depend|
55
+ g, v = depend.split(' ', 2)
56
+ s.add_development_dependency *[g, v]
57
+ end
50
58
  end
51
59
 
52
60
  task_object = klass.new(spec) do |pkg|
data/lib/rim/git.rb CHANGED
@@ -1,6 +1,15 @@
1
1
  # -- encoding: utf-8 --
2
2
  require 'rim/release'
3
3
 
4
+ class Rim
5
+ # Git remotes to push (default: <tt>origin</tt>)
6
+ attr_accessor :git_remotes
7
+ end
8
+
9
+ Rim.defaults do
10
+ git_remotes %w(origin)
11
+ end
12
+
4
13
  Rim.after_setup do
5
14
  if Dir.exist?('.git')
6
15
  tag_name = "v#{version}"
@@ -8,7 +17,6 @@ Rim.after_setup do
8
17
  desc "Create git tag #{tag_name}"
9
18
  tag_task = task :tag do
10
19
  cmd = "git tag #{tag_name}"
11
- puts cmd
12
20
  sh cmd
13
21
  end
14
22
  desc 'Check if git tree is clean'
@@ -18,6 +26,12 @@ Rim.after_setup do
18
26
  raise 'Git tree is not clean'
19
27
  end
20
28
  end
29
+ desc 'Push master to git remotes'
30
+ task :push => :check do
31
+ git_remotes.each do |remote|
32
+ sh "git push #{remote} master"
33
+ end
34
+ end
21
35
  end
22
36
  task :release => 'git:check' do
23
37
  invoke 'git:tag'
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.3.2'
12
+ VERSION = '1.4.0'
13
13
 
14
14
  begin
15
15
  require 'rake/dsl_definition'
@@ -92,3 +92,4 @@ class Rim
92
92
  end
93
93
 
94
94
  require 'rim/core'
95
+ require 'rim/rimrc'
metadata CHANGED
@@ -1,66 +1,84 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rim
3
- version: !ruby/object:Gem::Version
4
- version: 1.3.2
3
+ version: !ruby/object:Gem::Version
5
4
  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
- date: 2012-03-29 00:00:00.000000000 Z
13
- dependencies: []
14
- description: ! 'Goal is to have a project managing that just works on many Ruby
15
12
 
13
+ date: 2012-04-03 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rim
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 1.4.0
24
+ type: :development
25
+ version_requirements: *id001
26
+ description: |
27
+ Goal is to have a project managing that just works on many Ruby
16
28
  versions as possible and is easy to extend. Feel free to dislike it. ;)
17
29
 
18
- '
19
30
  email: janfri26@gmail.com
20
31
  executables: []
32
+
21
33
  extensions: []
34
+
22
35
  extra_rdoc_files: []
23
- files:
36
+
37
+ files:
24
38
  - README.rdoc
25
39
  - Changelog
26
40
  - LICENSE
27
41
  - Rakefile
28
- - lib/rim.rb
29
- - lib/rim/release.rb
42
+ - lib/rim/check_version.rb
43
+ - lib/rim/core.rb
30
44
  - lib/rim/gem.rb
31
- - lib/rim/rimrc.rb
45
+ - lib/rim/git.rb
32
46
  - lib/rim/info.rb
47
+ - lib/rim/install.rb
33
48
  - lib/rim/irb.rb
34
49
  - lib/rim/rdoc.rb
35
- - lib/rim/install.rb
36
- - lib/rim/check_version.rb
50
+ - lib/rim/release.rb
51
+ - lib/rim/rimrc.rb
37
52
  - lib/rim/ripl.rb
38
53
  - lib/rim/test.rb
39
- - lib/rim/git.rb
40
- - lib/rim/core.rb
54
+ - lib/rim.rb
41
55
  - test/test_helper_methods.rb
42
56
  homepage: http://gitorious.org/rim
43
57
  licenses: []
58
+
44
59
  post_install_message:
45
60
  rdoc_options: []
46
- require_paths:
61
+
62
+ require_paths:
47
63
  - lib
48
- required_ruby_version: !ruby/object:Gem::Requirement
64
+ required_ruby_version: !ruby/object:Gem::Requirement
49
65
  none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- 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
55
71
  none: false
56
- requirements:
57
- - - ! '>='
58
- - !ruby/object:Gem::Version
59
- version: '0'
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: "0"
60
76
  requirements: []
77
+
61
78
  rubyforge_project:
62
- rubygems_version: 1.8.17
79
+ rubygems_version: 1.8.21
63
80
  signing_key:
64
81
  specification_version: 3
65
82
  summary: A simple project / gem manager
66
83
  test_files: []
84
+