speaking_url 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,3 +1,11 @@
1
+ = NOTE
2
+
3
+ This gem is deprecated in favor of the new Rewritten gem. It's better to
4
+ make use of the new gem because being Rack based it decouples URLs from
5
+ your App: no need alter routing, models, controllers and views as with
6
+ the SpeakingURL gem here.
7
+
8
+
1
9
  = Speaking URL
2
10
 
3
11
  The Speaking URL Gem provides an extension for the <tt>routes.rb</tt> file of
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'bundler'
2
2
  require 'rake/testtask'
3
- require 'rake/rdoctask'
3
+ require 'rdoc/task'
4
4
 
5
5
  desc 'Default: run all tests'
6
6
  task :default => :test
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  class String
2
3
 
3
4
  alias_method :original_downcase, :downcase
@@ -22,7 +23,7 @@ class String
22
23
  end
23
24
 
24
25
  # Replaces all white space and special characters of a String with dashes, to make
25
- # it a valid url segment:
26
+ # it a valid url segment:
26
27
  #
27
28
  # "** Dr. Jekyll and Mr. Hyde ++" # => "Dr-Jekyll-and-Mr-Hyde"
28
29
  def urlify
@@ -1,4 +1,4 @@
1
1
  module SpeakingUrl
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
4
4
 
@@ -1,4 +1,4 @@
1
-
1
+ # encoding: UTF-8
2
2
  require 'test_helper'
3
3
 
4
4
  class StringExtUrlify < Test::Unit::TestCase
data/test/routing_test.rb CHANGED
@@ -45,7 +45,8 @@ class RoutesConfigurationTest < ActionController::TestCase
45
45
  test "controller specification" do
46
46
 
47
47
  with_routing do |set|
48
- set.draw do |map|
48
+
49
+ set.draw do
49
50
  speaking_url_resource :article, :controller => 'nested/articles'
50
51
  end
51
52
 
@@ -53,7 +54,7 @@ class RoutesConfigurationTest < ActionController::TestCase
53
54
  a = Article.new
54
55
  a.add_mapping("/foo/bar")
55
56
 
56
- assert_recognizes({:controller => 'nested/articles', :action => 'show', :path => "foo/bar"}, {:path => '/foo/bar'})
57
+ assert_recognizes({:controller => 'nested/articles', :action => 'show', :path => 'foo/bar'}, 'foo/bar')
57
58
 
58
59
  end
59
60
 
metadata CHANGED
@@ -1,61 +1,55 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: speaking_url
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Kai Rubarth
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-29 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-01-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rails
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: mongoid
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: mongoid
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
47
38
  type: :runtime
48
- version_requirements: *id002
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
49
46
  description: Provides the possibility to have arbitrary URL for resources.
50
- email:
47
+ email:
51
48
  - kai@doxter.de
52
49
  executables: []
53
-
54
50
  extensions: []
55
-
56
51
  extra_rdoc_files: []
57
-
58
- files:
52
+ files:
59
53
  - .gitignore
60
54
  - Gemfile
61
55
  - README.rdoc
@@ -104,39 +98,29 @@ files:
104
98
  - test/dummy/script/rails
105
99
  - test/routing_test.rb
106
100
  - test/test_helper.rb
107
- has_rdoc: true
108
- homepage: ""
101
+ homepage: ''
109
102
  licenses: []
110
-
111
103
  post_install_message:
112
104
  rdoc_options: []
113
-
114
- require_paths:
105
+ require_paths:
115
106
  - lib
116
- required_ruby_version: !ruby/object:Gem::Requirement
107
+ required_ruby_version: !ruby/object:Gem::Requirement
117
108
  none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- hash: 3
122
- segments:
123
- - 0
124
- version: "0"
125
- required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
114
  none: false
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- hash: 3
131
- segments:
132
- - 0
133
- version: "0"
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
134
119
  requirements: []
135
-
136
120
  rubyforge_project: speaking_url
137
- rubygems_version: 1.6.2
121
+ rubygems_version: 1.8.23
138
122
  signing_key:
139
123
  specification_version: 3
140
- summary: allows arbitrary url for resources and facilitates seo-friendly changing of urls.
124
+ summary: allows arbitrary url for resources and facilitates seo-friendly changing
125
+ of urls.
141
126
  test_files: []
142
-