dm-transactions 1.0.2 → 1.1.0.rc1

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.
data/Gemfile CHANGED
@@ -1,111 +1,42 @@
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'
75
- DO_VERSION = '~> 0.10.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'
76
9
 
77
- group :runtime do # Runtime dependencies (as in the gemspec)
10
+ group :runtime do
78
11
 
79
12
  if ENV['EXTLIB']
80
- gem 'extlib', '~> 0.9.15', :git => "#{DATAMAPPER}/extlib.git"
13
+ gem 'extlib', '~> 0.9.15', SOURCE => "#{DATAMAPPER}/extlib#{REPO_POSTFIX}", :require => nil
81
14
  else
82
- 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'
83
17
  end
84
18
 
85
- gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
19
+ gem 'dm-core', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}"
86
20
 
87
21
  end
88
22
 
89
- group(:development) do # Development dependencies (as in the gemspec)
23
+ group :development do
90
24
 
91
- gem 'rake', '~> 0.8.7'
92
- gem 'rspec', '~> 1.3', :git => 'git://github.com/snusnu/rspec', :branch => 'heckle_fix_plus_gemfile'
93
- gem 'jeweler', '~> 1.4'
25
+ gem 'jeweler', '~> 1.5.2'
26
+ gem 'rake', '~> 0.8.7'
27
+ gem 'rspec', '~> 1.3.1'
94
28
 
95
29
  end
96
30
 
97
- group :quality do # These gems contain rake tasks that check the quality of the source code
31
+ group :quality do
98
32
 
99
- gem 'metric_fu', '~> 1.3'
100
- gem 'rcov', '~> 0.9.8'
101
- gem 'reek', '~> 1.2.8'
102
- gem 'roodi', '~> 2.1'
103
- gem 'yard', '~> 0.5'
104
- gem 'yardstick', '~> 0.1'
33
+ gem 'rcov', '~> 0.9.9', :platforms => :mri_18
34
+ gem 'yard', '~> 0.6'
35
+ gem 'yardstick', '~> 0.2'
105
36
 
106
37
  end
107
38
 
108
- group :datamapper do # We need this because we want to pin these dependencies to their git master sources
39
+ group :datamapper do
109
40
 
110
41
  adapters = ENV['ADAPTER'] || ENV['ADAPTERS']
111
42
  adapters = adapters.to_s.tr(',', ' ').split.uniq - %w[ in_memory ]
@@ -115,27 +46,27 @@ group :datamapper do # We need this because we want to pin these dependencies to
115
46
 
116
47
  if (do_adapters = DM_DO_ADAPTERS & adapters).any?
117
48
  options = {}
118
- options[:git] = "#{DATAMAPPER}/do.git" if ENV['DO_GIT'] == 'true'
49
+ options[:git] = "#{DATAMAPPER}/do#{REPO_POSTFIX}" if ENV['DO_GIT'] == 'true'
119
50
 
120
- gem 'data_objects', DO_VERSION, options.dup
51
+ gem 'data_objects', DO_VERSION, options.dup
121
52
 
122
53
  do_adapters.each do |adapter|
123
54
  adapter = 'sqlite3' if adapter == 'sqlite'
124
55
  gem "do_#{adapter}", DO_VERSION, options.dup
125
56
  end
126
57
 
127
- gem 'dm-do-adapter', DM_VERSION, :git => "#{DATAMAPPER}/dm-do-adapter.git"
58
+ gem 'dm-do-adapter', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}"
128
59
  end
129
60
 
130
61
  adapters.each do |adapter|
131
- gem "dm-#{adapter}-adapter", DM_VERSION, :git => "#{DATAMAPPER}/dm-#{adapter}-adapter.git"
62
+ gem "dm-#{adapter}-adapter", DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-#{adapter}-adapter#{REPO_POSTFIX}"
132
63
  end
133
64
 
134
65
  plugins = ENV['PLUGINS'] || ENV['PLUGIN']
135
66
  plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
136
67
 
137
68
  plugins.each do |plugin|
138
- gem plugin, DM_VERSION, :git => "#{DATAMAPPER}/#{plugin}.git"
69
+ gem plugin, DM_VERSION, SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}"
139
70
  end
