inflector_extension 0.0.5gem
Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
Inflector Extension
|
2
|
+
======
|
3
|
+
|
4
|
+
Usage
|
5
|
+
----
|
6
|
+
1. Reference it :: The extension classes are in the global namespace so you don't need any `usings` before they are available.
|
7
|
+
2. Use it :: `"string".InflectTo()` or `1.InflectTo()` or, for a real blast: `637849590678.InflectTo().Phrase`
|
8
|
+
|
9
|
+
See the [specs](http://github.com/brendanjerwin/inflector_extension/tree/master/inflector_extension/Specs/) for example usages.
|
10
|
+
|
11
|
+
------
|
12
|
+
|
13
|
+
_In case you are wondering, that big-ass number turns into:_ `"Six Hundred and Thirty Seven Billion, Eight Hundred and Forty Nine Million, Five Hundred and Ninety Thousand, Six Hundred and Seventy Eight"`
|
14
|
+
|
15
|
+
License
|
16
|
+
----
|
17
|
+
Copyright (c) 2010, Brendan Erwin and contributors.
|
18
|
+
All rights reserved.
|
19
|
+
|
20
|
+
Redistribution and use in source and binary forms, with or without
|
21
|
+
modification, are permitted provided that the following conditions are met:
|
22
|
+
|
23
|
+
* Redistributions of source code must retain the above copyright
|
24
|
+
notice, this list of conditions and the following disclaimer.
|
25
|
+
* Redistributions in binary form must reproduce the above copyright
|
26
|
+
notice, this list of conditions and the following disclaimer in the
|
27
|
+
documentation and/or other materials provided with the distribution.
|
28
|
+
* The names of its contributors may be used to endorse or promote products
|
29
|
+
derived from this software without specific prior written permission.
|
30
|
+
|
31
|
+
THIS SOFTWARE IS PROVIDED BY Brendan Erwin and contributors ''AS IS'' AND ANY
|
32
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
33
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
34
|
+
DISCLAIMED. IN NO EVENT SHALL Brendan Erwin or contributors BE LIABLE FOR ANY
|
35
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
36
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
37
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
38
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
39
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
40
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
41
|
+
|
42
|
+
Some Portions of this code (the best parts, right?) are copied from the [unHAddins project ](http://code.google.com/p/unhaddins/ "unhaddins - Project Hosting on Google Code"). The unmodified source I started with can be found in the `unhaddins.zip` archive under `external_source`.
|
43
|
+
|
44
|
+
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: inflector_extension
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: -743521735
|
5
|
+
prerelease: true
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 5gem
|
10
|
+
version: 0.0.5gem
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Brendan Erwin
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-08-27 00:00:00 -04:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: "Provides a nice set of extension methods offering tons of useful inflections of various types. Strings, Ints, Decimals, etc. For example: `37849590678.InflectTo().Phrase` outputs: Six Hundred and Thirty Seven Billion, Eight Hundred and Forty Nine Million, Five Hundred and Ninety Thousand, Six Hundred and Seventy Eight"
|
23
|
+
email:
|
24
|
+
- brendanjerwin@gmail.com
|
25
|
+
executables: []
|
26
|
+
|
27
|
+
extensions: []
|
28
|
+
|
29
|
+
extra_rdoc_files: []
|
30
|
+
|
31
|
+
files:
|
32
|
+
- external_source/unhaddins.zip
|
33
|
+
- inflector_extension/bin/Release/inflector_extension.dll
|
34
|
+
- README.markdown
|
35
|
+
has_rdoc: true
|
36
|
+
homepage: http://github.com/littlebits/inflector_extension/
|
37
|
+
licenses: []
|
38
|
+
|
39
|
+
post_install_message:
|
40
|
+
rdoc_options: []
|
41
|
+
|
42
|
+
require_paths:
|
43
|
+
- inflector_extension/bin/Release
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
hash: 3
|
50
|
+
segments:
|
51
|
+
- 0
|
52
|
+
version: "0"
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 17
|
59
|
+
segments:
|
60
|
+
- 1
|
61
|
+
- 3
|
62
|
+
- 5
|
63
|
+
version: 1.3.5
|
64
|
+
requirements: []
|
65
|
+
|
66
|
+
rubyforge_project:
|
67
|
+
rubygems_version: 1.3.7
|
68
|
+
signing_key:
|
69
|
+
specification_version: 3
|
70
|
+
summary: Extension Methods for Inflector in C#
|
71
|
+
test_files: []
|
72
|
+
|