{"id":28522687,"url":"https://github.com/whitesmith/surveyor2","last_synced_at":"2025-08-03T23:41:13.876Z","repository":{"id":40693340,"uuid":"106723410","full_name":"whitesmith/surveyor2","owner":"whitesmith","description":"A Rails gem that lets you code surveys, questionnaires, quizzes, etc... and add them to your app.","archived":false,"fork":false,"pushed_at":"2022-06-27T05:20:55.000Z","size":165,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-06T02:40:38.492Z","etag":null,"topics":["rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whitesmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-12T17:19:26.000Z","updated_at":"2024-01-24T19:09:36.000Z","dependencies_parsed_at":"2022-09-07T15:11:38.283Z","dependency_job_id":null,"html_url":"https://github.com/whitesmith/surveyor2","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/whitesmith/surveyor2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitesmith%2Fsurveyor2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitesmith%2Fsurveyor2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitesmith%2Fsurveyor2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitesmith%2Fsurveyor2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whitesmith","download_url":"https://codeload.github.com/whitesmith/surveyor2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitesmith%2Fsurveyor2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268629740,"owners_count":24281172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rails","ruby"],"created_at":"2025-06-09T09:31:01.322Z","updated_at":"2025-08-03T23:41:13.735Z","avatar_url":"https://github.com/whitesmith.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Surveyor2\n\n![Continuous Integration](https://github.com/whitesmith/surveyor2/actions/workflows/build.yml/badge.svg)\n\nFork of [surveyor](https://github.com/NUBIC/surveyor) to be compatible with rails 5 and more modern\n\nStill a work in progress\n\n### Installation\n\n`gem 'surveyor2', require: 'surveyor'`\n\n### Requirements\n\n* `Ruby \u003e= 2.7.0`\n* `Rails \u003e= 5.1`\n\n### TODO\n\n* [X] Models\n* [X] Translations\n* [X] Parser\n* [X] Generators\n  * [X] Migrations\n  * [X] Routes\n  * [X] Controller\n  * [X] Views\n  * [X] Example Survey\n* [X] Tasks\n  * [ ] Update from Surveyor\n  * [X] Parse\n  * [ ] Unparse\n  * [X] Remove\n  * [X] Dump\n* [X] Controller\n* [ ] Unparser\n* [ ] Views\n  * [X] Index\n  * [ ] Show\n  * [ ] Answer\n\n### Improvement to dependencies\n\nA couple of improvement have been made to the original surveyor dependency strings:\n\n* Accept parenthesis\n* Accept negations\n\nA couple of examples of possible dependencies strings now:\n\n* `A and B`\n* `(A and B) or C`\n* `!(A and !B) or C`\n* `(!(A and B) and C or !(D or !E) and F) and !(C or B)`\n\n### Development\n\nClone, test with docker by running the `docker-ci` script in the `bin/` folder from the root directory, example:\n\nTo run rake spec, with ruby `2.7` and rails `6.1` do:\n\n`./bin/docker-ci 2.7 spec 6.1`\n\nFor usage instructions run the script without any arguments\n\n`./bin/docker-ci`\n\n## Dummy Apps\n\nThe test suite makes use of dummy apps to test the installation of surveyor on a \"real\" app.\n\nIf you need to add a new version, do the following:\n\n1. Generate a minimal rails app with the target version\n  ```\n    rails _RAILS_VERSION_ new --skip-gemfile --skip-javascript--skip-webpack-install --skip-bootsnap --skip-turbolinks --skip-jbuilder --skip-test --skip-system-test --skip-listen --skip-spring --skip-sprockets --skip-action-cable --skip-active-job --skip-active-storage --skip-action-text --skip-action-mailbox --skip-action-mailer --skip-hotwire\n  ```\n  Where `_RAILS_VERSION_` will be something like `_7.0.1_`.\n2. Copy over `app/assets/images/rails.png` from a previous dummy (there's a test that involves loading of images from the app)\n3. Run `rails db:create db:migrate` on the dummy app folder to create the schema file`\n4. Add `require \"surveyor\"` on config/application.rb.\n5. On most recent versions of Rails (7.0 onwards), `sprockets-rails` is not included by default, so we need to remove references to `config.assets` in some places.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitesmith%2Fsurveyor2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhitesmith%2Fsurveyor2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitesmith%2Fsurveyor2/lists"}