dm-is-list 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -0
- data/Manifest.txt +12 -0
- data/{README → README.txt} +1 -2
- data/Rakefile +22 -29
- data/lib/dm-is-list.rb +2 -2
- data/lib/dm-is-list/is/list.rb +1 -1
- data/lib/dm-is-list/is/version.rb +7 -0
- data/spec/spec_helper.rb +1 -1
- metadata +31 -15
data/History.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
|
data/Manifest.txt
ADDED
data/{README → README.txt}
RENAMED
data/Rakefile
CHANGED
@@ -1,51 +1,44 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'spec'
|
3
|
-
require 'rake/clean'
|
4
|
-
require 'rake/gempackagetask'
|
5
3
|
require 'spec/rake/spectask'
|
6
4
|
require 'pathname'
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
end
|
6
|
+
ROOT = Pathname(__FILE__).dirname.expand_path
|
7
|
+
require ROOT + 'lib/dm-is-list/is/version'
|
8
|
+
|
9
|
+
AUTHOR = "Sindre Aarsaether"
|
10
|
+
EMAIL = "sindre [a] identu [d] no"
|
11
|
+
GEM_NAME = "dm-is-list"
|
12
|
+
GEM_VERSION = DataMapper::Is::List::VERSION
|
13
|
+
GEM_DEPENDENCIES = [["dm-core", GEM_VERSION]]
|
14
|
+
GEM_CLEAN = ["log", "pkg"]
|
15
|
+
GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO ] }
|
16
|
+
|
17
|
+
PROJECT_NAME = "datamapper"
|
18
|
+
PROJECT_URL = "http://github.com/sam/dm-more/tree/master/dm-is-list"
|
19
|
+
PROJECT_DESCRIPTION = PROJECT_SUMMARY = "DataMapper plugin for creating and organizing lists"
|
20
|
+
|
21
|
+
require ROOT.parent + 'tasks/hoe'
|
25
22
|
|
26
23
|
task :default => [ :spec ]
|
27
24
|
|
28
25
|
WIN32 = (RUBY_PLATFORM =~ /win32|mingw|cygwin/) rescue nil
|
29
26
|
SUDO = WIN32 ? '' : ('sudo' unless ENV['SUDOLESS'])
|
30
27
|
|
31
|
-
|
32
|
-
pkg.gem_spec = spec
|
33
|
-
end
|
34
|
-
|
35
|
-
desc "Install #{spec.name} #{spec.version} (default ruby)"
|
28
|
+
desc "Install #{GEM_NAME} #{GEM_VERSION} (default ruby)"
|
36
29
|
task :install => [ :package ] do
|
37
|
-
sh "#{SUDO} gem install --local pkg/#{
|
30
|
+
sh "#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources", :verbose => false
|
38
31
|
end
|
39
32
|
|
40
|
-
desc "Uninstall #{
|
33
|
+
desc "Uninstall #{GEM_NAME} #{GEM_VERSION} (default ruby)"
|
41
34
|
task :uninstall => [ :clobber ] do
|
42
|
-
sh "#{SUDO} gem uninstall #{
|
35
|
+
sh "#{SUDO} gem uninstall #{GEM_NAME} -v#{GEM_VERSION} -I -x", :verbose => false
|
43
36
|
end
|
44
37
|
|
45
38
|
namespace :jruby do
|
46
|
-
desc "Install #{
|
39
|
+
desc "Install #{GEM_NAME} #{GEM_VERSION} with JRuby"
|
47
40
|
task :install => [ :package ] do
|
48
|
-
sh %{#{SUDO} jruby -S gem install --local pkg/#{
|
41
|
+
sh %{#{SUDO} jruby -S gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources}, :verbose => false
|
49
42
|
end
|
50
43
|
end
|
51
44
|
|
data/lib/dm-is-list.rb
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
require 'pathname'
|
4
4
|
|
5
|
-
gem 'dm-core', '=0.9.
|
5
|
+
gem 'dm-core', '=0.9.3'
|
6
6
|
require 'dm-core'
|
7
7
|
|
8
|
-
gem 'dm-adjust', '=0.9.
|
8
|
+
gem 'dm-adjust', '=0.9.3'
|
9
9
|
require 'dm-adjust'
|
10
10
|
|
11
11
|
require Pathname(__FILE__).dirname.expand_path / 'dm-is-list' / 'is' / 'list.rb'
|
data/lib/dm-is-list/is/list.rb
CHANGED
@@ -56,7 +56,7 @@ module DataMapper
|
|
56
56
|
end
|
57
57
|
|
58
58
|
# we need to make sure that STI-models will inherit the list_scope.
|
59
|
-
after_class_method :inherited do |target|
|
59
|
+
after_class_method :inherited do |retval, target|
|
60
60
|
target.instance_variable_set(:@list_scope, @list_scope.dup)
|
61
61
|
end
|
62
62
|
|
data/spec/spec_helper.rb
CHANGED
@@ -10,7 +10,7 @@ def load_driver(name, default_uri)
|
|
10
10
|
lib = "do_#{name}"
|
11
11
|
|
12
12
|
begin
|
13
|
-
gem lib, '=0.9.
|
13
|
+
gem lib, '=0.9.3'
|
14
14
|
require lib
|
15
15
|
DataMapper.setup(name, ENV["#{name.to_s.upcase}_SPEC_URI"] || default_uri)
|
16
16
|
DataMapper::Repository.adapters[:default] = DataMapper::Repository.adapters[name]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-is-list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sindre Aarsaether
|
@@ -9,43 +9,59 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-24 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dm-core
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
20
21
|
- - "="
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.9.
|
23
|
+
version: 0.9.3
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: hoe
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.7.0
|
23
34
|
version:
|
24
35
|
description: DataMapper plugin for creating and organizing lists
|
25
|
-
email:
|
36
|
+
email:
|
37
|
+
- sindre [a] identu [d] no
|
26
38
|
executables: []
|
27
39
|
|
28
40
|
extensions: []
|
29
41
|
|
30
42
|
extra_rdoc_files:
|
31
|
-
- README
|
43
|
+
- README.txt
|
32
44
|
- LICENSE
|
33
45
|
- TODO
|
34
46
|
files:
|
35
|
-
-
|
47
|
+
- History.txt
|
48
|
+
- LICENSE
|
49
|
+
- Manifest.txt
|
50
|
+
- README.txt
|
51
|
+
- Rakefile
|
52
|
+
- TODO
|
36
53
|
- lib/dm-is-list.rb
|
54
|
+
- lib/dm-is-list/is/list.rb
|
55
|
+
- lib/dm-is-list/is/version.rb
|
37
56
|
- spec/integration/list_spec.rb
|
38
|
-
- spec/spec_helper.rb
|
39
57
|
- spec/spec.opts
|
40
|
-
-
|
41
|
-
- README
|
42
|
-
- LICENSE
|
43
|
-
- TODO
|
58
|
+
- spec/spec_helper.rb
|
44
59
|
has_rdoc: true
|
45
60
|
homepage: http://github.com/sam/dm-more/tree/master/dm-is-list
|
46
61
|
post_install_message:
|
47
|
-
rdoc_options:
|
48
|
-
|
62
|
+
rdoc_options:
|
63
|
+
- --main
|
64
|
+
- README.txt
|
49
65
|
require_paths:
|
50
66
|
- lib
|
51
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -62,8 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
78
|
version:
|
63
79
|
requirements: []
|
64
80
|
|
65
|
-
rubyforge_project:
|
66
|
-
rubygems_version: 1.0
|
81
|
+
rubyforge_project: datamapper
|
82
|
+
rubygems_version: 1.2.0
|
67
83
|
signing_key:
|
68
84
|
specification_version: 2
|
69
85
|
summary: DataMapper plugin for creating and organizing lists
|