
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Brownie helps you create shipments via UPS.com's developer api. This gem is a work in progress. You can create shipments, and labels.
Future releasess will have address valdation, and tracking
gem 'brownie', '~> 0.1.1'
b = Brownie::Shipment.new
b.account_number = "YOUR UPS ACCOUNT NUMBER"
b.credentials.license_number = "YOUR UPS DEVELOPER API LICENCE NUMBER"
b.credentials.user_id = "YOUR UPS LOGIN"
b.credentials.password = "YOU UPS PASSWORD"
b.shipper.account_number = b.account_number
b.shipper.name = "Sample Company Name"
b.shipper.phone_number = "555-666-7777"
b.shipper.tax_identification_number = "1234567890"
b.shipper.address_line1 = "123 Test Street"
b.shipper.city = "Test Town"
b.shipper.state_province_code = "NY"
b.shipper.postal_code = "10021"
b.shipper.country_code = "US"
b.ship_to.company_name = "SHIP TO COMPANY/NAME"
b.ship_to.attention_name = "SHIP TO NAME"
b.ship_to.phone_number = "5556667777"
b.ship_to.address_line1 = "555 Test Rd"
b.ship_to.city = "Test City"
b.ship_to.state_province_code = "CA"
b.ship_to.postal_code = "90212"
b.ship_to.country_code = "US"
b.ship_from.company_name = "Sample Company Name"
b.ship_from.attention_name = "Sample NAme"
b.ship_from.phone_number = "5556667777"
b.ship_from.address_line1 = "123 Test Street"
b.ship_from.state_province_code = "NY"
b.ship_from.city = "Test Town"
b.ship_from.postal_code = "07738"
b.ship_from.country_code = "US"
b.service_code = Brownie::ServiceCodes::GROUND
b.package_type = Brownie::Package::BOX
b.declared_value = 100
b.environment = "production" # defaulted to development
# Confirm and Validate Shipment
if b.confirm
puts b.tracking_number
else
puts b.errors
end
# Accept and Download Label
b.label(b.shipment_digest,"/path/to/save/label.gif")
Copyright (c) 2014 Michael Jaffe. See LICENSE.txt for further details.
FAQs
Unknown package
We found that brownie 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.