ben_string 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ben_string Changelog
2
2
 
3
+ ### 1.1.0 / 2010-11-17
4
+
5
+ * clean up formatting (John Barnette)
6
+ * add explicit method visibility (Yossef Mendelssohn)
7
+ * add BenString#to_ben_s (Leigh Caplan)
8
+
3
9
  ### 1.0.1 / 2010-11-16
4
10
 
5
11
  * Fixed license
data/README.md CHANGED
@@ -18,6 +18,16 @@ Awesomeness.
18
18
 
19
19
  $ [sudo] gem install ben_string
20
20
 
21
+ ## CONTRIBUTORS:
22
+
23
+ * [John Barnette][jbarnette]
24
+ * [Leigh Caplan][texel]
25
+ * [Yossef Mendelssohn][ymendel]
26
+
27
+ [jbarnette]: http://github.com/jbarnette
28
+ [ymendel]: http://github.com/ymendel
29
+ [texel]: http://github.com/texel
30
+
21
31
  ## LICENSE:
22
32
 
23
33
  (The WTFPL)
data/lib/ben_string.rb CHANGED
@@ -1,7 +1,14 @@
1
1
  class BenString < String
2
- VERSION = '1.0.1'
2
+ VERSION = '1.1.0'
3
+
4
+ public
5
+
6
+ def to_bool()
7
+ !!self
8
+ end
9
+
10
+ def to_ben_s()
11
+ return self
12
+ end
3
13
 
4
- def to_bool
5
- !!self
6
- end
7
14
  end
@@ -6,4 +6,9 @@ class TestBenString < Test::Unit::TestCase
6
6
  str = BenString.new
7
7
  assert str.to_bool
8
8
  end
9
+
10
+ def test_to_ben_s
11
+ str = BenString.new
12
+ assert_equal str, str.to_ben_s
13
+ end
9
14
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ben_string
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 0
9
8
  - 1
10
- version: 1.0.1
9
+ - 0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Bleything
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-16 00:00:00 -08:00
18
+ date: 2010-11-17 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -45,9 +45,9 @@ dependencies:
45
45
  hash: 19
46
46
  segments:
47
47
  - 2
48
- - 7
49
- - 0
50
- version: 2.7.0
48
+ - 6
49
+ - 2
50
+ version: 2.6.2
51
51
  type: :development
52
52
  version_requirements: *id002
53
53
  description: It's my special string.