dm-is-list 1.1.0.rc2 → 1.1.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ source 'http://rubygems.org'
5
5
  SOURCE = ENV.fetch('SOURCE', :git).to_sym
6
6
  REPO_POSTFIX = SOURCE == :path ? '' : '.git'
7
7
  DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://github.com/datamapper'
8
- DM_VERSION = '~> 1.1.0.rc2'
8
+ DM_VERSION = '~> 1.1.0.rc3'
9
9
  DO_VERSION = '~> 0.10.2'
10
10
  DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
11
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0.rc2
1
+ 1.1.0.rc3
data/dm-is-list.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dm-is-list}
8
- s.version = "1.1.0.rc2"
8
+ s.version = "1.1.0.rc3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sindre Aarsaether"]
12
- s.date = %q{2011-03-01}
12
+ s.date = %q{2011-03-10}
13
13
  s.description = %q{DataMapper plugin for creating and organizing lists}
14
14
  s.email = %q{sindre [a] identu [d] no}
15
15
  s.extra_rdoc_files = [
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  s.homepage = %q{http://github.com/datamapper/dm-is-list}
37
37
  s.require_paths = ["lib"]
38
38
  s.rubyforge_project = %q{datamapper}
39
- s.rubygems_version = %q{1.5.2}
39
+ s.rubygems_version = %q{1.6.2}
40
40
  s.summary = %q{DataMapper plugin for creating and organizing lists}
41
41
  s.test_files = [
42
42
  "spec/integration/list_spec.rb",
@@ -47,18 +47,18 @@ Gem::Specification.new do |s|
47
47
  s.specification_version = 3
48
48
 
49
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
- s.add_runtime_dependency(%q<dm-adjust>, ["~> 1.1.0.rc2"])
50
+ s.add_runtime_dependency(%q<dm-adjust>, ["~> 1.1.0.rc3"])
51
51
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
52
52
  s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
53
53
  s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
54
54
  else
55
- s.add_dependency(%q<dm-adjust>, ["~> 1.1.0.rc2"])
55
+ s.add_dependency(%q<dm-adjust>, ["~> 1.1.0.rc3"])
56
56
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
57
57
  s.add_dependency(%q<rake>, ["~> 0.8.7"])
58
58
  s.add_dependency(%q<rspec>, ["~> 1.3.1"])
59
59
  end
60
60
  else
61
- s.add_dependency(%q<dm-adjust>, ["~> 1.1.0.rc2"])
61
+ s.add_dependency(%q<dm-adjust>, ["~> 1.1.0.rc3"])
62
62
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
63
63
  s.add_dependency(%q<rake>, ["~> 0.8.7"])
64
64
  s.add_dependency(%q<rspec>, ["~> 1.3.1"])
@@ -340,7 +340,8 @@ module DataMapper
340
340
  #
341
341
  # @api semipublic
342
342
  def list_scope
343
- model.list_options[:scope].map{ |p| [ p, attribute_get(p) ] }.to_hash
343
+ pairs = model.list_options[:scope].map{ |p| [ p, attribute_get(p) ] }
344
+ DataMapper::Ext::Array.to_hash(pairs)
344
345
  end
345
346
 
346
347
  ##
@@ -355,9 +356,10 @@ module DataMapper
355
356
  #
356
357
  # @api semipublic
357
358
  def original_list_scope
358
- model.list_options[:scope].map{
359
+ pairs = model.list_options[:scope].map{
359
360
  |p| [ p, (property = properties[p]) && original_attributes.key?(property) ? original_attributes[property] : attribute_get(p) ]
360
- }.to_hash
361
+ }
362
+ DataMapper::Ext::Array.to_hash(pairs)
361
363
  end
362
364
 
363
365
  ##
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dm-is-list
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 1.1.0.rc2
5
+ version: 1.1.0.rc3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sindre Aarsaether
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-01 00:00:00 -08:00
13
+ date: 2011-03-10 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 1.1.0.rc2
23
+ version: 1.1.0.rc3
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: *id001
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  requirements: []
107
107
 
108
108
  rubyforge_project: datamapper
109
- rubygems_version: 1.5.2
109
+ rubygems_version: 1.6.2
110
110
  signing_key:
111
111
  specification_version: 3
112
112
  summary: DataMapper plugin for creating and organizing lists