Skip to content

Commit ad2c730

Browse files
authored
Merge pull request #194 from longbai/test_update
proj update
2 parents e4b93b7 + 9bf29ad commit ad2c730

File tree

9 files changed

+121
-113
lines changed

9 files changed

+121
-113
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: objective-c
22
osx_image: xcode7
3+
34
before_install:
45
- rvm install 2.3.1
56
- rvm use 2.3.1
@@ -8,10 +9,13 @@ before_install:
89
- gem install cocoapods --pre
910
- pod --version
1011
- pod repo remove master
12+
- rm -rf ~/.cocoapods
1113
- pod setup
1214
- pod install --verbose --no-repo-update
15+
1316
before_script:
1417
- export QINIU_TEST_ENV="travis"
18+
1519
script:
1620
- xctool -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_iOS -sdk iphonesimulator -configuration Release test -test-sdk iphonesimulator9.0 -freshInstall -freshSimulator
1721
- xctool -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_Mac -sdk macosx -configuration Release test -test-sdk macosx

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#Changelog
22

3+
## 7.1.1 (2016-09-08)
4+
## 改变
5+
* 修正 happydns 调用函数
6+
37
## 7.1.0 (2016-07-04)
48
## 改变
59
* 依赖升级到AFNetworking 到 3.x

Podfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
source 'https://github.com/CocoaPods/Specs.git'
22

33
def shared_dependencies
4-
pod "AFNetworking", "~> 3"
5-
pod "HappyDNS", ">= 0.3"
4+
pod 'AFNetworking', '~> 3'
5+
pod 'HappyDNS', '>= 0.3'
66
end
77

88
def test_dependencies
9-
pod "AGAsyncTestHelper/Shorthand"
9+
pod 'AGAsyncTestHelper/Shorthand'
1010
end
1111

12-
target "QiniuSDK_iOS" do
13-
platform :ios, "7.0"
12+
target 'QiniuSDK_iOS' do
13+
platform :ios, '7.0'
1414
shared_dependencies
1515
end
1616

17-
target "QiniuSDK_iOSTests" do
18-
platform :ios, "7.0"
17+
target 'QiniuSDK_iOSTests' do
18+
platform :ios, '7.0'
1919
shared_dependencies
2020
test_dependencies
2121
end
2222

23-
target "QiniuSDK_Mac" do
24-
platform :osx, "10.9"
23+
target 'QiniuSDK_Mac' do
24+
platform :osx, '10.9'
2525
shared_dependencies
2626
end
2727

28-
target "QiniuSDK_MacTests" do
29-
platform :osx, "10.9"
28+
target 'QiniuSDK_MacTests' do
29+
platform :osx, '10.9'
3030
shared_dependencies
3131
test_dependencies
3232
end

Qiniu.podspec

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
Pod::Spec.new do |s|
22
s.name = 'Qiniu'
3-
s.version = "7.1.0.1"
4-
s.summary = "Qiniu Resource Storage SDK for iOS and Mac"
5-
s.homepage = "https://github.com/qiniu/objc-sdk"
6-
s.social_media_url = "http://weibo.com/qiniutek"
3+
s.version = '7.1.1'
4+
s.summary = 'Qiniu Resource Storage SDK for iOS and Mac'
5+
s.homepage = 'https://github.com/qiniu/objc-sdk'
6+
s.social_media_url = 'http://weibo.com/qiniutek'
77
s.author = "Qiniu => [email protected]"
8-
s.source = {:git => "https://github.com/qiniu/objc-sdk.git", :tag => "v#{s.version}"}
8+
s.source = {:git => 'https://github.com/qiniu/objc-sdk.git', :tag => "v#{s.version}"}
99

10-
s.ios.deployment_target = "7.0"
11-
s.osx.deployment_target = "10.9"
10+
s.ios.deployment_target = '7.0'
11+
s.osx.deployment_target = '10.9'
1212

1313
s.source_files = "QiniuSDK/**/*.{h,m}"
1414
s.requires_arc = true
15-
s.libraries = "z"
16-
s.dependency "AFNetworking", "~> 3"
17-
s.dependency "HappyDNS", "~> 0.3"
15+
s.libraries = 'z'
16+
s.dependency 'AFNetworking', '~> 3'
17+
s.dependency 'HappyDNS', '~> 0.3'
1818
s.license = { :type => "MIT", :text => <<-LICENSE
1919
The MIT License (MIT)
2020

QiniuSDK.xcodeproj/project.pbxproj

Lines changed: 87 additions & 87 deletions
Large diffs are not rendered by default.

QiniuSDK/Common/QNVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
/**
1212
* sdk 版本
1313
*/
14-
static const NSString *kQiniuVersion = @"7.1.0";
14+
static const NSString *kQiniuVersion = @"7.1.1";

QiniuSDK/Storage/QNConfiguration.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ static void addZoneToDns(QNZone *zone, QNDnsManager *dns) {
3939
QNDnsManager *d = builder.dns;
4040
if (d == nil) {
4141
id<QNResolverDelegate> r1 = [QNResolver systemResolver];
42-
id<QNResolverDelegate> r2 = [[QNResolver alloc] initWithAddres:@"119.29.29.29"];
43-
id<QNResolverDelegate> r3 = [[QNResolver alloc] initWithAddres:@"114.114.115.115"];
42+
id<QNResolverDelegate> r2 = [[QNResolver alloc] initWithAddress:@"119.29.29.29"];
43+
id<QNResolverDelegate> r3 = [[QNResolver alloc] initWithAddress:@"114.114.115.115"];
4444
d = [[QNDnsManager alloc] init:[NSArray arrayWithObjects:r1, r2, r3, nil] networkInfo:[QNNetworkInfo normal]];
4545
}
4646
return d;

QiniuSDKTests/QNFormUploadTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ - (void)testDnsHosts {
270270
__block QNResponseInfo *testInfo = nil;
271271
__block NSDictionary *testResp = nil;
272272
__block NSString *key = nil;
273-
QNResolver *resolver = [[QNResolver alloc] initWithAddres:@"114.114.115.115"];
273+
QNResolver *resolver = [[QNResolver alloc] initWithAddress:@"114.114.115.115"];
274274
QNDnsManager *dns = [[QNDnsManager alloc] init:[NSArray arrayWithObject:resolver] networkInfo:[QNNetworkInfo normal]];
275275
QNConfiguration *config = [QNConfiguration build:^(QNConfigurationBuilder *builder) {
276276
NSArray *ips = [QNZone zone0].up.ips;

QiniuSDKTests/QNSessionTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ - (void)testUrlConvert {
139139
- (void)testPostIp {
140140
__block QNResponseInfo *testInfo = nil;
141141
NSData *data = [@"Hello, World!" dataUsingEncoding:NSUTF8StringEncoding];
142-
QNResolver *resolver = [[QNResolver alloc] initWithAddres:@"114.114.115.115"];
142+
QNResolver *resolver = [[QNResolver alloc] initWithAddress:@"114.114.115.115"];
143143
QNDnsManager *dns = [[QNDnsManager alloc] init:[NSArray arrayWithObject:resolver] networkInfo:[QNNetworkInfo normal]];
144144
[dns putHosts:@"upnonono.qiniu.com" ip:[QNZone zone0].up.ips[0]];
145145
QNSessionManager *httpManager = [[QNSessionManager alloc] initWithProxy:nil timeout:60 urlConverter:nil dns:dns];

0 commit comments

Comments
 (0)