twofishes 2.1.0.pre.rc.2 → 2.1.0

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: 4c736e4fa16a0dd414258b492bf9e28216159529
4
- data.tar.gz: 51098838583a9781a6e8993008ae11051cf49ec1
3
+ metadata.gz: d6f480938112b4e81a5290682ac5c51f68d249d3
4
+ data.tar.gz: 3a3771697a091d29c7ccf52559cf3de55193f2d2
5
5
  SHA512:
6
- metadata.gz: 372613ddb1f2c0aa1c7a475fdf4179a5b36bd309ce55b456110625a367e3ed4517328913e21be545870c80caa8c17470ad0cc0cd328539b7512c6c38f62a5a7d
7
- data.tar.gz: e9c771da55db7ae6ded344382a4289243316357d68f608a6bc8c19f7b9e8a33f1eef0f19ec1088882b223bc7ee23425604f0aa78add64bcef64477bf00bbab7d
6
+ metadata.gz: f09fdd7050460b26b780e5a4f2d9bd8ca9180bd5456450c621316bf49d522cc74ae54a1baedc71c54a2ec8daf2f8f55204dd0cc8729c45a9d481521fd4aae0f0
7
+ data.tar.gz: 31a3117aad0c441b4164b361fe896973fb4541a5973b24b38396e74e3e2646636683d5d54dd301133aab71930303d23327f7a09e69dcf3798af3e624aeb9e0e3
@@ -45,8 +45,6 @@ module Twofishes
45
45
  )
46
46
  end
47
47
 
48
- private
49
-
50
48
  def self.handle_response
51
49
  Result.from_response(yield)
52
50
  rescue => e
@@ -38,7 +38,7 @@ module Twofishes
38
38
  end
39
39
 
40
40
  def substitute_aliases(options)
41
- options = Hash[options.map{|k,v| [k.to_s.camelize(:lower).to_sym,v] } ]
41
+ options = Hash[options.map { |k, v| [k.to_s.camelize(:lower).to_sym, v] }]
42
42
 
43
43
  options[:maxInterpretations] ||= options.delete(:max)
44
44
  options[:allowedSources] ||= options.delete(:sources)
@@ -2,9 +2,9 @@ require 'delegate'
2
2
  module Twofishes
3
3
  class Result < SimpleDelegator
4
4
  def self.from_response(response)
5
- response.interpretations.map { |interpretation|
5
+ response.interpretations.map do |interpretation|
6
6
  new(interpretation)
7
- }
7
+ end
8
8
  end
9
9
  end
10
10
  end
@@ -2,9 +2,9 @@ require 'active_support/core_ext/string/inflections'
2
2
 
3
3
  module Underscored
4
4
  def self.included(base)
5
- base::FIELDS.map { |_, v|
5
+ base::FIELDS.map do |_, v|
6
6
  define_method(v[:name].underscore) { send(v[:name]) }
7
- }
7
+ end
8
8
  end
9
9
  end
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Twofishes
2
- VERSION = "2.1.0.pre.rc.2"
2
+ VERSION = '2.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twofishes
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.pre.rc.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Felder
@@ -11,132 +11,132 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-07-19 00:00:00.000000000 Z
14
+ date: 2015-10-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: thrift_client
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: bundler
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - '>='
48
+ - - ">="
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - '>='
55
+ - - ">="
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rake
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - '>='
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - '>='
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: minitest
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - '>='
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - '>='
83
+ - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: mocha
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - '>='
90
+ - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  type: :development
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - '>='
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: yard
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '>='
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  type: :development
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - '>='
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: codeclimate-test-reporter
116
116
  requirement: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - '>='
118
+ - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
123
  version_requirements: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - '>='
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  - !ruby/object:Gem::Dependency
129
129
  name: pry
130
130
  requirement: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - '>='
132
+ - - ">="
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  type: :development
136
136
  prerelease: false
137
137
  version_requirements: !ruby/object:Gem::Requirement
138
138
  requirements:
139
- - - '>='
139
+ - - ">="
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  description: Client for foursquare's Twofishes API, a sparse reverse geocoder.
@@ -166,17 +166,17 @@ require_paths:
166
166
  - lib
167
167
  required_ruby_version: !ruby/object:Gem::Requirement
168
168
  requirements:
169
- - - '>='
169
+ - - ">="
170
170
  - !ruby/object:Gem::Version
171
171
  version: '2.0'
172
172
  required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  requirements:
174
- - - '>'
174
+ - - ">="
175
175
  - !ruby/object:Gem::Version
176
- version: 1.3.1
176
+ version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.4.5
179
+ rubygems_version: 2.4.6
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Client for foursquare's Twofishes API, a sparse reverse geocoder.