rails_dm_datastore 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -1,7 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
 
4
- RAILS_VERSION = "2.3.5"
5
4
  DM_VERSION = "0.10.2"
6
5
 
7
6
  begin
@@ -9,13 +8,12 @@ begin
9
8
  Jeweler::Tasks.new do |gem|
10
9
  gem.name = "rails_dm_datastore"
11
10
  gem.summary = %Q{Generators for dm on gae}
12
- gem.description = %Q{Integrate datamapper to rails3 for the Google App Engine}
11
+ gem.description = %Q{Integrate datamapper to Rails for the Google App Engine}
13
12
  gem.email = "joshsmoore@gmail.com"
14
13
  gem.homepage = "http://github.com/joshsmoore/dm-rails-gae"
15
14
  gem.authors = ["joshsmoore"]
16
15
  gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
17
16
  gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
18
- gem.add_dependency 'rails', RAILS_VERSION
19
17
  gem.add_dependency 'dm-core', DM_VERSION
20
18
  gem.add_dependency 'dm-ar-finders', DM_VERSION
21
19
  gem.add_dependency 'dm-timestamps', DM_VERSION
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -1,4 +1,5 @@
1
1
  <% max = 2
2
+ presets = {'Text' => ':lazy => false', 'String' => ':length => 500'}
2
3
  reserved_dm_names = DataMapper::Resource.instance_methods +
3
4
  DataMapper::Resource.private_instance_methods
4
5
  datastore_types = %w(AncestorKey BigDecimal Blob Boolean ByteString
@@ -19,10 +20,11 @@ class <%= class_name %>
19
20
  <% Array(attributes).each do |attribute|
20
21
  klass = attribute.type.to_s.classify.to_s
21
22
  klass += 's' if klass.eql? 'PostalAddres' # classify bug
23
+ more = presets.has_key?(klass) ? ", #{presets[klass]}" : ''
22
24
  pad = max - attribute.name.size
23
25
  rad = 13 - klass.size
24
26
  %> property :<%= attribute.name %>, <%= " " * pad
25
- %><%= "#{klass}" %>, <%= " " * rad %>:nullable => false
27
+ %><%= "#{klass}" %>, <%= " " * rad %>:required => true<%= more %>
26
28
  <% end -%>
27
29
  <% unless options[:skip_timestamps] -%>
28
30
  timestamps :at
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails_dm_datastore}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["joshsmoore"]
12
- s.date = %q{2010-01-12}
13
- s.description = %q{Integrate datamapper to rails3 for the Google App Engine}
12
+ s.date = %q{2010-01-13}
13
+ s.description = %q{Integrate datamapper to Rails for the Google App Engine}
14
14
  s.email = %q{joshsmoore@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
@@ -54,7 +54,6 @@ Gem::Specification.new do |s|
54
54
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
55
55
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
56
56
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
57
- s.add_runtime_dependency(%q<rails>, ["= 2.3.5"])
58
57
  s.add_runtime_dependency(%q<dm-core>, ["= 0.10.2"])
59
58
  s.add_runtime_dependency(%q<dm-ar-finders>, ["= 0.10.2"])
60
59
  s.add_runtime_dependency(%q<dm-timestamps>, ["= 0.10.2"])
@@ -63,7 +62,6 @@ Gem::Specification.new do |s|
63
62
  else
64
63
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
65
64
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
66
- s.add_dependency(%q<rails>, ["= 2.3.5"])
67
65
  s.add_dependency(%q<dm-core>, ["= 0.10.2"])
68
66
  s.add_dependency(%q<dm-ar-finders>, ["= 0.10.2"])
69
67
  s.add_dependency(%q<dm-timestamps>, ["= 0.10.2"])
@@ -73,7 +71,6 @@ Gem::Specification.new do |s|
73
71
  else
74
72
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
75
73
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
76
- s.add_dependency(%q<rails>, ["= 2.3.5"])
77
74
  s.add_dependency(%q<dm-core>, ["= 0.10.2"])
78
75
  s.add_dependency(%q<dm-ar-finders>, ["= 0.10.2"])
79
76
  s.add_dependency(%q<dm-timestamps>, ["= 0.10.2"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_dm_datastore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - joshsmoore
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-12 00:00:00 +08:00
12
+ date: 2010-01-13 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,16 +32,6 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: "0"
34
34
  version:
35
- - !ruby/object:Gem::Dependency
36
- name: rails
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - "="
42
- - !ruby/object:Gem::Version
43
- version: 2.3.5
44
- version:
45
35
  - !ruby/object:Gem::Dependency
46
36
  name: dm-core
47
37
  type: :runtime
@@ -92,7 +82,7 @@ dependencies:
92
82
  - !ruby/object:Gem::Version
93
83
  version: "0"
94
84
  version:
95
- description: Integrate datamapper to rails3 for the Google App Engine
85
+ description: Integrate datamapper to Rails for the Google App Engine
96
86
  email: joshsmoore@gmail.com
97
87
  executables: []
98
88