rim 1.6.2 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88b91531310bb9926d04d5ec96170187c2d47f1f
4
- data.tar.gz: 3aa739dc0888e21745643b272583f0e7ed9a6791
3
+ metadata.gz: 5abb82c02392dbbe666b7c043161f434afad62eb
4
+ data.tar.gz: eb29ec2b95579da76f02868b17632c96b904764b
5
5
  SHA512:
6
- metadata.gz: 9a26d4860f9abebd86f5621b424521d312f5fe9046aeb2151fb653f6ca9bc7ab75dfcf2dd62a40247a7047d5c5ac8899cb1a528430d107ca301c962d29e9ef65
7
- data.tar.gz: 42614baa2ebda303e97b94c4f08de76caea49ec10b42b252e8e5dfd556901b5eae065a3f2004a3c325e48ba7111312c01f43677a5248209f975abde43b5fdf32
6
+ metadata.gz: aba9c20ebc7f3ed15a684cec01b82a2c3ba1586c6fa6cb0f2278b9cc480e72f737ae4acc555d219e7aa976bd5288b5348cc31577fdd4f554d7cad6df97390b7a
7
+ data.tar.gz: 00e76ac3bd7911e4d13271f5b9795bf737fcc92996d06c620732861d128c5e87110f29f007bf0a9303af52f2406a3c2f9df04ddc08d6a8d8d73ddd8ec170792f
data/Changelog CHANGED
@@ -1,3 +1,12 @@
1
+ 1.7.0
2
+ Remove option git_remotes for git_push_commands.
3
+ This brings a much more flexible way to do things
4
+ in git:push. PLease update your ~/.rimrc if
5
+ necessary.
6
+ Adding support for local .rimrc files. Now ~/.rimrc
7
+ is first loaded if it exists and then .rimrc is
8
+ loaded if it exists.
9
+
1
10
  1.6.2
2
11
  Make git tasks independant from current
3
12
  locale and push tags.
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.6.2'
12
+ VERSION = '1.7.0'
13
13
 
14
14
  begin
15
15
  require 'rake/dsl_definition'
data/lib/rim/git.rb CHANGED
@@ -2,12 +2,12 @@
2
2
  require 'rim/release'
3
3
 
4
4
  class Rim
5
- # Git remotes to push (default: <tt>origin</tt>)
6
- attr_accessor :git_remotes
5
+ # Git push commands (default: <tt>['--tags origin master']</tt>)
6
+ attr_accessor :git_push_commands
7
7
  end
8
8
 
9
9
  Rim.defaults do
10
- git_remotes %w(origin)
10
+ git_push_commands ['--tags origin master']
11
11
  end
12
12
 
13
13
  Rim.after_setup do
@@ -28,8 +28,8 @@ Rim.after_setup do
28
28
  end
29
29
  desc 'Push master to git remotes'
30
30
  task :push => :check do
31
- git_remotes.each do |remote|
32
- sh "git push --tags #{remote} master"
31
+ git_push_commands.each do |cmd|
32
+ sh "git push #{cmd}"
33
33
  end
34
34
  end
35
35
  end
data/lib/rim/rimrc.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # -- encoding: utf-8 --
2
2
 
3
- # Load ~/.rimrc if it exist
3
+ # Load ~/.rimrc if it exists
4
4
  home = if Dir.respond_to? :home
5
5
  Dir.home
6
6
  else
@@ -11,3 +11,9 @@ rimrc = File.join(home, '.rimrc')
11
11
  if File.exist?(rimrc)
12
12
  load rimrc
13
13
  end
14
+
15
+ # Load local .rimrc if it exists
16
+ rimrc = '.rimrc'
17
+ if File.exist?(rimrc)
18
+ load rimrc
19
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Friedrich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-07 00:00:00.000000000 Z
11
+ date: 2013-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rim
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.2
19
+ version: 1.7.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 1.6.2
26
+ version: 1.7.0
27
27
  description: |
28
28
  Goal is to have a project managing that just works on many Ruby
29
29
  versions as possible and is easy to extend. Feel free to dislike it. ;)