|
43 | 43 |
|
44 | 44 |
|
45 | 45 | @attr.s() |
46 | | -class BaseCocoapodsPackage(models.Package): |
| 46 | +class CocoapodsPackage(models.Package): |
47 | 47 | default_type = 'pods' |
48 | 48 | default_primary_language = 'Objective-C' |
49 | 49 | default_web_baseurl = 'https://cocoapods.org' |
@@ -117,18 +117,17 @@ def get_podname_proper(podname): |
117 | 117 |
|
118 | 118 |
|
119 | 119 | @attr.s() |
120 | | -class CocoapodsPodspec(BaseCocoapodsPackage, models.PackageManifest): |
| 120 | +class Podspec(CocoapodsPackage, models.PackageManifest): |
121 | 121 |
|
122 | 122 | file_patterns = ('*.podspec',) |
123 | 123 | extensions = ('.podspec',) |
124 | | - manifest_type = 'podspec' |
125 | 124 |
|
126 | 125 | @classmethod |
127 | 126 | def is_manifest(cls, location): |
128 | 127 | """ |
129 | 128 | Return True if the file at ``location`` is likely a manifest of this type. |
130 | 129 | """ |
131 | | - return (filetype.is_file(location) and location.endswith('.podspec')) |
| 130 | + return filetype.is_file(location) and location.endswith('.podspec') |
132 | 131 |
|
133 | 132 | @classmethod |
134 | 133 | def recognize(cls, location): |
@@ -177,11 +176,10 @@ def recognize(cls, location): |
177 | 176 |
|
178 | 177 |
|
179 | 178 | @attr.s() |
180 | | -class CocoapodsPodfileLock(BaseCocoapodsPackage, models.PackageManifest): |
| 179 | +class PodfileLock(CocoapodsPackage, models.PackageManifest): |
181 | 180 |
|
182 | 181 | file_patterns = ('*podfile.lock',) |
183 | 182 | extensions = ('.lock',) |
184 | | - manifest_type = 'podfilelock' |
185 | 183 |
|
186 | 184 | @classmethod |
187 | 185 | def is_manifest(cls, location): |
@@ -264,18 +262,17 @@ def read_podfile_lock(location): |
264 | 262 |
|
265 | 263 |
|
266 | 264 | @attr.s() |
267 | | -class CocoapodsPodspecJSON(BaseCocoapodsPackage, models.PackageManifest): |
| 265 | +class PodspecJson(CocoapodsPackage, models.PackageManifest): |
268 | 266 |
|
269 | 267 | file_patterns = ('*.podspec.json',) |
270 | 268 | extensions = ('.json',) |
271 | | - manifest_type = 'podspecjson' |
272 | 269 |
|
273 | 270 | @classmethod |
274 | 271 | def is_manifest(cls, location): |
275 | 272 | """ |
276 | 273 | Return True if the file at ``location`` is likely a manifest of this type. |
277 | 274 | """ |
278 | | - return (filetype.is_file(location) and location.endswith('.podspec.json')) |
| 275 | + return filetype.is_file(location) and location.endswith('.podspec.json') |
279 | 276 |
|
280 | 277 | @classmethod |
281 | 278 | def recognize(cls, location): |
|
0 commit comments