Spectacles icon indicating copy to clipboard operation
Spectacles copied to clipboard

A tiny library for parsing JSON podspecs.

Spectacles

Spectacles

CI Status Version License Platform

A tiny library for parsing JSON podspecs.

This only exposes a subset of podspec properties at the moment but could theoretically be expanded to include everything in the specification. We currently use it in TMTumblrSDK for version reporting.

Usage

TMPodspec *spec = [[TMPodspec alloc] initWithFileURL:
                   [[NSBundle mainBundle] URLForResource:@"Spectacles.podspec" withExtension:@"json"]];

self.label = [[UILabel alloc] init];
self.label.text = [NSString stringWithFormat:@"%@ (%@)", spec.name, spec.version];

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Spectacles is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Spectacles"

Contributing

Please see CONTRIBUTING.md for information on how to help out.

Contact

Bryan Irace

License

Copyright 2014 Tumblr, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.