rich_support 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -1
- data/README.textile +1 -0
- data/VERSION +1 -1
- data/lib/rich/support/actionpack/action_controller/test_case.rb +2 -1
- data/lib/rich/support/version.rb +1 -1
- metadata +5 -7
data/CHANGELOG.rdoc
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
= Rich-Support CHANGELOG
|
2
2
|
|
3
|
+
== Version 0.1.2 (May 15, 2011)
|
4
|
+
|
5
|
+
* Using Hash.key when running Ruby 1.9.2 (which solves deprecation warning)
|
6
|
+
|
3
7
|
== Version 0.1.1 (April 23, 2011)
|
4
8
|
|
5
|
-
Added String.singular? and String.plural?
|
9
|
+
* Added String.singular? and String.plural?
|
6
10
|
|
7
11
|
== Version 0.1.0 (April 13, 2011)
|
8
12
|
|
data/README.textile
CHANGED
@@ -67,6 +67,7 @@ Rich-Support adds a small amount of methods to the @String@ class:
|
|
67
67
|
* @String.copy_case@ - Copies the letter casing of a passed String (e.g. @"paul".copy_case("Engel")@ returns @"Paul"@ and @"CoDe".copy_case("HERO")@ returns @"CODE"@)
|
68
68
|
* @String.copy_case!@ - Only returns the case copied String when it has changed otherwise it returns a @nil@ value
|
69
69
|
* @String.singularize!@ and @String.pluralize!@ - Which (as you expected) only returns a String when it has changed otherwise a @nil@ value
|
70
|
+
* @String.singular?@ and @String.plural?@ - Assuming that the String is a verb, it returns whether it is singular / plural or not
|
70
71
|
|
71
72
|
h2. Developing Rich-Support yourself
|
72
73
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
@@ -14,8 +14,9 @@ module ActionController
|
|
14
14
|
[route.name, route.path.gsub("(.:format)", "")] unless route.name.blank?
|
15
15
|
end
|
16
16
|
else
|
17
|
+
method = ActionController::Routing::Routes.named_routes.routes.respond_to?(:key) ? :key : :index
|
17
18
|
ActionController::Routing::Routes.routes.collect do |route|
|
18
|
-
name = ActionController::Routing::Routes.named_routes.routes.
|
19
|
+
name = ActionController::Routing::Routes.named_routes.routes.send(method, route).to_s
|
19
20
|
path = route.segments.collect(&:to_s).join
|
20
21
|
path.chop! if path.length > 1
|
21
22
|
[name, path] unless name.blank?
|
data/lib/rich/support/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rich_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Engel
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-05-15 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: Rich-Support is a small module of E9s (http://github.com/archan937/e9s) making your own gem Rails 2 and 3 compliant. It also adds a small amount of handy methods to the String class.
|
@@ -151,7 +150,6 @@ files:
|
|
151
150
|
- suit/templates/shared/config/database.yml
|
152
151
|
- suit/templates/shared/config/initializers/.gitkeep
|
153
152
|
- suit/templates/shared/db/schema.rb
|
154
|
-
has_rdoc: true
|
155
153
|
homepage: https://github.com/archan937/rich_support
|
156
154
|
licenses: []
|
157
155
|
|
@@ -181,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
179
|
requirements: []
|
182
180
|
|
183
181
|
rubyforge_project: rich_support
|
184
|
-
rubygems_version: 1.
|
182
|
+
rubygems_version: 1.7.2
|
185
183
|
signing_key:
|
186
184
|
specification_version: 3
|
187
185
|
summary: A small gem making your own gem Rails 2 and 3 compliant and providing the String class a few goodies
|