![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Originally forked from: http://github.com/vigetlabs/garb
Philip Brocoum (readMedia): Google deprecated their API version 2.3 on Thursday, August 23, 2012. Version 2.4 of the API is mostly backward-compatible except there are new URL endpoints, which have been updated in this release of 0.9.1.1.
With The release of version 0.9.0 I have officially deprecated Garb::Report, Garb::Resource, Garb::Profile, and Garb::Account. Garb::Report and Garb::Resource should be replaced by Garb::Model. Garb::Profile and Garb::Account are supplanted by their Garb::Management::* counterparts.
I'll be working hard to update the documentation over the next day or so to highlight all of the old features in the new classes, as well as any new features brought by the new classes. If you are looking for something in particular, please open an issue and I will try to prioritize these requests.
Please read CHANGELOG
Provides a Ruby API to the Google Analytics API.
http://code.google.com/apis/analytics/docs/gdata/gdataDeveloperGuide.html
> Garb::Session.login(username, password)
> Garb::Session.access_token = access_token # assign from oauth gem
> Garb::Management::Account.all
> Garb::Management::WebProperty.all
> Garb::Management::Profile.all
> Garb::Management::Goal.all
> profile = Garb::Management::Profile.all.detect {|p| p.web_property_id == 'UA-XXXXXXX-X'}
class Exits
extend Garb::Model
metrics :exits, :pageviews
dimensions :page_path
end
> Exits.results(profile, :filters => {:page_path.eql => '/'})
OR shorthand
> profile.exits(:filters => {:page_path.eql => '/'})
Be forewarned, these numbers are for the last 30 days and may be slightly different from the numbers displayed in Google Analytics' dashboard for 1 month.
Metrics and Dimensions are very complex because of the ways in which they can and cannot be combined.
I suggest reading the google documentation to familiarize yourself with this.
http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDimensionsMetrics.html#bounceRate
When you've returned, you can pass the appropriate combinations to Garb, as symbols.
Google Analytics supports a significant number of filtering options.
http://code.google.com/apis/analytics/docs/gdata/gdataReference.html#filtering
Here is what we can do currently: (the operator is a method on a symbol for the appropriate metric or dimension)
Operators on metrics:
eql => '==',
not_eql => '!=',
gt => '>',
gte => '>=',
lt => '<',
lte => '<='
Operators on dimensions:
matches => '==',
does_not_match => '!=',
contains => '=~',
does_not_contain => '!~',
substring => '=@',
not_substring => '!@'
Given the previous Exits example report in shorthand, we can add an option for filter:
profile.exits(:filters => {:page_path.eql => '/extend/effectively-using-git-with-subversion/')
Version 0.2.3 includes support for real ssl encryption for SINGLE USER authentication. First do:
Garb::Session.login(username, password, :secure => true)
Next, be sure to download http://curl.haxx.se/ca/cacert.pem into your application somewhere. Then, define a constant CA_CERT_FILE and point to that file.
For whatever reason, simply creating a new certificate store and setting the defaults would not validate the google ssl certificate as authentic.
gem install garb
Many Thanks, for all their help, goes to:
(The MIT License)
Copyright (c) 2010 Viget Labs
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Unknown package
We found that readmedia-garb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.