what's an efficient way to document your RSpec tests? [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm working with a large set of test cases and am wondering what an efficient way of documenting them all is. Right now I'm just using a spreadsheet to crudely record them, so I'm curious if there's a better way.
Looking for something like Apipie or zipmark, which can automatically generate documentation for an API

Check out https://github.com/square/fdoc
In a Rails or Sinatra app, fdoc can help document an API as well as
verify that requests and responses adhere to their appropriate
schemata.
It can help generate API documentation:
fdoc also has a scaffolding mode, where it attemps to infer the schema
of a request based on sample responses.
https://github.com/square/fdoc/blob/master/docs/scaffold.md

Related

How to create a user/event tracking tool, backed by Ruby on Rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
are there any good references to start looking into building a simple but efficient tracking/event tool? Super simple version of a tool like Google Analytics. I am assuming this consist of two separate applications. One for the front-end which gets embedded into the client's website, and a back-end API to handle the events, queue, etc.
Preferred tools for the back-end for me is Rails.
I appreciate the help.
You'd be reinventing the wheel, but you'll need a javascript library to track the user and a rails API. Pretty much what you seem to know you need.
Here's the documentation on building a rails API: https://guides.rubyonrails.org/api_app.html
Refer to the top answer here for the javascript module: User Activity Tracking or Logging with javascript

API Documentation tool for Rails 5 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have an API only rails app which needs documentation for frontend developers. And it's my first experience with it.
What tool do you use for this purpose? Note that I am using rails 5 API and not Grape.
I tested Apipie, swagger-blocks, and swagger-docs gems, but they are obsolete or buggy. There must be a better option!
Any recommendations respected
Well, I found Slate one of the best out there.
did you try RSpec Api Documentation? https://github.com/zipmark/rspec_api_documentation
There is an article on using it with codeship here: https://blog.codeship.com/producing-documentation-for-your-rails-api/

Is there a Rails like framework for SOA? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
For traditional monolithic MVC applications, Rails is great! But it's a bit harder to operate smaller services into it's rather bulky design. Sinatra is great for smaller HTTP based services but I'm curious, is there a Rails like framework (having generators and other helpers) for service orientated architectures?
Brandon Hilkert has been doing some posts about this topic. You can check them out here. There are also some books available on Amazon like this one. StichFix also created a gem to somewhat assist in this.

Two step authentication in rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is it possible to implement two step authentication in Rails using Google's android application Google Authenticator?
I want to implement two step verification similar to dropbox. They use Google Authenticator as well.
Is there any example code/application in rails?
A little googling has revealed a gem extension to devise that does this
https://github.com/AsteriskLabs/devise_google_authenticator
Or there's a blog post giving hints on how to roll your own
https://moocode.com/posts/5-simple-two-factor-ssh-authentication-with-google-authenticator
ActiveModel::Otp makes adding Two Factor Authentication(TFA) to a model simple https://github.com/heapsource/active_model_otp
I think this gem is way better since it's extendable. One can setup backup codes if you need.
Tinfoil Two factor

Looking for simple poll/survey Rails plugin or gem [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am trying to find a simple poll plugin/gem (the type of single question poll that's usually found in site's sidebar). All plugins that I've found are either too complex (like having their own DSL) or they are out of date (i.e. older than couple years).
Does anyone knows a Rails plugin/gem that handles simple polls?
Have you tried SMeRF, I'm currently using Surveyor and yes it is complicated. So I recommend you to use SMeRF, it is a lot more simple. But I can't seem to make it work on Rails3. xP
What version of Rails are you using?
I ended up writing my own custom solution for a simple poll I needed. Unfortunately, I needed it fast so I wrote it within an app I was working on (i.e. I didn't separate it into gem)

Resources