140
71
 
141
72
  end
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 snusnu
1
+ Copyright (c) 2011 snusnu
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
@@ -20,4 +20,4 @@ This gem adds transaction support for datamapper. The currently supported adapte
20
20
 
21
21
  == Copyright
22
22
 
23
- Copyright (c) 2010 snusnu. See LICENSE for details.
23
+ Copyright (c) 2011 snusnu. See LICENSE for details.
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,15 +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
-
21
- gem.add_development_dependency 'rspec', '~> 1.3'
22
18
  end
23
19
 
24
20
  Jeweler::GemcutterTasks.new
25
21
 
26
22
  FileList['tasks/**/*.rake'].each { |task| import task }
27
23
  rescue LoadError
28
- 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'
29
25
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.1.0.rc1
@@ -1,80 +1,85 @@
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-transactions}
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 = ["Dirkjan Bussink (dbussink)", "Dan Kubb (dkubb)"]
12
- s.date = %q{2010-09-07}
12
+ s.date = %q{2011-02-28}
13
13
  s.description = %q{Makes transaction support available for adapters that support them}
14
14
  s.email = %q{gamsnjaga@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "Gemfile",
23
- "LICENSE",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION",
27
- "dm-transactions.gemspec",
28
- "lib/dm-transactions.rb",
29
- "lib/dm-transactions/adapters/dm-do-adapter.rb",
30
- "lib/dm-transactions/adapters/dm-mysql-adapter.rb",
31
- "lib/dm-transactions/adapters/dm-oracle-adapter.rb",
32
- "lib/dm-transactions/adapters/dm-postgres-adapter.rb",
33
- "lib/dm-transactions/adapters/dm-sqlite-adapter.rb",
34
- "lib/dm-transactions/adapters/dm-sqlserver-adapter.rb",
35
- "spec/isolated/require_after_setup_spec.rb",
36
- "spec/isolated/require_before_setup_spec.rb",
37
- "spec/isolated/require_spec.rb",
38
- "spec/public/dm-transactions_spec.rb",
39
- "spec/rcov.opts",
40
- "spec/spec.opts",
41
- "spec/spec_helper.rb",
42
- "tasks/ci.rake",
43
- "tasks/local_gemfile.rake",
44
- "tasks/metrics.rake",
45
- "tasks/spec.rake",
46
- "tasks/yard.rake",
47
- "tasks/yardstick.rake"
21
+ "Gemfile",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "dm-transactions.gemspec",
27
+ "lib/dm-transactions.rb",
28
+ "lib/dm-transactions/adapters/dm-do-adapter.rb",
29
+ "lib/dm-transactions/adapters/dm-mysql-adapter.rb",
30
+ "lib/dm-transactions/adapters/dm-oracle-adapter.rb",
31
+ "lib/dm-transactions/adapters/dm-postgres-adapter.rb",
32
+ "lib/dm-transactions/adapters/dm-sqlite-adapter.rb",
33
+ "lib/dm-transactions/adapters/dm-sqlserver-adapter.rb",
34
+ "spec/isolated/require_after_setup_spec.rb",
35
+ "spec/isolated/require_before_setup_spec.rb",
36
+ "spec/isolated/require_spec.rb",
37
+ "spec/public/dm-transactions_spec.rb",
38
+ "spec/rcov.opts",
39
+ "spec/spec.opts",
40
+ "spec/spec_helper.rb",
41
+ "tasks/spec.rake",
42
+ "tasks/yard.rake",
43
+ "tasks/yardstick.rake"
48
44
  ]
