dm-is-remixable 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -31,6 +31,7 @@ measurements
31
31
  .bundle
32
32
  Gemfile.local
33
33
  Gemfile.lock
34
+ Gemfile.local.lock
34
35
 
35
36
  ## PROJECT::SPECIFIC
36
37
  spec/db/
data/Gemfile CHANGED
@@ -71,14 +71,14 @@
71
71
  source 'http://rubygems.org'
72
72
 
73
73
  DATAMAPPER = 'git://github.com/datamapper'
74
- DM_VERSION = '~> 1.0.0'
74
+ DM_VERSION = '~> 1.0.1'
75
75
 
76
76
  group :runtime do # Runtime dependencies (as in the gemspec)
77
77
 
78
78
  if ENV['EXTLIB']
79
- gem 'extlib', '~> 0.9.15', :git => "#{DATAMAPPER}/extlib.git"
79
+ gem 'extlib', '~> 0.9.15', :git => "#{DATAMAPPER}/extlib.git"
80
80
  else
81
- gem 'activesupport', '~> 3.0.0.beta3', :git => 'git://github.com/rails/rails.git', :require => nil
81
+ gem 'activesupport', '~> 3.0.0', :git => 'git://github.com/rails/rails.git', :branch => '3-0-stable', :require => nil
82
82
  end
83
83
 
84
84
  gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
@@ -91,7 +91,7 @@ group(:development) do # Development dependencies (as in the gemspec)
91
91
  gem 'dm-types', DM_VERSION, :git => "#{DATAMAPPER}/dm-types.git"
92
92
 
93
93
  gem 'rake', '~> 0.8.7'
94
- gem 'rspec', '~> 1.3'
94
+ gem 'rspec', '~> 1.3', :git => 'git://github.com/snusnu/rspec', :branch => 'heckle_fix_plus_gemfile'
95
95
  gem 'jeweler', '~> 1.4'
96
96
 
97
97
  end
@@ -110,32 +110,31 @@ end
110
110
  group :datamapper do # We need this because we want to pin these dependencies to their git master sources
111
111
 
112
112
  adapters = ENV['ADAPTER'] || ENV['ADAPTERS']
113
- adapters = adapters.to_s.gsub(',',' ').split(' ') - ['in_memory']
113
+ adapters = adapters.to_s.tr(',', ' ').split.uniq - %w[ in_memory ]
114
114
 
115
- unless adapters.empty?
115
+ DO_VERSION = '~> 0.10.2'
116
+ DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
116
117
 
117
- DO_VERSION = '~> 0.10.3'
118
- DM_DO_ADAPTERS = %w[sqlite postgres mysql oracle sqlserver]
118
+ if (do_adapters = DM_DO_ADAPTERS & adapters).any?
119
+ options = {}
120
+ options[:git] = "#{DATAMAPPER}/do.git" if ENV['DO_GIT'] == 'true'
119
121
 
120
- gem 'data_objects', DO_VERSION, :git => "#{DATAMAPPER}/do.git"
122
+ gem 'data_objects', DO_VERSION, options.dup
121
123
 
122
- adapters.each do |adapter|
123
- if DM_DO_ADAPTERS.any? { |dm_do_adapter| dm_do_adapter =~ /#{adapter}/ }
124
- adapter = 'sqlite3' if adapter == 'sqlite'
125
- gem "do_#{adapter}", DO_VERSION, :git => "#{DATAMAPPER}/do.git"
126
- end
124
+ do_adapters.each do |adapter|
125
+ adapter = 'sqlite3' if adapter == 'sqlite'
126
+ gem "do_#{adapter}", DO_VERSION, options.dup
127
127
  end
128
128
 
129
129
  gem 'dm-do-adapter', DM_VERSION, :git => "#{DATAMAPPER}/dm-do-adapter.git"
130
+ end
130
131
 
131
- adapters.each do |adapter|
132
- gem "dm-#{adapter}-adapter", DM_VERSION, :git => "#{DATAMAPPER}/dm-#{adapter}-adapter.git"
133
- end
134
-
132
+ adapters.each do |adapter|
133
+ gem "dm-#{adapter}-adapter", DM_VERSION, :git => "#{DATAMAPPER}/dm-#{adapter}-adapter.git"
135
134
  end
136
135
 
137
136
  plugins = ENV['PLUGINS'] || ENV['PLUGIN']
138
- plugins = (plugins.to_s.gsub(',',' ').split(' ') + ['dm-migrations']).uniq
137
+ plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
139
138
 
140
139
  plugins.each do |plugin|
141
140
  gem plugin, DM_VERSION, :git => "#{DATAMAPPER}/#{plugin}.git"
data/Rakefile CHANGED
@@ -15,10 +15,10 @@ begin
15
15
 
16
16
  gem.rubyforge_project = 'datamapper'
17
17
 
18
- gem.add_dependency 'dm-core', '~> 1.0.0'
18
+ gem.add_dependency 'dm-core', '~> 1.0.1'
19
19
 
20
- gem.add_development_dependency 'dm-validations', '~> 1.0.0'
21
- gem.add_development_dependency 'dm-types', '~> 1.0.0'
20
+ gem.add_development_dependency 'dm-validations', '~> 1.0.1'
21
+ gem.add_development_dependency 'dm-types', '~> 1.0.1'
22
22
  gem.add_development_dependency 'rspec', '~> 1.3'
23
23
  end
24
24
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dm-is-remixable}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cory O'Daniel"]
12
- s.date = %q{2010-06-08}
12
+ s.date = %q{2010-09-07}
13
13
  s.description = %q{dm-is-remixable allow you to create reusable data functionality}
