soulheart 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/soulheart +1 -1
- data/lib/soulheart/loader.rb +1 -0
- data/lib/soulheart/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e2377142c9db987586cf7355a75bb41223134b6
|
4
|
+
data.tar.gz: 9d6a719b67686a8be1285fc49d94a0e55bb0cca8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5323467ef347623d460b71168ab702533674c790221cef267b5f5422c44a0d5fcb0f59d7f9d2554323e05f76ed57b55fc03800e09b307e2353c5aa1024bac558
|
7
|
+
data.tar.gz: 9c383b627b46a060d6a3cfbfb2fbe91321867007251509478f11d5c9df16a62c8ecc45c918ff15b400512b62c36d49e1571887114287c0b8153539e7c8bd2d00
|
data/bin/soulheart
CHANGED
@@ -39,7 +39,7 @@ parser = OptionParser.new do |opts|
|
|
39
39
|
opts.separator ''
|
40
40
|
opts.separator 'Commands:'
|
41
41
|
opts.separator ' load FILE Loads data from a FILE - can be a local file or a url. Accepted formats are .json, .tsv and .csv'
|
42
|
-
opts.separator " reset Removes all existing data"
|
42
|
+
opts.separator " reset Removes all existing data (optionally pass a file to run load after reset)"
|
43
43
|
opts.separator ''
|
44
44
|
end
|
45
45
|
|
data/lib/soulheart/loader.rb
CHANGED
@@ -74,6 +74,7 @@ module Soulheart
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def clean_hash(item)
|
77
|
+
item['aliases'] = item['aliases'].split(',').map(&:strip) if item['aliases'] && !item['aliases'].kind_of?(Array)
|
77
78
|
fail ArgumentError, 'Items must have text' unless item['text']
|
78
79
|
default_items_hash(item.delete('text'), item.delete('category'))
|
79
80
|
.tap { |i| i['data'].merge!(item.delete('data')) if item['data'] }
|
data/lib/soulheart/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soulheart
|
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
|
- Seth Herr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hiredis
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.2.2
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Simple, fast autocomplete server for Ruby and Rails
|