hyperscore 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,5 +3,3 @@ source "https://github.com"
3
3
 
4
4
  # Specify your gem's dependencies in hyperscore.gemspec
5
5
  gemspec
6
-
7
- gem "hyperclient", :github => "codegram/hyperclient"
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Hyperscore::VERSION
17
17
 
18
- gem.add_runtime_dependency "virtus"
18
+ gem.add_dependency "virtus"
19
19
 
20
20
  gem.add_development_dependency "pry"
21
21
  end
@@ -7,4 +7,4 @@ require "hyperscore/version"
7
7
 
8
8
  module Hyperscore; end
9
9
 
10
- require_relative 'hyperscore/client'
10
+ require 'hyperscore/client'
@@ -1,6 +1,6 @@
1
1
  require 'hyperclient'
2
2
 
3
- require_relative 'coercions'
3
+ require 'hyperscore/coercions'
4
4
 
5
5
  module Hyperscore
6
6
 
@@ -17,7 +17,8 @@ module Hyperscore
17
17
  def news
18
18
  links.news.resources.news.map do |news|
19
19
  Hyperscore::Coercions::News.new( news.attributes.merge({
20
- :source => news.url
20
+ :source => news.url,
21
+ :site => news.links['alternate'].url
21
22
  }) )
22
23
  end
23
24
  end
@@ -10,6 +10,7 @@ module Hyperscore::Coercions
10
10
  attribute :headline, String
11
11
  attribute :date, Date
12
12
  attribute :source, String
13
+ attribute :site, String
13
14
  end
14
15
 
15
16
  end
@@ -1,3 +1,3 @@
1
1
  module Hyperscore
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
4
+ version: 0.0.8
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-07-01 00:00:00.000000000 Z
12
+ date: 2012-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus