heliapi 0.0.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.
- checksums.yaml +15 -0
- data/lib/heliapi.rb +15 -0
- data/lib/heliapi/version.rb +5 -0
- metadata +46 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NWU1NmMwMjk3YWRjNGZjNTk5M2ZjMWIxMTBjOWY0MTJkZDZjYTJiYg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NzNlMTJiZjE0MGUwNzhhZGZhZGNjOWUxMTc2NmNhZjNkYjM0OTM4Ng==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZmZiOGY3Zjc3OGVhOGVkOTE3NzEwMjMwMzU2MzUwNDIyYjQ3ZGRjZDdjZWM2
|
10
|
+
ODZmMzA5ZTZmYjA5ZjU0MjYzMzQxMjVlOTk4NTFkMjhmNmI5ZTE4NjJiOTQ3
|
11
|
+
MmFlMTg1ZGQyZTE5MDUyZmQ1MjZjZTc1ZWRkOGE4YmUzMzZkZTA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OTIxNDhmZmVkODgwY2E2Y2EwYTFlYWUyY2M4ZDYwOGNhN2JjYzhjYzEyYWIy
|
14
|
+
NDVlMDFkOWYyOWEyMTgwYzE3ZWY2YzVlNGM3Mzg4ODI0NjVkNGFlNzY1OWU4
|
15
|
+
MDhlOWY5NWI4OWZlNzJhZmU2ZjUzYmZhNjYwOGNiYjZhZjYzYTk=
|
data/lib/heliapi.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
|
3
|
+
require 'httparty'
|
4
|
+
require 'yajl'
|
5
|
+
|
6
|
+
|
7
|
+
class Heliapi
|
8
|
+
# API for Helioid categorize results.
|
9
|
+
|
10
|
+
def web(query)
|
11
|
+
response = HTTParty.get(
|
12
|
+
"http://helioid.com/searches/q/#{query}?format=json")
|
13
|
+
Yajl::Parser.parse(response.body)
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: heliapi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Peter Lubell-Doughtie
|
8
|
+
- Helioid Inc.
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-11-10 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: A Ruby API Helioid's categorized search.
|
15
|
+
email: peter@helioid.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/heliapi/version.rb
|
21
|
+
- lib/heliapi.rb
|
22
|
+
homepage: http://www.helioid.com/
|
23
|
+
licenses:
|
24
|
+
- BSD3
|
25
|
+
metadata: {}
|
26
|
+
post_install_message:
|
27
|
+
rdoc_options: []
|
28
|
+
require_paths:
|
29
|
+
- lib
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
requirements: []
|
41
|
+
rubyforge_project:
|
42
|
+
rubygems_version: 2.1.10
|
43
|
+
signing_key:
|
44
|
+
specification_version: 4
|
45
|
+
summary: A Ruby API for Helioid categorize.
|
46
|
+
test_files: []
|