ds_string 0.0.3 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzU5Nzk0MTU1Y2ZiYzUyMGVmZGJjODgwODcwMWJmNzMxZTEyYTkzNA==
4
+ ZjA4MGI0ZjBiYmM5YjkxNTc4ZTFkN2NkOGE1ZmQ2ZTFkMmQ2ODdmZQ==
5
5
  data.tar.gz: !binary |-
6
- ZGJjMTVlMjQwNDI3MDJlZmZiMTU2YjgxNmFlMjg0NWM1MzJhMzAyOA==
6
+ ZDhjNTdjMGFlYjk5ZTA1ZWQyZGUxZWJhMDEwMzhkZWVkMWM2ZDVmNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZmRiYmYyZDcwYjNhNjcxY2JiNDQ4ZTJhYTRjZjQ2YjI1ODkzNmE2MWUxMzRk
10
- NjQ2ZTc3YTkxNDZjZWU5NWRhMWQyMmQ5MjVjNjgzODdkM2IxZjdmOGJiMTM2
11
- NjQ0NGM3MmVhYjgyM2EzZDM0Mjg3YzQyN2JlMjZlYTQ4ZGM4Yjc=
9
+ YzdkMmQ2NWFmYTY5OTU1ZGJiNjAyYmFhNjU0ODMxZGMyMmJmM2M3NWQyNTY1
10
+ NDMzNGMwYTVjNGZmNDM0OGY2ZGQwZGUwMTU0MWY4MTVmYTI1NGE3OTMwNDlh
11
+ OTQ3NWJkYzQ5Njg5OTNlYWUwMDAxYTRiZThlYjczNDJhNDFhOTM=
12
12
  data.tar.gz: !binary |-
13
- MDQ3MDNmNWEyMWYyMGUyYmViZTIwYjJiNDZiOWZmMDI1YWZiNTU5ODIxMThj
14
- Y2E2ZjZkNGQ5Y2M0N2E3N2M5OGZmMmVmZTQwODZkNmFiYTkwMzBkNGQxYWEy
15
- ZTc0ZGRlZTA5YWQxYmZhMjZiOTk1MDM1Njk5YzlmMzM0ZGM2MmI=
13
+ ZjYzMGMxNTBjODM1ZGYwMTEzNGJjOTUzZDkxYTVmZGYzMDM2NDRkODU4Y2M3
14
+ MTk2MTMxZGUyNDI1Nzk0MzQ4YjcwMmVjMjczZTcxNzJiZGY3NGIxMDQ3MDY4
15
+ OWI0ZjRlZjU5OGUzNmRjMWE4Y2MwZWNkNjdlOWYzZWQxMzFmMmI=
@@ -16,6 +16,8 @@ class String
16
16
  raise ArgumentError.new("invalid value for Boolean: \"#{self}\"")
17
17
  end
18
18
 
19
+ alias :to_b :to_bool
20
+
19
21
  # Extending a String class with method that repeat the string _n_ times.
20
22
  # *simple case:*
21
23
  # "a".times 2
@@ -45,4 +47,5 @@ class String
45
47
  "\n#{'+'.times 8}>\n#{self}#{'-'.times 8}>\n"
46
48
  end
47
49
 
50
+
48
51
  end
@@ -1,3 +1,3 @@
1
1
  module DsString
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -28,6 +28,9 @@ describe String do
28
28
 
29
29
  it { expect{ "xx".to_bool }.to raise_error }
30
30
 
31
+
32
+ it "should has #to_b alias for #to_bool" do "true".to_b.should be_true end
33
+
31
34
  end
32
35
 
33
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ds_string
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nardele Salomon
@@ -47,6 +47,6 @@ rubyforge_project:
47
47
  rubygems_version: 2.0.3
48
48
  signing_key:
49
49
  specification_version: 4
50
- summary: String extensions 0.0.3
50
+ summary: String extensions 0.0.4
51
51
  test_files:
52
52
  - spec/ds_string_spec.rb