shrift 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +2 -2
- data/lib/shrift/shrift_factory.rb +5 -0
- data/lib/shrift/shrift_map.rb +1 -6
- data/lib/shrift/shrift_mapper.rb +1 -5
- data/lib/shrift/shrift_version.rb +1 -1
- data/lib/shrift.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2d32acbea26a704d92f24204e11d28e59223ff7
|
4
|
+
data.tar.gz: a6e90a56e402097bb90732324de9203837f5141c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd14d9d9b3dbe23a4ef32aa6cfd1f30938e210a22e91639e5b36a65a786bdef00020b59a85ed5f1092a5365d241e54b230298e4e1858afed8cbf95235373054b
|
7
|
+
data.tar.gz: 9a708daac62c349b178db3d7860bb90ec33d041e4305e7971becb2d8c745b21472216aca6544e4a7520795d764f5b4d2e5feee4304b797117afa87c01368731c
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/shrift/shrift_map.rb
CHANGED
@@ -35,12 +35,7 @@ class ShriftMap
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def self.to_shrift_map_string(hash)
|
38
|
-
|
39
|
-
hash.each do |key, val|
|
40
|
-
shrift_map_string << key.to_s
|
41
|
-
shrift_map_string << val.to_s
|
42
|
-
end
|
43
|
-
shrift_map_string
|
38
|
+
hash.map { |key, val| "#{key}#{val}" }.join
|
44
39
|
end
|
45
40
|
|
46
41
|
private
|
data/lib/shrift/shrift_mapper.rb
CHANGED
@@ -18,11 +18,7 @@ class ShriftMapper
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def parse(shrift_map_string)
|
21
|
-
|
22
|
-
ShriftMap.new(shrift_map_string).schema.each do |key, val|
|
23
|
-
hash[@schema[key]] = val
|
24
|
-
end
|
25
|
-
hash
|
21
|
+
Hash[ShriftMap.new(shrift_map_string).schema.map { |key, val| [@schema[key], val] }]
|
26
22
|
end
|
27
23
|
|
28
24
|
def to_hash
|
data/lib/shrift.rb
CHANGED
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Folkengine
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/shrift.rb
|
57
57
|
- lib/shrift/shrift_cell.rb
|
58
58
|
- lib/shrift/shrift_exception.rb
|
59
|
+
- lib/shrift/shrift_factory.rb
|
59
60
|
- lib/shrift/shrift_int.rb
|
60
61
|
- lib/shrift/shrift_map.rb
|
61
62
|
- lib/shrift/shrift_mapper.rb
|