dm-sweatshop 1.0.2 → 1.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,113 +1,45 @@
1
- # If you're working on more than one datamapper gem at a time, then it's
2
- # recommended to create a local Gemfile and use this instead of the git
3
- # sources. This will make sure that you are developing against your
4
- # other local datamapper sources that you currently work on. Gemfile.local
5
- # will behave identically to the standard Gemfile apart from the fact that
6
- # it fetches the datamapper gems from local paths. This means that you can use
7
- # the same environment variables, like ADAPTER(S) or PLUGIN(S) when running
8
- # bundle commands. Gemfile.local is added to .gitignore, so you don't need to
9
- # worry about accidentally checking local development paths into git.
10
- # In order to create a local Gemfile, all you need to do is run:
11
- #
12
- # bundle exec rake local_gemfile
13
- #
14
- # This will give you a Gemfile.local file that points to your local clones of
15
- # the various datamapper gems. It's assumed that all datamapper repo clones
16
- # reside in the same directory. You can use the Gemfile.local like so for
17
- # running any bundle command:
18
- #
19
- # BUNDLE_GEMFILE=Gemfile.local bundle foo
20
- #
21
- # You can also specify which adapter(s) should be part of the bundle by setting
22
- # an environment variable. This of course also works when using the Gemfile.local
23
- #
24
- # bundle foo # dm-sqlite-adapter
25
- # ADAPTER=mysql bundle foo # dm-mysql-adapter
26
- # ADAPTERS=sqlite,mysql bundle foo # dm-sqlite-adapter and dm-mysql-adapter
27
- #
28
- # Of course you can also use the ADAPTER(S) variable when using the Gemfile.local
29
- # and running specs against selected adapters.
30
- #
31
- # For easily working with adapters supported on your machine, it's recommended
32
- # that you first install all adapters that you are planning to use or work on
33
- # by doing something like
34
- #
35
- # ADAPTERS=sqlite,mysql,postgres bundle install
36
- #
37
- # This will clone the various repositories and make them available to bundler.
38
- # Once you have them installed you can easily switch between adapters for the
39
- # various development tasks. Running something like
40
- #
41
- # ADAPTER=mysql bundle exec rake spec
42
- #
43
- # will make sure that the dm-mysql-adapter is part of the bundle, and will be used
44
- # when running the specs.
45
- #
46
- # You can also specify which plugin(s) should be part of the bundle by setting
47
- # an environment variable. This also works when using the Gemfile.local
48
- #
49
- # bundle foo # dm-migrations
50
- # PLUGINS=dm-validations bundle foo # dm-migrations and dm-validations
51
- # PLUGINS=dm-validations,dm-types bundle foo # dm-migrations, dm-validations and dm-types
52
- #
53
- # Of course you can combine the PLUGIN(S) and ADAPTER(S) env vars to run specs
54
- # for certain adapter/plugin combinations.
55
- #
56
- # Finally, to speed up running specs and other tasks, it's recommended to run
57
- #
58
- # bundle lock
59
- #
60
- # after running 'bundle install' for the first time. This will make 'bundle exec' run
61
- # a lot faster compared to the unlocked version. With an unlocked bundle you would
62
- # typically just run 'bundle install' from time to time to fetch the latest sources from
63
- # upstream. When you locked your bundle, you need to run
64
- #
65
- # bundle install --relock
66
- #
67
- # to make sure to fetch the latest updates and then lock the bundle again. Gemfile.lock
68
- # is added to the .gitignore file, so you don't need to worry about accidentally checking
69
- # it into version control.
1
+ require 'pathname'
70
2
 
71
3
  source 'http://rubygems.org'
72
4
 
73
- DATAMAPPER = 'git://github.com/datamapper'
74
- DM_VERSION = '~> 1.0.2'
5
+ SOURCE = ENV.fetch('SOURCE', :git).to_sym
6
+ REPO_POSTFIX = SOURCE == :path ? '' : '.git'
7
+ DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://github.com/datamapper'
8
+ DM_VERSION = '~> 1.1.0.rc1'
75
9
 
76
- group :runtime do # Runtime dependencies (as in the gemspec)
10
+ group :runtime do
77
11
 
78
12
  if ENV['EXTLIB']
