rid-core 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.1
1
+ 1.5.2
data/lib/rid.rb CHANGED
@@ -6,6 +6,7 @@ require 'commander/import'
6
6
  require 'filander'
7
7
  require 'active_support/inflector'
8
8
  require 'json'
9
+ require 'cgi'
9
10
  require 'rest_client'
10
11
 
11
12
  require 'rid/core_ext/hash'
@@ -39,7 +39,7 @@ module Rid
39
39
  # Base URL for design document
40
40
  #
41
41
  def base_url(doc)
42
- File.join(@name, doc.id)
42
+ File.join(@name, CGI.escape(doc.id))
43
43
  end
44
44
 
45
45
  # URL for accessing document
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rid-core}
8
- s.version = "1.5.1"
8
+ s.version = "1.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Johannes J. Schmidt"]
12
- s.date = %q{2010-11-23}
12
+ s.date = %q{2011-03-07}
13
13
  s.default_executable = %q{rid}
14
14
  s.description = %q{Rid is a toolkit to relax in web development. Based on CouchDB you get a distributed, high scaling web application infrastructure with Rid. This is the Rid core.}
15
15
  s.email = %q{schmidt@netzmerk.com}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rid-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 1
10
- version: 1.5.1
9
+ - 2
10
+ version: 1.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Johannes J. Schmidt
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-23 00:00:00 +01:00
18
+ date: 2011-03-07 00:00:00 +01:00
19
19
  default_executable: rid
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency