stratify-gowalla 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,12 +6,16 @@ module Stratify
|
|
6
6
|
field :spot_city_state
|
7
7
|
field :spot_latitude, :type => BigDecimal
|
8
8
|
field :spot_longitude, :type => BigDecimal
|
9
|
+
field :message
|
9
10
|
|
10
11
|
natural_key :checkin_id
|
11
12
|
|
12
13
|
validates_presence_of :checkin_id, :spot_name, :spot_latitude, :spot_longitude
|
13
14
|
|
14
|
-
template
|
15
|
+
template %q[
|
16
|
+
<p class="summary">Checked in at <strong><%= spot_name %></strong> in <strong><%= spot_city_state %></strong></p>
|
17
|
+
<p class="details"><%= message %></p>
|
18
|
+
]
|
15
19
|
|
16
20
|
def permalink
|
17
21
|
"http://gowalla.com/checkins/#{checkin_id}"
|
@@ -8,10 +8,11 @@ describe "stratify-gowalla" do
|
|
8
8
|
collector.run
|
9
9
|
|
10
10
|
Stratify::Gowalla::Activity.where(
|
11
|
-
:checkin_id =>
|
12
|
-
:spot_name => "
|
13
|
-
:spot_city_state => "
|
14
|
-
:
|
11
|
+
:checkin_id => 27147302,
|
12
|
+
:spot_name => "Dick's Sporting Goods",
|
13
|
+
:spot_city_state => "Morrisville, NC",
|
14
|
+
:message => "Final prep for Breckenridge trip!",
|
15
|
+
:created_at => Time.parse("2011-01-22T17:47:33Z")
|
15
16
|
).should exist
|
16
17
|
|
17
18
|
Stratify::Gowalla::Activity.where(
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: stratify-gowalla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jason Rudolph
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-07-04 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: gowalla
|