aub-machine 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -26,7 +26,7 @@ end
26
26
 
27
27
  spec = Gem::Specification.new do |s|
28
28
  s.name = %q{machine}
29
- s.version = "1.0.0"
29
+ s.version = "1.0.1"
30
30
  s.summary = %q{machine defines a factory system for creating model objects to replace fixtures in Ruby apps.}
31
31
  s.description = %q{machine defines a factory system for creating model objects to replace fixtures in Ruby apps.}
32
32
 
data/lib/machine.rb CHANGED
@@ -3,12 +3,6 @@ require 'machine/machine'
3
3
  require 'machine/machine_group'
4
4
  require 'machine/sequence'
5
5
 
6
- # Find the definitions in the default locations:
7
- # machines.rb
8
- # test/machines.rb
9
- # spec/machines.rb
10
- Machine.find_definitions
11
-
12
6
  # Shorthand method for building a machine, is an alias for Machine.build(name, attributes)
13
7
  def Machine(name, attributes={})
14
8
  Machine.build(name, attributes)
@@ -13,7 +13,6 @@ class Machine
13
13
  # "machines," "test/machines," and "spec/machines." Only the first
14
14
  # existing file will be loaded.
15
15
  cattr_accessor :definition_file_paths
16
- self.definition_file_paths = %w(machines test/machines spec/machines)
17
16
 
18
17
  def self.find_definitions #:nodoc:
19
18
  definition_file_paths.each do |file_path|
data/machine.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new do |s|
2
- s.version = '1.0.0'
2
+ s.version = '1.0.1'
3
3
  s.date = %q{2008-11-07}
4
4
 
5
5
  s.name = %q{machine}
data/rails/init.rb CHANGED
@@ -1 +1,13 @@
1
- require 'machine'
1
+ require 'machine'
2
+
3
+ Machine.definition_file_paths = [
4
+ File.join(RAILS_ROOT, 'machines'),
5
+ File.join(RAILS_ROOT, 'test', 'machines'),
6
+ File.join(RAILS_ROOT, 'spec', 'machines')
7
+ ]
8
+
9
+ # Find the definitions in the default locations:
10
+ # machines.rb
11
+ # test/machines.rb
12
+ # spec/machines.rb
13
+ Machine.find_definitions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aub-machine
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
  - Aubrey Holland