Skip to content

Commit 94790e6

Browse files
author
mmoaay
committed
change name to bamboots
1 parent 598ff86 commit 94790e6

File tree

577 files changed

+106948
-13828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

577 files changed

+106948
-13828
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
#
2-
# Be sure to run `pod lib lint MBNetwork.podspec' to ensure this is a
2+
# Be sure to run `pod lib lint Bamboots.podspec' to ensure this is a
33
# valid spec before submitting.
44
#
55
# Any lines starting with a # are optional, but their use is encouraged
66
# To learn more about a Pod spec see http://guides.cocoapods.org/syntax/podspec.html
77
#
88

99
Pod::Spec.new do |s|
10-
s.name = 'MBNetwork'
10+
s.name = 'Bamboots'
1111
s.version = '0.4.0'
12-
s.summary = 'MBNetwork - Extension 4 Alamofire'
12+
s.summary = 'Bamboots - Extension 4 Alamofire'
1313

1414
# This description is used to generate tags and improve search results.
1515
# * Think: What does it do? Why did you write it? What is the focus?
1616
# * Try to keep it short, snappy and to the point.
1717
# * Write the description between the DESC delimiters below.
1818
# * Finally, don't worry about the indent, CocoaPods strips it!
1919

20-
s.description = 'MBNetwork is a network request framework based on Alamofire and ObjectMapper, aiming at making network request easier for business development'
20+
s.description = 'Bamboots is a network request framework based on Alamofire and ObjectMapper, aiming at making network request easier for business development'
2121

22-
s.homepage = 'https://github.com/mmoaay/MBNetwork'
22+
s.homepage = 'https://github.com/mmoaay/Bamboots'
2323
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
2424
s.license = { :type => 'MIT', :file => 'LICENSE' }
2525
s.author = { 'mmoaay' => '[email protected]' }
26-
s.source = { :git => 'https://github.com/mmoaay/MBNetwork.git', :tag => s.version.to_s }
26+
s.source = { :git => 'https://github.com/mmoaay/Bamboots.git', :tag => s.version.to_s }
2727
# s.social_media_url = 'http://weibo.com/smmoaay'
2828

2929
s.ios.deployment_target = '8.0'
3030

31-
s.source_files = 'MBNetwork/Classes/**/*'
32-
s.resources = 'MBNetwork/Assets/**/*'
31+
s.source_files = 'Bamboots/Classes/**/*'
32+
s.resources = 'Bamboots/Assets/**/*'
3333

3434
# s.resource_bundles = {
35-
# 'MBNetwork' => ['MBNetwork/Assets/*.png']
35+
# 'Bamboots' => ['Bamboots/Assets/*.png']
3636
# }
3737

3838
# s.public_header_files = 'Pod/Classes/**/*.h'
3939
# s.frameworks = 'UIKit', 'MapKit'
40-
s.dependency 'SwiftProtobuf'
4140
s.dependency 'AlamofireObjectMapper', '~>4'
4241
s.dependency 'Alamofire', '~> 4.1'
4342
s.dependency 'ObjectMapper', '~> 2.0'
43+
s.dependency 'RealmSwift'
4444
end
File renamed without changes.

MBNetwork/Assets/MBMaskView.xib renamed to Bamboots/Assets/MaskView.xib

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12118" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
99
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1010
</dependencies>
1111
<objects>
12-
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MBMask" customModule="MBNetwork">
12+
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MaskView" customModule="Bamboots" customModuleProvider="target">
1313
<connections>
1414
<outlet property="activityIndicator" destination="hy3-pC-7eW" id="9Or-f9-1Q8"/>
1515
<outlet property="contentView" destination="iN0-l3-epB" id="A5q-EO-fr0"/>
File renamed without changes.

Bamboots/Classes/Cache/Cache.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// Cache.swift
3+
// Pods
4+
//
5+
// Created by ZhengYidong on 14/04/2017.
6+
//
7+
//
8+
9+
import Foundation
10+
import RealmSwift
11+
12+
protocol Cacheable {
13+
associatedtype cacheType
14+
}

MBNetwork/Classes/Error/MBError.swift renamed to Bamboots/Classes/Error/Error.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// MBError.swift
2+
// Error.swift
33
// Pods
44
//
55
// Created by ZhengYidong on 01/01/2017.
@@ -9,8 +9,8 @@
99
import Foundation
1010
import ObjectMapper
1111

