flying-sphinx 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/lib/flying_sphinx.rb CHANGED
@@ -2,6 +2,8 @@ module FlyingSphinx
2
2
  #
3
3
  end
4
4
 
5
+ require 'httparty'
6
+
5
7
  require 'flying_sphinx/api'
6
8
  require 'flying_sphinx/configuration'
7
9
  require 'flying_sphinx/index_request'
@@ -15,8 +15,7 @@ class FlyingSphinx::Configuration
15
15
  private
16
16
 
17
17
  def set_from_server
18
- body = api.get '/app'
19
- json = JSON.parse(body)
18
+ json = JSON.parse api.get('/app').body
20
19
 
21
20
  @host = json['server']
22
21
  @port = json['port']
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flying-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Allan
@@ -19,9 +19,10 @@ date: 2010-12-11 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: thinking-sphinx
22
+ type: :runtime
23
23
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ name: thinking-sphinx
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
28
  - - ">="
@@ -30,12 +31,12 @@ dependencies:
30
31
  segments:
31
32
  - 0
32
33
  version: "0"
33
- type: :runtime
34
- version_requirements: *id001
34
+ requirement: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- name: net-ssh
36
+ type: :runtime
37
37
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
38
+ name: net-ssh
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
42
  - - ~>
@@ -46,12 +47,12 @@ dependencies:
46
47
  - 0
47
48
  - 23
48
49
  version: 2.0.23
49
- type: :runtime
50
- version_requirements: *id002
50
+ requirement: *id002
51
51
  - !ruby/object:Gem::Dependency
52
- name: json
52
+ type: :runtime
53
53
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
54
+ name: json
55
+ version_requirements: &id003 !ruby/object:Gem::Requirement
55
56
  none: false
56
57
  requirements:
57
58
  - - ~>
@@ -62,12 +63,12 @@ dependencies:
62
63
  - 4
63
64
  - 6
64
65
  version: 1.4.6
65
- type: :runtime
66
- version_requirements: *id003
66
+ requirement: *id003
67
67
  - !ruby/object:Gem::Dependency
68
- name: httparty
68
+ type: :runtime
69
69
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
70
+ name: httparty
71
+ version_requirements: &id004 !ruby/object:Gem::Requirement
71
72
  none: false
72
73
  requirements:
73
74
  - - ~>
@@ -78,12 +79,12 @@ dependencies:
78
79
  - 6
79
80
  - 1
80
81
  version: 0.6.1
81
- type: :runtime
82
- version_requirements: *id004
82
+ requirement: *id004
83
83
  - !ruby/object:Gem::Dependency
84
- name: jeweler
84
+ type: :development
85
85
  prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
86
+ name: jeweler
87
+ version_requirements: &id005 !ruby/object:Gem::Requirement
87
88
  none: false
88
89
  requirements:
89
90
  - - "="
@@ -94,12 +95,12 @@ dependencies:
94
95
  - 5
95
96
  - 1
96
97
  version: 1.5.1
97
- type: :development
98
- version_requirements: *id005
98
+ requirement: *id005
99
99
  - !ruby/object:Gem::Dependency
100
- name: rspec
100
+ type: :development
101
101
  prerelease: false
102
- requirement: &id006 !ruby/object:Gem::Requirement
102
+ name: rspec
103
+ version_requirements: &id006 !ruby/object:Gem::Requirement
103
104
  none: false
104
105
  requirements:
105
106
  - - "="
@@ -110,12 +111,12 @@ dependencies:
110
111
  - 1
111
112
  - 0
112
113
  version: 2.1.0
113
- type: :development
114
- version_requirements: *id006
114
+ requirement: *id006
115
115
  - !ruby/object:Gem::Dependency
116
- name: rcov
116
+ type: :development
117
117
  prerelease: false
118
- requirement: &id007 !ruby/object:Gem::Requirement
118
+ name: rcov
119
+ version_requirements: &id007 !ruby/object:Gem::Requirement
119
120
  none: false
120
121
  requirements:
121
122
  - - "="
@@ -126,12 +127,12 @@ dependencies:
126
127
  - 9
127
128
  - 8
128
129
  version: 0.9.8
129
- type: :development
130
- version_requirements: *id007
130
+ requirement: *id007
131
131
  - !ruby/object:Gem::Dependency
132
- name: fakeweb
132
+ type: :development
133
133
  prerelease: false
134
- requirement: &id008 !ruby/object:Gem::Requirement
134
+ name: fakeweb
135
+ version_requirements: &id008 !ruby/object:Gem::Requirement
135
136
  none: false
136
137
  requirements:
137
138
  - - "="
@@ -142,12 +143,12 @@ dependencies:
142
143
  - 3
143
144
  - 0
144
145
  version: 1.3.0
145
- type: :development
146
- version_requirements: *id008
146
+ requirement: *id008
147
147
  - !ruby/object:Gem::Dependency
148
- name: fakeweb-matcher
148
+ type: :development
149
149
  prerelease: false
150
- requirement: &id009 !ruby/object:Gem::Requirement
150
+ name: fakeweb-matcher
151
+ version_requirements: &id009 !ruby/object:Gem::Requirement
151
152
  none: false
152
153
  requirements:
153
154
  - - "="
@@ -158,8 +159,7 @@ dependencies:
158
159
  - 2
159
160
  - 2
160
161
  version: 1.2.2
161
- type: :development
162
- version_requirements: *id009
162
+ requirement: *id009
163
163
  description: Hooks Thinking Sphinx into the Flying Sphinx service
164
164
  email: pat@freelancing-gods.com
165
165
  executables: []