flippy 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,14 +18,19 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
+ flippy add #flip and #unflip to String class.
22
+
21
23
  require 'flippy'
22
- String.send(:include, Flippy)
23
24
 
24
25
  flipped = "twitter".flip # => "ɹəʇʇᴉʍʇ"
25
26
  flipped.unflip # => "twitter"
26
27
  flipped_number = '1234567890'.flip # => "068L95ᔭεƧ⇂"
27
28
  flipped_number.unflip # => "1234567890"
28
29
 
30
+ It also add Kernel#stnd :)
31
+
32
+ stnd "twitter" # => "ɹəʇʇᴉʍʇ"
33
+
29
34
  Try on multi line string.
30
35
 
31
36
  code =<<CODE
data/lib/flippy.rb CHANGED
@@ -50,9 +50,15 @@ module Flippy
50
50
  end
51
51
  end
52
52
 
53
- if __FILE__ == $0
54
- String.send(:include, Flippy)
53
+ String.send(:include, Flippy)
55
54
 
55
+ module Kernel
56
+ def stnd(*args)
57
+ puts *args.map { |arg| "#{arg}".flip }
58
+ end
59
+ end
60
+
61
+ if __FILE__ == $0
56
62
  flipped = "twitter".flip # => "ɹəʇʇᴉʍʇ"
57
63
  flipped.unflip # => "twitter"
58
64
  flipped_number = '1234567890'.flip # => "068L95ᔭεƧ⇂"
@@ -1,3 +1,3 @@
1
1
  module Flippy
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flippy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-29 00:00:00.000000000 Z
12
+ date: 2013-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  version: '0'
65
65
  requirements: []
66
66
  rubyforge_project:
67
- rubygems_version: 1.8.23
67
+ rubygems_version: 1.8.25
68
68
  signing_key:
69
69
  specification_version: 3
70
70
  summary: Fippy makes a text upside down, like "twitter" to "ɹəʇʇᴉʍʇ".