flippy 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/flippy +2 -2
- data/flippy.gemspec +1 -1
- data/lib/flippy/version.rb +1 -1
- data/lib/flippy/vertical.rb +2 -2
- data/spec/vertical_spec.rb +4 -4
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd4ee5cc83cd5fb4b098d4933e331305f09721d1
|
4
|
+
data.tar.gz: d952d0015e877b4ba83ea9963e41a9b3c7214a9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 593f167ce2be63a64a771c592e96e512ff27b7f6649989f035d77fdbf563b9353d3373790fd788b323d6620dde97e6a6c957dcbe7e81d10782f20ff29d4ef9b1
|
7
|
+
data.tar.gz: 32e27c9e41862179fb33cc55d18278397f2fce37172211f64e59e42c9154bf0bcea7c9afdd734c0667bd1f79d9adf1372a191e542535849ceccd21180ecf2dab
|
data/bin/flippy
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# encoding: UTF-8
|
3
3
|
|
4
4
|
require_relative '../lib/flippy'
|
5
|
-
require "
|
5
|
+
require "optimist"
|
6
6
|
|
7
7
|
class String
|
8
8
|
include Flippy
|
@@ -14,7 +14,7 @@ end
|
|
14
14
|
|
15
15
|
class OptionParser
|
16
16
|
def self.parse!
|
17
|
-
|
17
|
+
Optimist::options do
|
18
18
|
version "flippy #{Flippy::VERSION} (c) 2013 kyoendo"
|
19
19
|
banner ~<<-EOS
|
20
20
|
Fippy makes a text upside down, like "twitter" to "ɹəʇʇᴉʍʇ".
|
data/flippy.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
gem.required_ruby_version = '>=1.9.3'
|
20
|
-
gem.add_dependency '
|
20
|
+
gem.add_dependency 'optimist'
|
21
21
|
gem.add_dependency 'ruby-termios'
|
22
22
|
gem.add_development_dependency 'rspec'
|
23
23
|
end
|
data/lib/flippy/version.rb
CHANGED
data/lib/flippy/vertical.rb
CHANGED
@@ -12,9 +12,9 @@ module Flippy::Vertical
|
|
12
12
|
# "Hi\nFo".vertical => "F H "
|
13
13
|
# "o i "
|
14
14
|
#
|
15
|
-
# Last part after "
|
15
|
+
# Last part after "++" symbol is taken as a normal writing part.
|
16
16
|
#
|
17
|
-
# "Hi\nFo
|
17
|
+
# "Hi\nFo++by me".vertical => "F H "
|
18
18
|
# "o i by me"
|
19
19
|
#
|
20
20
|
def vertical
|
data/spec/vertical_spec.rb
CHANGED
@@ -40,7 +40,7 @@ EOS
|
|
40
40
|
end
|
41
41
|
|
42
42
|
context "vertical horizontal mix string" do
|
43
|
-
subject { "
|
43
|
+
subject { "ニッポンの++自然".vertical }
|
44
44
|
it { should eq <<-EOS.chomp }
|
45
45
|
ニ
|
46
46
|
ッ
|
@@ -51,15 +51,15 @@ EOS
|
|
51
51
|
end
|
52
52
|
|
53
53
|
context "vertical horizontal mix string" do
|
54
|
-
subject { "
|
54
|
+
subject { "ニッポンの++自然++大切に。".vertical }
|
55
55
|
it { should eq <<-EOS.chomp }
|
56
56
|
ニ
|
57
57
|
ッ
|
58
58
|
ポ
|
59
59
|
ン
|
60
60
|
の
|
61
|
-
|
62
|
-
|
61
|
+
+
|
62
|
+
+
|
63
63
|
自
|
64
64
|
然大切に。
|
65
65
|
EOS
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flippy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyoendo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: optimist
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-termios
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: Fippy makes a text upside down, like "twitter" to "ɹəʇʇᴉʍʇ".
|
@@ -60,7 +60,7 @@ executables:
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
- .gitignore
|
63
|
+
- ".gitignore"
|
64
64
|
- Gemfile
|
65
65
|
- History.txt
|
66
66
|
- LICENSE.txt
|
@@ -84,17 +84,17 @@ require_paths:
|
|
84
84
|
- lib
|
85
85
|
required_ruby_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 1.9.3
|
90
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- -
|
92
|
+
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.6.13
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Fippy makes a text upside down, like "twitter" to "ɹəʇʇᴉʍʇ".
|