Skip to content

Instantly share code, notes, and snippets.

@alibby
Created May 16, 2011 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alibby/975347 to your computer and use it in GitHub Desktop.
Save alibby/975347 to your computer and use it in GitHub Desktop.
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
diff --git a/Gemfile.lock b/Gemfile.lock
index 1dc2b61..66b9be0 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -39,6 +39,7 @@ GEM
columnize (0.3.2)
daemons (1.0.10)
delayed_job (1.8.4)
+ exifr (1.0.4)
factory_girl (1.3.3)
fakeweb (1.2.8)
json (1.4.6)
@@ -88,6 +89,7 @@ DEPENDENCIES
aws-s3 (= 0.6.2)
daemons (= 1.0.10)
delayed_job (= 1.8.4)
+ exifr (= 1.0.4)
factory_girl
fakeweb (= 1.2.8)
json (= 1.4.6)
diff --git a/app/models/exif_data.rb b/app/models/exif_data.rb
new file mode 100644
index 0000000..188369f
--- /dev/null
+++ b/app/models/exif_data.rb
@@ -0,0 +1,2 @@
+class ExifData < ActiveRecord::Base
+end
diff --git a/db/migrate/20110426182446_create_exif_data.rb b/db/migrate/20110426182446_create_exif_data.rb
new file mode 100644
index 0000000..423c69c
--- /dev/null
+++ b/db/migrate/20110426182446_create_exif_data.rb
@@ -0,0 +1,12 @@
+class CreateExifDatas < ActiveRecord::Migration
+ def self.up
+ create_table :exif_datas do |t|
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :exif_datas
+ end
+end
diff --git a/test/fixtures/exif_data.yml b/test/fixtures/exif_data.yml
new file mode 100644
index 0000000..5bf0293
--- /dev/null
+++ b/test/fixtures/exif_data.yml
@@ -0,0 +1,7 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+
+# one:
+# column: value
+#
+# two:
+# column: value
diff --git a/test/unit/exif_data_test.rb b/test/unit/exif_data_test.rb
new file mode 100644
index 0000000..6c804aa
--- /dev/null
+++ b/test/unit/exif_data_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class ExifDataTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment