pius-ruby-satisfaction 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +12 -0
- data/VERSION +1 -0
- data/VERSION.yml +2 -2
- data/lib/satisfaction/search.rb +2 -1
- data/ruby-satisfaction.gemspec +3 -2
- data/spec/search_spec.rb +1 -2
- metadata +3 -2
data/Rakefile
CHANGED
@@ -1,4 +1,16 @@
|
|
1
1
|
begin
|
2
|
+
require 'rake'
|
3
|
+
require 'spec/rake/spectask'
|
4
|
+
|
5
|
+
desc "Run all specs"
|
6
|
+
|
7
|
+
Spec::Rake::SpecTask.new('examples') do |t|
|
8
|
+
|
9
|
+
t.spec_files = FileList['spec/*.rb']
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
|
2
14
|
require 'jeweler'
|
3
15
|
Jeweler::Tasks.new do |gemspec|
|
4
16
|
gemspec.name = "ruby-satisfaction"
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.3.0
|
data/VERSION.yml
CHANGED
data/lib/satisfaction/search.rb
CHANGED
@@ -14,7 +14,8 @@ class Sfn::Search
|
|
14
14
|
answer = @loader.get(query_string)
|
15
15
|
if answer[0] == :ok
|
16
16
|
result = answer[1]
|
17
|
-
|
17
|
+
#raise result.inspect
|
18
|
+
hash.merge({entity => JSON.parse(result)['data']})
|
18
19
|
else
|
19
20
|
raise "Search service not available at the moment, please try again later."
|
20
21
|
end
|
data/ruby-satisfaction.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ruby-satisfaction}
|
5
|
-
s.version = "0.4.
|
5
|
+
s.version = "0.4.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Scott Fleckenstein", "Josh Nichols", "Pius Uzamere"]
|
9
|
-
s.date = %q{2009-07-
|
9
|
+
s.date = %q{2009-07-22}
|
10
10
|
s.description = %q{Ruby interface to Get Satisfaction}
|
11
11
|
s.email = %q{scott@getsatisfaction.com}
|
12
12
|
s.extra_rdoc_files = [
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
"License.txt",
|
19
19
|
"README.txt",
|
20
20
|
"Rakefile",
|
21
|
+
"VERSION",
|
21
22
|
"VERSION.yml",
|
22
23
|
"init.rb",
|
23
24
|
"lib/satisfaction.rb",
|
data/spec/search_spec.rb
CHANGED
@@ -16,9 +16,8 @@ describe "Searching" do
|
|
16
16
|
|
17
17
|
it "should put the results into a set of arrays keyed by category" do
|
18
18
|
results = @satisfaction.search.for_likely_matches_to('Cyberdyne')
|
19
|
-
|
20
19
|
c = results['companies']
|
21
20
|
c.class.should == Array
|
22
|
-
include('companies')
|
23
21
|
end
|
22
|
+
|
24
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pius-ruby-satisfaction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Fleckenstein
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-07-
|
14
|
+
date: 2009-07-22 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- License.txt
|
59
59
|
- README.txt
|
60
60
|
- Rakefile
|
61
|
+
- VERSION
|
61
62
|
- VERSION.yml
|
62
63
|
- init.rb
|
63
64
|
- lib/satisfaction.rb
|