soulmate 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,19 +1,3 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
2
 
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
- group :development do
9
- gem "shoulda", ">= 0"
10
- gem "bundler", "~> 1.0.0"
11
- gem "jeweler", "~> 1.5.2"
12
- gem "rcov", ">= 0"
13
- end
14
-
15
- gem 'redis', "~> 2.1.1"
16
- gem 'multi_json', "~> 1.0.3"
17
- gem 'rack-contrib'
18
- gem 'vegas', "~> 0.1.8"
19
- gem 'sinatra', "~> 1.2.3"
3
+ gemspec
data/Rakefile CHANGED
@@ -22,12 +22,13 @@ Jeweler::Tasks.new do |gem|
22
22
  gem.email = "eric@seatgeek.com"
23
23
  gem.homepage = "http://github.com/seatgeek/soulmate"
24
24
  gem.authors = ["Eric Waller"]
25
- # The versions specified here are pretty arbitrary right now...
26
- gem.add_runtime_dependency 'redis', '>= 2.0'
27
- gem.add_runtime_dependency 'vegas', '>= 0.1.0'
28
- gem.add_runtime_dependency 'sinatra', '>= 1.0'
29
- gem.add_runtime_dependency 'json', '~> 1.4.6'
30
- # gem.add_development_dependency 'rspec', '> 1.2.3'
25
+ gem.add_development_dependency "shoulda", ">= 0"
26
+ gem.add_development_dependency "bundler", "~> 1.0"
27
+ gem.add_development_dependency "jeweler", "~> 1.5"
28
+ gem.add_runtime_dependency 'redis', '>= 2.0'
29
+ gem.add_runtime_dependency 'vegas', '>= 0.1.0'
30
+ gem.add_runtime_dependency 'sinatra', '>= 1.0'
31
+ gem.add_runtime_dependency 'multi_json', '>= 1.0'
31
32
  end
32
33
  Jeweler::RubygemsDotOrgTasks.new
33
34
 
@@ -38,23 +39,6 @@ Rake::TestTask.new(:test) do |test|
38
39
  test.verbose = true
39
40
  end
40
41
 
41
- require 'rcov/rcovtask'
42
- Rcov::RcovTask.new do |test|
43
- test.libs << 'test'
44
- test.pattern = 'test/**/test_*.rb'
45
- test.verbose = true
46
- end
47
-
48
- require 'rdoc/task'
49
- Rake::RDocTask.new do |rdoc|
50
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
51
-
52
- rdoc.rdoc_dir = 'rdoc'
53
- rdoc.title = "soulmate #{version}"
54
- rdoc.rdoc_files.include('README*')
55
- rdoc.rdoc_files.include('lib/**/*.rb')
56
- end
57
-
58
42
  REDIS_DIR = File.expand_path(File.join("..", "test"), __FILE__)
59
43
  REDIS_CNF = File.join(REDIS_DIR, "test.conf")
60
44
  REDIS_PID = File.join(REDIS_DIR, "db", "redis.pid")
data/lib/soulmate.rb CHANGED
@@ -23,7 +23,7 @@ module Soulmate
23
23
 
24
24
  def redis
