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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb52ba579f66e836ab61e594ab5e13caa7ce9c9f
4
- data.tar.gz: da7bee76c40547870a68c646587248c0f5d15ab7
3
+ metadata.gz: 3e2377142c9db987586cf7355a75bb41223134b6
4
+ data.tar.gz: 9d6a719b67686a8be1285fc49d94a0e55bb0cca8
5
5
  SHA512:
6
- metadata.gz: e96d2237c67c7ccd7cd46410b6f9bc02c953cf4478bd73c08a747d3f2516cc51939ed67c9c06c61c81a56a4c1527dd1d7d8e650affe7f85bf1cd21a892f987c4
7
- data.tar.gz: 0b76dce5640c3761886f6ad0fe9e0305c714bd8dab67e44252b5e5b8c65a56a51390e8f342a4982ebac6918c6bdbb700893bfbf3d4647f5918faf15d89a8cbb0
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
 
@@ -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'] }
@@ -1,3 +1,3 @@
1
1
  module Soulheart
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
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.2
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-21 00:00:00.000000000 Z
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.4.8
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