tuturu 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19a8813b7b40808176978d9eb0c4578e0136a7ee
4
- data.tar.gz: e84834ed6fb75b58307a80775bd02ba06bfdee97
3
+ metadata.gz: c6d2cff93eeb815e7fe0cbd9eeb3ed46d41d3bd6
4
+ data.tar.gz: 202c9aa7cba1430b21a15a382792104b63332fb8
5
5
  SHA512:
6
- metadata.gz: 51dda54192faf29c6f81c772f8f0834eb89ed73dc3b4fd0fd09dfef4a213761cec315bc1516d1c4c1b3361e8105761797bdeccad182190d56f0c8d1bc2e4120a
7
- data.tar.gz: 6c268b9762e5c3e754ee3c7f1013557ba507fdcfc1daad2bfa60995c3e38f89064689502cf2d7cc1a7096f4a4190dcbee224e243b9126cc1fdbc3e4112c18660
6
+ metadata.gz: 118d66a52e20d1dd867792171ee449490bdf20579ceabaa3144265410af5ac83b9ac749223f8be2f398af7db6caaf1ee438525c2c75958186ca087097e269f7c
7
+ data.tar.gz: 142802fd8237747f7bc6a19c9d943dd2441b0700b09774ad373a28f179ea4ec176a0eeafc26e147ed702765519688739931746c4b768df860da6ff269b49c480
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Tuturu
2
2
 
3
- > Tuturuuuu <br/>
3
+ > Tuturuuuu~♪ <br/>
4
4
  > -- Mayuri Shiina / Steins;Gate
5
5
 
6
- Cast any object ~~to true~~ **tuturu** !
6
+ Cast everything ~~to true~~ **tuturu**!
7
7
 
8
8
  ## Requirements
9
- + Ruby 1.9.1+
9
+ + Ruby 1.9.3+
10
10
 
11
11
  ## Installation
12
12
 
@@ -30,16 +30,19 @@ Or install it yourself as:
30
30
  true.tuturu #=> true
31
31
  false.tuturu #=> true
32
32
  nil.tuturu #=> true
33
+ 'Mayushi'.tuturu #=> true
33
34
  Object.new.tuturu #=> true
34
35
 
35
36
  true.to_true #=> true
36
37
  false.to_true #=> true
37
38
  nil.to_true #=> true
39
+ 'Mayushi'.to_true #=> true
38
40
  Object.new.to_true #=> true
39
41
 
40
42
  Tuturu(true) #=> true
41
43
  Tuturu(false) #=> true
42
44
  Tuturu(nil) #=> true
45
+ Tuturu('Mayushi') #=> true
43
46
  Tuturu(Object.new) #=> true
44
47
  ```
45
48
 
@@ -54,3 +57,4 @@ This gem is heavily inspired by [ToNil](https://github.com/mrThe/to_nil).
54
57
  3. Commit your changes (`git commit -am 'Add some feature'`)
55
58
  4. Push to the branch (`git push origin my-new-feature`)
56
59
  5. Create a new Pull Request
60
+ 6. El Psy Congroo...
data/lib/tuturu.rb CHANGED
@@ -10,11 +10,11 @@ module Tuturu
10
10
  end
11
11
  end
12
12
 
13
- class BasicObject
14
- include(::Tuturu::Extension)
15
- end
13
+ BasicObject.include(::Tuturu::Extension)
16
14
 
17
15
  module Kernel
16
+ private
17
+
18
18
  def Tuturu(_)
19
19
  tuturu
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Tuturu
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tuturu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinpei Noda