adn-rb / adn Goto Github PK
View Code? Open in Web Editor NEWA Ruby library for App.net
A Ruby library for App.net
Have done some more refactoring to extract the API URLs into constants.
Should we only run tests when a commit is made to master? Sometimes I am mid-branch and would like someone to have a look at a certain approach and sometimes that means all tests are not passing. Thoughts?
@kishyr You can follow the instructions on http://about.travis-ci.org/docs/user/getting-started/ to activate Travis CI for this repo (Very nice to get close to instant feedback on build failures)
I’ve already added an initial .travis.yml
The API classes have a clear separation of abstractions.
require 'adn'
ADN.token = '…'
# Retrieving a user
kishyr = ADN::User.find(3089)
peter = ADN::User.find_by_username('peterhellberg')
# Retrieving a post
ADN::Post.find(313203)
peter.latest_post
ADN.has_error?
is just plain wrong in an OO design, the response object should take care of that.ADN.create_collection
is another example, it doesn’t always return a collection and it has a strange second argument instead of being implemented as two separate methods.ADN
module should be moved into the API classes. We need to keep the top level clean from implementation details like HTTP request handling.I have an organization here on GitHub: https://github.com/c7/
I’m thinking it would be pretty neat to have a ADN team which would have admin access to all the different project repos (adn, rack-adn, adn-rails, adn-cli
).
Do you think it would be worth the effort to move the current repo?
By looking at the code of the gem, I don't see any code that supports authentication via user token (especially helpful when you are implementing a web app that wants to give users access to their adn account)
Are there any plans to implement this feature? otherwise I will try to wrap my head around it and would just implement it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.