![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
leetchi-wallet-services
Advanced tools
The gem for interacting with Leetchi API. See the API documentation for more details on the API.
Tested on the following versions of Ruby: 1.9.2, 1.9.3, 2.0.0
This gem uses mainly ruby stdlib and the json gem.
Please note that the gem configuration process change between 0.0.1 and 1.0.0.
Setup the following ENV:
ENV['LEETCHI_API_BASE_URL'] = "https://api-preprod.leetchi.com" # once you've run your test using the preproduction environment use the production one
ENV['LEETCHI_KEY_PATH'] = "abcd" # the full path to your leetchi key
ENV['LEETCHI_PASSPHRASE'] = "efgh" # you key's passphrase (leave blank if none)
ENV['LEETCHI_PARTNER_ID'] = "myID" # your Leetchi API ID
You can now call the Leetchi.configure method like this:
Leetchi.configure do |c|
c.preproduction = true
c.partner_id = 'example'
c.key_path = './spec/support-files/example.pem'
c.key_password = ''
end
The preproduction attribute let you specify if you want to use the preproduction api endpoint.
The partner_id is the id that was issue to you during you registration process.
The key_path and key_password arguments are here to let you use the key you've created before the registration process.
This configure method can of course be use to define a Ruby on Rails initialiser.
The gem implements the following resources:
Each resource has specifics methods such has create
, details
, update
, etc. Those methods must be called with an ID and / or an Object matching the Leetchi API.
Calling those methods return the Leetchi API response has an object. Every executions are made synchronously.
This example creates a user and returns its informations:
Leetchi::User.create({
'Tag' => 'test',
'Email' => 'my@email.com',
'FistName' => 'Jack',
'LastName' => 'Nelson',
'CanRegisterMeanOfPayment' => true
})
This example returns a specific user's data:
Leetchi::User.details(123)
Make sure that you have run: bundle install
Then you just have to run the rake task rake test
to run all the test suite.
Feel free to report any test failure by creating an issue on the Gem's Github
Fork the repo.
Run the tests. We only take pull requests with passing tests, and it's great
to know that you have a clean slate: bundle && bundle exec rake
Add a test for your change. Only refactoring and documentation changes require no new tests. If you are adding functionality or fixing a bug, we need a test!
Make the test pass.
Push to your fork and submit a pull request.
At this point you're waiting on us. We like to at least comment on, if not accept, pull requests within three business days (and, typically, one business day). We may suggest some changes or improvements or alternatives.
Syntax:
A contribution can also be as simple as a +1 on issues tickets to show us what you would like to see in this gem.
That's it for now. Good Hacking...
FAQs
Unknown package
We found that leetchi-wallet-services demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.