14
14
  s.email = %q{dm-is-remixable [a] coryodaniel [d] com}
15
15
  s.extra_rdoc_files = [
@@ -77,20 +77,20 @@ Gem::Specification.new do |s|
77
77
  s.specification_version = 3
78
78
 
79
79
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
80
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.0"])
81
- s.add_development_dependency(%q<dm-validations>, ["~> 1.0.0"])
82
- s.add_development_dependency(%q<dm-types>, ["~> 1.0.0"])
80
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.1"])
81
+ s.add_development_dependency(%q<dm-validations>, ["~> 1.0.1"])
82
+ s.add_development_dependency(%q<dm-types>, ["~> 1.0.1"])
83
83
  s.add_development_dependency(%q<rspec>, ["~> 1.3"])
84
84
  else
85
- s.add_dependency(%q<dm-core>, ["~> 1.0.0"])
86
- s.add_dependency(%q<dm-validations>, ["~> 1.0.0"])
87
- s.add_dependency(%q<dm-types>, ["~> 1.0.0"])
85
+ s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
86
+ s.add_dependency(%q<dm-validations>, ["~> 1.0.1"])
87
+ s.add_dependency(%q<dm-types>, ["~> 1.0.1"])
88
88
  s.add_dependency(%q<rspec>, ["~> 1.3"])
89
89
  end
90
90
  else
91
- s.add_dependency(%q<dm-core>, ["~> 1.0.0"])
92
- s.add_dependency(%q<dm-validations>, ["~> 1.0.0"])
93
- s.add_dependency(%q<dm-types>, ["~> 1.0.0"])
91
+ s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
92
+ s.add_dependency(%q<dm-validations>, ["~> 1.0.1"])
93
+ s.add_dependency(%q<dm-types>, ["~> 1.0.1"])
94
94
  s.add_dependency(%q<rspec>, ["~> 1.3"])
95
95
  end
96
96
  end
@@ -1,16 +1,14 @@
1
1
  desc "Support bundling from local source code (allows BUNDLE_GEMFILE=Gemfile.local bundle foo)"
2
2
  task :local_gemfile do |t|
3
3
 
4
- root = Pathname(__FILE__).dirname.parent
5
- datamapper = root.parent
6
-
7
- source_regex = /DATAMAPPER = 'git:\/\/github.com\/datamapper'/
8
- gem_source_regex = /:git => \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/
4
+ root = Pathname(__FILE__).dirname.parent
5
+ datamapper = root.parent
9
6
 
10
7
  root.join('Gemfile.local').open('w') do |f|
11
8
  root.join('Gemfile').open.each do |line|
12
- line.sub!(source_regex, "DATAMAPPER = '#{datamapper}'")
13
- line.sub!(gem_source_regex, ':path => "#{DATAMAPPER}/\1"')
9
+ line.sub!(/DATAMAPPER = 'git:\/\/github.com\/datamapper'/, "DATAMAPPER = '#{datamapper}'")
10
+ line.sub!(/:git => \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, ':path => "#{DATAMAPPER}/\1"')
11
+ line.sub!(/do_options\[:git\] = \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, 'do_options[:path] = "#{DATAMAPPER}/\1"')
14
12
  f.puts line
15
13
  end
16
14
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-is-remixable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
4
  prerelease: false
6
5
  segments:
7
6
  - 1
8
7
  - 0
9
- - 0
10
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Cory O'Daniel
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-06-08 00:00:00 -07:00
17
+ date: 2010-09-07 00:00:00 -07:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,12 +25,11 @@ dependencies:
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 23
30
28
  segments:
31
29
  - 1
32
30
  - 0
33
- - 0
34
- version: 1.0.0
31
+ - 1
32
+ version: 1.0.1
35
33
  type: :runtime
36
34
  version_requirements: *id001
37
35
  - !ruby/object:Gem::Dependency
@@ -42,12 +40,11 @@ dependencies:
42
40
  requirements:
43
41
  - - ~>
44
42
  - !ruby/object:Gem::Version
45
- hash: 23
46
43
  segments:
47
44
  - 1
48
45
  - 0
49
- - 0
50
- version: 1.0.0
46
+ - 1
47
+ version: 1.0.1
51
48
  type: :development
52
49
  version_requirements: *id002
53
50
  - !ruby/object:Gem::Dependency
@@ -58,12 +55,11 @@ dependencies:
58
55
  requirements:
59
56
  - - ~>
60
57
  - !ruby/object:Gem::Version
61
- hash: 23
62
58
  segments:
63
59
  - 1
64
60
  - 0
65
- - 0
66
- version: 1.0.0
61
+ - 1
62
+ version: 1.0.1
67
63
  type: :development
68
64
  version_requirements: *id003
69
65
  - !ruby/object:Gem::Dependency
@@ -74,7 +70,6 @@ dependencies:
74
70
  requirements:
75
71
  - - ~>
76
72
  - !ruby/object:Gem::Version
77
- hash: 9
78
73
  segments:
79
74
  - 1
80
75
  - 3
@@ -136,7 +131,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
131
  requirements:
137
132
  - - ">="
138
133
  - !ruby/object:Gem::Version
139
- hash: 3
140
134
  segments:
141
135
  - 0
142
136
  version: "0"
@@ -145,7 +139,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
139
  requirements:
146
140
  - - ">="
147
141
  - !ruby/object:Gem::Version
148
- hash: 3
149
142
  segments:
150
143
  - 0
151
144
  version: "0"