elight-machinist 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. data/lib/machinist.rb +1 -1
  2. data/machinist.gemspec +1 -1
  3. metadata +1 -1
data/lib/machinist.rb CHANGED
@@ -77,7 +77,7 @@ module Machinist
77
77
  end
78
78
  end
79
79
 
80
- if RAILS_ENV == 'test'
80
+ if Module.const_defined?("RAILS_ENV") && RAILS_ENV == 'test'
81
81
  require 'sham'
82
82
 
83
83
  class ActiveRecord::Base
data/machinist.gemspec CHANGED
@@ -2,7 +2,7 @@ MACHINIST_SPEC = Gem::Specification.new do |s|
2
2
  s.name = "machinist"
3
3
  s.author = "notahat"
4
4
  s.homepage = "http://github.com/notahat/machinist/tree"
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
6
6
  s.date = "2008-11-22"
7
7
  s.summary = "Im in ur specs machining your fixtures"
8
8
  s.has_rdoc = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elight-machinist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - notahat