hyperscore 0.0.4 → 0.0.5
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/lib/hyperscore.rb +3 -0
- data/lib/hyperscore/client.rb +6 -1
- data/lib/hyperscore/version.rb +1 -1
- metadata +3 -2
data/lib/hyperscore.rb
CHANGED
data/lib/hyperscore/client.rb
CHANGED
@@ -6,9 +6,14 @@ module Hyperscore
|
|
6
6
|
|
7
7
|
class Client
|
8
8
|
include Hyperclient
|
9
|
-
|
9
|
+
|
10
|
+
http_options :headers => { "Accept-Encoding" => "gzip,deflate" }
|
10
11
|
entry_point 'http://cs-api.heroku.com/api/'
|
11
12
|
|
13
|
+
def initialize(url=nil)
|
14
|
+
url and self.class.entry_point url
|
15
|
+
end
|
16
|
+
|
12
17
|
def news
|
13
18
|
links.news.resources.news.map do |news|
|
14
19
|
Hyperscore::Coercions::News.new( news.attributes.merge({
|
data/lib/hyperscore/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyperscore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hyperclient
|
@@ -102,3 +102,4 @@ specification_version: 3
|
|
102
102
|
summary: Easily navigate Cyberscore's Hypermedia API with the help of this little
|
103
103
|
library
|
104
104
|
test_files: []
|
105
|
+
has_rdoc:
|