hyperscore 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hyperscore.rb +1 -2
- data/lib/hyperscore/client.rb +7 -2
- data/lib/hyperscore/coercions.rb +2 -0
- data/lib/hyperscore/version.rb +1 -1
- metadata +1 -1
data/lib/hyperscore.rb
CHANGED
data/lib/hyperscore/client.rb
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
require 'hyperclient'
|
2
2
|
|
3
|
+
require_relative 'coercions'
|
4
|
+
|
3
5
|
module Hyperscore
|
4
6
|
|
5
7
|
class Client
|
6
8
|
include Hyperclient
|
7
9
|
|
8
|
-
entry_point 'http://cs-api.heroku.com/api/'
|
10
|
+
#entry_point 'http://cs-api.heroku.com/api/'
|
11
|
+
entry_point 'http://cyberscore.dev/api'
|
9
12
|
|
10
13
|
def news
|
11
14
|
links.news.resources.news.map do |news|
|
12
|
-
Hyperscore::Coercions::News.new( news.attributes
|
15
|
+
Hyperscore::Coercions::News.new( news.attributes.merge({
|
16
|
+
:source => news.url
|
17
|
+
}) )
|
13
18
|
end
|
14
19
|
end
|
15
20
|
|
data/lib/hyperscore/coercions.rb
CHANGED
data/lib/hyperscore/version.rb
CHANGED