iron-io / iron_mq_ruby

Ruby library for IronMQ.
http://www.iron.io
BSD 2-Clause "Simplified" License
35 stars 17 forks source link

Replaces old library with the code generated by swagger - DO NOT MERGE #96

Closed bg451 closed 8 years ago

bg451 commented 9 years ago

I've been working on a way to automatically generate all of our client libraries so that, going into the future, we won't have to individually maintain a bunch of libraries. Anytime there's a change to the API, simply update the spec file and boom, everything is regenerated in a few seconds. The one downside as of right now is compared to our current ruby library, this isn't as smooth to use.

arschles commented 9 years ago

@bg451 :+1: to this in general. few comments:

  1. can you add instructions on how to re-generate code? didn't see anything here and the instructions in iron-io/codegen are pretty long. would be nice to get this down to a one-liner, and even nicer to get it into our CI pipeline
  2. definitely need more code examples in the README, and ideally in an examples/ folder as well

feel free to merge w/o an examples/ folder, but should do it soonish

bg451 commented 9 years ago

@arschles cleaned up the codegen readme to be simpler, added in a basic example in the readme.

arschles commented 9 years ago

k, looks pretty good. @treeder can we get a new repo set up for all of our generated client libs? call it iron-io/gen-clients. @bg451 prob gonna have to put this code in there. sorry for all the back & forth

rdallman commented 8 years ago

seems like this will be part of a larger, sweeping change to all client libs. thanks, please re open if still relevant