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 +1 -1
- data/lib/machine.rb +0 -6
- data/lib/machine/machine.rb +0 -1
- data/machine.gemspec +1 -1
- data/rails/init.rb +13 -1
- metadata +1 -1
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.
|
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)
|
data/lib/machine/machine.rb
CHANGED
@@ -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
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
|