git-precommit 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{git-precommit}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Toby Tripp"]
12
- s.date = %q{2010-03-07}
12
+ s.date = %q{2010-03-10}
13
13
  s.default_executable = %q{setpairs}
14
14
  s.description = %q{ A set of rake tasks that install git pre-commit hooks to call your build.
15
15
  If your build fails, the commit will not proceed.
@@ -1,4 +1,9 @@
1
- ENVIRONMENT = Rails.env || RAILS_ENV
1
+ if defined? Rails
2
+ ENVIRONMENT = Rails.env
3
+ else
4
+ ENVIRONMENT = RAILS_ENV || "development"
5
+ end
6
+
2
7
  if %w[development test].include? ENVIRONMENT
3
8
  require "git_precommit"
4
9
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 1
9
- version: 1.2.1
8
+ - 2
9
+ version: 1.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Toby Tripp
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-07 00:00:00 -06:00
17
+ date: 2010-03-10 00:00:00 -06:00
18
18
  default_executable: setpairs
19
19
  dependencies: []
20
20