dm-is-versioned 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
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dm-is-versioned}
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 = ["Bernerd Schaefer"]
12
- s.date = %q{2011-03-01}
12
+ s.date = %q{2011-03-10}
13
13
  s.description = %q{DataMapper plugin enabling simple versioning of models}
14
14
  s.email = %q{bernerd [a] wieck [d] com}
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-versioned}
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 enabling simple versioning of models}
41
41
  s.test_files = [
42
42
  "spec/spec_helper.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-core>, ["~> 1.1.0.rc2"])
50
+ s.add_runtime_dependency(%q<dm-core>, ["~> 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-core>, ["~> 1.1.0.rc2"])
55
+ s.add_dependency(%q<dm-core>, ["~> 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-core>, ["~> 1.1.0.rc2"])
61
+ s.add_dependency(%q<dm-core>, ["~> 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"])
@@ -118,7 +118,8 @@ module DataMapper
118
118
  # @return <Collection>
119
119
  def versions
120
120
  version_model = model.const_get(:Version)
121
- query = model.key.zip(key).map { |p, v| [ p.name, v ] }.to_hash
121
+ pairs = model.key.zip(key).map { |p, v| [ p.name, v ] }
122
+ query = DataMapper::Ext::Array.to_hash(pairs)
122
123
  query.merge(:order => version_model.key.map { |k| k.name.desc })
123
124
  version_model.all(query)
124
125
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dm-is-versioned
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
  - Bernerd Schaefer
@@ -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 enabling simple versioning of models