79
- gem 'extlib', '~> 0.9.15', :git => "#{DATAMAPPER}/extlib.git"
13
+ gem 'extlib', '~> 0.9.15', SOURCE => "#{DATAMAPPER}/extlib#{REPO_POSTFIX}", :require => nil
80
14
  else
81
- gem 'activesupport', '~> 3.0.0', :git => 'git://github.com/rails/rails.git', :branch => '3-0-stable', :require => nil
15
+ gem 'activesupport', '~> 3.0.4', :require => nil
16
+ gem 'i18n', '~> 0.5.0'
82
17
  end
83
18
 
84
- gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
85
- gem 'randexp', '~> 0.1.5'
19
+ gem 'dm-core', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}"
20
+ gem 'randexp', '~> 0.1.5', :git => 'git://github.com/snusnu/randexp', :branch => 'no_parsetree'
21
+ gem 'ParseTree', '~> 3.0.3', :platforms => :mri_18
86
22
 
87
23
  end
88
24
 
89
- group(:development) do # Development dependencies (as in the gemspec)
90
-
91
- gem 'dm-validations', DM_VERSION, :git => "#{DATAMAPPER}/dm-validations.git"
25
+ group :development do
92
26
 
27
+ gem 'dm-validations', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-validations#{REPO_POSTFIX}"
28
+ gem 'jeweler', '~> 1.5.2'
93
29
  gem 'rake', '~> 0.8.7'
94
- gem 'rspec', '~> 1.3', :git => 'git://github.com/snusnu/rspec', :branch => 'heckle_fix_plus_gemfile'
95
- gem 'jeweler', '~> 1.4'
30
+ gem 'rspec', '~> 1.3.1'
96
31
 
97
32
  end
98
33
 
99
- group :quality do # These gems contain rake tasks that check the quality of the source code
34
+ group :quality do
100
35
 
101
- gem 'metric_fu', '~> 1.3'
102
- gem 'rcov', '~> 0.9.8'
103
- gem 'reek', '~> 1.2.8'
104
- gem 'roodi', '~> 2.1'
105
- gem 'yard', '~> 0.5'
106
- gem 'yardstick', '~> 0.1'
36
+ gem 'rcov', '~> 0.9.9', :platforms => :mri_18
37
+ gem 'yard', '~> 0.6'
38
+ gem 'yardstick', '~> 0.2'
107
39
 
108
40
  end
109
41
 
110
- group :datamapper do # We need this because we want to pin these dependencies to their git master sources
42
+ group :datamapper do
111
43
 
112
44
  adapters = ENV['ADAPTER'] || ENV['ADAPTERS']
113
45
  adapters = adapters.to_s.tr(',', ' ').split.uniq - %w[ in_memory ]
@@ -117,27 +49,27 @@ group :datamapper do # We need this because we want to pin these dependencies to
117
49
 
118
50
  if (do_adapters = DM_DO_ADAPTERS & adapters).any?
119
51
  options = {}
120
- options[:git] = "#{DATAMAPPER}/do.git" if ENV['DO_GIT'] == 'true'
52
+ options[:git] = "#{DATAMAPPER}/do#{REPO_POSTFIX}" if ENV['DO_GIT'] == 'true'
121
53
 
122
- gem 'data_objects', DO_VERSION, options.dup
54
+ gem 'data_objects', DO_VERSION, options.dup
123
55
 
124
56
  do_adapters.each do |adapter|
125
57
  adapter = 'sqlite3' if adapter == 'sqlite'
126
58
  gem "do_#{adapter}", DO_VERSION, options.dup
127
59
  end
128
60
 
129
- gem 'dm-do-adapter', DM_VERSION, :git => "#{DATAMAPPER}/dm-do-adapter.git"
61
+ gem 'dm-do-adapter', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}"
130
62
  end
131
63
 
132
64
  adapters.each do |adapter|
133
- gem "dm-#{adapter}-adapter", DM_VERSION, :git => "#{DATAMAPPER}/dm-#{adapter}-adapter.git"
65
+ gem "dm-#{adapter}-adapter", DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}"
134
66
  end
135
67
 
136
68
  plugins = ENV['PLUGINS'] || ENV['PLUGIN']
137
69
  plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
138
70
 
139
71
  plugins.each do |plugin|
