stratify-gowalla 0.1.0 → 0.1.1

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.
@@ -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 "Checked in at <strong><%= spot_name %></strong> in <strong><%= spot_city_state %></strong>"
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}"
@@ -28,6 +28,7 @@ module Stratify
28
28
  :spot_city_state => data.spot.city_state,
29
29
  :spot_latitude => data.spot.lat,
30
30
  :spot_longitude => data.spot.lng,
31
+ :message => data.message,
31
32
  :created_at => data.created_at
32
33
  })
33
34
  end
@@ -1,5 +1,5 @@
1
1
  module Stratify
2
2
  module Gowalla
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -8,10 +8,11 @@ describe "stratify-gowalla" do
8
8
  collector.run
9
9
 
10
10
  Stratify::Gowalla::Activity.where(
11
- :checkin_id => 27148218,
12
- :spot_name => "Caribou Coffee",
13
- :spot_city_state => "Raleigh, NC",
14
- :created_at => Time.parse("2011-01-22T17:57:34Z")
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(
@@ -49,6 +49,10 @@ describe Stratify::Gowalla::Query do
49
49
  it "sets the longitude of the checkin spot" do
50
50
  @checkin.spot_longitude.should == -78.7846096333
51
51
  end
52
+
53
+ it "sets the message" do
54
+ @checkin.message.should == "True Grit"
55
+ end
52
56
  end
53
57
 
54
58
  end
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.0
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-06-26 00:00:00 Z
13
+ date: 2011-07-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gowalla