simple_core_extensions 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.
- checksums.yaml +7 -0
- data/lib/simple_core_extensions.rb +18 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 765177dd96e1356ff534cea1c6c494c38f8f320d1123c920fdf8bb2f904fd9ca
|
4
|
+
data.tar.gz: ba94be0c55dd5db9e55c4412b5baf2c11032f18f6f17ee8f8fc5c61069035353
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 06e3370dc1ad25ca53792e55c90194c1bd16747b3476462cdf801255f7b879f7be52e7330f9d1bff6b6cf94631ac2e4f401abbced8a6d7b8db74a52727ad7b6e
|
7
|
+
data.tar.gz: 75c7e96f6a344abcf49e02f1b86316f9670055649cd5036c6df210ac7cd0747a1c1ae205b4598f78b42bb776e2c45112db6a76fe8bb34064edc87a0b6e97f54e
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class TrueClass
|
2
|
+
def to_yn(upcase: false)
|
3
|
+
upcase ? 'YES' : 'yes'
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
class FalseClass
|
8
|
+
def to_yn(upcase: false)
|
9
|
+
upcase ? 'NO' : 'no'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class String
|
14
|
+
def to_bool
|
15
|
+
return unless ['true', 'false'].include?(self)
|
16
|
+
self == 'true'
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simple_core_extensions
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Paul Dornfeld
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-08-23 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: simple core extensions
|
14
|
+
email:
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/simple_core_extensions.rb
|
20
|
+
homepage: http://rubygems.org/gems/simple_core_extensions
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.7.7
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Simple Core Extensions I use in my Ruby Apps
|
44
|
+
test_files: []
|