12-
// MARK: - Default extension for `MBErrorable`
13-
public extension MBErrorable {
12+
// MARK: - Default extension for `Errorable`
13+
public extension Errorable {
1414
var successCodes: [String] {
1515
return []
1616
}
@@ -25,12 +25,12 @@ public extension MBErrorable {
2525
}
2626

2727
/// Error protocol for JSON data. Conforming to this protocol to customize the error configuration for JSON data
28-
public protocol MBJSONErrorable: MBErrorable, Mappable {
28+
public protocol JSONErrorable: Errorable, Mappable {
2929

3030
}
3131

3232
/// Error protocol. Conforming to this protocol to customize the error configuration.
33-
public protocol MBErrorable {
33+
public protocol Errorable {
3434

3535
/// Using this set with code to distinguish successful code from error code
3636
var successCodes: [String] { get }

MBNetwork/Classes/Extension/String+MBErrorable.swift renamed to Bamboots/Classes/Extension/String+Errorable.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// String+MBNetwork.swift
2+
// String+Bamboots.swift
33
// Pods
44
//
55
// Created by ZhengYidong on 01/01/2017.
@@ -8,8 +8,8 @@
88

99
import Foundation
1010

11-
// MARK: - Making `String` conforms to `MBErrorable`
12-
extension String: MBErrorable {
11+
// MARK: - Making `String` conforms to `Errorable`
12+
extension String: Errorable {
1313
public var message: String? {
1414
return self
1515
}

MBNetwork/Classes/Extension/UIAlertController+MBMessageable.swift renamed to Bamboots/Classes/Extension/UIAlertController+Messageable.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// UIAlertController+MBMessageable.swift
2+
// UIAlertController+Messageable.swift
33
// Pods
44
//
55
// Created by zhengperry on 2017/2/5.
@@ -8,14 +8,14 @@
88

99
import Foundation
1010

11-
extension UIAlertController: MBInformable {
11+
extension UIAlertController: Informable {
1212
public func show() {
1313
UIApplication.shared.keyWindow?.rootViewController?.present(self, animated: true, completion: nil)
1414
}
1515
}
1616

17-
extension UIAlertController: MBWarnable{
18-
public func show(error: MBErrorable?) {
17+
extension UIAlertController: Warnable{
18+
public func show(error: Errorable?) {
1919
if let err = error {
2020
if "" != err.message {
2121
message = err.message

MBNetwork/Classes/Extension/UIControl+MBLoadable.swift renamed to Bamboots/Classes/Extension/UIControl+Loadable.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// UIControl+MBLoadable.swift
2+
// UIControl+Loadable.swift
33
// Pods
44
//
55
// Created by ZhengYidong on 08/01/2017.
@@ -8,15 +8,15 @@
88

99
import Foundation
1010

11-
// MARK: - Making `UIControl` conforms to `MBLoadable`
12-
extension UIControl: MBLoadable {
11+
// MARK: - Making `UIControl` conforms to `Loadable`
12+
extension UIControl: Loadable {
1313

14-
public func maskContainer() -> MBContainable? {
14+
public func maskContainer() -> Containable? {
1515
return self
1616
}
1717

18-
public func mask() -> MBMaskable? {
19-
let mask = MBActivityIndicator()
18+
public func mask() -> Maskable? {
19+
let mask = ActivityIndicator()
2020
mask.backgroundColor = backgroundColor
2121
mask.color = tintColor
2222
return mask

MBNetwork/Classes/Extension/UIProgressView+MBProgressable.swift renamed to Bamboots/Classes/Extension/UIProgressView+Progressable.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// UIProgressView+MBNetwork.swift
2+
// UIProgressView+Bamboots.swift
33
// Pods
44
//
55
// Created by ZhengYidong on 26/12/2016.
@@ -9,8 +9,8 @@
99
import Foundation
1010
import Alamofire
1111

12-
// MARK: - Making `UIProgressView` conforms to `MBLoadProgressable`
13-
extension UIProgressView: MBProgressable {
12+
// MARK: - Making `UIProgressView` conforms to `LoadProgressable`
13+
extension UIProgressView: Progressable {
1414

1515
/// Updating progress
1616
///

0 commit comments

Comments
 (0)