finishing_moves 0.7 → 0.8

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: f2c6e4670bf1a9e377d73ab245a84e26c8ecff3f
4
- data.tar.gz: 019d4bf4fa0b5ed8877ea072e761554a78d6f28b
3
+ metadata.gz: 663ea844d4ce703ad30d1b688a8db8bec1a14f1f
4
+ data.tar.gz: c04a4507343e7386f3c151c3a38771200ef125e8
5
5
  SHA512:
6
- metadata.gz: 17e6414b9e771af698ae0273641eda9ab7b469252324fe4549b4806a3baafa3ccb7dbd97686eaa2a55c69fd97a2bebfeae7a47eaa5ce2c3265c7730c5610e4b5
7
- data.tar.gz: ed6bbc3cf2ce0140c8da03e261b61e33ea4c2d7738244ca3a0d0163f5adeddcb131cb92b9d452149a56394d712a87e4af90259e6f7ee8d7ba0779543927284f7
6
+ metadata.gz: 13fa03324b6935da4d7050cc617508950f41a7df961c61612aa98cf78362d8c5bbd295b2c5e1e08ee4622379c1f1e69f6f5f144a730b1f4a0ad43c421e993ff9
7
+ data.tar.gz: b9fc9b0b62ac7857f5007715cae814a7f6f03f2f492a25286e7a5d2d23993228b2e6f4dfe6417a981919bfb45eac2a9a6641490a00dbe8023f9ae4082810108c
data/README.md CHANGED
@@ -47,9 +47,10 @@ Tested against **`2.0.0` and above**. Probably works in `1.9.3`.
47
47
  - [`Object#same_as`](https://github.com/forgecrafted/finishing_moves/wiki/Object#objectsame_as)
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
+ - [`Object#is_not_a?`](https://github.com/forgecrafted/finishing_moves/wiki/Object#objectis_not_a)
50
51
  - [`String#dedupe`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringdedupe)
51
52
  - [`String#keyify`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringkeyify)
52
- - [`String#slugify`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringslugify) *<-- new in 0.6.0!*
53
+ - [`String#slugify`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringslugify)
53
54
  - [`String#match?`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringmatch)
54
55
  - [`String#nl2br`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringnl2br)
55
56
  - [`String#remove_whitespace`](https://github.com/forgecrafted/finishing_moves/wiki/String#stringremove_whitespace)
@@ -29,5 +29,5 @@ end
29
29
  class NilClass
30
30
  def to_bool; false; end
31
31
  def to_i; 0; end
32
- def to_sym; :nil; end
32
+ def to_sym; nil; end
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module FinishingMoves
2
- VERSION = "0.7"
2
+ VERSION = "0.8"
3
3
  end
data/spec/object_spec.rb CHANGED
@@ -24,17 +24,17 @@ describe Object do
24
24
  end
25
25
 
26
26
  it "#is_an?" do
27
- a = Array
28
- expect(a.is_an?(Array)).to be_true
29
- expect(a.is_an?(Hash)).to be_false
27
+ a = [1,2,3]
28
+ expect(a.is_an?(Array)).to eq true
29
+ expect(a.is_an?(Hash)).to eq false
30
30
  end
31
31
 
32
32
  it "#is_not_a?" do
33
- a = Array
34
- expect(a.is_not_a?(Array)).to be_false
35
- expect(a.is_not_a?(Hash)).to be_true
36
- expect(a.is_not_an?(Array)).to be_false
37
- expect(a.is_not_an?(Hash)).to be_true
33
+ a = [1,2,3]
34
+ expect(a.is_not_a?(Array)).to eq false
35
+ expect(a.is_not_a?(Hash)).to eq true
36
+ expect(a.is_not_an?(Array)).to eq false
37
+ expect(a.is_not_an?(Hash)).to eq true
38
38
  end
39
39
 
40
40
  end
data/spec/symbol_spec.rb CHANGED
@@ -5,7 +5,6 @@ describe Symbol do
5
5
  it "unary respond_to" do
6
6
  a_thing = TestThing.new 'foo bar'
7
7
  expect(a_thing).to eq 'foo bar'
8
- expect
9
8
  end
10
9
 
11
10
  end
data/spec/to_bool_spec.rb CHANGED
@@ -62,7 +62,7 @@ describe "Boolean typecasting" do
62
62
  expect(nil.to_i).to eq 0
63
63
  end
64
64
  it "#to_sym" do
65
- expect(nil.to_sym).to eq :nil
65
+ expect(nil.to_sym).to eq nil
66
66
  end
67
67
  end
68
68
 
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.7'
4
+ version: '0.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Koehl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-02 00:00:00.000000000 Z
12
+ date: 2016-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb-readline