Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

podspec-editor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

podspec-editor

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

podspec-editor

Build Status Coverage Status

💎 A ruby gem which can edit podspec.

Installation

🤣 Will be added later

Usage

require 'podspec_editor'

# create an editor
editor = PodspecEditor::Editor.new(spec_path: 'path/to/spec/')

# read value from editor
editor.spec.name
editor.spec.key_not_exist
editor.spec.subspecs[0].name

# remove value from editor
editor.spec.name = nil
editor.spec.key_not_exist = nil
editor.spec.subspecs[0].source_files = nil

# update value from editor
# update non-exist key will add this k-v pair to the spec
editor.spec.name = 'abc'
editor.spec.subspecs[0].name = 'cde'
editor.spec.subspecs[0].source_files = new_source_files = ['A.h']

# get current json content
editor.current_json_content

See spec/podspec/editor_spec.rb for more usage examples.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 30 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc