shrift 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a2d32acbea26a704d92f24204e11d28e59223ff7
4
- data.tar.gz: a6e90a56e402097bb90732324de9203837f5141c
2
+ SHA256:
3
+ metadata.gz: 1537f2c25c87793fe0d1db8ef720e55e61ffa98f504ae818cf18042fa7532c36
4
+ data.tar.gz: 983b2ed8c6e350551b07bda43f01588225b2f68248dbabddc6a264d4ba861c1c
5
5
  SHA512:
6
- metadata.gz: bd14d9d9b3dbe23a4ef32aa6cfd1f30938e210a22e91639e5b36a65a786bdef00020b59a85ed5f1092a5365d241e54b230298e4e1858afed8cbf95235373054b
7
- data.tar.gz: 9a708daac62c349b178db3d7860bb90ec33d041e4305e7971becb2d8c745b21472216aca6544e4a7520795d764f5b4d2e5feee4304b797117afa87c01368731c
6
+ metadata.gz: 31698540a457b56989802367493c71946b1cce5620ae992c186aa55e07b6be6ac88ef27ed1a5a34fc8d07f12e886bc28ddb1bbaceb5cf0c217dacfe3506ae3f8
7
+ data.tar.gz: fda1e5e0eb29824b8839f62313524050d2338fd9b7ad20e1134caabad53d7ff8436482ac2a60b559d19b793f74823b889296f53ae4e9f530646c9c955a2c3087
@@ -9,14 +9,14 @@ Metrics/LineLength:
9
9
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
10
10
  Enabled: false
11
11
 
12
- Style/SpaceInsideHashLiteralBraces:
12
+ Layout/SpaceInsideHashLiteralBraces:
13
13
  EnforcedStyle: no_space
14
14
  EnforcedStyleForEmptyBraces: no_space
15
15
  SupportedStyles:
16
16
  - space
17
17
  - no_space
18
18
 
19
- Style/IndentHash:
19
+ Layout/IndentHash:
20
20
  Enabled: false
21
21
 
22
22
  Metrics/MethodLength:
@@ -1,5 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "2.1.5"
4
- - "2.2.0"
5
3
  - "2.3.1"
4
+ - "2.5.1"
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shrift (0.0.5)
4
+ shrift (0.0.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ansi (1.5.0)
10
- ast (2.2.0)
10
+ ast (2.4.0)
11
11
  axiom-types (0.1.1)
12
12
  descendants_tracker (~> 0.0.4)
13
13
  ice_nine (~> 0.11.0)
14
14
  thread_safe (~> 0.3, >= 0.3.1)
15
- builder (3.2.2)
16
- codeclimate-engine-rb (0.3.1)
15
+ builder (3.2.3)
16
+ codeclimate-engine-rb (0.4.1)
17
17
  virtus (~> 1.0)
18
18
  coercible (1.0.0)
19
19
  descendants_tracker (~> 0.0.1)
@@ -21,30 +21,38 @@ GEM
21
21
  thread_safe (~> 0.3, >= 0.3.1)
22
22
  equalizer (0.0.11)
23
23
  ice_nine (0.11.2)
24
- minitest (5.8.4)
25
- minitest-reporters (1.1.9)
24
+ jaro_winkler (1.5.2)
25
+ kwalify (0.7.2)
26
+ minitest (5.11.3)
27
+ minitest-reporters (1.3.6)
26
28
  ansi
27
29
  builder
28
30
  minitest (>= 5.0)
29
31
  ruby-progressbar
30
- parser (2.3.1.0)
31
- ast (~> 2.2)
32
- powerpack (0.1.1)
33
- rainbow (2.1.0)
32
+ parallel (1.13.0)
33
+ parser (2.5.3.0)
34
+ ast (~> 2.4.0)
35
+ powerpack (0.1.2)
36
+ psych (3.1.0)
37
+ rainbow (3.0.0)
34
38
  rake (10.5.0)
35
- reek (4.0.2)
36
- codeclimate-engine-rb (~> 0.3.1)
37
- parser (~> 2.3, >= 2.3.0.6)
38
- rainbow (~> 2.0)
39
- rubocop (0.39.0)
40
- parser (>= 2.3.0.7, < 3.0)
39
+ reek (5.3.0)
40
+ codeclimate-engine-rb (~> 0.4.0)
41
+ kwalify (~> 0.7.0)
42
+ parser (>= 2.5.0.0, < 2.6, != 2.5.1.1)
43
+ psych (~> 3.1.0)
44
+ rainbow (>= 2.0, < 4.0)
45
+ rubocop (0.63.0)
46
+ jaro_winkler (~> 1.5.1)
47
+ parallel (~> 1.10)
48
+ parser (>= 2.5, != 2.5.1.1)
41
49
  powerpack (~> 0.1)
42
- rainbow (>= 1.99.1, < 3.0)
50
+ rainbow (>= 2.2.2, < 4.0)
43
51
  ruby-progressbar (~> 1.7)
44
- unicode-display_width (~> 1.0, >= 1.0.1)
45
- ruby-progressbar (1.8.0)
46
- thread_safe (0.3.5)
47
- unicode-display_width (1.0.5)
52
+ unicode-display_width (~> 1.4.0)
53
+ ruby-progressbar (1.10.0)
54
+ thread_safe (0.3.6)
55
+ unicode-display_width (1.4.1)
48
56
  virtus (1.0.5)
49
57
  axiom-types (~> 0.1)
50
58
  coercible (~> 1.0)
@@ -66,4 +74,4 @@ DEPENDENCIES
66
74
  yamlable
67
75
 
68
76
  BUNDLED WITH
69
- 1.12.5
77
+ 1.16.2
@@ -1,3 +1,3 @@
1
1
  # An Exception thrown when a Shrift string doesn't cut it.
2
- class ShriftException < Exception
2
+ class ShriftException < RuntimeError
3
3
  end
@@ -7,6 +7,6 @@ class ShriftInt < ShriftCell
7
7
  end
8
8
 
9
9
  def set(value, target)
10
- target.send("#{@field}=", value.to_i)
10
+ target.send("#{field}=", value.to_i)
11
11
  end
12
12
  end
@@ -28,7 +28,9 @@ class ShriftMapper
28
28
  # :reek:UncommunicativeVariableName :reek:FeatureEnvy
29
29
  def to_shrift_string(mappie)
30
30
  return mappie if mappie.is_a?(String)
31
+
31
32
  return mappie.map { |k, v| @schema.key(k).to_s.downcase + v.to_s }.join if mappie.is_a?(Hash)
33
+
32
34
  @schema.map { |k, v| k.to_s.downcase + mappie.send(v).to_s }.join
33
35
  end
34
36
 
@@ -1,3 +1,3 @@
1
1
  class ShriftVersion
2
- VERSION = '0.0.5'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
@@ -1,5 +1,4 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'shrift/shrift_version'
5
4
 
@@ -19,7 +18,7 @@ Gem::Specification.new do |spec|
19
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
19
  spec.require_paths = ['lib']
21
20
 
22
- spec.required_ruby_version = '>= 2.1.5'
21
+ spec.required_ruby_version = '>= 2.2'
23
22
  spec.add_development_dependency 'bundler', '~> 1.11'
24
23
  spec.add_development_dependency 'rake', '~> 10.0'
25
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Folkengine
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-20 00:00:00.000000000 Z
11
+ date: 2019-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - ">="
76
76
  - !ruby/object:Gem::Version
77
- version: 2.1.5
77
+ version: '2.2'
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.4.8
85
+ rubygems_version: 2.7.7
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Ruby utility library to make short shrift of objects.