diff --git a/MagicalRecord.podspec b/MagicalRecord.podspec new file mode 100644 index 0000000..3daca85 --- /dev/null +++ b/MagicalRecord.podspec @@ -0,0 +1,19 @@ +Pod::Spec.new do |s| + s.name = 'MagicalRecord' + s.version = '1.7.1' + s.license = 'MIT' + s.summary = 'Super Awesome Easy Fetching for Core Data 1!!!11!!!!1! ' + s.homepage = 'http://github.com/magicalpanda/MagicalRecord' + s.author = { 'Saul Mora' => 'saul@magicalpanda.com' } + s.source = { :git => 'http://github.com/magicalpanda/MagicalRecord.git', :tag => '1.7.1' } + s.description = 'Handy fetching, threading and data import helpers to make Core Data a little easier to use.' + s.source_files = 'Source/**/*.{h,m}' + s.framework = 'CoreData' + + def s.post_install(target) + prefix_header = config.project_pods_root + target.prefix_header_filename + prefix_header.open('a') do |file| + file.puts(%{#ifdef __OBJC__\n#define MR_SHORTHAND 1\n#import "CoreData+MagicalRecord.h"\n#endif}) + end + end +end