dm-optlock 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -8
- data/Manifest.txt +0 -3
- data/README.rdoc +4 -42
- data/Rakefile +1 -1
- data/lib/dm-optlock.rb +1 -1
- metadata +6 -9
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
data/History.txt
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
== 0.1.
|
2
|
-
|
1
|
+
== 0.1.3 2009-01-10
|
3
2
|
* 1 major enhancement:
|
4
|
-
*
|
5
|
-
|
3
|
+
* replaced 'set_locking_column' by 'add_locking_column'
|
4
|
+
|
6
5
|
== 0.1.2 2008-10-01
|
7
|
-
|
8
6
|
* 1 major enhancement:
|
9
7
|
* Added class method 'set_locking_column'
|
10
8
|
|
11
|
-
== 0.1.
|
12
|
-
|
9
|
+
== 0.1.0 2008-09-30
|
13
10
|
* 1 major enhancement:
|
14
|
-
*
|
11
|
+
* Initial release
|
12
|
+
|
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,48 +1,10 @@
|
|
1
1
|
= dm-optlock
|
2
|
-
|
3
|
-
* FIX (url)
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
FIX (describe your package)
|
8
|
-
|
9
|
-
== FEATURES/PROBLEMS:
|
10
|
-
|
11
|
-
* FIX (list of features or problems)
|
12
|
-
|
13
|
-
== SYNOPSIS:
|
14
|
-
|
15
|
-
FIX (code sample of usage)
|
2
|
+
Adds optimistic locking to Datamapper.
|
16
3
|
|
17
4
|
== REQUIREMENTS:
|
18
5
|
|
19
|
-
*
|
20
|
-
|
21
|
-
== INSTALL:
|
22
|
-
|
23
|
-
* FIX (sudo gem install, anything else)
|
6
|
+
* dm-core >= 0.9.5
|
24
7
|
|
25
8
|
== LICENSE:
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
Copyright (c) 2009 FIXME full name
|
30
|
-
|
31
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
32
|
-
a copy of this software and associated documentation files (the
|
33
|
-
'Software'), to deal in the Software without restriction, including
|
34
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
35
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
36
|
-
permit persons to whom the Software is furnished to do so, subject to
|
37
|
-
the following conditions:
|
38
|
-
|
39
|
-
The above copyright notice and this permission notice shall be
|
40
|
-
included in all copies or substantial portions of the Software.
|
41
|
-
|
42
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
43
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
44
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
45
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
46
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
47
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
48
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
9
|
+
GPL v3
|
10
|
+
http://www.gnu.de/documents/gpl-3.0.en.html
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require File.dirname(__FILE__) + '/lib/dm-optlock'
|
|
4
4
|
# Generate all the Rake tasks
|
5
5
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
6
6
|
$hoe = Hoe.new('dm-optlock', DataMapper::DmOptlock::VERSION) do |p|
|
7
|
-
p.developer('
|
7
|
+
p.developer('Martin Vielsmaier', 'martin.vielsmaier@gmail.com')
|
8
8
|
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
9
9
|
p.rubyforge_name = p.name # TODO this is default value
|
10
10
|
p.extra_deps = [
|
data/lib/dm-optlock.rb
CHANGED
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-optlock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Martin Vielsmaier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
@@ -32,9 +32,9 @@ dependencies:
|
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.8.0
|
34
34
|
version:
|
35
|
-
description:
|
35
|
+
description: ""
|
36
36
|
email:
|
37
|
-
-
|
37
|
+
- martin.vielsmaier@gmail.com
|
38
38
|
executables: []
|
39
39
|
|
40
40
|
extensions: []
|
@@ -49,15 +49,12 @@ files:
|
|
49
49
|
- README.rdoc
|
50
50
|
- Rakefile
|
51
51
|
- lib/dm-optlock.rb
|
52
|
-
- script/console
|
53
|
-
- script/destroy
|
54
|
-
- script/generate
|
55
52
|
- spec/dm-optlock_spec.rb
|
56
53
|
- spec/spec.opts
|
57
54
|
- spec/spec_helper.rb
|
58
55
|
- tasks/rspec.rake
|
59
56
|
has_rdoc: true
|
60
|
-
homepage:
|
57
|
+
homepage: Adds optimistic locking to Datamapper.
|
61
58
|
post_install_message:
|
62
59
|
rdoc_options:
|
63
60
|
- --main
|
@@ -82,6 +79,6 @@ rubyforge_project: dm-optlock
|
|
82
79
|
rubygems_version: 1.3.1
|
83
80
|
signing_key:
|
84
81
|
specification_version: 2
|
85
|
-
summary:
|
82
|
+
summary: ""
|
86
83
|
test_files: []
|
87
84
|
|
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/dm-optlock.rb'}"
|
9
|
-
puts "Loading dm-optlock gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|