Skip to content

Commit

Permalink
Merge pull request #1101 from melbic/master
Browse files Browse the repository at this point in the history
Update podspec to include CocoaLumberjack subspec
  • Loading branch information
tonyarnold committed Oct 21, 2015
2 parents 3ca5df7 + 62be530 commit 79ebd10
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
7 changes: 7 additions & 0 deletions Docs/Installing-MagicalRecord.md
Expand Up @@ -20,9 +20,16 @@ One of the easiest ways to integrate MagicalRecord in your project is to use [Co

1. Add the following line to your `Podfile`:

a. Plain

````ruby
pod "MagicalRecord"
````
b. With CocoaLumberjack as Logger

````ruby
pod "MagicalRecord/CocoaLumberjack"
````

2. In your project directory, run `pod update`
3. You should now be able to add `#import <MagicalRecord/MagicalRecord.h>` to any of your target's source files and begin using MagicalRecord!
Expand Down
22 changes: 15 additions & 7 deletions MagicalRecord.podspec
@@ -1,4 +1,5 @@
Pod::Spec.new do |s|
s.default_subspec = 'Core'
s.name = 'MagicalRecord'
s.version = '2.3.0'
s.license = 'MIT'
Expand All @@ -11,12 +12,19 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '6.1'
s.osx.deployment_target = '10.8'

s.framework = 'CoreData'
s.header_dir = 'MagicalRecord'
s.source_files = 'MagicalRecord/**/*.{h,m}'
s.prefix_header_contents = <<-EOS
#import <CoreData/CoreData.h>
#import <MagicalRecord/MagicalRecord.h>
EOS
s.subspec 'Core' do |sp|
sp.framework = 'CoreData'
sp.header_dir = 'MagicalRecord'
sp.source_files = 'MagicalRecord/**/*.{h,m}'
sp.prefix_header_contents = <<-EOS
#import <CoreData/CoreData.h>
#import <MagicalRecord/MagicalRecord.h>
EOS
end

s.subspec 'CocoaLumberjack' do |sp|
sp.dependency 'MagicalRecord/Core'
sp.dependency 'CocoaLumberjack', '~> 2.0'
end

end

0 comments on commit 79ebd10

Please sign in to comment.