ben_string 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # ben_string Changelog
2
+
3
+ ### 1.0.0 / 2010-11-16
4
+
5
+ * Project Created
data/Manifest.txt ADDED
@@ -0,0 +1,6 @@
1
+ CHANGELOG.md
2
+ Manifest.txt
3
+ README.md
4
+ Rakefile
5
+ lib/ben_string.rb
6
+ test/test_ben_string.rb
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # ben_string
2
+
3
+ * http://github.com/bleything/ben_string
4
+
5
+ ## DESCRIPTION:
6
+
7
+ It's my special string.
8
+
9
+ ## FEATURES:
10
+
11
+ * Stringy!
12
+
13
+ ## REQUIREMENTS:
14
+
15
+ Awesomeness.
16
+
17
+ ## INSTALL:
18
+
19
+ $ [sudo] gem install ben_string
20
+
21
+ ## LICENSE:
22
+
23
+ (The WTFPL)
24
+
25
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
26
+ Version 2, December 2004
27
+
28
+ Copyright (C) 2010 Ben Bleything <ben@bleything.net
29
+
30
+ Everyone is permitted to copy and distribute verbatim or modified copies
31
+ of this license document, and changing it is allowed as long as the name
32
+ is changed.
33
+
34
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR
35
+ COPYING, DISTRIBUTION AND MODIFICATION
36
+
37
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'hoe'
3
+
4
+ Hoe.spec 'ben_string' do
5
+ developer 'Ben Bleything', 'ben@bleything.net'
6
+
7
+ ### Use markdown for changelog and readme
8
+ self.history_file = 'CHANGELOG.md'
9
+ self.readme_file = 'README.md'
10
+ end
data/lib/ben_string.rb ADDED
@@ -0,0 +1,7 @@
1
+ class BenString < String
2
+ VERSION = '1.0.0'
3
+
4
+ def to_bool
5
+ !!self
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ require "test/unit"
2
+ require "ben_string"
3
+
4
+ class TestBenString < Test::Unit::TestCase
5
+ def test_to_bool
6
+ str = BenString.new
7
+ assert str.to_bool
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ben_string
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Ben Bleything
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-11-16 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rubyforge
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 7
30
+ segments:
31
+ - 2
32
+ - 0
33
+ - 4
34
+ version: 2.0.4
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: hoe
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 19
46
+ segments:
47
+ - 2
48
+ - 7
49
+ - 0
50
+ version: 2.7.0
51
+ type: :development
52
+ version_requirements: *id002
53
+ description: It's my special string.
54
+ email:
55
+ - ben@bleything.net
56
+ executables: []
57
+
58
+ extensions: []
59
+
60
+ extra_rdoc_files:
61
+ - Manifest.txt
62
+ files:
63
+ - CHANGELOG.md
64
+ - Manifest.txt
65
+ - README.md
66
+ - Rakefile
67
+ - lib/ben_string.rb
68
+ - test/test_ben_string.rb
69
+ has_rdoc: true
70
+ homepage: http://github.com/bleything/ben_string
71
+ licenses: []
72
+
73
+ post_install_message:
74
+ rdoc_options:
75
+ - --main
76
+ - README.md
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 3
85
+ segments:
86
+ - 0
87
+ version: "0"
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ hash: 3
94
+ segments:
95
+ - 0
96
+ version: "0"
97
+ requirements: []
98
+
99
+ rubyforge_project: ben_string
100
+ rubygems_version: 1.3.7
101
+ signing_key:
102
+ specification_version: 3
103
+ summary: It's my special string.
104
+ test_files:
105
+ - test/test_ben_string.rb