izzy 1.1.0 → 2.0.0

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: d409324bf13472589d93245426c13935e5a414ec
4
- data.tar.gz: 54afefd23a8a6bf6fdc5d5bb95060255038b2fed
3
+ metadata.gz: 15f63a3badafd8b244b5291f78a022dfe0909e68
4
+ data.tar.gz: 71b2c459e4d9dc6b8632599f114c0ab62e041582
5
5
  SHA512:
6
- metadata.gz: 48a23c6a6ccc82003e5b4633b1cc6b5f0d802bb5c8fc123eb85ce2591597764f9c2b0de482ddbb6cdfa002a6cad47ad7e144717b63f5022f08b5ae6a75084cdf
7
- data.tar.gz: 46ff3fc60270dc12790b088d8f9dd97c5e4dea81c8411dc5a58a6e655c0e4aedb35bb53f49b886b8584e7511b11b620d77e0af7391080b68019dfaa29c93480d
6
+ metadata.gz: 5792a86f7285ad9af9dc4b3651a17c65259d441b490afcd3c0f0545a8e6a822b7382011e52e43d8e78de70816b048bc07126863a45f5449eb6632b1258220e6e
7
+ data.tar.gz: 08b6ed176a63fe82c4c877d5392bb96db7eaad36d48bec454f766e2a6ff59cb46aa7f6ae52ce280675455844f8c93cc534e9e4cb4e14c0bbd87f854cbb56be00
data/lib/izzy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Izzy
2
- VERSION = '1.1.0'
2
+ VERSION = '2.0.0'
3
3
  end
data/lib/izzy.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'izzy/version'
2
2
 
3
- class Object
3
+ module Izzy
4
4
  def all_of?(*methods)
5
5
  methods.all? { |method| (m = "#{method}?".to_sym) && self.respond_to?(m) && self.send(m) }
6
6
  end
data/spec/izzy_spec.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  class Person
4
+ include Izzy
5
+
4
6
  def initialize(name, age, sex)
5
7
  @name = name
6
8
  @age = age
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: izzy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Weaver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-26 00:00:00.000000000 Z
11
+ date: 2014-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.1.10
95
+ rubygems_version: 2.2.1
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Gives you methods to mitigate long conditionals