dm-sqlserver-adapter 1.1.0 → 1.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,24 +2,29 @@ require 'pathname'
2
2
 
3
3
  source 'http://rubygems.org'
4
4
 
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'
9
- 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.2.0.rc2'
9
+ DO_VERSION = '~> 0.10.6'
10
+ CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
10
11
 
11
12
  do_options = {}
12
13
  do_options[:git] = "#{DATAMAPPER}/do#{REPO_POSTFIX}" if ENV['DO_GIT'] == 'true'
13
14
 
14
15
  gem 'do_sqlserver', DO_VERSION, do_options.dup
15
- gem 'dm-do-adapter', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}"
16
+ gem 'dm-do-adapter', DM_VERSION,
17
+ SOURCE => "#{DATAMAPPER}/dm-do-adapter#{REPO_POSTFIX}",
18
+ :branch => CURRENT_BRANCH
16
19
 
17
20
  group :development do
18
21
 
19
- gem 'dm-migrations', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-migrations#{REPO_POSTFIX}"
20
- gem 'jeweler', '~> 1.5.2'
21
- gem 'rake', '~> 0.8.7'
22
- gem 'rspec', '~> 1.3.1'
22
+ gem 'dm-migrations', DM_VERSION,
23
+ SOURCE => "#{DATAMAPPER}/dm-migrations#{REPO_POSTFIX}",
24
+ :branch => CURRENT_BRANCH
25
+
26
+ gem 'jeweler', '~> 1.6.4'
27
+ gem 'rspec', '~> 1.3.2'
23
28
 
24
29
  end
25
30
 
@@ -35,14 +40,19 @@ end
35
40
 
36
41
  group :datamapper do
37
42
 
38
- gem 'dm-core', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}"
43
+ gem 'dm-core', DM_VERSION,
44
+ SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}",
45
+ :branch => CURRENT_BRANCH
46
+
39
47
  gem 'data_objects', DO_VERSION, do_options.dup
40
48
 
41
49
  plugins = ENV['PLUGINS'] || ENV['PLUGIN']
42
50
  plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
43
51
 
44
52
  plugins.each do |plugin|
45
- gem plugin, DM_VERSION, SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}"
53
+ gem plugin, DM_VERSION,
54
+ SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}",
55
+ :branch => CURRENT_BRANCH
46
56
  end
47
57
 
48
58
  end
data/Rakefile CHANGED
@@ -2,7 +2,6 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
- gem 'jeweler', '~> 1.5.2'
6
5
  require 'jeweler'
7
6
 
8
7
  Jeweler::Tasks.new do |gem|
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0.rc2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dm-sqlserver-adapter}
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0.rc2"
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 = ["Clifford Heath"]
12
- s.date = %q{2011-03-16}
12
+ s.date = %q{2011-09-14}
13
13
  s.description = %q{Microsoft SQL Server Adapter for DataMapper}
