https://github.com/ecto/climate_pledge
https://github.com/ecto/climate_pledge
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ecto/climate_pledge
- Owner: ecto
- License: mit
- Created: 2024-04-09T11:25:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-09T11:39:16.000Z (about 2 years ago)
- Last Synced: 2025-02-06T06:32:51.844Z (over 1 year ago)
- Language: Ruby
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

The Climate Pledge is a commitment to be net-zero carbon by 2040 — a decade ahead of the Paris Agreement’s goal of 2050.
This Ruby Gem fetches the latest climate pledge signatories from the [Climate Pledge website](https://www.theclimatepledge.com/).
This Gem is not affiliated with The Climate Pledge or Amazon.
[](https://badge.fury.io/rb/climate_pledge)
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'climate_pledge'
```
## Usage
Require the Gem:
```ruby
require 'climate_pledge'
```
## Fetching the latest signatories
You can fetch the latest signatories using the `signatories` method. For example:
```ruby
ClimatePledge.signatories
# [{:name=>"Boom Supersonic",
# :logo=>"https://www.theclimatepledge.com/content/dam/amazonclimatepledge/signatory-logo/Boom - Desktop.png",
# :link=>"https://www.theclimatepledge.com/content/amazonclimatepledge/us/en/Signatories/boom-supersonic.html",
# :slug=>"boom-supersonic",
# :country=>"United States of America",
# :industry=>"Manufacturing",
# :join_date=>#},
# {:name=>"Verizon",
# :logo=>"https://www.theclimatepledge.com/content/dam/amazonclimatepledge/signatory-logo/Verizon - Desktop.png",
# :link=>"https://www.theclimatepledge.com/content/amazonclimatepledge/us/en/Signatories/verizon.html",
# :slug=>"verizon",
# :country=>"United States of America",
# :industry=>"Services",
# :join_date=>#},
# ...
```
## Contributing
If you wish to run the tests, you can do so by running:
```bash
rake test
```
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.