foursquare-api 0.0.1 → 0.0.2
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.
- data/.idea/.rakeTasks +7 -0
- data/.idea/dictionaries/ronaldw.xml +3 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/foursquare-api.iml +41 -0
- data/.idea/misc.xml +8 -0
- data/.idea/modules.xml +9 -0
- data/.idea/vcs.xml +8 -0
- data/.idea/workspace.xml +432 -0
- data/Gemfile.lock +20 -0
- data/VERSION +1 -1
- data/foursquare-api.gemspec +80 -0
- data/lib/.DS_Store +0 -0
- data/lib/checkins.rb +40 -0
- data/lib/foursquare.rb +7 -0
- data/lib/node.rb +31 -0
- data/lib/photo.rb +19 -0
- data/lib/settings.rb +16 -0
- data/lib/tips.rb +35 -0
- data/lib/user.rb +78 -0
- data/lib/venue.rb +71 -0
- metadata +23 -4
data/.idea/.rakeTasks
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
|
3
|
+
You are allowed to:
|
|
4
|
+
1. Remove rake task
|
|
5
|
+
2. Add existing rake tasks
|
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build gem into pkg/" fullCmd="build" taksId="build" /><RakeTask description="Remove rcov products for rcov" fullCmd="clobber_rcov" taksId="clobber_rcov" /><RakeTask description="Remove rdoc products" fullCmd="clobber_rdoc" taksId="clobber_rdoc" /><RakeTask description="Start IRB with all runtime dependencies loaded" fullCmd="console[script]" taksId="console[script]" /><RakeGroup description="" fullCmd="" taksId="gemcutter"><RakeTask description="Release gem to Gemcutter" fullCmd="gemcutter:release" taksId="release" /></RakeGroup><RakeTask description="Generate and validate gemspec" fullCmd="gemspec" taksId="gemspec" /><RakeGroup description="" fullCmd="" taksId="gemspec"><RakeTask description="Display the gemspec for debugging purposes, as jeweler knows it (not from the filesystem)" fullCmd="gemspec:debug" taksId="debug" /><RakeTask description="Regenreate the gemspec on the filesystem" fullCmd="gemspec:generate" taksId="generate" /><RakeTask description="Regenerate and validate gemspec, and then commits and pushes to git" fullCmd="gemspec:release" taksId="release" /><RakeTask description="Validates the gemspec on the filesystem" fullCmd="gemspec:validate" taksId="validate" /></RakeGroup><RakeGroup description="" fullCmd="" taksId="git"><RakeTask description="Tag and push release to git" fullCmd="git:release" taksId="release" /></RakeGroup><RakeTask description="Build and install gem using `gem install`" fullCmd="install" taksId="install" /><RakeTask description="Analyze code coverage with tests" fullCmd="rcov" taksId="rcov" /><RakeTask description="Build the rdoc HTML Files" fullCmd="rdoc" taksId="rdoc" /><RakeTask description="Release gem" fullCmd="release" taksId="release" /><RakeTask description="Force a rebuild of the RDOC files" fullCmd="rerdoc" taksId="rerdoc" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><RakeTask description="Displays the current version" fullCmd="version" taksId="version" /><RakeGroup description="" fullCmd="" taksId="version"><RakeGroup description="" fullCmd="" taksId="bump"><RakeTask description="Bump the major version by 1" fullCmd="version:bump:major" taksId="major" /><RakeTask description="Bump the a minor version by 1" fullCmd="version:bump:minor" taksId="minor" /><RakeTask description="Bump the patch version by 1" fullCmd="version:bump:patch" taksId="patch" /></RakeGroup><RakeTask description="Writes out an explicit version" fullCmd="version:write" taksId="write" /></RakeGroup><RakeTask description="" fullCmd="clobber" taksId="clobber" /><RakeTask description="" fullCmd="console" taksId="console" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="gemspec_required" taksId="gemspec_required" /><RakeTask description="" fullCmd="rdoc/index.html" taksId="rdoc/index.html" /><RakeTask description="" fullCmd="version_required" taksId="version_required" /></RakeGroup></Settings>
|
data/.idea/encodings.xml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
|
3
|
+
<component name="GemRequirementsHolder" version="3">
|
|
4
|
+
<requirement>
|
|
5
|
+
<requirement>
|
|
6
|
+
<dependency name="bundler" version="1.0.0" bound="LATEST_IN_BRANCH" git="false" path="false" doRequire="true" />
|
|
7
|
+
</requirement>
|
|
8
|
+
<source from="Gemfile" />
|
|
9
|
+
</requirement>
|
|
10
|
+
<requirement>
|
|
11
|
+
<requirement>
|
|
12
|
+
<dependency name="jeweler" version="1.5.2" bound="LATEST_IN_BRANCH" git="false" path="false" doRequire="true" />
|
|
13
|
+
</requirement>
|
|
14
|
+
<source from="Gemfile" />
|
|
15
|
+
</requirement>
|
|
16
|
+
<requirement>
|
|
17
|
+
<requirement>
|
|
18
|
+
<dependency name="rcov" version="0" bound="GREATER_OR_EQUAL" git="false" path="false" doRequire="true" />
|
|
19
|
+
</requirement>
|
|
20
|
+
<source from="Gemfile" />
|
|
21
|
+
</requirement>
|
|
22
|
+
<requirement>
|
|
23
|
+
<requirement>
|
|
24
|
+
<dependency name="shoulda" version="0" bound="GREATER_OR_EQUAL" git="false" path="false" doRequire="true" />
|
|
25
|
+
</requirement>
|
|
26
|
+
<source from="Gemfile" />
|
|
27
|
+
</requirement>
|
|
28
|
+
</component>
|
|
29
|
+
<component name="NewModuleRootManager">
|
|
30
|
+
<content url="file://$MODULE_DIR$" />
|
|
31
|
+
<orderEntry type="inheritedJdk" />
|
|
32
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="[gem] rake (v0.8.7, /Users/ronaldw/.rvm/gems/ruby-1.9.2-p0@global/gems/rake-0.8.7)" level="application" />
|
|
34
|
+
<orderEntry type="library" scope="PROVIDED" name="[gem] bundler (v1.0.7, /Users/ronaldw/.rvm/gems/ruby-1.9.2-p0@rails3/gems/bundler-1.0.7)" level="application" />
|
|
35
|
+
<orderEntry type="library" scope="PROVIDED" name="[gem] rcov (v0.9.9, /Users/ronaldw/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rcov-0.9.9)" level="application" />
|
|
36
|
+
<orderEntry type="library" scope="PROVIDED" name="[gem] jeweler (v1.5.2, /Users/ronaldw/.rvm/gems/ruby-1.9.2-p0@rails3/gems/jeweler-1.5.2)" level="application" />
|
|
37
|
+
<orderEntry type="library" scope="PROVIDED" name="[gem] shoulda (v2.11.3, /Users/ronaldw/.rvm/gems/ruby-1.9.2-p0@rails3/gems/shoulda-2.11.3)" level="application" />
|
|
38
|
+
<orderEntry type="library" scope="PROVIDED" name="[gem] git (v1.2.5, /Users/ronaldw/.rvm/gems/ruby-1.9.2-p0@rails3/gems/git-1.2.5)" level="application" />
|
|
39
|
+
</component>
|
|
40
|
+
</module>
|
|
41
|
+
|
data/.idea/misc.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="DependencyValidationManager">
|
|
4
|
+
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="Ruby SDK 1.9.2-p0 [rails3]" project-jdk-type="RUBY_SDK" />
|
|
7
|
+
</project>
|
|
8
|
+
|
data/.idea/modules.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/foursquare-api.iml" filepath="$PROJECT_DIR$/.idea/foursquare-api.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
9
|
+
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="c9bf4dcc-faf0-4ff0-970a-dfec1d51548e" name="Default" comment="">
|
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/foursquare.rb" />
|
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/.rakeTasks" afterPath="$PROJECT_DIR$/.idea/.rakeTasks" />
|
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/foursquare-api.iml" afterPath="$PROJECT_DIR$/.idea/foursquare-api.iml" />
|
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
9
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/VERSION" afterPath="$PROJECT_DIR$/VERSION" />
|
|
10
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/foursquare-api.gemspec" afterPath="$PROJECT_DIR$/foursquare-api.gemspec" />
|
|
11
|
+
</list>
|
|
12
|
+
<ignored path="foursquare-api.iws" />
|
|
13
|
+
<ignored path=".idea/workspace.xml" />
|
|
14
|
+
<option name="TRACKING_ENABLED" value="true" />
|
|
15
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
16
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
17
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
18
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
19
|
+
</component>
|
|
20
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
|
21
|
+
<component name="CreatePatchCommitExecutor">
|
|
22
|
+
<option name="PATCH_PATH" value="" />
|
|
23
|
+
<option name="REVERSE_PATCH" value="false" />
|
|
24
|
+
</component>
|
|
25
|
+
<component name="DaemonCodeAnalyzer">
|
|
26
|
+
<disable_hints />
|
|
27
|
+
</component>
|
|
28
|
+
<component name="FavoritesManager">
|
|
29
|
+
<favorites_list name="foursquare-api" />
|
|
30
|
+
</component>
|
|
31
|
+
<component name="FileColors" enabled="true" enabledForTabs="true" showNonProject="false" />
|
|
32
|
+
<component name="FileEditorManager">
|
|
33
|
+
<leaf>
|
|
34
|
+
<file leaf-file-name="user.rb" pinned="false" current="false" current-in-tab="false">
|
|
35
|
+
<entry file="file://$PROJECT_DIR$/lib/user.rb">
|
|
36
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
37
|
+
<state line="24" column="30" selection-start="589" selection-end="589" vertical-scroll-proportion="0.0">
|
|
38
|
+
<folding />
|
|
39
|
+
</state>
|
|
40
|
+
</provider>
|
|
41
|
+
</entry>
|
|
42
|
+
</file>
|
|
43
|
+
<file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
|
|
44
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
45
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
46
|
+
<state line="11" column="20" selection-start="357" selection-end="357" vertical-scroll-proportion="0.0">
|
|
47
|
+
<folding />
|
|
48
|
+
</state>
|
|
49
|
+
</provider>
|
|
50
|
+
</entry>
|
|
51
|
+
</file>
|
|
52
|
+
<file leaf-file-name="foursquare-api.gemspec" pinned="false" current="false" current-in-tab="false">
|
|
53
|
+
<entry file="file://$PROJECT_DIR$/foursquare-api.gemspec">
|
|
54
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
55
|
+
<state line="33" column="29" selection-start="897" selection-end="897" vertical-scroll-proportion="-14.307693">
|
|
56
|
+
<folding />
|
|
57
|
+
</state>
|
|
58
|
+
</provider>
|
|
59
|
+
</entry>
|
|
60
|
+
</file>
|
|
61
|
+
<file leaf-file-name="foursquare.rb" pinned="false" current="false" current-in-tab="false">
|
|
62
|
+
<entry file="file://$PROJECT_DIR$/lib/foursquare.rb">
|
|
63
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
64
|
+
<state line="0" column="15" selection-start="15" selection-end="15" vertical-scroll-proportion="0.0">
|
|
65
|
+
<folding />
|
|
66
|
+
</state>
|
|
67
|
+
</provider>
|
|
68
|
+
</entry>
|
|
69
|
+
</file>
|
|
70
|
+
<file leaf-file-name="VERSION" pinned="false" current="true" current-in-tab="true">
|
|
71
|
+
<entry file="file://$PROJECT_DIR$/VERSION">
|
|
72
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
73
|
+
<state line="0" column="5" selection-start="5" selection-end="5" vertical-scroll-proportion="0.0">
|
|
74
|
+
<folding />
|
|
75
|
+
</state>
|
|
76
|
+
</provider>
|
|
77
|
+
</entry>
|
|
78
|
+
</file>
|
|
79
|
+
<file leaf-file-name="venue.rb" pinned="false" current="false" current-in-tab="false">
|
|
80
|
+
<entry file="file://$PROJECT_DIR$/lib/venue.rb">
|
|
81
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
82
|
+
<state line="22" column="46" selection-start="628" selection-end="658" vertical-scroll-proportion="0.0">
|
|
83
|
+
<folding />
|
|
84
|
+
</state>
|
|
85
|
+
</provider>
|
|
86
|
+
</entry>
|
|
87
|
+
</file>
|
|
88
|
+
<file leaf-file-name="photo.rb" pinned="false" current="false" current-in-tab="false">
|
|
89
|
+
<entry file="file://$PROJECT_DIR$/lib/photo.rb">
|
|
90
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
91
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
|
92
|
+
<folding />
|
|
93
|
+
</state>
|
|
94
|
+
</provider>
|
|
95
|
+
</entry>
|
|
96
|
+
</file>
|
|
97
|
+
<file leaf-file-name="node.rb" pinned="false" current="false" current-in-tab="false">
|
|
98
|
+
<entry file="file://$PROJECT_DIR$/lib/node.rb">
|
|
99
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
100
|
+
<state line="2" column="19" selection-start="50" selection-end="81" vertical-scroll-proportion="0.0">
|
|
101
|
+
<folding />
|
|
102
|
+
</state>
|
|
103
|
+
</provider>
|
|
104
|
+
</entry>
|
|
105
|
+
</file>
|
|
106
|
+
<file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
|
|
107
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
108
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
109
|
+
<state line="12" column="27" selection-start="290" selection-end="290" vertical-scroll-proportion="0.0">
|
|
110
|
+
<folding />
|
|
111
|
+
</state>
|
|
112
|
+
</provider>
|
|
113
|
+
</entry>
|
|
114
|
+
</file>
|
|
115
|
+
<file leaf-file-name="README.rdoc" pinned="false" current="false" current-in-tab="false">
|
|
116
|
+
<entry file="file://$PROJECT_DIR$/README.rdoc">
|
|
117
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
118
|
+
<state line="11" column="24" selection-start="228" selection-end="228" vertical-scroll-proportion="0.0">
|
|
119
|
+
<folding />
|
|
120
|
+
</state>
|
|
121
|
+
</provider>
|
|
122
|
+
</entry>
|
|
123
|
+
</file>
|
|
124
|
+
</leaf>
|
|
125
|
+
</component>
|
|
126
|
+
<component name="FindManager">
|
|
127
|
+
<FindUsagesManager>
|
|
128
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
|
129
|
+
</FindUsagesManager>
|
|
130
|
+
</component>
|
|
131
|
+
<component name="Git.Branch.Configurations">
|
|
132
|
+
<option name="CURRENT" value="master" />
|
|
133
|
+
<option name="CONFIGURATIONS">
|
|
134
|
+
<array>
|
|
135
|
+
<BranchConfiguration>
|
|
136
|
+
<option name="IS_AUTO_DETECTED" value="true" />
|
|
137
|
+
<option name="NAME" value="master" />
|
|
138
|
+
<option name="BRANCHES">
|
|
139
|
+
<array>
|
|
140
|
+
<BranchInfo>
|
|
141
|
+
<option name="ROOT" value="$PROJECT_DIR$" />
|
|
142
|
+
<option name="REFERENCE" value="master" />
|
|
143
|
+
</BranchInfo>
|
|
144
|
+
</array>
|
|
145
|
+
</option>
|
|
146
|
+
</BranchConfiguration>
|
|
147
|
+
</array>
|
|
148
|
+
</option>
|
|
149
|
+
</component>
|
|
150
|
+
<component name="Git.Settings">
|
|
151
|
+
<option name="GIT_EXECUTABLE" value="/usr/local/git/bin/git" />
|
|
152
|
+
<option name="CHECKOUT_INCLUDE_TAGS" value="false" />
|
|
153
|
+
<option name="UPDATE_CHANGES_POLICY" value="STASH" />
|
|
154
|
+
</component>
|
|
155
|
+
<component name="IdeDocumentHistory">
|
|
156
|
+
<option name="changedFiles">
|
|
157
|
+
<list>
|
|
158
|
+
<option value="$PROJECT_DIR$/README.rdoc" />
|
|
159
|
+
<option value="$PROJECT_DIR$/Rakefile" />
|
|
160
|
+
<option value="$PROJECT_DIR$/foursquare-api.gemspec" />
|
|
161
|
+
<option value="$PROJECT_DIR$/lib/foursquare.rb" />
|
|
162
|
+
<option value="$PROJECT_DIR$/VERSION" />
|
|
163
|
+
</list>
|
|
164
|
+
</option>
|
|
165
|
+
</component>
|
|
166
|
+
<component name="ProjectLevelVcsManager">
|
|
167
|
+
<OptionsSetting value="true" id="Add" />
|
|
168
|
+
<OptionsSetting value="true" id="Remove" />
|
|
169
|
+
<OptionsSetting value="true" id="Checkout" />
|
|
170
|
+
<OptionsSetting value="true" id="Update" />
|
|
171
|
+
<OptionsSetting value="true" id="Status" />
|
|
172
|
+
<OptionsSetting value="true" id="Edit" />
|
|
173
|
+
<ConfirmationsSetting value="0" id="Add" />
|
|
174
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
|
175
|
+
</component>
|
|
176
|
+
<component name="ProjectReloadState">
|
|
177
|
+
<option name="STATE" value="0" />
|
|
178
|
+
</component>
|
|
179
|
+
<component name="ProjectView">
|
|
180
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
|
181
|
+
<flattenPackages />
|
|
182
|
+
<showMembers ProjectPane="true" />
|
|
183
|
+
<showModules />
|
|
184
|
+
<showLibraryContents />
|
|
185
|
+
<hideEmptyPackages />
|
|
186
|
+
<abbreviatePackageNames />
|
|
187
|
+
<autoscrollToSource />
|
|
188
|
+
<autoscrollFromSource />
|
|
189
|
+
<sortByType />
|
|
190
|
+
</navigator>
|
|
191
|
+
<panes>
|
|
192
|
+
<pane id="Favorites" />
|
|
193
|
+
<pane id="ProjectPane">
|
|
194
|
+
<subPane>
|
|
195
|
+
<PATH>
|
|
196
|
+
<PATH_ELEMENT>
|
|
197
|
+
<option name="myItemId" value="foursquare-api" />
|
|
198
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
199
|
+
</PATH_ELEMENT>
|
|
200
|
+
<PATH_ELEMENT>
|
|
201
|
+
<option name="myItemId" value="External Libraries" />
|
|
202
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
|
203
|
+
</PATH_ELEMENT>
|
|
204
|
+
</PATH>
|
|
205
|
+
<PATH>
|
|
206
|
+
<PATH_ELEMENT>
|
|
207
|
+
<option name="myItemId" value="foursquare-api" />
|
|
208
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
209
|
+
</PATH_ELEMENT>
|
|
210
|
+
<PATH_ELEMENT>
|
|
211
|
+
<option name="myItemId" value="foursquare-api" />
|
|
212
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
213
|
+
</PATH_ELEMENT>
|
|
214
|
+
</PATH>
|
|
215
|
+
<PATH>
|
|
216
|
+
<PATH_ELEMENT>
|
|
217
|
+
<option name="myItemId" value="foursquare-api" />
|
|
218
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
219
|
+
</PATH_ELEMENT>
|
|
220
|
+
<PATH_ELEMENT>
|
|
221
|
+
<option name="myItemId" value="foursquare-api" />
|
|
222
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
223
|
+
</PATH_ELEMENT>
|
|
224
|
+
<PATH_ELEMENT>
|
|
225
|
+
<option name="myItemId" value="pkg" />
|
|
226
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
227
|
+
</PATH_ELEMENT>
|
|
228
|
+
</PATH>
|
|
229
|
+
<PATH>
|
|
230
|
+
<PATH_ELEMENT>
|
|
231
|
+
<option name="myItemId" value="foursquare-api" />
|
|
232
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
233
|
+
</PATH_ELEMENT>
|
|
234
|
+
<PATH_ELEMENT>
|
|
235
|
+
<option name="myItemId" value="foursquare-api" />
|
|
236
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
237
|
+
</PATH_ELEMENT>
|
|
238
|
+
<PATH_ELEMENT>
|
|
239
|
+
<option name="myItemId" value="lib" />
|
|
240
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
241
|
+
</PATH_ELEMENT>
|
|
242
|
+
</PATH>
|
|
243
|
+
</subPane>
|
|
244
|
+
</pane>
|
|
245
|
+
<pane id="Scope">
|
|
246
|
+
<subPane />
|
|
247
|
+
<subPane subId="Problems" />
|
|
248
|
+
<subPane subId="All" />
|
|
249
|
+
</pane>
|
|
250
|
+
</panes>
|
|
251
|
+
</component>
|
|
252
|
+
<component name="PropertiesComponent">
|
|
253
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
|
254
|
+
<property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyLoadPathConfigurable" />
|
|
255
|
+
<property name="options.searchVisible" value="true" />
|
|
256
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
|
257
|
+
</component>
|
|
258
|
+
<component name="RunManager">
|
|
259
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda">
|
|
260
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
|
261
|
+
<module name="" />
|
|
262
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
263
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
264
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
265
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
266
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
267
|
+
<envs />
|
|
268
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
269
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
270
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
271
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
272
|
+
</COVERAGE_PATTERN>
|
|
273
|
+
</EXTENSION>
|
|
274
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
275
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
276
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_CLASS_NAME" VALUE="" />
|
|
277
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
|
278
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
|
279
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
280
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
|
|
281
|
+
<method />
|
|
282
|
+
</configuration>
|
|
283
|
+
<list size="0" />
|
|
284
|
+
</component>
|
|
285
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
|
286
|
+
<component name="SvnConfiguration" maxAnnotateRevisions="500">
|
|
287
|
+
<option name="USER" value="" />
|
|
288
|
+
<option name="PASSWORD" value="" />
|
|
289
|
+
<option name="LAST_MERGED_REVISION" />
|
|
290
|
+
<option name="UPDATE_RUN_STATUS" value="false" />
|
|
291
|
+
<option name="MERGE_DRY_RUN" value="false" />
|
|
292
|
+
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
|
|
293
|
+
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
|
|
294
|
+
<option name="IGNORE_SPACES_IN_MERGE" value="false" />
|
|
295
|
+
<option name="DETECT_NESTED_COPIES" value="true" />
|
|
296
|
+
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
|
|
297
|
+
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
|
|
298
|
+
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
|
|
299
|
+
<configuration useDefault="true">$USER_HOME$/.subversion_IDEA</configuration>
|
|
300
|
+
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
|
301
|
+
</component>
|
|
302
|
+
<component name="TaskManager">
|
|
303
|
+
<task active="true" id="Default" summary="Default task">
|
|
304
|
+
<changelist id="c9bf4dcc-faf0-4ff0-970a-dfec1d51548e" name="Default" comment="" />
|
|
305
|
+
<created>1293895909670</created>
|
|
306
|
+
<updated>1293895909670</updated>
|
|
307
|
+
</task>
|
|
308
|
+
<servers />
|
|
309
|
+
</component>
|
|
310
|
+
<component name="ToolWindowManager">
|
|
311
|
+
<frame x="0" y="22" width="1280" height="774" extended-state="6" />
|
|
312
|
+
<editor active="true" />
|
|
313
|
+
<layout>
|
|
314
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
315
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
316
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
|
|
317
|
+
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
318
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.22133759" sideWeight="0.6702454" order="1" side_tool="false" content_ui="tabs" x="1781" y="61" width="278" height="902" />
|
|
319
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
320
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
321
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
322
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
323
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
324
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
325
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
326
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3297546" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
327
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
328
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
329
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
330
|
+
</layout>
|
|
331
|
+
</component>
|
|
332
|
+
<component name="VcsManagerConfiguration">
|
|
333
|
+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
|
334
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
|
|
335
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
|
336
|
+
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
|
337
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
|
338
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
|
339
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
|
340
|
+
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
|
341
|
+
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
|
342
|
+
<option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
|
|
343
|
+
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
|
344
|
+
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
|
345
|
+
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
|
346
|
+
<option name="LAST_COMMIT_MESSAGE" />
|
|
347
|
+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
|
|
348
|
+
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
349
|
+
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
|
350
|
+
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
|
351
|
+
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
|
352
|
+
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
|
353
|
+
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
|
354
|
+
<option name="ACTIVE_VCS_NAME" />
|
|
355
|
+
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
|
356
|
+
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
|
357
|
+
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
|
358
|
+
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
|
359
|
+
</component>
|
|
360
|
+
<component name="XDebuggerManager">
|
|
361
|
+
<breakpoint-manager />
|
|
362
|
+
</component>
|
|
363
|
+
<component name="editorHistoryManager">
|
|
364
|
+
<entry file="file://$PROJECT_DIR$/foursquare-api.gemspec">
|
|
365
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
366
|
+
<state line="33" column="29" selection-start="897" selection-end="897" vertical-scroll-proportion="-14.307693">
|
|
367
|
+
<folding />
|
|
368
|
+
</state>
|
|
369
|
+
</provider>
|
|
370
|
+
</entry>
|
|
371
|
+
<entry file="file://$PROJECT_DIR$/lib/user.rb">
|
|
372
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
373
|
+
<state line="24" column="30" selection-start="589" selection-end="589" vertical-scroll-proportion="0.0">
|
|
374
|
+
<folding />
|
|
375
|
+
</state>
|
|
376
|
+
</provider>
|
|
377
|
+
</entry>
|
|
378
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
379
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
380
|
+
<state line="11" column="20" selection-start="357" selection-end="357" vertical-scroll-proportion="0.0">
|
|
381
|
+
<folding />
|
|
382
|
+
</state>
|
|
383
|
+
</provider>
|
|
384
|
+
</entry>
|
|
385
|
+
<entry file="file://$PROJECT_DIR$/README.rdoc">
|
|
386
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
387
|
+
<state line="11" column="24" selection-start="228" selection-end="228" vertical-scroll-proportion="0.0">
|
|
388
|
+
<folding />
|
|
389
|
+
</state>
|
|
390
|
+
</provider>
|
|
391
|
+
</entry>
|
|
392
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
393
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
394
|
+
<state line="12" column="27" selection-start="290" selection-end="290" vertical-scroll-proportion="0.0">
|
|
395
|
+
<folding />
|
|
396
|
+
</state>
|
|
397
|
+
</provider>
|
|
398
|
+
</entry>
|
|
399
|
+
<entry file="file://$PROJECT_DIR$/lib/node.rb">
|
|
400
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
401
|
+
<state line="2" column="19" selection-start="50" selection-end="81" vertical-scroll-proportion="0.0">
|
|
402
|
+
<folding />
|
|
403
|
+
</state>
|
|
404
|
+
</provider>
|
|
405
|
+
</entry>
|
|
406
|
+
<entry file="file://$PROJECT_DIR$/lib/photo.rb">
|
|
407
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
408
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
|
409
|
+
</provider>
|
|
410
|
+
</entry>
|
|
411
|
+
<entry file="file://$PROJECT_DIR$/lib/venue.rb">
|
|
412
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
413
|
+
<state line="22" column="46" selection-start="628" selection-end="658" vertical-scroll-proportion="0.0">
|
|
414
|
+
<folding />
|
|
415
|
+
</state>
|
|
416
|
+
</provider>
|
|
417
|
+
</entry>
|
|
418
|
+
<entry file="file://$PROJECT_DIR$/lib/foursquare.rb">
|
|
419
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
420
|
+
<state line="0" column="15" selection-start="15" selection-end="15" vertical-scroll-proportion="0.0">
|
|
421
|
+
<folding />
|
|
422
|
+
</state>
|
|
423
|
+
</provider>
|
|
424
|
+
</entry>
|
|
425
|
+
<entry file="file://$PROJECT_DIR$/VERSION">
|
|
426
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
427
|
+
<state line="0" column="5" selection-start="5" selection-end="5" vertical-scroll-proportion="0.0" />
|
|
428
|
+
</provider>
|
|
429
|
+
</entry>
|
|
430
|
+
</component>
|
|
431
|
+
</project>
|
|
432
|
+
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
GEM
|
|
2
|
+
remote: http://rubygems.org/
|
|
3
|
+
specs:
|
|
4
|
+
git (1.2.5)
|
|
5
|
+
jeweler (1.5.2)
|
|
6
|
+
bundler (~> 1.0.0)
|
|
7
|
+
git (>= 1.2.5)
|
|
8
|
+
rake
|
|
9
|
+
rake (0.8.7)
|
|
10
|
+
rcov (0.9.9)
|
|
11
|
+
shoulda (2.11.3)
|
|
12
|
+
|
|
13
|
+
PLATFORMS
|
|
14
|
+
ruby
|
|
15
|
+
|
|
16
|
+
DEPENDENCIES
|
|
17
|
+
bundler (~> 1.0.0)
|
|
18
|
+
jeweler (~> 1.5.2)
|
|
19
|
+
rcov
|
|
20
|
+
shoulda
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{foursquare-api}
|
|
8
|
+
s.version = "0.0.2"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["ronaldwan"]
|
|
12
|
+
s.date = %q{2011-01-02}
|
|
13
|
+
s.description = %q{Please see github for description}
|
|
14
|
+
s.email = %q{ronald__wan@hotmail.com}
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"LICENSE.txt",
|
|
17
|
+
"README.rdoc"
|
|
18
|
+
]
|
|
19
|
+
s.files = [
|
|
20
|
+
".document",
|
|
21
|
+
".idea/.rakeTasks",
|
|
22
|
+
".idea/dictionaries/ronaldw.xml",
|
|
23
|
+
".idea/encodings.xml",
|
|
24
|
+
".idea/foursquare-api.iml",
|
|
25
|
+
".idea/misc.xml",
|
|
26
|
+
".idea/modules.xml",
|
|
27
|
+
".idea/vcs.xml",
|
|
28
|
+
".idea/workspace.xml",
|
|
29
|
+
"Gemfile",
|
|
30
|
+
"Gemfile.lock",
|
|
31
|
+
"LICENSE.txt",
|
|
32
|
+
"README.rdoc",
|
|
33
|
+
"Rakefile",
|
|
34
|
+
"VERSION",
|
|
35
|
+
"foursquare-api.gemspec",
|
|
36
|
+
"lib/.DS_Store",
|
|
37
|
+
"lib/checkins.rb",
|
|
38
|
+
"lib/foursquare.rb",
|
|
39
|
+
"lib/node.rb",
|
|
40
|
+
"lib/photo.rb",
|
|
41
|
+
"lib/settings.rb",
|
|
42
|
+
"lib/tips.rb",
|
|
43
|
+
"lib/user.rb",
|
|
44
|
+
"lib/venue.rb",
|
|
45
|
+
"test/helper.rb",
|
|
46
|
+
"test/test_foursquare-api.rb"
|
|
47
|
+
]
|
|
48
|
+
s.homepage = %q{http://github.com/ronaldwan/foursquare-api}
|
|
49
|
+
s.licenses = ["GPL"]
|
|
50
|
+
s.require_paths = ["lib"]
|
|
51
|
+
s.rubygems_version = %q{1.3.7}
|
|
52
|
+
s.summary = %q{%Q{foursquare-api is a Ruby wrapper for the new Foursqauare V2 API}}
|
|
53
|
+
s.test_files = [
|
|
54
|
+
"test/helper.rb",
|
|
55
|
+
"test/test_foursquare-api.rb"
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
if s.respond_to? :specification_version then
|
|
59
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
60
|
+
s.specification_version = 3
|
|
61
|
+
|
|
62
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
63
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
|
64
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
65
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
|
66
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
|
67
|
+
else
|
|
68
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
|
69
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
70
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
|
71
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
|
72
|
+
end
|
|
73
|
+
else
|
|
74
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
|
75
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
76
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
|
77
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
data/lib/.DS_Store
ADDED
|
Binary file
|
data/lib/checkins.rb
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Foursquare
|
|
2
|
+
class Checkins < Node
|
|
3
|
+
#General
|
|
4
|
+
def add(params={})
|
|
5
|
+
params = {:venueId => "",
|
|
6
|
+
:venue => "",
|
|
7
|
+
:shout => "",
|
|
8
|
+
:broadcast => "public",
|
|
9
|
+
:ll => "37.792694,-122.409325",
|
|
10
|
+
:llAcc => "100",
|
|
11
|
+
:alt => "0",
|
|
12
|
+
:altAcc => "100"}.merge!(params)
|
|
13
|
+
|
|
14
|
+
perform_graph_request("checkins/add", params, "post")
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def recent(params={})
|
|
18
|
+
params = {:ll => "37.792694,-122.409325", #for returning each venue's distance from ll
|
|
19
|
+
:limit => "100",
|
|
20
|
+
:offset => "0",
|
|
21
|
+
:afterTimestampAcc => ""}.merge!(params)
|
|
22
|
+
|
|
23
|
+
perform_graph_request("checkins/recent", params)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
#Actions
|
|
27
|
+
def addcomment(checkin_id, params={})
|
|
28
|
+
params = {:ll => "37.792694,-122.409325", #for returning each venue's distance from ;;
|
|
29
|
+
:text => "100"}.merge!(params)
|
|
30
|
+
|
|
31
|
+
perform_graph_request("checkins/#{checkin_id}/addcomment", params, "post")
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def deletecomment(checkin_id, params={})
|
|
35
|
+
params = {:commentId => ""}.merge!(params)
|
|
36
|
+
|
|
37
|
+
perform_graph_request("checkins/#{checkin_id}/deletecomment", params, "post")
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
data/lib/foursquare.rb
ADDED
data/lib/node.rb
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
module Foursquare
|
|
2
|
+
class Node
|
|
3
|
+
def initialize(origin_identifier, access_token="")
|
|
4
|
+
@origin_identifier = origin_identifier
|
|
5
|
+
@access_token = access_token
|
|
6
|
+
@base_url = "https://api.foursquare.com:443/v2/"
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def perform_graph_request(endpoint, params={}, method="get")
|
|
10
|
+
require 'net/http'
|
|
11
|
+
|
|
12
|
+
@query_string = "?"
|
|
13
|
+
@query_string += "oauth_token=#{CGI.escape(@access_token)}" unless @access_token.blank?
|
|
14
|
+
|
|
15
|
+
if method=="get"
|
|
16
|
+
params.each{|key, val| @query_string += "&#{key}=#{val}"}
|
|
17
|
+
url = URI.parse("#{@base_url}#{endpoint}#{@query_string}")
|
|
18
|
+
request = Net::HTTP::Get.new("#{url.path}?#{url.query}",{"Content-Type"=>"text/json"})
|
|
19
|
+
else
|
|
20
|
+
url = URI.parse("#{@base_url}#{endpoint}#{@query_string}")
|
|
21
|
+
request = Net::HTTP::Post.new("#{url.path}?#{url.query}",{"Content-Type"=>"text/json"})
|
|
22
|
+
request.set_form_data(params)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
http = Net::HTTP.new(url.host, url.port)
|
|
26
|
+
http.use_ssl = true
|
|
27
|
+
response = JSON.parse(http.start {|http| http.request(request) }.body)
|
|
28
|
+
response
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
data/lib/photo.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Foursquare
|
|
2
|
+
class Photo < Node
|
|
3
|
+
def add(params={}, file="")
|
|
4
|
+
require 'rest_client'
|
|
5
|
+
|
|
6
|
+
params = {:checkinId => "",
|
|
7
|
+
:tipId => "",
|
|
8
|
+
:venueId => "",
|
|
9
|
+
:broadcast => "",
|
|
10
|
+
:ll => "",
|
|
11
|
+
:llAcc => "",
|
|
12
|
+
:alt => "",
|
|
13
|
+
:altAcc => "",
|
|
14
|
+
:file => File.new(file)}
|
|
15
|
+
|
|
16
|
+
RestClient.post('https://api.foursquare.com/v2/photos/add', params)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/settings.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Foursquare
|
|
2
|
+
class Settings < Node
|
|
3
|
+
#General
|
|
4
|
+
def all
|
|
5
|
+
perform_graph_request("settings/all", {})
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
#Actions
|
|
9
|
+
def set(setting_id, params={})
|
|
10
|
+
# setting_id can be sendToTwitter, sendToFacebook, receivePings
|
|
11
|
+
params = {:valueId => ""}.merge!(params)
|
|
12
|
+
|
|
13
|
+
perform_graph_request("settings/#{setting_id}/set", params, "post")
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/tips.rb
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Foursquare
|
|
2
|
+
class Tips < Node
|
|
3
|
+
#General
|
|
4
|
+
def add(params={})
|
|
5
|
+
params = {:venueId => "",
|
|
6
|
+
:text => "",
|
|
7
|
+
:url => ""}.merge!(params)
|
|
8
|
+
|
|
9
|
+
perform_graph_request("tips/add", params, "post")
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def search(params={})
|
|
13
|
+
params = {:ll => "37.792694,-122.409325",
|
|
14
|
+
:limit => "100",
|
|
15
|
+
:offset => "0",
|
|
16
|
+
:filter => "",
|
|
17
|
+
:query => ""}.merge!(params)
|
|
18
|
+
|
|
19
|
+
perform_graph_request("tips/search", params)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
#Actions
|
|
23
|
+
def marktodo(tip_id)
|
|
24
|
+
perform_graph_request("tips/#{tip_id}/marktodo", {}, "post")
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def markdone(tip_id)
|
|
28
|
+
perform_graph_request("tips/#{tip_id}/markdone", {}, "post")
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def unmark(tip_id)
|
|
32
|
+
perform_graph_request("tips/#{tip_id}/unmark", {}, "post")
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
data/lib/user.rb
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
module Foursquare
|
|
2
|
+
class User < Node
|
|
3
|
+
#General
|
|
4
|
+
def search(params={})
|
|
5
|
+
params = {:phone => "",
|
|
6
|
+
:email => "",
|
|
7
|
+
:twitter => "",
|
|
8
|
+
:twitterSource => "",
|
|
9
|
+
:fbid => "",
|
|
10
|
+
:name => ""}.merge!(params)
|
|
11
|
+
|
|
12
|
+
perform_graph_request("users/search", params)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def requests
|
|
16
|
+
perform_graph_request("users/requests")
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
#Aspects
|
|
20
|
+
def badges(user_id)
|
|
21
|
+
perform_graph_request("users/#{user_id}/badges")
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def checkins(user_id="self", params={})
|
|
25
|
+
params = {:limit => 100,
|
|
26
|
+
:offset => 0,
|
|
27
|
+
:afterTimestamp => "",
|
|
28
|
+
:beforeTimestamp => ""}.merge!(params)
|
|
29
|
+
|
|
30
|
+
perform_graph_request("users/#{user_id}/checkins", params)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def friends(user_id="self")
|
|
34
|
+
perform_graph_request("users/#{user_id}/friends")
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def tips(user_id="self", params={})
|
|
38
|
+
params = {:sort => "recent",
|
|
39
|
+
:ll => "37.792694,-122.409325"}.merge!(params)
|
|
40
|
+
|
|
41
|
+
perform_graph_request("users/#{user_id}/tips", params)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def todos(user_id="self", params={})
|
|
45
|
+
params = {:sort => "recent",
|
|
46
|
+
:ll => "37.792694,-122.409325"}.merge!(params)
|
|
47
|
+
|
|
48
|
+
perform_graph_request("users/#{user_id}/todos", params)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def venuehistory(user_id="self")
|
|
52
|
+
perform_graph_request("users/#{user_id}/venuehistory")
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
#Actions
|
|
56
|
+
def request(user_id)
|
|
57
|
+
perform_graph_request("users/#{user_id}/request", {}, "post")
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def unfriend(user_id)
|
|
61
|
+
perform_graph_request("users/#{user_id}/unfriend", {}, "post")
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def approve(user_id)
|
|
65
|
+
perform_graph_request("users/#{user_id}/approve", {}, "post")
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def deny(user_id)
|
|
69
|
+
perform_graph_request("users/#{user_id}/deny", {}, "post")
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def setpings(user_id, params={})
|
|
73
|
+
params = {:value => "true"}.merge!(params)
|
|
74
|
+
|
|
75
|
+
perform_graph_request("users/#{user_id}/setpings", params, "post")
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
data/lib/venue.rb
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
module Foursquare
|
|
2
|
+
class Venue < Node
|
|
3
|
+
#Venues
|
|
4
|
+
def add(params={})
|
|
5
|
+
params = {:name => "",
|
|
6
|
+
:address => "",
|
|
7
|
+
:crossStreet => "",
|
|
8
|
+
:city=>"San Francisco",
|
|
9
|
+
:state=>"California",
|
|
10
|
+
:zip=>"94108",
|
|
11
|
+
:phone=>"",
|
|
12
|
+
:ll => "37.792694,-122.409325",
|
|
13
|
+
:primaryCategoryId => "4bf58dd8d48988d1e1931735"}.merge!(params)
|
|
14
|
+
|
|
15
|
+
perform_graph_request("venues/add", params, "post")
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def categories
|
|
19
|
+
perform_graph_request("venues/categories", {})
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def search(params={})
|
|
23
|
+
params = {:ll => "37.792694,-122.409325",
|
|
24
|
+
:llAcc => "100",
|
|
25
|
+
:alt => "0",
|
|
26
|
+
:altAcc=>"100",
|
|
27
|
+
:query=>"",
|
|
28
|
+
:limit=>"50",
|
|
29
|
+
:intent=>"checkin"}.merge!(params)
|
|
30
|
+
|
|
31
|
+
perform_graph_request("venues/search", params)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
#Aspects
|
|
35
|
+
def herenow(venue_id)
|
|
36
|
+
perform_graph_request("venues/#{venue_id}/herenow", {})
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
#sort = recent or popular
|
|
40
|
+
def tips(venue_id, params={:sort => "recent"})
|
|
41
|
+
perform_graph_request("venues/#{venue_id}/tips", {})
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
#marktodo
|
|
45
|
+
def marktodo(venue_id, params={})
|
|
46
|
+
params = {:text => ""}.merge!(params)
|
|
47
|
+
|
|
48
|
+
perform_graph_request("venues/#{venue_id}/marktodo", params, "post")
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def flag(venue_id, params={})
|
|
52
|
+
params = {:problem => "mislocated"}.merge!(params)
|
|
53
|
+
|
|
54
|
+
perform_graph_request("venues/#{venue_id}/flag", params, "post")
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def proposeedit(venue_id, params={})
|
|
58
|
+
params = {:name => "",
|
|
59
|
+
:address => "",
|
|
60
|
+
:crossStreet => "",
|
|
61
|
+
:city=>"San Francisco",
|
|
62
|
+
:state=>"California",
|
|
63
|
+
:zip=>"94108",
|
|
64
|
+
:phone=>"",
|
|
65
|
+
:ll => "37.792694,-122.409325",
|
|
66
|
+
:primaryCategoryId => "4bf58dd8d48988d1e1931735"}.merge!(params)
|
|
67
|
+
|
|
68
|
+
perform_graph_request("venues/#{venue_id}/proposeedit", params, "post")
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.0.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- ronaldwan
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2011-01-
|
|
17
|
+
date: 2011-01-02 00:00:00 -05:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -84,11 +84,30 @@ extra_rdoc_files:
|
|
|
84
84
|
- README.rdoc
|
|
85
85
|
files:
|
|
86
86
|
- .document
|
|
87
|
+
- .idea/.rakeTasks
|
|
88
|
+
- .idea/dictionaries/ronaldw.xml
|
|
89
|
+
- .idea/encodings.xml
|
|
90
|
+
- .idea/foursquare-api.iml
|
|
91
|
+
- .idea/misc.xml
|
|
92
|
+
- .idea/modules.xml
|
|
93
|
+
- .idea/vcs.xml
|
|
94
|
+
- .idea/workspace.xml
|
|
87
95
|
- Gemfile
|
|
96
|
+
- Gemfile.lock
|
|
88
97
|
- LICENSE.txt
|
|
89
98
|
- README.rdoc
|
|
90
99
|
- Rakefile
|
|
91
100
|
- VERSION
|
|
101
|
+
- foursquare-api.gemspec
|
|
102
|
+
- lib/.DS_Store
|
|
103
|
+
- lib/checkins.rb
|
|
104
|
+
- lib/foursquare.rb
|
|
105
|
+
- lib/node.rb
|
|
106
|
+
- lib/photo.rb
|
|
107
|
+
- lib/settings.rb
|
|
108
|
+
- lib/tips.rb
|
|
109
|
+
- lib/user.rb
|
|
110
|
+
- lib/venue.rb
|
|
92
111
|
- test/helper.rb
|
|
93
112
|
- test/test_foursquare-api.rb
|
|
94
113
|
has_rdoc: true
|
|
@@ -105,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
105
124
|
requirements:
|
|
106
125
|
- - ">="
|
|
107
126
|
- !ruby/object:Gem::Version
|
|
108
|
-
hash:
|
|
127
|
+
hash: 765948601616044601
|
|
109
128
|
segments:
|
|
110
129
|
- 0
|
|
111
130
|
version: "0"
|