stratify-gowalla 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ *.gem
2
+ .bundle
3
+ pkg/*
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use ruby-1.9.2-p180@stratify
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in stratify-gowalla.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,110 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ stratify-gowalla (0.1.0)
5
+ gowalla (~> 0.5.6)
6
+ railties (~> 3.1.0.rc1)
7
+ stratify-base (~> 0.1.0)
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ actionpack (3.1.0.rc1)
13
+ activemodel (= 3.1.0.rc1)
14
+ activesupport (= 3.1.0.rc1)
15
+ builder (~> 3.0.0)
16
+ erubis (~> 2.7.0)
17
+ i18n (~> 0.6.0beta1)
18
+ rack (~> 1.3.0.beta2)
19
+ rack-cache (~> 1.0.1)
20
+ rack-mount (~> 0.8.1)
21
+ rack-test (~> 0.6.0)
22
+ sprockets (~> 2.0.0.beta.5)
23
+ tzinfo (~> 0.3.27)
24
+ activemodel (3.1.0.rc1)
25
+ activesupport (= 3.1.0.rc1)
26
+ bcrypt-ruby (~> 2.1.4)
27
+ builder (~> 3.0.0)
28
+ i18n (~> 0.6.0beta1)
29
+ activesupport (3.1.0.rc1)
30
+ multi_json (~> 1.0)
31
+ addressable (2.2.6)
32
+ bcrypt-ruby (2.1.4)
33
+ bson (1.3.1)
34
+ bson_ext (1.3.1)
35
+ builder (3.0.0)
36
+ database_cleaner (0.6.7)
37
+ diff-lcs (1.1.2)
38
+ erubis (2.7.0)
39
+ fakeweb (1.3.0)
40
+ faraday (0.6.1)
41
+ addressable (~> 2.2.4)
42
+ multipart-post (~> 1.1.0)
43
+ rack (< 2, >= 1.1.0)
44
+ faraday_middleware (0.6.3)
45
+ faraday (~> 0.6.0)
46
+ gowalla (0.5.6)
47
+ faraday (~> 0.6)
48
+ faraday_middleware (~> 0.6)
49
+ hashie (~> 1.0.0)
50
+ oauth2 (~> 0.4)
51
+ hashie (1.0.0)
52
+ hike (1.0.0)
53
+ i18n (0.6.0)
54
+ mongo (1.3.1)
55
+ bson (>= 1.3.1)
56
+ mongoid (2.0.2)
57
+ activemodel (~> 3.0)
58
+ mongo (~> 1.3)
59
+ tzinfo (~> 0.3.22)
60
+ multi_json (1.0.3)
61
+ multipart-post (1.1.2)
62
+ oauth2 (0.4.1)
63
+ faraday (~> 0.6.1)
64
+ multi_json (>= 0.0.5)
65
+ rack (1.3.0)
66
+ rack-cache (1.0.2)
67
+ rack (>= 0.4)
68
+ rack-mount (0.8.1)
69
+ rack (>= 1.0.0)
70
+ rack-ssl (1.3.2)
71
+ rack
72
+ rack-test (0.6.0)
73
+ rack (>= 1.0)
74
+ railties (3.1.0.rc1)
75
+ actionpack (= 3.1.0.rc1)
76
+ activesupport (= 3.1.0.rc1)
77
+ rack-ssl (~> 1.3.2)
78
+ rake (>= 0.8.7)
79
+ thor (~> 0.14.6)
80
+ rake (0.9.1)
81
+ rspec (2.6.0)
82
+ rspec-core (~> 2.6.0)
83
+ rspec-expectations (~> 2.6.0)
84
+ rspec-mocks (~> 2.6.0)
85
+ rspec-core (2.6.3)
86
+ rspec-expectations (2.6.0)
87
+ diff-lcs (~> 1.1.2)
88
+ rspec-mocks (2.6.0)
89
+ sprockets (2.0.0.beta.10)
90
+ hike (~> 1.0)
91
+ rack (~> 1.0)
92
+ tilt (!= 1.3.0, ~> 1.1)
93
+ stratify-base (0.1.0)
94
+ bson_ext (~> 1.3.1)
95
+ mongoid (~> 2.0.2)
96
+ tilt (~> 1.3.2)
97
+ thor (0.14.6)
98
+ tilt (1.3.2)
99
+ tzinfo (0.3.27)
100
+ vcr (1.10.0)
101
+
102
+ PLATFORMS
103
+ ruby
104
+
105
+ DEPENDENCIES
106
+ database_cleaner (~> 0.6.7)
107
+ fakeweb (~> 1.3.0)
108
+ rspec (~> 2.6.0)
109
+ stratify-gowalla!
110
+ vcr (~> 1.10.0)
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Jason Rudolph (http://jasonrudolph.com)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # stratify-gowalla
2
+
3
+ ## Dependencies
4
+
5
+ Stratify is developed and tested with the following dependencies.
6
+
7
+ * Ruby 1.9.2 (See `.rvmrc` for the specific version.)
8
+ * MongoDB 1.8
9
+
10
+ ## Development
11
+
12
+ To get set up for development on stratify-gowalla, clone the repo, and ...
13
+
14
+ cd stratify/stratify-gowalla
15
+ gem install bundler
16
+ bundle
17
+ rake
18
+
19
+ ## License
20
+
21
+ Copyright 2011 Jason Rudolph ([jasonrudolph.com](http://jasonrudolph.com)). Released under the MIT license. See the LICENSE file for further details.
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rspec/core'
5
+ require 'rspec/core/rake_task'
6
+ RSpec::Core::RakeTask.new(:spec) do |spec|
7
+ spec.pattern = FileList['spec/**/*_spec.rb']
8
+ end
9
+
10
+ task :default => :spec
@@ -0,0 +1,6 @@
1
+ require 'stratify-base'
2
+
3
+ require 'stratify-gowalla/activity'
4
+ require 'stratify-gowalla/collector'
5
+ require 'stratify-gowalla/engine'
6
+ require 'stratify-gowalla/version'
@@ -0,0 +1,21 @@
1
+ module Stratify
2
+ module Gowalla
3
+ class Activity < Stratify::Activity
4
+ field :checkin_id, :type => Integer
5
+ field :spot_name
6
+ field :spot_city_state
7
+ field :spot_latitude, :type => BigDecimal
8
+ field :spot_longitude, :type => BigDecimal
9
+
10
+ natural_key :checkin_id
11
+
12
+ validates_presence_of :checkin_id, :spot_name, :spot_latitude, :spot_longitude
13
+
14
+ template "Checked in at <strong><%= spot_name %></strong> in <strong><%= spot_city_state %></strong>"
15
+
16
+ def permalink
17
+ "http://gowalla.com/checkins/#{checkin_id}"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,20 @@
1
+ require 'stratify-gowalla/query'
2
+
3
+ module Stratify
4
+ module Gowalla
5
+ class Collector < Stratify::Collector
6
+ source "Gowalla"
7
+
8
+ configuration_fields :username => {:type => :string},
9
+ :password => {:type => :password}
10
+
11
+ def activities
12
+ query.activities
13
+ end
14
+
15
+ def query
16
+ Stratify::Gowalla::Query.new(username, password)
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,9 @@
1
+ require 'rails'
2
+
3
+ module Stratify
4
+ module Gowalla
5
+ class Engine < Rails::Engine
6
+ engine_name :stratify_gowalla
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,41 @@
1
+ require 'gowalla'
2
+
3
+ module Stratify
4
+ module Gowalla
5
+ class Query
6
+ attr_reader :username, :password
7
+
8
+ def initialize(username, password)
9
+ @username = username
10
+ @password = password
11
+ end
12
+
13
+ def activities
14
+ raw_activities.map {|raw_activity| build_activity_from_raw_data(raw_activity)}
15
+ end
16
+
17
+ private
18
+
19
+ def raw_activities
20
+ gowalla = ::Gowalla::Client.new(:username => username, :password => password, :api_key => 'fa574894bddc43aa96c556eb457b4009')
21
+ gowalla.user_events
22
+ end
23
+
24
+ def build_activity_from_raw_data(data)
25
+ Stratify::Gowalla::Activity.new({
26
+ :checkin_id => extract_id_from_checkin_url(data.url),
27
+ :spot_name => data.spot.name,
28
+ :spot_city_state => data.spot.city_state,
29
+ :spot_latitude => data.spot.lat,
30
+ :spot_longitude => data.spot.lng,
31
+ :created_at => data.created_at
32
+ })
33
+ end
34
+
35
+ def extract_id_from_checkin_url(url)
36
+ return unless url
37
+ url.slice(/\d*$/) # parse the checkin_id out of the url "/checkins/18805305"
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,5 @@
1
+ module Stratify
2
+ module Gowalla
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
data/spec/mongoid.yml ADDED
@@ -0,0 +1,3 @@
1
+ persist_in_safe_mode: true
2
+ host: localhost
3
+ database: stratify_gowalla_test
@@ -0,0 +1,38 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'stratify-gowalla'
5
+
6
+ # Requires supporting files with custom matchers and macros, etc,
7
+ # in ./support/ and its subdirectories.
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
+
10
+ require 'database_cleaner'
11
+
12
+ RSpec.configure do |config|
13
+ config.color_enabled = true
14
+ config.formatter = :progress
15
+
16
+ # Configure RSpec to run focused specs, and also respect the alias 'fit' for focused specs
17
+ config.filter_run :focused => true
18
+ config.run_all_when_everything_filtered = true
19
+ config.alias_example_to :fit, :focused => true
20
+
21
+ config.extend VCR::RSpec::Macros
22
+
23
+ # Configure RSpec to truncate the database before any spec tagged with ":database => true"
24
+ DatabaseCleaner.strategy = :truncation
25
+ DatabaseCleaner.orm = "mongoid"
26
+ config.before(:each, :database => true) do
27
+ DatabaseCleaner.clean
28
+ end
29
+
30
+ config.before(:suite) do
31
+ initialize_mongoid_configuration
32
+ end
33
+ end
34
+
35
+ def initialize_mongoid_configuration
36
+ mongoid_config = YAML::load_file(File.join(File.dirname(__FILE__), "mongoid.yml"))
37
+ Mongoid.from_hash(mongoid_config)
38
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Stratify::Gowalla::Activity do
4
+
5
+ describe "#permalink" do
6
+ it "returns the URL for this checkin on Gowalla" do
7
+ checkin = Stratify::Gowalla::Activity.new(:checkin_id => 26106798)
8
+ checkin.permalink.should == "http://gowalla.com/checkins/26106798"
9
+ end
10
+ end
11
+
12
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe "stratify-gowalla" do
4
+ use_vcr_cassette "gowalla"
5
+
6
+ it "collects and stores data from Gowalla", :database => true do
7
+ collector = Stratify::Gowalla::Collector.create!(:username => "jasonrudolph", :password => "secret")
8
+ collector.run
9
+
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")
15
+ ).should exist
16
+
17
+ Stratify::Gowalla::Activity.where(
18
+ :checkin_id => 26999668,
19
+ :spot_name => "Starbucks",
20
+ :created_at => Time.parse("2011-01-20T21:35:25Z")
21
+ ).should exist
22
+ end
23
+ end
@@ -0,0 +1,54 @@
1
+ require 'spec_helper'
2
+ require 'hashie'
3
+
4
+ SampleCheckinHash = {
5
+ "type" => "checkin",
6
+ "_photos_count" => 0,
7
+ "message" => "True Grit",
8
+ "item" => nil,
9
+ "url" => "/checkins/26106798",
10
+ "photo_thumbnail_urls" => [],
11
+ "activity_url" => "/checkins/26106798/activity",
12
+ "spot" => {
13
+ "lat" => "35.9040261833",
14
+ "lng" => "-78.7846096333",
15
+ "image_url" => "http://static.gowalla.com/categories/30-c21e752b813cd8873603a18e06431675-100.png",
16
+ "city_state" => "Raleigh, NC",
17
+ "description" => "",
18
+ "url" => "/spots/122718",
19
+ "name" => "Regal Cinemas Brier Creek"
20
+ },
21
+ "created_at" => "2011-01-08T21:08:16Z",
22
+ "_comments_count" => 0
23
+ }
24
+
25
+ describe Stratify::Gowalla::Query do
26
+
27
+ describe "building a Stratify::Gowalla::Activity from the hash returned by the Gowalla API" do
28
+ before do
29
+ query = Stratify::Gowalla::Query.new('johndoe', 'password')
30
+ @checkin = query.send :build_activity_from_raw_data, Hashie::Mash.new(SampleCheckinHash)
31
+ end
32
+
33
+ it "sets the checkin ID" do
34
+ @checkin.checkin_id.should == 26106798
35
+ end
36
+
37
+ it "sets the name of the checkin spot" do
38
+ @checkin.spot_name.should == "Regal Cinemas Brier Creek"
39
+ end
40
+
41
+ it "sets the city and state of the checkin spot" do
42
+ @checkin.spot_city_state.should == "Raleigh, NC"
43
+ end
44
+
45
+ it "sets the latitude of the checkin spot" do
46
+ @checkin.spot_latitude.should == 35.9040261833
47
+ end
48
+
49
+ it "sets the longitude of the checkin spot" do
50
+ @checkin.spot_longitude.should == -78.7846096333
51
+ end
52
+ end
53
+
54
+ end
@@ -0,0 +1,7 @@
1
+ require 'vcr'
2
+
3
+ VCR.config do |c|
4
+ c.cassette_library_dir = 'vcr_cassettes'
5
+ c.stub_with :fakeweb
6
+ c.default_cassette_options = { :record => :once }
7
+ end
@@ -0,0 +1,30 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "stratify-gowalla/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "stratify-gowalla"
7
+ s.version = Stratify::Gowalla::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Jason Rudolph"]
10
+ s.email = ["jason@jasonrudolph.com"]
11
+ s.homepage = "http://github.com/jasonrudolph/stratify/"
12
+ s.summary = "Gowalla plugin for Stratify"
13
+ s.description = s.summary
14
+
15
+ s.rubyforge_project = "stratify-gowalla"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+
22
+ s.add_runtime_dependency "gowalla", "~> 0.5.6"
23
+ s.add_runtime_dependency "railties", "~> 3.1.0.rc1"
24
+ s.add_runtime_dependency "stratify-base", "~> 0.1.0"
25
+
26
+ s.add_development_dependency "database_cleaner", "~> 0.6.7"
27
+ s.add_development_dependency "fakeweb", "~> 1.3.0"
28
+ s.add_development_dependency "rspec", "~> 2.6.0"
29
+ s.add_development_dependency "vcr", "~> 1.10.0"
30
+ end
@@ -0,0 +1,51 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://jasonrudolph:secret@api.gowalla.com:443/users/jasonrudolph/events
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ user-agent:
11
+ - Ruby gem
12
+ x-gowalla-api-key:
13
+ - fa574894bddc43aa96c556eb457b4009
14
+ authorization:
15
+ - Basic amFzb25ydWRvbHBoOmh1cC1tYWctdWotdHlnLXVybC11cy1lcg==
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ server:
22
+ - nginx/0.8.53
23
+ date:
24
+ - Mon, 24 Jan 2011 01:01:31 GMT
25
+ content-type:
26
+ - application/json; charset=utf-8
27
+ vary:
28
+ - Accept-Encoding
29
+ status:
30
+ - 200 OK
31
+ etag:
32
+ - "\"0d80c627c9a4a107ea3d46887576bfe2\""
33
+ x-ua-compatible:
34
+ - IE=Edge,chrome=1
35
+ x-runtime:
36
+ - "0.595277"
37
+ set-cookie:
38
+ - _gowalla_session=BAh7CCIbX2dvd2FsbGFfcmVtZW1iZXJzX3lvdSIBgGRhYmYxN2U2NDJlZTk0Y2YzNjc0MTczZjAyZTcxMjI0MmNlNTZhZjI5ZTE0YjBlNGZkNTg2ODZjMzJjNzAyNjNjMDE3N2UwYTVhNzM5MDQzMGI5OWE3OThhZjBiZDdmYTUyYTNmMzU0MmFjNDk2MDYxNmIyY2JkOGE5YTNiMzE2Ig9zZXNzaW9uX2lkIiU1ZjA4M2NjZWMxZjJmM2RhNzNmNjgzMjRkYWVlOWNmOSIeX2dvd2FsbGFfcmVtZW1iZXJzX3lvdV9pZGkDIS4B--07ed312345b3ad3bea49a5f1a2dcd8caaf354a4d; path=/; HttpOnly
39
+ - gowalla_user_id=77345; path=/; expires=Tue, 24-Jan-2012 01:01:30 GMT
40
+ - _gowalla_remembers_you=dabf17e642ee94cf3674173f02e712242ce56af29e14b0e4fd58686c32c70263c0177e0a5a7390430b99a798af0bd7fa52a3f3542ac4960616b2cbd8a9a3b316%3A%3A77345; path=/; expires=Thu, 24-Feb-2011 01:01:30 GMT
41
+ - ref_uid=bdb8868fc792dbb8e30478728551ec60; path=/
42
+ content-length:
43
+ - "4592"
44
+ x-varnish:
45
+ - "941200194"
46
+ age:
47
+ - "0"
48
+ via:
49
+ - 1.1 varnish
50
+ body: " {\"activity\":[{\"type\":\"checkin\",\"activity_url\":\"/checkins/27234147/activity\",\"created_at\":\"2011-01-23T18:42:31Z\",\"_photos_count\":0,\"message\":\"\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/27234147\",\"spot\":{\"lat\":\"35.8526521829\",\"description\":\"\",\"lng\":\"-78.5812478138\",\"city_state\":\"Raleigh, NC\",\"image_url\":\"http://static.gowalla.com/categories/19-b02c459d08a9c55dd71fc6aeea651809-100.png\",\"url\":\"/spots/54462\",\"name\":\"Carrabba's Italian Grill\"}},{\"type\":\"checkin\",\"activity_url\":\"/checkins/27224039/activity\",\"created_at\":\"2011-01-23T16:12:54Z\",\"_photos_count\":0,\"message\":\"\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/27224039\",\"spot\":{\"lat\":\"35.8969029174\",\"description\":\"\",\"lng\":\"-78.7256643176\",\"city_state\":\"Raleigh, NC\",\"image_url\":\"http://static.gowalla.com/categories/360-1c9df5e1eee528230201480fa1007dde-100.png\",\"url\":\"/spots/579182\",\"name\":\"Fitness 19\"}},{\"type\":\"checkin\",\"activity_url\":\"/checkins/27148218/activity\",\"created_at\":\"2011-01-22T17:57:34Z\",\"_photos_count\":0,\"message\":\"\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/27148218\",\"spot\":{\"lat\":\"35.9089305468\",\"description\":\"\",\"lng\":\"-78.7845093012\",\"city_state\":\"Raleigh, NC\",\"image_url\":\"http://static.gowalla.com/categories/1-796238e72df55251e61c52fb50801321-100.png\",\"url\":\"/spots/28680\",\"name\":\"Caribou Coffee\"}},{\"type\":\"checkin\",\"activity_url\":\"/checkins/27147302/activity\",\"created_at\":\"2011-01-22T17:47:33Z\",\"_photos_count\":0,\"message\":\"Final prep for Breckenridge trip!\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/27147302\",\"spot\":{\"lat\":\"35.9103217333\",\"description\":\"\",\"lng\":\"-78.7808441667\",\"city_state\":\"Morrisville, NC\",\"image_url\":\"http://static.gowalla.com/categories/61-0da3338d3b6f6fcaaba1cbc9be3791c5-100.png\",\"url\":\"/spots/759108\",\"name\":\"Dick's Sporting Goods\"}},{\"type\":\"checkin\",\"activity_url\":\"/checkins/27083730/activity\",\"created_at\":\"2011-01-21T23:13:47Z\",\"_photos_count\":0,\"message\":\"\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/27083730\",\"spot\":{\"lat\":\"35.884818254\",\"description\":null,\"lng\":\"-78.737595356\",\"city_state\":\"Raleigh, NC\",\"image_url\":\"http://static.gowalla.com/categories/155-73fa5150a3deec69dfa8b3b0085754ef-100.png\",\"url\":\"/spots/1401805\",\"name\":\"Tony's Pizza\"}},{\"type\":\"checkin\",\"activity_url\":\"/checkins/27032449/activity\",\"created_at\":\"2011-01-21T10:47:24Z\",\"_photos_count\":0,\"message\":\"\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/27032449\",\"spot\":{\"lat\":\"35.8969029174\",\"description\":\"\",\"lng\":\"-78.7256643176\",\"city_state\":\"Raleigh, NC\",\"image_url\":\"http://static.gowalla.com/categories/360-1c9df5e1eee528230201480fa1007dde-100.png\",\"url\":\"/spots/579182\",\"name\":\"Fitness 19\"}},{\"type\":\"checkin\",\"activity_url\":\"/checkins/27002151/activity\",\"created_at\":\"2011-01-20T22:29:28Z\",\"_photos_count\":0,\"message\":\"\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/27002151\",\"spot\":{\"lat\":\"35.7666975167\",\"description\":null,\"lng\":\"-78.783311\",\"city_state\":\"Cary, NC\",\"image_url\":\"http://static.gowalla.com/categories/24-1ce1ad9e41ae85d468b71e483daac930-100.png\",\"url\":\"/spots/536999\",\"name\":\"Hibernian\"}},{\"type\":\"checkin\",\"activity_url\":\"/checkins/26999668/activity\",\"created_at\":\"2011-01-20T21:35:25Z\",\"_photos_count\":0,\"message\":\"\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/26999668\",\"spot\":{\"lat\":\"35.763899489\",\"description\":\"\",\"lng\":\"-78.783082366\",\"city_state\":\"Cary, NC\",\"image_url\":\"http://static.gowalla.com/categories/1-796238e72df55251e61c52fb50801321-100.png\",\"url\":\"/spots/47772\",\"name\":\"Starbucks\"}},{\"type\":\"checkin\",\"activity_url\":\"/checkins/26959514/activity\",\"created_at\":\"2011-01-20T11:00:32Z\",\"_photos_count\":0,\"message\":\"\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/26959514\",\"spot\":{\"lat\":\"35.8969029174\",\"description\":\"\",\"lng\":\"-78.7256643176\",\"city_state\":\"Raleigh, NC\",\"image_url\":\"http://static.gowalla.com/categories/360-1c9df5e1eee528230201480fa1007dde-100.png\",\"url\":\"/spots/579182\",\"name\":\"Fitness 19\"}},{\"type\":\"checkin\",\"activity_url\":\"/checkins/26931297/activity\",\"created_at\":\"2011-01-19T23:10:45Z\",\"_photos_count\":0,\"message\":\"\",\"item\":null,\"photo_thumbnail_urls\":[],\"_comments_count\":0,\"url\":\"/checkins/26931297\",\"spot\":{\"lat\":\"35.8388136333\",\"description\":null,\"lng\":\"-78.6775086667\",\"city_state\":\"Raleigh, NC\",\"image_url\":\"http://static.gowalla.com/categories/19-b02c459d08a9c55dd71fc6aeea651809-100.png\",\"url\":\"/spots/30068\",\"name\":\"Brio Tuscan Grille\"}}]}\n"
51
+ http_version: "1.1"
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: stratify-gowalla
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Jason Rudolph
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-06-26 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: gowalla
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 0.5.6
24
+ type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: railties
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: 3.1.0.rc1
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: stratify-base
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.1.0
46
+ type: :runtime
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: database_cleaner
50
+ prerelease: false
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: 0.6.7
57
+ type: :development
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
60
+ name: fakeweb
61
+ prerelease: false
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: 1.3.0
68
+ type: :development
69
+ version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ prerelease: false
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: 2.6.0
79
+ type: :development
80
+ version_requirements: *id006
81
+ - !ruby/object:Gem::Dependency
82
+ name: vcr
83
+ prerelease: false
84
+ requirement: &id007 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 1.10.0
90
+ type: :development
91
+ version_requirements: *id007
92
+ description: Gowalla plugin for Stratify
93
+ email:
94
+ - jason@jasonrudolph.com
95
+ executables: []
96
+
97
+ extensions: []
98
+
99
+ extra_rdoc_files: []
100
+
101
+ files:
102
+ - .gitignore
103
+ - .rvmrc
104
+ - Gemfile
105
+ - Gemfile.lock
106
+ - LICENSE
107
+ - README.md
108
+ - Rakefile
109
+ - app/assets/images/gowalla-icon-16.png
110
+ - app/assets/images/gowalla-icon-24.png
111
+ - lib/stratify-gowalla.rb
112
+ - lib/stratify-gowalla/activity.rb
113
+ - lib/stratify-gowalla/collector.rb
114
+ - lib/stratify-gowalla/engine.rb
115
+ - lib/stratify-gowalla/query.rb
116
+ - lib/stratify-gowalla/version.rb
117
+ - spec/mongoid.yml
118
+ - spec/spec_helper.rb
119
+ - spec/stratify-gowalla/activity_spec.rb
120
+ - spec/stratify-gowalla/integration_spec.rb
121
+ - spec/stratify-gowalla/query_spec.rb
122
+ - spec/support/vcr_setup.rb
123
+ - stratify-gowalla.gemspec
124
+ - vcr_cassettes/gowalla.yml
125
+ homepage: http://github.com/jasonrudolph/stratify/
126
+ licenses: []
127
+
128
+ post_install_message:
129
+ rdoc_options: []
130
+
131
+ require_paths:
132
+ - lib
133
+ required_ruby_version: !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: "0"
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: "0"
145
+ requirements: []
146
+
147
+ rubyforge_project: stratify-gowalla
148
+ rubygems_version: 1.8.5
149
+ signing_key:
150
+ specification_version: 3
151
+ summary: Gowalla plugin for Stratify
152
+ test_files:
153
+ - spec/mongoid.yml
154
+ - spec/spec_helper.rb
155
+ - spec/stratify-gowalla/activity_spec.rb
156
+ - spec/stratify-gowalla/integration_spec.rb
157
+ - spec/stratify-gowalla/query_spec.rb
158
+ - spec/support/vcr_setup.rb