alfi 0.3.4 → 0.3.5

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: bcdfce3ad5eeaa3dacce67a82a50cdffcf51043f
4
- data.tar.gz: 02ac610a5ff5af0f11216a12b12816330536210f
3
+ metadata.gz: 3eba07c44a0e5c4f0eae3705e448ad63435cafec
4
+ data.tar.gz: b24609b422383144cd4004d977c79d6926388f21
5
5
  SHA512:
6
- metadata.gz: 6803acff94b1b626b9286f7d5501d62ce84f4e74f4f3cad0f406e114ee55329381d824bbb5f8ac8a55ebd64c77f44a34994d12c2b37a04dcc5f344edeb148c7b
7
- data.tar.gz: 0e8c89f76a28b701b67f7793d786534ad2d9243a34dabbb5e684bdf446cfc99afa90df947622807c0f214c2777492b8848503de0cb9507987bbb2f2814fe965a
6
+ metadata.gz: c7a7522fbf5f5aa1ccaf6966472ad7ac236fa06ca127d9db39fce47281458bb399853794dbc7cb4fe86a8f1ef65d3270a55172761f433519d8b8167152a890ce
7
+ data.tar.gz: 115f2ab8e488c694db448e562df8100cc92d0970c27681d12138d97065aceebb5f6dd501ab49270e1002a9dce517b10e446d8b08c87d769ca9d60ff64edd8ef5
data/.gitignore CHANGED
@@ -94,3 +94,5 @@ build/
94
94
 
95
95
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
96
96
  .rvmrc
97
+ .ruby-version
98
+ .ruby-gemset
data/alfi.gemspec CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'webmock', '~> 1.20'
28
28
  spec.add_development_dependency 'rspec', '~> 3.2'
29
29
  spec.add_development_dependency 'vcr', '~> 2.9'
30
+ spec.add_development_dependency 'pry', '~> 0.10'
30
31
  spec.add_dependency 'json', '~> 1.8.2'
31
32
  spec.add_dependency 'bundler', '>= 1.7'
32
33
  spec.add_dependency 'colorize', '~> 0.7'
data/lib/alfi.rb CHANGED
@@ -37,7 +37,7 @@ module Alfi
37
37
 
38
38
  # Possible suggestions
39
39
  if num_results==0
40
- suggestions = result['spellcheck']['suggestions'].last['suggestion']
40
+ suggestions = (result['spellcheck']['suggestions'].last || {})['suggestion']
41
41
  end
42
42
 
43
43
  # Init the result list
data/lib/alfi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Alfi
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alfi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-28 00:00:00.000000000 Z
11
+ date: 2015-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.9'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.10'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.10'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: json
71
85
  requirement: !ruby/object:Gem::Requirement