inn 0.0.4 → 0.0.5

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/inn.rb +1 -1
  3. data/lib/inn/version.rb +15 -0
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d778d596bc069e5578493a2724a410ba19e7a218
4
- data.tar.gz: 6082c1fa81275afdf4875432cbba8d6cc220ff6a
3
+ metadata.gz: aec43a1c5b98e44f40b7afb6f42635ae7b97c90b
4
+ data.tar.gz: 0f9591b39a835aebde14b07d57bc440d9d4f938a
5
5
  SHA512:
6
- metadata.gz: d692a0478bdc193303a53a33c70f56b4b5e038924003ccab5889b5c39e46a1de8774df9cd6328ab530e9f2bba5f2437c7fc841876850d40312e221a311a2e8c9
7
- data.tar.gz: 04990be52e244d7ca4f69b98cfc4a394e3c990a2e118d8fc7c9613e93012fda61759f4df2dd421882cf57c3a1019760e84eb92bb6c2c087598f9e11c6fe04570
6
+ metadata.gz: 0ada1d1f6ceb2bf87144cd584f7ad84da2338fe60f82a5a0c8fa3f0f005911981a16e1c668f2b71fc77c53b81e16315dedaef4ad87c4dda5e5331c4f37c171ca
7
+ data.tar.gz: b54b814c02fadfe50b1f4ad1d64ab4c15af9af07cad892250261b702c0737bcfc43b975b0534ffa77b269a1ed9e94074d278742f1585be0272c26d3a95e210b6
data/lib/inn.rb CHANGED
@@ -5,6 +5,6 @@
5
5
  class Object
6
6
  def in?(obj)
7
7
  raise NotImplementedError unless obj.respond_to? :include?
8
- obj.include?(self) if obj.respond_to? :include?
8
+ obj.include?(self)
9
9
  end
10
10
  end
@@ -0,0 +1,15 @@
1
+ module Inn
2
+ class Version
3
+ MAJOR = 0
4
+ MINOR = 0
5
+ PATCH = 5
6
+ PRE = nil
7
+
8
+ class << self
9
+ # @return [String]
10
+ def to_s
11
+ [MAJOR, MINOR, PATCH, PRE].compact.join('.')
12
+ end
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas E. Rogers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-14 00:00:00.000000000 Z
11
+ date: 2016-06-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Adds ability to see if an object is 'in' another object. Essentially
14
14
  an inverse of `.include?`.
@@ -18,6 +18,7 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/inn.rb
21
+ - lib/inn/version.rb
21
22
  homepage: http://rubygems.org/gems/inn
22
23
  licenses:
23
24
  - MIT