
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
awesome_print_motion
Advanced tools
Awesome Print for RubyMotion is a RubyMotion gem that pretty prints RubyMotion objects in full color exposing their internal structure with proper indentation.
Current version is based on Awesome Print v1.1.0. Please see http://github.com/michaeldv/awesome_print for more information.
# Installing as Ruby gem
$ gem install awesome_print_motion
# Cloning the repository
$ git clone git://github.com/michaeldv/awesome_print_motion.git
Generate RubyMotion project, then require "awesome_print_motion" in projects's Rakefile:
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require "motion/project"
require "awesome_print_motion"
Motion::Project::App.setup do |app|
app.name = "your_app_name"
end
Within AppDelegate you can use ap object, options
method. For example:
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
ap self, :raw => true
true
end
end
AwesomePrint also becomes available in RubyMotion console:
Build ./build/iPhoneSimulator-6.0-Development
Simulate ./build/iPhoneSimulator-6.0-Development/your_app_name.app
(main)> ap [ false, 42, %w(forty two), { :now => Time.now, :class => Time.now.class, :distance => 42e42 } ]
[
[0] false,
[1] 42,
[2] [
[0] "forty",
[1] "two"
],
[3] {
:now => 2012-10-23 17:09:19 -0700,
:class => Time < NSDate,
:distance => Infinity
}
]
=> nil
(main)> ap [1,2,3]
Supported options and color codes are documented at http://github.com/michaeldv/awesome_print.
Copyright (c) 2010-2012 Michael Dvorkin
%w(mike dvorkin.net) * "@" || %w(mike fatfreecrm.com) * "@"
Released under the MIT license. See LICENSE file for details.
FAQs
Unknown package
We found that awesome_print_motion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.