str_to_bool 0.0.0 → 0.0.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/str_to_bool.rb +4 -0
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7159aeefb5d6e01f9a3d061ba81804e0f8e8832e
4
- data.tar.gz: c46fe66c140ba68f9bb2e66d1bd053646e18f9bc
3
+ metadata.gz: d2a0ef8ca575d4935092c88ed20b7db413c67d3a
4
+ data.tar.gz: dc7d89c53bf4e0e7216ef00ff1e5588d07dc3a23
5
5
  SHA512:
6
- metadata.gz: 8844084b44c09e630e0648c5b056daaa95ce5254b5fe235b0c9e20dae78c6015c340e1678764a387544a371f8b1dda25743122d1eb9127e4a790f0b5260af6c0
7
- data.tar.gz: 8269f727e58224e38e106f19ce86874eaed0ccad742e7d37283fff56ffc18b2d499656828d062563ba7c6b21ac96d319c8c7b467ae1470f2fde3a6f2468cc0d5
6
+ metadata.gz: 34f67762b1cf4bd168a0a94c3ced71cbe9e716082043568b6c9da43c4b812e38fe09eeca4868116177daaf20885570c2ad3f3b987481e73ac1576e721403ab4c
7
+ data.tar.gz: 8315dbbc0af7d4b4ca21e0096aa611ae842f6e9681340b2c9895825676ff9277f7f05a332acb662d9e5f06ab08b71495575c944afefce4706f3c5cfc589246d2
@@ -2,4 +2,8 @@ class String
2
2
  def to_bool
3
3
  self == "true" ? true : false
4
4
  end
5
+
6
+ def to_boolean
7
+ self == "true" ? true : false
8
+ end
5
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: str_to_bool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohan Chhalotre
@@ -10,7 +10,8 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2017-05-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A simple convert String to boolean type gem
13
+ description: 'A simple gem to convert a string to boolean , i.e. ''true''.to_bool,
14
+ ''false''.to_bool '
14
15
  email: mohan.chhalotre@clecotech.com
15
16
  executables: []
16
17
  extensions: []