From 8aeb8c0d20b84d37970da19e4a5364246d12a70a Mon Sep 17 00:00:00 2001 From: Tristan Himmelman Date: Thu, 30 Apr 2015 21:56:40 -0400 Subject: [PATCH 1/2] updated podspec --- AlamofireObjectMapper.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AlamofireObjectMapper.podspec b/AlamofireObjectMapper.podspec index 58a27cb..c036cd6 100644 --- a/AlamofireObjectMapper.podspec +++ b/AlamofireObjectMapper.podspec @@ -3,7 +3,7 @@ Pod::Spec.new do |s| s.name = "AlamofireObjectMapper" s.version = "0.1" s.license = { :type => "MIT", :file => "LICENSE" } - s.summary = "An extension to Alamofire which converts responses into objects using ObjectMapper" + s.summary = "An extension to Alamofire which automatically converts JSON response data into swift objects using ObjectMapper" s.homepage = "https://github.com/tristanhimmelman/AlamofireObjectMapper" s.author = { "Tristan Himmelman" => "tristanhimmelman@gmail.com" } s.source = { :git => 'https://github.com/tristanhimmelman/AlamofireObjectMapper.git', :tag => s.version.to_s } @@ -15,4 +15,4 @@ Pod::Spec.new do |s| s.dependency 'Alamofire', '~> 1.2' s.dependency 'ObjectMapper', '~> 0.10' -end \ No newline at end of file +end From 31771ea6437a2fbaabcb2856bd50caa799776ecc Mon Sep 17 00:00:00 2001 From: Tristan Himmelman Date: Sun, 3 May 2015 23:08:46 -0400 Subject: [PATCH 2/2] Updated Readme --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9fb8fce..39a3cc3 100644 --- a/README.md +++ b/README.md @@ -32,14 +32,15 @@ Given a URL which returns weather data in the following form: You can use this extension as the follows: ```swift let URL = "https://raw.githubusercontent.com/tristanhimmelman/AlamofireObjectMapper/d8bb95982be8a11a2308e779bb9a9707ebe42ede/sample_json" -Alamofire.request(.GET, URL, parameters: nil).responseObject { (response: WeatherResponse?, error: NSError?) in - println(response?.location) - if let threeDayForecast = response?.threeDayForecast { - for forecast in threeDayForecast { - println(forecast.day) - println(forecast.temperature) - } - } +Alamofire.request(.GET, URL, parameters: nil) + .responseObject { (response: WeatherResponse?, error: NSError?) in + println(response?.location) + if let threeDayForecast = response?.threeDayForecast { + for forecast in threeDayForecast { + println(forecast.day) + println(forecast.temperature) + } + } } ```