49
- s.has_rdoc = %q{yard}
50
45
  s.homepage = %q{http://github.com/datamapper/dm-transactions}
51
- s.rdoc_options = ["--charset=UTF-8"]
52
46
  s.require_paths = ["lib"]
53
47
  s.rubyforge_project = %q{datamapper}
54
- s.rubygems_version = %q{1.3.7}
48
+ s.rubygems_version = %q{1.5.2}
55
49
  s.summary = %q{Adds transaction support to datamapper}
56
50
  s.test_files = [
57
51
  "spec/isolated/require_after_setup_spec.rb",
58
- "spec/isolated/require_before_setup_spec.rb",
59
- "spec/isolated/require_spec.rb",
60
- "spec/public/dm-transactions_spec.rb",
61
- "spec/spec_helper.rb"
52
+ "spec/isolated/require_before_setup_spec.rb",
53
+ "spec/isolated/require_spec.rb",
54
+ "spec/public/dm-transactions_spec.rb",
55
+ "spec/spec_helper.rb"
62
56
  ]
63
57
 
64
58
  if s.respond_to? :specification_version then
65
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
66
59
  s.specification_version = 3
67
60
 
68
61
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
69
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.2"])
70
- s.add_development_dependency(%q<rspec>, ["~> 1.3"])
62
+ s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.4"])
63
+ s.add_runtime_dependency(%q<i18n>, ["~> 0.5.0"])
64
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
65
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
66
+ s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
67
+ s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
71
68
  else
72
- s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
73
- s.add_dependency(%q<rspec>, ["~> 1.3"])
69
+ s.add_dependency(%q<activesupport>, ["~> 3.0.4"])
70
+ s.add_dependency(%q<i18n>, ["~> 0.5.0"])
71
+ s.add_dependency(%q<dm-core>, ["~> 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"])
74
75
  end
75
76
  else
76
- s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
77
- s.add_dependency(%q<rspec>, ["~> 1.3"])
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"])
80
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
81
+ s.add_dependency(%q<rake>, ["~> 0.8.7"])
82
+ s.add_dependency(%q<rspec>, ["~> 1.3.1"])
78
83
  end
79
84
  end
80
85
 
@@ -14,7 +14,11 @@ module DataMapper
14
14
  #
15
15
  # @api private
16
16
  def transaction_primitive
17
- DataObjects::Transaction.create_for_uri(normalized_uri)
17
+ if current_transaction && supports_savepoints?
18
+ DataObjects::SavePoint.create_for_uri(normalized_uri, current_connection)
19
+ else
20
+ DataObjects::Transaction.create_for_uri(normalized_uri)
21
+ end
18
22
  end
19
23
 
20
24
  # Pushes the given Transaction onto the per thread Transaction stack so
@@ -91,6 +95,17 @@ module DataMapper
91
95
  end
92
96
  end
93
97
 
98
+ # Indicate whether adapter supports transactional savepoints. Not all DO
99
+ # adapters do, so default to false.
100
+ #
101
+ # @return [Boolean]
102
+ # whether or not the adapter supports savepoints
103
+ #
104
+ # @api private
105
+ def supports_savepoints?
106
+ false
107
+ end
108
+
94
109
  end # module DataObjectsAdapter
95
110
 
96
111
  end # class Transaction
@@ -5,6 +5,10 @@ module DataMapper
5
5
 
6
6
  module MysqlAdapter
7
7
  include DataObjectsAdapter
8
+
9
+ def supports_savepoints?
10
+ true
11
+ end
8
12
  end
9
13
 
10
14
  end
@@ -5,6 +5,10 @@ module DataMapper
5
5
 
6
6
  module PostgresAdapter
7
7
  include DataObjectsAdapter
8
+
9
+ def supports_savepoints?
10
+ true
11
+ end
8
12
  end
9
13
 
10
14
  end
@@ -128,14 +128,14 @@ describe DataMapper::Resource, 'Transactions' do
128
128
  end
129
129
 
130
130
  it 'should rollback when an error is thrown in a transaction' do
131
- @user_model.all.should have(0).entries
131
+ @user_model.all.size.should == 0
132
132
  lambda {
133
133
  @user_model.transaction do
134
134
  @user_model.create(:name => 'carllerche')
135
135
  raise 'I love coffee'
136
136
  end
137
137
  }.should raise_error('I love coffee')
138
- @user_model.all.should have(0).entries
138
+ @user_model.all.size.should == 0
139
139
  end
140
140
 
141
141
  it 'should close the transaction if return is called within the closure' do
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-transactions
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
  - Dirkjan Bussink (dbussink)
@@ -15,38 +11,75 @@ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
13
 
18
- date: 2010-09-07 00:00:00 -07:00
14
+ date: 2011-02-28 00:00:00 -08:00
19
15
  default_executable:
20
16
  dependencies:
21
17
  - !ruby/object:Gem::Dependency
22
- name: dm-core
23
- prerelease: false
18
+ name: activesupport
24
19
  requirement: &id001 !ruby/object:Gem::Requirement
25
20
  none: false
26
21
  requirements:
27
22
  - - ~>
28
23
  - !ruby/object:Gem::Version
29
- segments:
30
- - 1
31
- - 0
32
- - 2
33
- version: 1.0.2
24
+ version: 3.0.4
34
25
  type: :runtime
26
+ prerelease: false
35
27
  version_requirements: *id001
36
28
  - !ruby/object:Gem::Dependency
37
- name: rspec
38
- prerelease: false
29
+ name: i18n
39
30
  requirement: &id002 !ruby/object:Gem::Requirement
40
31
  none: false
41
32
  requirements:
42
33
  - - ~>
43
34
  - !ruby/object:Gem::Version
44
- segments:
45
- - 1
46
- - 3
47
- version: "1.3"
48
- type: :development
35
+ version: 0.5.0
36
+ type: :runtime
37
+ prerelease: false
49
38
  version_requirements: *id002
39
+ - !ruby/object:Gem::Dependency
40
+ name: dm-core
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 1.1.0.rc1
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: *id003
50
+ - !ruby/object:Gem::Dependency
51
+ name: jeweler
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ version: 1.5.2
58
+ type: :development
59
+ prerelease: false
60
+ version_requirements: *id004
61
+ - !ruby/object:Gem::Dependency
62
+ name: rake
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 0.8.7
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: *id005
72
+ - !ruby/object:Gem::Dependency
73
+ name: rspec
74
+ requirement: &id006 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ~>
78
+ - !ruby/object:Gem::Version
79
+ version: 1.3.1
80
+ type: :development
81
+ prerelease: false
82
+ version_requirements: *id006
50
83
  description: Makes transaction support available for adapters that support them
51
84
  email: gamsnjaga@gmail.com
52
85
  executables: []
@@ -58,7 +91,6 @@ extra_rdoc_files:
58
91
  - README.rdoc
59
92
  files:
60
93
  - .document
61
- - .gitignore
62
94
  - Gemfile
63
95
  - LICENSE
64
96
  - README.rdoc
@@ -79,19 +111,16 @@ files:
79
111
  - spec/rcov.opts
80
112
  - spec/spec.opts
81
113
  - spec/spec_helper.rb
82
- - tasks/ci.rake
83
- - tasks/local_gemfile.rake
84
- - tasks/metrics.rake
85
114
  - tasks/spec.rake
86
115
  - tasks/yard.rake
87
116
  - tasks/yardstick.rake
88
- has_rdoc: yard
117
+ has_rdoc: true
89
118
  homepage: http://github.com/datamapper/dm-transactions
90
119
  licenses: []
91
120
 
92
121
  post_install_message:
93
- rdoc_options:
94
- - --charset=UTF-8
122
+ rdoc_options: []
123
+
95
124
  require_paths:
96
125
  - lib
97
126
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -99,21 +128,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
128
  requirements:
100
129
  - - ">="
101
130
  - !ruby/object:Gem::Version
102
- segments:
103
- - 0
104
131
  version: "0"
105
132
  required_rubygems_version: !ruby/object:Gem::Requirement
106
133
  none: false
107
134
  requirements:
108
- - - ">="
135
+ - - ">"
109
136
  - !ruby/object:Gem::Version
110
- segments:
111
- - 0
112
- version: "0"
137
+ version: 1.3.1
113
138
  requirements: []
114
139
 
115
140
  rubyforge_project: datamapper
116
- rubygems_version: 1.3.7
141
+ rubygems_version: 1.5.2
117
142
  signing_key:
118
143
  specification_version: 3
119
144
  summary: Adds transaction support to datamapper
data/.gitignore DELETED
@@ -1,38 +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/
38
- spec/log/
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