140
- gem plugin, DM_VERSION, :git => "#{DATAMAPPER}/#{plugin}.git"
72
+ gem plugin, DM_VERSION, SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}"
141
73
  end
142
74
 
143
75
  end
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Ben Burkert
1
+ Copyright (c) 2011 Ben Burkert
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -52,10 +52,10 @@ Starting off with a simple user model.
52
52
  A fixture for the user model can be defined using the @fixture@ method.
53
53
 
54
54
  User.fixture {{
55
- :username => (username = /\w+/.gen),
56
- :email => "#{username}@example.com",
57
- :password => (password = /\w+/.gen),
58
- :pasword_confirmation => password
55
+ :username => (username = /\w+/.gen),
56
+ :email => "#{username}@example.com",
57
+ :password => (password = /\w+/.gen),
58
+ :password_confirmation => password
59
59
 
60
60
  # The /\w+/.gen notation is part of the randexp gem:
61
61
  # http://github.com/benburkert/randexp/
@@ -94,7 +94,7 @@ Now to a model that has given attributes, use
94
94
 
95
95
  Person.gen(:valid)
96
96
 
97
- @generate@ (or @gen@) method uses @create@ method of DataMapper models. This means that validations are run on the model. There are two other methods you can use to creat data - @make@ to build a model that has not been saved, and @generate!@ to force saving of the model even if it is invalid (it uses @create!@ internally).
97
+ @generate@ (or @gen@) method uses @create@ method of DataMapper models. This means that validations are run on the model. There are two other methods you can use to create data - @make@ to build a model that has not been saved, and @generate!@ to force saving of the model even if it is invalid (it uses @create!@ internally).
98
98
 
99
99
  Person.make(:valid)
100
100
  Person.generate!(:invalid) # You can also use #gen!
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
- gem 'jeweler', '~> 1.4'
5
+ gem 'jeweler', '~> 1.5.2'
6
6
  require 'jeweler'
7
7
 
8
8
  Jeweler::Tasks.new do |gem|
@@ -15,17 +15,11 @@ begin
15
15
  gem.has_rdoc = 'yard'
16
16
 
17
17
  gem.rubyforge_project = 'datamapper'
18
-
19
- gem.add_dependency 'dm-core', '~> 1.0.2'
20
- gem.add_dependency 'randexp', '~> 0.1.5'
21
-
22
- gem.add_development_dependency 'rspec', '~> 1.3'
23
- gem.add_development_dependency 'dm-validations', '~> 1.0.2'
24
18
  end
25
19
 
26
20
  Jeweler::GemcutterTasks.new
27
21
 
28
22
  FileList['tasks/**/*.rake'].each { |task| import task }
29
23
  rescue LoadError
30
- puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
24
+ puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler -v 1.5.2'
31
25
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.1.0.rc1
data/dm-sweatshop.gemspec CHANGED
@@ -1,80 +1,88 @@
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 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dm-sweatshop}
8
- s.version = "1.0.2"
8
+ s.version = "1.1.0.rc1"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Burkert"]
12
- s.date = %q{2010-09-07}
12
+ s.date = %q{2011-02-28}
13
13
  s.description = %q{DataMapper plugin for building pseudo random models}
14
14
  s.email = %q{ben [a] benburkert [d] com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
- ".gitignore",
21
- "Gemfile",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "dm-sweatshop.gemspec",
27
- "lib/dm-sweatshop.rb",
28
- "lib/dm-sweatshop/model.rb",
29
- "lib/dm-sweatshop/sweatshop.rb",
30
- "lib/dm-sweatshop/unique.rb",
31
- "spec/dm-sweatshop/model_spec.rb",
32
- "spec/dm-sweatshop/sweatshop_spec.rb",
33
- "spec/dm-sweatshop/unique_spec.rb",
34
- "spec/rcov.opts",
35
- "spec/spec.opts",
36
- "spec/spec_helper.rb",
37
- "tasks/ci.rake",
38
- "tasks/local_gemfile.rake",
39
- "tasks/metrics.rake",
40
- "tasks/spec.rake",
41
- "tasks/yard.rake",
42
- "tasks/yardstick.rake"
20
+ "Gemfile",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "dm-sweatshop.gemspec",
26
+ "lib/dm-sweatshop.rb",
27
+ "lib/dm-sweatshop/model.rb",
28
+ "lib/dm-sweatshop/sweatshop.rb",
29
+ "lib/dm-sweatshop/unique.rb",
30
+ "spec/dm-sweatshop/model_spec.rb",
31
+ "spec/dm-sweatshop/sweatshop_spec.rb",
32
+ "spec/dm-sweatshop/unique_spec.rb",
33
+ "spec/rcov.opts",
34
+ "spec/spec.opts",
35
+ "spec/spec_helper.rb",
36
+ "tasks/spec.rake",
37
+ "tasks/yard.rake",
38
+ "tasks/yardstick.rake"
43
39
  ]
44
- s.has_rdoc = %q{yard}
45
40
  s.homepage = %q{http://github.com/datamapper/dm-sweatshop}
46
- s.rdoc_options = ["--charset=UTF-8"]
47
41
  s.require_paths = ["lib"]
48
42
  s.rubyforge_project = %q{datamapper}
49
- s.rubygems_version = %q{1.3.7}
43
+ s.rubygems_version = %q{1.5.2}
50
44
  s.summary = %q{DataMapper plugin for building pseudo random models}
51
45
  s.test_files = [
52
46
  "spec/dm-sweatshop/model_spec.rb",
53
- "spec/dm-sweatshop/sweatshop_spec.rb",
54
- "spec/dm-sweatshop/unique_spec.rb",
55
- "spec/spec_helper.rb"
47
+ "spec/dm-sweatshop/sweatshop_spec.rb",
48
+ "spec/dm-sweatshop/unique_spec.rb",
49
+ "spec/spec_helper.rb"
56
50
  ]
57
51
 
58
52
  if s.respond_to? :specification_version then
59
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
60
53
  s.specification_version = 3
61
54
 
62
55
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
63
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.2"])
56
+ s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.4"])
57
+ s.add_runtime_dependency(%q<i18n>, ["~> 0.5.0"])
58
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
64
59
  s.add_runtime_dependency(%q<randexp>, ["~> 0.1.5"])
65
- s.add_development_dependency(%q<rspec>, ["~> 1.3"])
66
- s.add_development_dependency(%q<dm-validations>, ["~> 1.0.2"])
60
+ s.add_runtime_dependency(%q<ParseTree>, ["~> 3.0.3"])
61
+ s.add_development_dependency(%q<dm-validations>, ["~> 1.1.0.rc1"])
62
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
63
+ s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
64
+ s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
67
65
  else
68
- s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
66
+ s.add_dependency(%q<activesupport>, ["~> 3.0.4"])
67
+ s.add_dependency(%q<i18n>, ["~> 0.5.0"])
68
+ s.add_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
69
69
  s.add_dependency(%q<randexp>, ["~> 0.1.5"])
70
- s.add_dependency(%q<rspec>, ["~> 1.3"])
71
- s.add_dependency(%q<dm-validations>, ["~> 1.0.2"])
70
+ s.add_dependency(%q<ParseTree>, ["~> 3.0.3"])
71
+ s.add_dependency(%q<dm-validations>, ["~> 1.1.0.rc1"])
72
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
73
+ s.add_dependency(%q<rake>, ["~> 0.8.7"])
74
+ s.add_dependency(%q<rspec>, ["~> 1.3.1"])
72
75
  end
73
76
  else
74
- s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
77
+ s.add_dependency(%q<activesupport>, ["~> 3.0.4"])
78
+ s.add_dependency(%q<i18n>, ["~> 0.5.0"])
79
+ s.add_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
75
80
  s.add_dependency(%q<randexp>, ["~> 0.1.5"])
76
- s.add_dependency(%q<rspec>, ["~> 1.3"])
77
- s.add_dependency(%q<dm-validations>, ["~> 1.0.2"])
81
+ s.add_dependency(%q<ParseTree>, ["~> 3.0.3"])
82
+ s.add_dependency(%q<dm-validations>, ["~> 1.1.0.rc1"])
83
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
84
+ s.add_dependency(%q<rake>, ["~> 0.8.7"])
85
+ s.add_dependency(%q<rspec>, ["~> 1.3.1"])
78
86
  end
79
87
  end
80
88
 
@@ -1,5 +1,5 @@
1
1
  begin
2
- require 'active_support/core_ext/class/inheritable_reader'
2
+ require 'active_support/core_ext/class/attribute_accessors'
3
3
  rescue LoadError
4
4
  require 'extlib/class'
5
5
  end
@@ -74,9 +74,10 @@ describe DataMapper::Sweatshop::Unique do
74
74
  describe 'when mixing into an object' do
75
75
  it 'only the unique method is added to the public interface' do
76
76
  obj = Object.new
77
- old = obj.public_methods
77
+ old = obj.methods
78
78
  obj.extend(DataMapper::Sweatshop::Unique)
79
- new = obj.public_methods
79
+ obj.should respond_to(:unique)
80
+ new = obj.methods
80
81
  (new - old).collect {|x| x.to_s }.should == ["unique"]
81
82
  end
82
83
  end
data/tasks/spec.rake CHANGED
@@ -35,7 +35,4 @@ rescue LoadError
35
35
  end
36
36
  end
37
37
 
38
- task :spec => :check_dependencies
39
- task :rcov => :check_dependencies
40
-
41
38
  task :default => :spec
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-sweatshop
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 2
9
- version: 1.0.2
4
+ prerelease: 6
5
+ version: 1.1.0.rc1
10
6
  platform: ruby
11
7
  authors:
12
8
  - Ben Burkert
@@ -14,68 +10,108 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-09-07 00:00:00 -07:00
13
+ date: 2011-02-28 00:00:00 -08:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
21
- name: dm-core
22
- prerelease: false
17
+ name: activesupport
23
18
  requirement: &id001 !ruby/object:Gem::Requirement
24
19
  none: false
25
20
  requirements:
26
21
  - - ~>
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 1
30
- - 0
31
- - 2
32
- version: 1.0.2
23
+ version: 3.0.4
33
24
  type: :runtime
25
+ prerelease: false
34
26
  version_requirements: *id001
35
27
  - !ruby/object:Gem::Dependency
36
- name: randexp
37
- prerelease: false
28
+ name: i18n
38
29
  requirement: &id002 !ruby/object:Gem::Requirement
39
30
  none: false
40
31
  requirements:
41
32
  - - ~>
42
33
  - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 1
46
- - 5
47
- version: 0.1.5
34
+ version: 0.5.0
48
35
  type: :runtime
36
+ prerelease: false
49
37
  version_requirements: *id002
50
38
  - !ruby/object:Gem::Dependency
51
- name: rspec
52
- prerelease: false
39
+ name: dm-core
53
40
  requirement: &id003 !ruby/object:Gem::Requirement
54
41
  none: false
55
42
  requirements:
56
43
  - - ~>
57
44
  - !ruby/object:Gem::Version
58
- segments:
59
- - 1
60
- - 3
61
- version: "1.3"
62
- type: :development
45
+ version: 1.1.0.rc1
46
+ type: :runtime
47
+ prerelease: false
63
48
  version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: randexp
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: 0.1.5
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: ParseTree
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: 3.0.3
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: *id005
64
71
  - !ruby/object:Gem::Dependency
65
72
  name: dm-validations
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: 1.1.0.rc1
79
+ type: :development
66
80
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: jeweler
84
+ requirement: &id007 !ruby/object:Gem::Requirement
68
85
  none: false
69
86
  requirements:
70
87
  - - ~>
71
88
  - !ruby/object:Gem::Version
72
- segments:
73
- - 1
74
- - 0
75
- - 2
76
- version: 1.0.2
89
+ version: 1.5.2
77
90
  type: :development
78
- version_requirements: *id004
91
+ prerelease: false
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
94
+ name: rake
95
+ requirement: &id008 !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ~>
99
+ - !ruby/object:Gem::Version
100
+ version: 0.8.7
101
+ type: :development
102
+ prerelease: false
103
+ version_requirements: *id008
104
+ - !ruby/object:Gem::Dependency
105
+ name: rspec
106
+ requirement: &id009 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: 1.3.1
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: *id009
79
115
  description: DataMapper plugin for building pseudo random models
80
116
  email: ben [a] benburkert [d] com
81
117
  executables: []
@@ -86,7 +122,6 @@ extra_rdoc_files:
86
122
  - LICENSE
87
123
  - README.rdoc
88
124
  files:
89
- - .gitignore
90
125
  - Gemfile
91
126
  - LICENSE
92
127
  - README.rdoc
@@ -103,19 +138,16 @@ files:
103
138
  - spec/rcov.opts
104
139
  - spec/spec.opts
105
140
  - spec/spec_helper.rb
106
- - tasks/ci.rake
107
- - tasks/local_gemfile.rake
108
- - tasks/metrics.rake
109
141
  - tasks/spec.rake
110
142
  - tasks/yard.rake
111
143
  - tasks/yardstick.rake
112
- has_rdoc: yard
144
+ has_rdoc: true
113
145
  homepage: http://github.com/datamapper/dm-sweatshop
114
146
  licenses: []
115
147
 
116
148
  post_install_message:
117
- rdoc_options:
118
- - --charset=UTF-8
149
+ rdoc_options: []
150
+
119
151
  require_paths:
120
152
  - lib
121
153
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -123,21 +155,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
155
  requirements:
124
156
  - - ">="
125
157
  - !ruby/object:Gem::Version
126
- segments:
127
- - 0
128
158
  version: "0"
129
159
  required_rubygems_version: !ruby/object:Gem::Requirement
130
160
  none: false
131
161
  requirements:
132
- - - ">="
162
+ - - ">"
133
163
  - !ruby/object:Gem::Version
134
- segments:
135
- - 0
136
- version: "0"
164
+ version: 1.3.1
137
165
  requirements: []
138
166
 
139
167
  rubyforge_project: datamapper
140
- rubygems_version: 1.3.7
168
+ rubygems_version: 1.5.2
141
169
  signing_key:
142
170
  specification_version: 3
143
171
  summary: DataMapper plugin for building pseudo random models
data/.gitignore DELETED
@@ -1,37 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## Rubinius
17
- *.rbc
18
-
19
- ## PROJECT::GENERAL
20
- *.gem
21
- coverage
22
- rdoc
23
- pkg
24
- tmp
25
- doc
26
- log
27
- .yardoc
28
- measurements
29
-
30
- ## BUNDLER
31
- .bundle
32
- Gemfile.local
33
- Gemfile.lock
34
- Gemfile.local.lock
35
-
36
- ## PROJECT::SPECIFIC
37
- spec/db/
data/tasks/ci.rake DELETED
@@ -1 +0,0 @@
1
- task :ci => [ :verify_measurements, 'metrics:all' ]
@@ -1,16 +0,0 @@
1
- desc "Support bundling from local source code (allows BUNDLE_GEMFILE=Gemfile.local bundle foo)"
2
- task :local_gemfile do |t|
3
-
4
- root = Pathname(__FILE__).dirname.parent
5
- datamapper = root.parent
6
-
7
- root.join('Gemfile.local').open('w') do |f|
8
- root.join('Gemfile').open.each do |line|
9
- line.sub!(/DATAMAPPER = 'git:\/\/github.com\/datamapper'/, "DATAMAPPER = '#{datamapper}'")
10
- line.sub!(/:git => \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, ':path => "#{DATAMAPPER}/\1"')
11
- line.sub!(/do_options\[:git\] = \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, 'do_options[:path] = "#{DATAMAPPER}/\1"')
12
- f.puts line
13
- end
14
- end
15
-
16
- end
data/tasks/metrics.rake DELETED
@@ -1,36 +0,0 @@
1
- begin
2
- require 'metric_fu'
3
- rescue LoadError
4
- namespace :metrics do
5
- task :all do
6
- abort 'metric_fu is not available. In order to run metrics:all, you must: gem install metric_fu'
7
- end
8
- end
9
- end
10
-
11
- begin
12
- require 'reek/adapters/rake_task'
13
-
14
- Reek::RakeTask.new do |t|
15
- t.fail_on_error = true
16
- t.verbose = false
17
- t.source_files = 'lib/**/*.rb'
18
- end
19
- rescue LoadError
20
- task :reek do
21
- abort 'Reek is not available. In order to run reek, you must: gem install reek'
22
- end
23
- end
24
-
25
- begin
26
- require 'roodi'
27
- require 'roodi_task'
28
-
29
- RoodiTask.new do |t|
30
- t.verbose = false
31
- end
32
- rescue LoadError
33
- task :roodi do
34
- abort 'Roodi is not available. In order to run roodi, you must: gem install roodi'
35
- end
36
- end