finishing_moves 0.10 → 0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fa39013ba6ec17c497a103c1f3da47fe3430254
4
- data.tar.gz: 303ecf554a58c32cd118763113866203b6994abe
3
+ metadata.gz: f74f4a4c7b4b535c98038c2d33949eb85b2ca1c1
4
+ data.tar.gz: da8d8af1fc1b5cc8762ea974fa0c119a8e265dac
5
5
  SHA512:
6
- metadata.gz: f1e1f5cf13031d01880e3291ddf69c3ed3d7f1a92488f2176f056e7f8eed987f099894fd8b25b494c579d43dfab338df8410e7f25cb446ac3ff4172c03d073ce
7
- data.tar.gz: 450954afe04c6e6db894c12a46d441fdcceb67b1e2252977e0b43d2018c1a753deab7128576ed6ef90629666c70942309401cb6bcfd4da25050603776fe2b2d0
6
+ metadata.gz: 940384f56f1b26edf018f37d04e9569ad9867b9ff2f5c0a97d7ad35c1dfa096e607c45d7d25812cd42db140f1c9bbd693ec28763d9befc034ab9c7fbfbeb4b8c
7
+ data.tar.gz: ced413a9fc843b3a2c047a20ebdba6eccdab758659ab98b31637ec33b1bc298db5a1d6af2e5535ceccf60840dce9ccc3c90ec7891e004c8b0e84d26fe559fbe8
data/README.md CHANGED
@@ -48,6 +48,9 @@ Tested against **`2.0.0` and above**. Probably works in `1.9.3`.
48
48
  - [`Object#not_nil?`](https://github.com/forgecrafted/finishing_moves/wiki/Object#objectnot_nil)
49
49
  - [`Object#is_an?`](https://github.com/forgecrafted/finishing_moves/wiki/Object#objectis_an)
50
50
  - [`Object#is_not_a?`](https://github.com/forgecrafted/finishing_moves/wiki/Object#objectis_not_a)
51
+ - [`Object#true?`](https://github.com/forgecrafted/finishing_moves/wiki/Object#objecttruefalsebool)
52
+ - [`Object#false?`](https://github.com/forgecrafted/finishing_moves/wiki/Object#objecttruefalsebool)
53
+ - [`Object#bool?`](https://github.com/forgecrafted/finishing_moves/wiki/Object#objecttruefalsebool)
51
54
  - [`String#dedupe`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringdedupe)
52
55
  - [`String#keyify`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringkeyify)
53
56
  - [`String#slugify`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringslugify)
@@ -0,0 +1,17 @@
1
+ class Symbol
2
+
3
+ # TODO
4
+ # Credit: http://thingsinabucket.com/2015/07/01/three_little_hacks/
5
+ def ~@
6
+ -> (o) { o.respond_to?(self) }
7
+ end
8
+
9
+ def keyify
10
+ to_s.keyify
11
+ end
12
+
13
+ def slugify
14
+ to_s.slugify
15
+ end
16
+
17
+ end
@@ -1,3 +1,3 @@
1
1
  module FinishingMoves
2
- VERSION = "0.10"
2
+ VERSION = "0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finishing_moves
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.10'
4
+ version: '0.11'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Koehl
@@ -122,6 +122,7 @@ files:
122
122
  - lib/finishing_moves/numeric.rb
123
123
  - lib/finishing_moves/object.rb
124
124
  - lib/finishing_moves/string.rb
125
+ - lib/finishing_moves/symbol.rb
125
126
  - lib/finishing_moves/to_bool.rb
126
127
  - lib/finishing_moves/version.rb
127
128
  - provision.sh