Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed now the session store works also with dm-validations

  • Loading branch information...
commit 42f6e4b451e9bdcfba22ea3e7f58051cfb4df10e 1 parent 9c30c20
@mkristian authored
View
4 History.txt
@@ -1,3 +1,7 @@
+=== 0.3.2 / 2010-06-15
+
+* fixed now the session store works also with dm-validations
+
=== 0.3.1 / 2010-06-15
* maven did not handle the declared deps nicely, repush the gem with proper deps version
View
7 lib/rack_datamapper/session/abstract/store.rb
@@ -84,6 +84,7 @@ def set_session(env, sid, session_data, options)
elsif session.save
session.session_id
else
+ warn session.errors.inspect if session.errors.size > 0
false
end
ensure
@@ -101,16 +102,16 @@ def self.default_storage_name
property :session_id, String, :key => true
- property :data, Text, :required => true, :default => ::Base64.encode64(Marshal.dump({}))
+ property :raw_data, Text, :required => true, :default => ::Base64.encode64(Marshal.dump({})), :field => 'data'
property :updated_at, DateTime, :required => false, :index => true
def data=(data)
- attribute_set(:data, ::Base64.encode64(Marshal.dump(data)))
+ attribute_set(:raw_data, ::Base64.encode64(Marshal.dump(data)))
end
def data
- Marshal.load(::Base64.decode64(attribute_get(:data)))
+ Marshal.load(::Base64.decode64(attribute_get(:raw_data)))
end
end
end
View
2  lib/rack_datamapper/version.rb
@@ -1,5 +1,5 @@
module Rack
module DataMapper
- VERSION = '0.3.1'.freeze
+ VERSION = '0.3.2'.freeze
end
end
View
39 pom.xml
@@ -6,11 +6,18 @@
<modelVersion>4.0.0</modelVersion>
<groupId>rubygems</groupId>
<artifactId>rack-datamapper</artifactId>
- <version>0.3.0</version>
+ <version>0.3.2</version>
<packaging>gem</packaging>
<name><![CDATA[this collection of plugins helps to add datamapper functionality to Rack]]></name>
<description><![CDATA[this collection of plugins helps to add datamapper functionality to Rack. there is a IdentityMaps plugin which wrappes the request and with it all database actions are using that identity map. the transaction related plugin TransactionBoundaries and RestfulTransactions wrappes the request into a transaction. for using datamapper to store session data there is the DatamapperStore.]]></description>
<url>http://github.com/mkristian/rack_datamapper</url>
+ <developers>
+ <developer>
+ <id>m.kristian</id>
+ <name>mkristian</name>
+ <email>m.kristian@web.de</email>
+ </developer>
+ </developers>
<licenses>
<license>
<name>MIT-LICENSE</name>
@@ -18,14 +25,6 @@
<distribution>repo</distribution>
</license>
</licenses>
- <developers>
- <developer>
- <id>mkristian</id>
- <name>Kristian Meier</name>
- <email>m.kristian@web.de</email>
- <timezone>IST</timezone>
- </developer>
- </developers>
<dependencies>
<dependency>
<groupId>rubygems</groupId>
@@ -37,7 +36,7 @@
<dependency>
<groupId>rubygems</groupId>
<artifactId>rack</artifactId>
- <version>[1.0.0,1.99999.99999)</version>
+ <version>[1.0,1.99999.99999)</version>
<type>gem</type>
<scope>compile</scope>
</dependency>
@@ -75,7 +74,7 @@
<id>rubygems</id>
<url>http://gems.saumya.de/releases</url>
</repository>
- </repositories>
+ </repositories>
<pluginRepositories>
<pluginRepository>
<id>sonatype-nexus-snapshots</id>
@@ -88,7 +87,13 @@
<jruby.plugins.version>0.20.0-SNAPSHOT</jruby.plugins.version>
</properties>
<build>
- <plugins>
+ <plugins>
+ <plugin>
+ <groupId>de.saumya.mojo</groupId>
+ <artifactId>gem-maven-plugin</artifactId>
+ <version>${jruby.plugins.version}</version>
+ <extensions>true</extensions>
+ </plugin>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>rspec-maven-plugin</artifactId>
@@ -100,19 +105,13 @@
</executions>
</plugin>
<plugin>
- <groupId>de.saumya.mojo</groupId>
- <artifactId>gem-maven-plugin</artifactId>
- <version>${jruby.plugins.version}</version>
- <extensions>true</extensions>
- </plugin>
- <plugin>
<artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
+ <version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
- </plugin>
+ </plugin>
</plugins>
</build>
</project>
View
2  rack_datamapper.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{rack-datamapper}
- s.version = "0.3.1"
+ s.version = "0.3.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["mkristian"]
Please sign in to comment.
Something went wrong with that request. Please try again.