14
14
  s.email = %q{dan.kubb@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -35,38 +35,31 @@ Gem::Specification.new do |s|
35
35
  s.homepage = %q{http://github.com/datamapper/dm-sqlserver-adapter}
36
36
  s.require_paths = ["lib"]
37
37
  s.rubyforge_project = %q{datamapper}
38
- s.rubygems_version = %q{1.6.2}
38
+ s.rubygems_version = %q{1.5.1}
39
39
  s.summary = %q{Microsoft SQL Server Adapter for DataMapper}
40
- s.test_files = [
41
- "spec/adapter_spec.rb",
42
- "spec/spec_helper.rb"
43
- ]
44
40
 
45
41
  if s.respond_to? :specification_version then
46
42
  s.specification_version = 3
47
43
 
48
44
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
- s.add_runtime_dependency(%q<do_sqlserver>, ["~> 0.10.2"])
50
- s.add_runtime_dependency(%q<dm-do-adapter>, ["~> 1.1.0"])
51
- s.add_development_dependency(%q<dm-migrations>, ["~> 1.1.0"])
52
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
53
- s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
54
- s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
45
+ s.add_runtime_dependency(%q<do_sqlserver>, ["~> 0.10.6"])
46
+ s.add_runtime_dependency(%q<dm-do-adapter>, ["~> 1.2.0.rc2"])
47
+ s.add_development_dependency(%q<dm-migrations>, ["~> 1.2.0.rc2"])
48
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
49
+ s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
55
50
  else
56
- s.add_dependency(%q<do_sqlserver>, ["~> 0.10.2"])
57
- s.add_dependency(%q<dm-do-adapter>, ["~> 1.1.0"])
58
- s.add_dependency(%q<dm-migrations>, ["~> 1.1.0"])
59
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
60
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
61
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
51
+ s.add_dependency(%q<do_sqlserver>, ["~> 0.10.6"])
52
+ s.add_dependency(%q<dm-do-adapter>, ["~> 1.2.0.rc2"])
53
+ s.add_dependency(%q<dm-migrations>, ["~> 1.2.0.rc2"])
54
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
55
+ s.add_dependency(%q<rspec>, ["~> 1.3.2"])
62
56
  end
63
57
  else
64
- s.add_dependency(%q<do_sqlserver>, ["~> 0.10.2"])
65
- s.add_dependency(%q<dm-do-adapter>, ["~> 1.1.0"])
66
- s.add_dependency(%q<dm-migrations>, ["~> 1.1.0"])
67
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
68
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
69
- s.add_dependency(%q<rspec>, ["~> 1.3.1"])
58
+ s.add_dependency(%q<do_sqlserver>, ["~> 0.10.6"])
59
+ s.add_dependency(%q<dm-do-adapter>, ["~> 1.2.0.rc2"])
60
+ s.add_dependency(%q<dm-migrations>, ["~> 1.2.0.rc2"])
61
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
62
+ s.add_dependency(%q<rspec>, ["~> 1.3.2"])
70
63
  end
71
64
  end
72
65
 
@@ -45,7 +45,7 @@ module DataMapper
45
45
 
46
46
  columns_statement = columns_statement(fields, qualify)
47
47
  from_statement = " FROM #{quote_name(query.model.storage_name(name))}"
48
- where_statement = " WHERE #{conditions_statement}" unless conditions_statement.blank?
48
+ where_statement = " WHERE #{conditions_statement}" unless DataMapper::Ext.blank?(conditions_statement)
49
49
  join_statement = join_statement(query, bind_values, qualify)
50
50
  use_group_by = group_by && group_by.any?
51
51
  use_order_by = order_by && order_by.any?
metadata CHANGED
@@ -1,84 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-sqlserver-adapter
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.1.0
4
+ prerelease: 6
5
+ version: 1.2.0.rc2
6
6
  platform: ruby
7
7
  authors:
8
- - Clifford Heath
8
+ - Clifford Heath
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-16 00:00:00 -07:00
13
+ date: 2011-09-21 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: do_sqlserver
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 0.10.2
24
- type: :runtime
25
- prerelease: false
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: dm-do-adapter
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ~>
33
- - !ruby/object:Gem::Version
34
- version: 1.1.0
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: dm-migrations
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 1.1.0
46
- type: :development
47
- prerelease: false
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: jeweler
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ~>
55
- - !ruby/object:Gem::Version
56
- version: 1.5.2
57
- type: :development
58
- prerelease: false
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: rake
62
- requirement: &id005 !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ~>
66
- - !ruby/object:Gem::Version
67
- version: 0.8.7
68
- type: :development
69
- prerelease: false
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: rspec
73
- requirement: &id006 !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ~>
77
- - !ruby/object:Gem::Version
78
- version: 1.3.1
79
- type: :development
80
- prerelease: false
81
- version_requirements: *id006
16
+ - !ruby/object:Gem::Dependency
17
+ name: do_sqlserver
18
+ version_requirements: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 0.10.6
24
+ requirement: *id001
25
+ prerelease: false
26
+ type: :runtime
27
+ - !ruby/object:Gem::Dependency
28
+ name: dm-do-adapter
29
+ version_requirements: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: 1.2.0.rc2
35
+ requirement: *id002
36
+ prerelease: false
37
+ type: :runtime
38
+ - !ruby/object:Gem::Dependency
39
+ name: dm-migrations
40
+ version_requirements: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.2.0.rc2
46
+ requirement: *id003
47
+ prerelease: false
48
+ type: :development
49
+ - !ruby/object:Gem::Dependency
50
+ name: jeweler
51
+ version_requirements: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: 1.6.4
57
+ requirement: *id004
58
+ prerelease: false
59
+ type: :development
60
+ - !ruby/object:Gem::Dependency
61
+ name: rspec
62
+ version_requirements: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: 1.3.2
68
+ requirement: *id005
69
+ prerelease: false
70
+ type: :development
82
71
  description: Microsoft SQL Server Adapter for DataMapper
83
72
  email: dan.kubb@gmail.com
84
73
  executables: []
@@ -86,23 +75,23 @@ executables: []
86
75
  extensions: []
87
76
 
88
77
  extra_rdoc_files:
89
- - LICENSE
78
+ - LICENSE
90
79
  files:
91
- - Gemfile
92
- - LICENSE
93
- - Rakefile
94
- - VERSION
95
- - dm-sqlserver-adapter.gemspec
96
- - lib/dm-sqlserver-adapter.rb
97
- - lib/dm-sqlserver-adapter/adapter.rb
98
- - lib/dm-sqlserver-adapter/spec/setup.rb
99
- - spec/adapter_spec.rb
100
- - spec/rcov.opts
101
- - spec/spec.opts
102
- - spec/spec_helper.rb
103
- - tasks/spec.rake
104
- - tasks/yard.rake
105
- - tasks/yardstick.rake
80
+ - Gemfile
81
+ - LICENSE
82
+ - Rakefile
83
+ - VERSION
84
+ - dm-sqlserver-adapter.gemspec
85
+ - lib/dm-sqlserver-adapter.rb
86
+ - lib/dm-sqlserver-adapter/adapter.rb
87
+ - lib/dm-sqlserver-adapter/spec/setup.rb
88
+ - spec/adapter_spec.rb
89
+ - spec/rcov.opts
90
+ - spec/spec.opts
91
+ - spec/spec_helper.rb
92
+ - tasks/spec.rake
93
+ - tasks/yard.rake
94
+ - tasks/yardstick.rake
106
95
  has_rdoc: true
107
96
  homepage: http://github.com/datamapper/dm-sqlserver-adapter
108
97
  licenses: []
@@ -111,26 +100,28 @@ post_install_message:
111
100
  rdoc_options: []
112
101
 
113
102
  require_paths:
114
- - lib
103
+ - lib
115
104
  required_ruby_version: !ruby/object:Gem::Requirement
116
105
  none: false
117
106
  requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- version: "0"
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: 2
110
+ segments:
111
+ - 0
112
+ version: "0"
121
113
  required_rubygems_version: !ruby/object:Gem::Requirement
122
114
  none: false
123
115
  requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- version: "0"
116
+ - - ">"
117
+ - !ruby/object:Gem::Version
118
+ version: 1.3.1
127
119
  requirements: []
128
120
 
129
121
  rubyforge_project: datamapper
130
- rubygems_version: 1.6.2
122
+ rubygems_version: 1.5.1
131
123
  signing_key:
132
124
  specification_version: 3
133
125
  summary: Microsoft SQL Server Adapter for DataMapper
134
- test_files:
135
- - spec/adapter_spec.rb
136
- - spec/spec_helper.rb
126
+ test_files: []
127
+