terminal-table-unicode 0.1.2 → 0.1.3

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: 85dffa2fb12bbba3b8efdceea67ec82776aa3af6
4
- data.tar.gz: 7cd63232652fac37666a5605c4af76970407de5a
3
+ metadata.gz: de5f3461f1be914105ad8767bbecd4035dc317cd
4
+ data.tar.gz: 7421f95be1fa17decb6cc25abefde9169dcd4574
5
5
  SHA512:
6
- metadata.gz: 9dbc0ba8e48d9bb0e3343b220fd737a68f2d45d2f5a3cde20ee12ecd231da3fc30fb24a78eb144cfb42fb89ac31ead04e86ea3dc2b1b52204f06f3340e39cc8e
7
- data.tar.gz: 5009fe1aaa42ff693228fa0c1bdd99941508802f87912572609c104909965064afd4159249aabcba66d381e8a5116dd7b599f9fc9cdbd4e31e7c2918655837c1
6
+ metadata.gz: 185e859788cf42c97333e61cc6590ca30909613fdfd75e709dfc1a7d03d766b3c2cc126b1fdb7d47aa9234f38dfe89707ba7808d64f97594aa3e0c326feb832a
7
+ data.tar.gz: bd22a8a3f2132c2830101a051f46781c89c9d39468a0f4ed5b5d66ede3e77e2577863870e6a7d3d0be3f32f9817ff6c6a2de940acc955500a340c1975aca84f6
@@ -1,4 +1,3 @@
1
-
2
1
  module Terminal
3
2
  class Table
4
3
  private
@@ -24,6 +23,5 @@ module Terminal
24
23
  end
25
24
  end
26
25
  end
27
-
28
26
  end
29
27
  end
@@ -1,7 +1,7 @@
1
1
  module Terminal
2
2
  class Table
3
3
  module Unicode
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
6
6
  end
7
7
  end
@@ -19,8 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
21
21
 
22
+ spec.add_dependency 'mb_string', '~> 0.1.1'
22
23
  spec.add_dependency 'terminal-table', '~> 1.5'
23
- spec.add_dependency 'unicode-display_width', '~> 0.1.1'
24
+ spec.add_dependency 'unicode-display_width', '~> 0.2.0'
24
25
 
25
26
  spec.add_development_dependency 'bundler', '~> 1.10'
26
27
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal-table-unicode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rochefort
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-03 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mb_string
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.1
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: terminal-table
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -30,14 +44,14 @@ dependencies:
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 0.1.1
47
+ version: 0.2.0
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 0.1.1
54
+ version: 0.2.0
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -85,7 +99,6 @@ files:
85
99
  - lib/terminal/table/cell.rb
86
100
  - lib/terminal/table/table.rb
87
101
  - lib/terminal/table/unicode.rb
88
- - lib/terminal/table/unicode/ext/string.rb
89
102
  - lib/terminal/table/unicode/version.rb
90
103
  - terminal-table-unicode.gemspec
91
104
  homepage: https://github.com/rochefort/terminal-table-unicode
@@ -108,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
121
  version: '0'
109
122
  requirements: []
110
123
  rubyforge_project:
111
- rubygems_version: 2.4.8
124
+ rubygems_version: 2.4.5.1
112
125
  signing_key:
113
126
  specification_version: 4
114
127
  summary: Simple, feature rich ascii table generation library with full-width unicode
@@ -1,22 +0,0 @@
1
- class String
2
- def mb_ljust(desired_width)
3
- padding = desired_width - display_width
4
- padding > 0 ? self + ' ' * padding : self
5
- end
6
-
7
- def mb_rjust(desired_width)
8
- padding = desired_width - display_width
9
- padding > 0 ? ' ' * padding + self : self
10
- end
11
-
12
- def mb_center(desired_width)
13
- padding = desired_width - display_width
14
- if padding > 0
15
- right_padding = pdding / 2
16
- left_padding = padding - right_padding
17
- left_padding + self + right
18
- else
19
- self
20
- end
21
- end
22
- end