All Projects → tumblr → Spectacles

tumblr / Spectacles

Licence: Apache-2.0 license
A tiny library for parsing JSON podspecs.

Programming Languages

objective c
16641 projects - #2 most used programming language
shell
77523 projects
ruby
36898 projects - #4 most used programming language
c
50402 projects - #5 most used programming language

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].