25
25
  @redis ||= (
26
- url = URI(@redis_url || "redis://127.0.0.1:6379/0")
26
+ url = URI(@redis_url || ENV["REDIS_URL"] || "redis://127.0.0.1:6379/0")
27
27
 
28
28
  ::Redis.new({
29
29
  :host => url.host,
@@ -2,7 +2,7 @@ module Soulmate
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
data/soulmate.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{soulmate}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eric Waller"]
12
- s.date = %q{2012-01-05}
12
+ s.date = %q{2012-03-21}
13
13
  s.description = %q{Soulmate is a tool to help solve the common problem of developing a fast autocomplete feature. It uses Redis's sorted sets to build an index of partial words and corresponding top matches, and provides a simple sinatra app to query them. Soulmate finishes your sentences.}
14
14
  s.email = %q{eric@seatgeek.com}
15
15
  s.executables = ["soulmate", "soulmate-web"]
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
20
20
  s.files = [
21
21
  ".document",
22
22
  "Gemfile",
23
- "Gemfile.lock",
24
23
  "LICENSE.txt",
25
24
  "README.markdown",
26
25
  "Rakefile",
@@ -55,48 +54,57 @@ Gem::Specification.new do |s|
55
54
  s.specification_version = 3
56
55
 
57
56
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
58
- s.add_runtime_dependency(%q<redis>, ["~> 2.1.1"])
59
- s.add_runtime_dependency(%q<multi_json>, ["~> 1.0.3"])
60
- s.add_runtime_dependency(%q<rack-contrib>, [">= 0"])
61
- s.add_runtime_dependency(%q<vegas>, ["~> 0.1.8"])
62
- s.add_runtime_dependency(%q<sinatra>, ["~> 1.2.3"])
57
+ s.add_runtime_dependency(%q<soulmate>, [">= 0"])
63
58
  s.add_development_dependency(%q<shoulda>, [">= 0"])
64
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
65
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
66
59
  s.add_development_dependency(%q<rcov>, [">= 0"])
60
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
61
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
62
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
63
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
64
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
65
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
66
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
67
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
68
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
67
69
  s.add_runtime_dependency(%q<redis>, [">= 2.0"])
68
70
  s.add_runtime_dependency(%q<vegas>, [">= 0.1.0"])
69
71
  s.add_runtime_dependency(%q<sinatra>, [">= 1.0"])
70
- s.add_runtime_dependency(%q<json>, ["~> 1.4.6"])
72
+ s.add_runtime_dependency(%q<multi_json>, [">= 1.0"])
71
73
  else
72
- s.add_dependency(%q<redis>, ["~> 2.1.1"])
73
- s.add_dependency(%q<multi_json>, ["~> 1.0.3"])
74
- s.add_dependency(%q<rack-contrib>, [">= 0"])
75
- s.add_dependency(%q<vegas>, ["~> 0.1.8"])
76
- s.add_dependency(%q<sinatra>, ["~> 1.2.3"])
74
+ s.add_dependency(%q<soulmate>, [">= 0"])
77
75
  s.add_dependency(%q<shoulda>, [">= 0"])
78
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
79
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
80
76
  s.add_dependency(%q<rcov>, [">= 0"])
77
+ s.add_dependency(%q<shoulda>, [">= 0"])
78
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
79
+ s.add_dependency(%q<jeweler>, ["~> 1.5"])
80
+ s.add_dependency(%q<shoulda>, [">= 0"])
81
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
82
+ s.add_dependency(%q<jeweler>, ["~> 1.5"])
83
+ s.add_dependency(%q<shoulda>, [">= 0"])
84
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
85
+ s.add_dependency(%q<jeweler>, ["~> 1.5"])
81
86
  s.add_dependency(%q<redis>, [">= 2.0"])
82
87
  s.add_dependency(%q<vegas>, [">= 0.1.0"])
83
88
  s.add_dependency(%q<sinatra>, [">= 1.0"])
84
- s.add_dependency(%q<json>, ["~> 1.4.6"])
89
+ s.add_dependency(%q<multi_json>, [">= 1.0"])
85
90
  end
86
91
  else
87
- s.add_dependency(%q<redis>, ["~> 2.1.1"])
88
- s.add_dependency(%q<multi_json>, ["~> 1.0.3"])
89
- s.add_dependency(%q<rack-contrib>, [">= 0"])
90
- s.add_dependency(%q<vegas>, ["~> 0.1.8"])
91
- s.add_dependency(%q<sinatra>, ["~> 1.2.3"])
92
+ s.add_dependency(%q<soulmate>, [">= 0"])
92
93
  s.add_dependency(%q<shoulda>, [">= 0"])
93
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
94
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
95
94
  s.add_dependency(%q<rcov>, [">= 0"])
95
+ s.add_dependency(%q<shoulda>, [">= 0"])
96
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
97
+ s.add_dependency(%q<jeweler>, ["~> 1.5"])
98
+ s.add_dependency(%q<shoulda>, [">= 0"])
99
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
100
+ s.add_dependency(%q<jeweler>, ["~> 1.5"])
101
+ s.add_dependency(%q<shoulda>, [">= 0"])
102
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
103
+ s.add_dependency(%q<jeweler>, ["~> 1.5"])
96
104
  s.add_dependency(%q<redis>, [">= 2.0"])
97
105
  s.add_dependency(%q<vegas>, [">= 0.1.0"])
98
106
  s.add_dependency(%q<sinatra>, [">= 1.0"])
99
- s.add_dependency(%q<json>, ["~> 1.4.6"])
107
+ s.add_dependency(%q<multi_json>, [">= 1.0"])
100
108
  end
101
109
  end
102
110
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soulmate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,67 +9,78 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-05 00:00:00.000000000 -05:00
12
+ date: 2012-03-21 00:00:00.000000000 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: redis
17
- requirement: &2156150900 !ruby/object:Gem::Requirement
16
+ name: soulmate
17
+ requirement: &2168773600 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ~>
20
+ - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 2.1.1
22
+ version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2156150900
25
+ version_requirements: *2168773600
26
26
  - !ruby/object:Gem::Dependency
27
- name: multi_json
28
- requirement: &2156149900 !ruby/object:Gem::Requirement
27
+ name: shoulda
28
+ requirement: &2168772840 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
- - - ~>
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.3
34
- type: :runtime
33
+ version: '0'
34
+ type: :development
35
35
  prerelease: false
36
- version_requirements: *2156149900
36
+ version_requirements: *2168772840
37
37
  - !ruby/object:Gem::Dependency
38
- name: rack-contrib
39
- requirement: &2156148300 !ruby/object:Gem::Requirement
38
+ name: rcov
39
+ requirement: &2168771520 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
43
43
  - !ruby/object:Gem::Version
44
44
  version: '0'
45
- type: :runtime
45
+ type: :development
46
46
  prerelease: false
47
- version_requirements: *2156148300
47
+ version_requirements: *2168771520
48
48
  - !ruby/object:Gem::Dependency
49
- name: vegas
50
- requirement: &2156145920 !ruby/object:Gem::Requirement
49
+ name: shoulda
50
+ requirement: &2168769140 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *2168769140
59
+ - !ruby/object:Gem::Dependency
60
+ name: bundler
61
+ requirement: &2168767040 !ruby/object:Gem::Requirement
51
62
  none: false
52
63
  requirements:
53
64
  - - ~>
54
65
  - !ruby/object:Gem::Version
55
- version: 0.1.8
56
- type: :runtime
66
+ version: '1.0'
67
+ type: :development
57
68
  prerelease: false
58
- version_requirements: *2156145920
69
+ version_requirements: *2168767040
59
70
  - !ruby/object:Gem::Dependency
60
- name: sinatra
61
- requirement: &2156134300 !ruby/object:Gem::Requirement
71
+ name: jeweler
72
+ requirement: &2168765480 !ruby/object:Gem::Requirement
62
73
  none: false
63
74
  requirements:
64
75
  - - ~>
65
76
  - !ruby/object:Gem::Version
66
- version: 1.2.3
67
- type: :runtime
77
+ version: '1.5'
78
+ type: :development
68
79
  prerelease: false
69
- version_requirements: *2156134300
80
+ version_requirements: *2168765480
70
81
  - !ruby/object:Gem::Dependency
71
82
  name: shoulda
72
- requirement: &2156132140 !ruby/object:Gem::Requirement
83
+ requirement: &2168762360 !ruby/object:Gem::Requirement
73
84
  none: false
74
85
  requirements:
75
86
  - - ! '>='
@@ -77,32 +88,32 @@ dependencies:
77
88
  version: '0'
78
89
  type: :development
79
90
  prerelease: false
80
- version_requirements: *2156132140
91
+ version_requirements: *2168762360
81
92
  - !ruby/object:Gem::Dependency
82
93
  name: bundler
83
- requirement: &2156129420 !ruby/object:Gem::Requirement
94
+ requirement: &2168761040 !ruby/object:Gem::Requirement
84
95
  none: false
85
96
  requirements:
86
97
  - - ~>
87
98
  - !ruby/object:Gem::Version
88
- version: 1.0.0
99
+ version: '1.0'
89
100
  type: :development
90
101
  prerelease: false
91
- version_requirements: *2156129420
102
+ version_requirements: *2168761040
92
103
  - !ruby/object:Gem::Dependency
93
104
  name: jeweler
94
- requirement: &2156128620 !ruby/object:Gem::Requirement
105
+ requirement: &2168758500 !ruby/object:Gem::Requirement
95
106
  none: false
96
107
  requirements:
97
108
  - - ~>
98
109
  - !ruby/object:Gem::Version
99
- version: 1.5.2
110
+ version: '1.5'
100
111
  type: :development
101
112
  prerelease: false
102
- version_requirements: *2156128620
113
+ version_requirements: *2168758500
103
114
  - !ruby/object:Gem::Dependency
104
- name: rcov
105
- requirement: &2156127260 !ruby/object:Gem::Requirement
115
+ name: shoulda
116
+ requirement: &2168755840 !ruby/object:Gem::Requirement
106
117
  none: false
107
118
  requirements:
108
119
  - - ! '>='
@@ -110,10 +121,32 @@ dependencies:
110
121
  version: '0'
111
122
  type: :development
112
123
  prerelease: false
113
- version_requirements: *2156127260
124
+ version_requirements: *2168755840
125
+ - !ruby/object:Gem::Dependency
126
+ name: bundler
127
+ requirement: &2168748640 !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ~>
131
+ - !ruby/object:Gem::Version
132
+ version: '1.0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: *2168748640
136
+ - !ruby/object:Gem::Dependency
137
+ name: jeweler
138
+ requirement: &2168747560 !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ~>
142
+ - !ruby/object:Gem::Version
143
+ version: '1.5'
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: *2168747560
114
147
  - !ruby/object:Gem::Dependency
115
148
  name: redis
116
- requirement: &2156125640 !ruby/object:Gem::Requirement
149
+ requirement: &2168745460 !ruby/object:Gem::Requirement
117
150
  none: false
118
151
  requirements:
119
152
  - - ! '>='
@@ -121,10 +154,10 @@ dependencies:
121
154
  version: '2.0'
122
155
  type: :runtime
123
156
  prerelease: false
124
- version_requirements: *2156125640
157
+ version_requirements: *2168745460
125
158
  - !ruby/object:Gem::Dependency
126
159
  name: vegas
127
- requirement: &2156124420 !ruby/object:Gem::Requirement
160
+ requirement: &2168744140 !ruby/object:Gem::Requirement
128
161
  none: false
129
162
  requirements:
130
163
  - - ! '>='
@@ -132,10 +165,10 @@ dependencies:
132
165
  version: 0.1.0
133
166
  type: :runtime
134
167
  prerelease: false
135
- version_requirements: *2156124420
168
+ version_requirements: *2168744140
136
169
  - !ruby/object:Gem::Dependency
137
170
  name: sinatra
138
- requirement: &2156123640 !ruby/object:Gem::Requirement
171
+ requirement: &2168743140 !ruby/object:Gem::Requirement
139
172
  none: false
140
173
  requirements:
141
174
  - - ! '>='
@@ -143,18 +176,18 @@ dependencies:
143
176
  version: '1.0'
144
177
  type: :runtime
145
178
  prerelease: false
146
- version_requirements: *2156123640
179
+ version_requirements: *2168743140
147
180
  - !ruby/object:Gem::Dependency
148
- name: json
149
- requirement: &2156122960 !ruby/object:Gem::Requirement
181
+ name: multi_json
182
+ requirement: &2168741460 !ruby/object:Gem::Requirement
150
183
  none: false
151
184
  requirements:
152
- - - ~>
185
+ - - ! '>='
153
186
  - !ruby/object:Gem::Version
154
- version: 1.4.6
187
+ version: '1.0'
155
188
  type: :runtime
156
189
  prerelease: false
157
- version_requirements: *2156122960
190
+ version_requirements: *2168741460
158
191
  description: Soulmate is a tool to help solve the common problem of developing a fast
159
192
  autocomplete feature. It uses Redis's sorted sets to build an index of partial words
160
193
  and corresponding top matches, and provides a simple sinatra app to query them.
@@ -170,7 +203,6 @@ extra_rdoc_files:
170
203
  files:
171
204
  - .document
172
205
  - Gemfile
173
- - Gemfile.lock
174
206
  - LICENSE.txt
175
207
  - README.markdown
176
208
  - Rakefile
@@ -206,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
206
238
  version: '0'
207
239
  segments:
208
240
  - 0
209
- hash: -3105398429385029710
241
+ hash: 256242323559307527
210
242
  required_rubygems_version: !ruby/object:Gem::Requirement
211
243
  none: false
212
244
  requirements:
data/Gemfile.lock DELETED
@@ -1,36 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- git (1.2.5)
5
- jeweler (1.5.2)
6
- bundler (~> 1.0.0)
7
- git (>= 1.2.5)
8
- rake
9
- multi_json (1.0.3)
10
- rack (1.3.5)
11
- rack-contrib (1.1.0)
12
- rack (>= 0.9.1)
13
- rake (0.9.2.2)
14
- rcov (0.9.11)
15
- redis (2.1.1)
16
- shoulda (2.11.3)
17
- sinatra (1.2.7)
18
- rack (~> 1.1)
19
- tilt (>= 1.2.2, < 2.0)
20
- tilt (1.3.3)
21
- vegas (0.1.8)
22
- rack (>= 1.0.0)
23
-
24
- PLATFORMS
25
- ruby
26
-
27
- DEPENDENCIES
28
- bundler (~> 1.0.0)
29
- jeweler (~> 1.5.2)
30
- multi_json (~> 1.0.3)
31
- rack-contrib
32
- rcov
33
- redis (~> 2.1.1)
34
- shoulda
35
- sinatra (~> 1.2.3)
36
- vegas (~> 0.1.8)