dm-sweatshop 0.9.10 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -1
- data/Rakefile +1 -1
- data/lib/dm-sweatshop.rb +1 -1
- data/lib/dm-sweatshop/unique.rb +1 -1
- data/lib/dm-sweatshop/version.rb +1 -1
- data/spec/dm-sweatshop/model_spec.rb +3 -3
- data/spec/dm-sweatshop/sweatshop_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- data/tasks/spec.rb +1 -1
- metadata +4 -4
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ AUTHOR = 'Ben Burkert'
|
|
12
12
|
EMAIL = 'ben [a] benburkert [d] com'
|
13
13
|
GEM_NAME = 'dm-sweatshop'
|
14
14
|
GEM_VERSION = DataMapper::Sweatshop::VERSION
|
15
|
-
GEM_DEPENDENCIES = [['dm-core',
|
15
|
+
GEM_DEPENDENCIES = [['dm-core', GEM_VERSION], ['randexp', '~>0.1.4']]
|
16
16
|
GEM_CLEAN = %w[ log pkg coverage ]
|
17
17
|
GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.textile LICENSE TODO History.txt ] }
|
18
18
|
|
data/lib/dm-sweatshop.rb
CHANGED
data/lib/dm-sweatshop/unique.rb
CHANGED
@@ -57,7 +57,7 @@ module DataMapper
|
|
57
57
|
MAX_TRIES = 10
|
58
58
|
|
59
59
|
begin
|
60
|
-
gem 'ParseTree', '~>3.0.
|
60
|
+
gem 'ParseTree', '~>3.0.3'
|
61
61
|
require 'parse_tree'
|
62
62
|
rescue LoadError
|
63
63
|
puts "DataMapper::Sweatshop::Unique - ParseTree could not be loaded, anonymous uniques will not be allowed"
|
data/lib/dm-sweatshop/version.rb
CHANGED
@@ -3,7 +3,7 @@ require 'dm-validations'
|
|
3
3
|
|
4
4
|
describe DataMapper::Model do
|
5
5
|
|
6
|
-
class Widget
|
6
|
+
class ::Widget
|
7
7
|
include DataMapper::Resource
|
8
8
|
property :id, Integer, :serial => true
|
9
9
|
property :type, Discriminator
|
@@ -14,11 +14,11 @@ describe DataMapper::Model do
|
|
14
14
|
validates_present :price
|
15
15
|
end
|
16
16
|
|
17
|
-
class Wonket < Widget
|
17
|
+
class ::Wonket < Widget
|
18
18
|
property :size, String
|
19
19
|
end
|
20
20
|
|
21
|
-
class Order
|
21
|
+
class ::Order
|
22
22
|
include DataMapper::Resource
|
23
23
|
|
24
24
|
property :id, Integer, :serial => true
|
@@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../spec_helper'
|
|
2
2
|
|
3
3
|
describe DataMapper::Sweatshop do
|
4
4
|
|
5
|
-
class Parent
|
5
|
+
class ::Parent
|
6
6
|
include DataMapper::Resource
|
7
7
|
property :id, Integer, :serial => true
|
8
8
|
property :type, Discriminator
|
@@ -10,7 +10,7 @@ describe DataMapper::Sweatshop do
|
|
10
10
|
property :last_name, String
|
11
11
|
end
|
12
12
|
|
13
|
-
class Child < Parent
|
13
|
+
class ::Child < Parent
|
14
14
|
property :age, Integer
|
15
15
|
end
|
16
16
|
|
data/spec/spec_helper.rb
CHANGED
data/tasks/spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-sweatshop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Burkert
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-29 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -18,9 +18,9 @@ dependencies:
|
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.9.
|
23
|
+
version: 0.9.11
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: randexp
|