mention-api 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mention/api/version.rb +1 -1
- data/lib/mention/mention.rb +4 -0
- data/spec/lib/mention/mention_spec.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03f4c1372ce47e1994002906290ef74120852853
|
4
|
+
data.tar.gz: f7dce45c4b28b4e5d020c2465237992e31a86de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 523de97071c722e7e019eab55a81a1d53da380fb70054fb2d31d1971e0d72206c905e2064271f02aa0959cb4baf9e2f474abf4d9aace50e4594dfffc6d6aab59
|
7
|
+
data.tar.gz: 92373f7c914c9ec5d131bf1b778e521c6322ac6187aac13b58f26e803558665d7c5658487557d48ec85c5fe8a8360b835b88508fc4bac39d5be04af6234ccb4b
|
data/lib/mention/api/version.rb
CHANGED
data/lib/mention/mention.rb
CHANGED
@@ -8,6 +8,10 @@ module Mention
|
|
8
8
|
attribute :description, String
|
9
9
|
attribute :url, String
|
10
10
|
attribute :published_at, Time
|
11
|
+
attribute :source_type, String
|
12
|
+
attribute :source_name, String
|
13
|
+
attribute :source_url, String
|
14
|
+
attribute :language_code, String
|
11
15
|
end
|
12
16
|
end
|
13
17
|
end
|
@@ -10,6 +10,10 @@ describe Mention::Mention do
|
|
10
10
|
mention.title.should start_with('SPRUG')
|
11
11
|
mention.description.should start_with('Got even more excited about')
|
12
12
|
mention.url.should == "https://plus.google.com/communities/117927540789820622012"
|
13
|
-
mention.published_at.to_i.should == Time.parse('2013-10-18
|
13
|
+
mention.published_at.to_i.should == Time.parse('2013-10-18 21:57:08Z').to_i
|
14
|
+
mention.source_type.should == "web"
|
15
|
+
mention.source_name.should == "google.com"
|
16
|
+
mention.source_url.should == "https://plus.google.com"
|
17
|
+
mention.language_code == "en"
|
14
18
|
end
|
15
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mention-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Ries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|