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 +5 -5
- data/.rubocop.yml +2 -2
- data/.travis.yml +1 -2
- data/Gemfile.lock +30 -22
- data/lib/shrift/shrift_exception.rb +1 -1
- data/lib/shrift/shrift_int.rb +1 -1
- data/lib/shrift/shrift_mapper.rb +2 -0
- data/lib/shrift/shrift_version.rb +1 -1
- data/shrift.gemspec +2 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1537f2c25c87793fe0d1db8ef720e55e61ffa98f504ae818cf18042fa7532c36
|
4
|
+
data.tar.gz: 983b2ed8c6e350551b07bda43f01588225b2f68248dbabddc6a264d4ba861c1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31698540a457b56989802367493c71946b1cce5620ae992c186aa55e07b6be6ac88ef27ed1a5a34fc8d07f12e886bc28ddb1bbaceb5cf0c217dacfe3506ae3f8
|
7
|
+
data.tar.gz: fda1e5e0eb29824b8839f62313524050d2338fd9b7ad20e1134caabad53d7ff8436482ac2a60b559d19b793f74823b889296f53ae4e9f530646c9c955a2c3087
|
data/.rubocop.yml
CHANGED
@@ -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
|
-
|
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
|
-
|
19
|
+
Layout/IndentHash:
|
20
20
|
Enabled: false
|
21
21
|
|
22
22
|
Metrics/MethodLength:
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shrift (0.0.
|
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.
|
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.
|
16
|
-
codeclimate-engine-rb (0.
|
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
|
-
|
25
|
-
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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 (
|
36
|
-
codeclimate-engine-rb (~> 0.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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 (>=
|
50
|
+
rainbow (>= 2.2.2, < 4.0)
|
43
51
|
ruby-progressbar (~> 1.7)
|
44
|
-
unicode-display_width (~> 1.
|
45
|
-
ruby-progressbar (1.
|
46
|
-
thread_safe (0.3.
|
47
|
-
unicode-display_width (1.
|
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.
|
77
|
+
1.16.2
|
data/lib/shrift/shrift_int.rb
CHANGED
data/lib/shrift/shrift_mapper.rb
CHANGED
@@ -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
|
|
data/shrift.gemspec
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
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.
|
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.
|
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:
|
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.
|
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.
|
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.
|