tpitale-rails_datamapper 0.10.3 → 0.10.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.3
1
+ 0.10.3.1
@@ -43,21 +43,18 @@ module DataMapperStore
43
43
  class Session
44
44
  include ::DataMapper::Resource
45
45
 
46
- def self.name
47
- "session"
48
- end
49
-
50
46
  property :id, Serial
51
- property :session_id, String, :unique_index => true
52
- property :data, Text, :required => true, :default => ::Base64.encode64(Marshal.dump({}))
53
- property :updated_at, DateTime, :required => false, :index => true
47
+ property :session_id, String, :required => true, :unique => true
48
+ property :data, Object, :required => true
49
+ property :updated_at, DateTime, :index => true
54
50
 
55
- def data=(data)
56
- attribute_set(:data, ::Base64.encode64(Marshal.dump(data)))
51
+ def self.name
52
+ 'session'
57
53
  end
58
54
 
59
55
  def data
60
- Marshal.load(::Base64.decode64(attribute_get(:data)))
56
+ attribute_get(:data) || {}
61
57
  end
58
+
62
59
  end
63
60
  end
@@ -0,0 +1,71 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{tpitale-rails_datamapper}
8
+ s.version = "0.10.3.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Tom Malone"]
12
+ s.date = %q{2010-06-20}
13
+ s.description = %q{Rails Plugin for DataMapper}
14
+ s.email = %q{tomjmalone [a] gmail [d] com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "datamapper.rake",
26
+ "generators/dm_install/dm_install_generator.rb",
27
+ "generators/dm_install/templates/datamapper.rake",
28
+ "generators/dm_migration/dm_migration_generator.rb",
29
+ "generators/dm_migration/templates/migration.rb",
30
+ "generators/dm_model/dm_model_generator.rb",
31
+ "generators/dm_model/templates/model.rb",
32
+ "generators/dm_model/templates/unit_test.rb",
33
+ "generators/rspec_dm_model/rspec_dm_model_generator.rb",
34
+ "generators/rspec_dm_model/templates/model_spec.rb",
35
+ "lib/rails_datamapper.rb",
36
+ "lib/rails_datamapper/session_store.rb",
37
+ "rails_datamapper.gemspec",
38
+ "tasks/yard.rake",
39
+ "tasks/yardstick.rake",
40
+ "tpitale-rails_datamapper.gemspec"
41
+ ]
42
+ s.homepage = %q{http://github.com/datamapper/dm-more/tree/master/tpitale-rails_datamapper}
43
+ s.rdoc_options = ["--charset=UTF-8"]
44
+ s.require_paths = ["lib"]
45
+ s.rubyforge_project = %q{datamapper}
46
+ s.rubygems_version = %q{1.3.6}
47
+ s.summary = %q{Rails Plugin for DataMapper}
48
+
49
+ if s.respond_to? :specification_version then
50
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
+ s.specification_version = 3
52
+
53
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
54
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.0"])
55
+ s.add_runtime_dependency(%q<rails>, [">= 2.3.5"])
56
+ s.add_development_dependency(%q<rspec>, ["~> 1.3"])
57
+ s.add_development_dependency(%q<yard>, ["~> 0.5"])
58
+ else
59
+ s.add_dependency(%q<dm-core>, ["~> 1.0.0"])
60
+ s.add_dependency(%q<rails>, [">= 2.3.5"])
61
+ s.add_dependency(%q<rspec>, ["~> 1.3"])
62
+ s.add_dependency(%q<yard>, ["~> 0.5"])
63
+ end
64
+ else
65
+ s.add_dependency(%q<dm-core>, ["~> 1.0.0"])
66
+ s.add_dependency(%q<rails>, [">= 2.3.5"])
67
+ s.add_dependency(%q<rspec>, ["~> 1.3"])
68
+ s.add_dependency(%q<yard>, ["~> 0.5"])
69
+ end
70
+ end
71
+
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 10
8
8
  - 3
9
- version: 0.10.3
9
+ - 1
10
+ version: 0.10.3.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Tom Malone
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-06-18 00:00:00 -07:00
18
+ date: 2010-06-20 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -101,6 +102,7 @@ files:
101
102
  - rails_datamapper.gemspec
102
103
  - tasks/yard.rake
103
104
  - tasks/yardstick.rake
105
+ - tpitale-rails_datamapper.gemspec
104
106
  has_rdoc: true
105
107
  homepage: http://github.com/datamapper/dm-more/tree/master/tpitale-rails_datamapper
106
108
  licenses: []