git-cleaner 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,33 @@
2
2
 
3
3
  Removes all of the old branches that have been merged into master.
4
4
 
5
+ == Installation
6
+
7
+ Rails 2
8
+ -------
9
+
10
+ Add the gem to config/development.rb
11
+
12
+ config.gem 'git-cleaner', :lib => false
13
+
14
+ And add the following to the end of Rakefile
15
+
16
+ begin
17
+ require 'git-cleaner'
18
+ GitCleaner.load_tasks if defined?(GitCleaner)
19
+ rescue LoadError => loaderror
20
+ $stderr.puts %{Couldn't load git-cleaner}
21
+ end
22
+
23
+ Rails 3
24
+ -------
25
+
26
+ Add the gem to the development group of your Gemfile
27
+
28
+ gem 'git-cleaner', :require => false
29
+
30
+ That's it!
31
+
5
32
  == Contributing to git-cleaner
6
33
 
7
34
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "git-cleaner"
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Vokhmin Alexey V"]
@@ -1 +1,9 @@
1
- require 'git-cleaner/railtie'
1
+ module GitCleaner
2
+
3
+ def self.load_tasks
4
+ Dir[File.expand_path("tasks/*.rake", File.dirname(__FILE__))].each { |ext| load ext }
5
+ end
6
+
7
+ require 'git-cleaner/railtie' if defined?(Rails) && Rails::VERSION::MAJOR >= 3
8
+
9
+ end
@@ -1,7 +1,12 @@
1
+ require 'git-cleaner'
2
+ require 'rails'
3
+
1
4
  module GitCleaner
2
- class GitCleanerRailtie < Rails::Railtie
5
+ class Railtie < Rails::Railtie
6
+
3
7
  rake_tasks do
4
- load "tasks/git.rake"
8
+ GitCleaner.load_tasks
5
9
  end
10
+
6
11
  end
7
12
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-cleaner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vokhmin Alexey V