This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am alibby on github. | |
* I am alibby (https://keybase.io/alibby) on keybase. | |
* I have a public key ASA6IVoLmSRubCJRaA8nMyDmFgK4GXc7da11UpqzUq_-6go | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alibby:local alibby$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install libspatialite | |
==> Downloading http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-3.0.1.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/libspatialite-3.0.1.tar.gz | |
tar xf /Library/Caches/Homebrew/libspatialite-3.0.1.tar.gz | |
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libspatialite/3.0.1 --with-sysroot=/usr/local | |
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libspatialite/3.0.1 --with-sysroot=/usr/local | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d | |
checking for gawk... no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return unless session['devise.facebook_data'] | |
return unless session['devise.facebook_data']['extra'] | |
if data = session["devise.facebook_data"]["extra"]["raw_info"] | |
user.facebook_id = data["id"] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Gemfile b/Gemfile | |
index b02fe9e..e24581d 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -43,3 +43,4 @@ group :test do | |
end | |
gem 'ruby-debug', :group => [:development, :test] | |
+gem 'exifr', '1.0.4' | |
\ No newline at end of file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attributes = params[:photo] | |
photo = Array(current_user.photos(:per_page => 1, :page => 1, :id => params[:id])).first | |
photo.update :photo => attributes | |