source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.JO.rb
Ruby
mit
47
master
140,398
survey 'JO', :full_title => 'Jordan', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Jordan. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This sel...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.BH.rb
Ruby
mit
47
master
140,400
survey 'BH', :full_title => 'Bahrain', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Bahrain. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This s...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.GQ.rb
Ruby
mit
47
master
140,420
survey 'GQ', :full_title => 'Equatorial Guinea', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Equatorial Guinea. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.GG.rb
Ruby
mit
47
master
140,402
survey 'GG', :full_title => 'Guernsey', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Guernsey. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.MY.rb
Ruby
mit
47
master
140,402
survey 'MY', :full_title => 'Malaysia', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Malaysia. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.MO.rb
Ruby
mit
47
master
140,396
survey 'MO', :full_title => 'Macao', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Macao. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This self-...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.VN.rb
Ruby
mit
47
master
140,402
survey 'VN', :full_title => 'Viet Nam', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Viet Nam. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.SA.rb
Ruby
mit
47
master
140,410
survey 'SA', :full_title => 'Saudi Arabia', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Saudi Arabia. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.IQ.rb
Ruby
mit
47
master
140,394
survey 'IQ', :full_title => 'Iraq', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Iraq. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This self-as...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.CY.rb
Ruby
mit
47
master
145,136
survey 'CY', :full_title => 'Cyprus', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default for EU countries and needs to be localised for Cyprus. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></stron...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.CO.rb
Ruby
mit
47
master
140,402
survey 'CO', :full_title => 'Colombia', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Colombia. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.ZW.rb
Ruby
mit
47
master
140,402
survey 'ZW', :full_title => 'Zimbabwe', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Zimbabwe. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.ZA.rb
Ruby
mit
47
master
140,410
survey 'ZA', :full_title => 'South Africa', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for South Africa. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.KH.rb
Ruby
mit
47
master
140,402
survey 'KH', :full_title => 'Cambodia', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Cambodia. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.NG.rb
Ruby
mit
47
master
140,400
survey 'NG', :full_title => 'Nigeria', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Nigeria. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This s...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.DO.rb
Ruby
mit
47
master
140,422
survey 'DO', :full_title => 'Dominican Republic', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Dominican Republic. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a>...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.CM.rb
Ruby
mit
47
master
140,402
survey 'CM', :full_title => 'Cameroon', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Cameroon. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.IE.rb
Ruby
mit
47
master
145,138
survey 'IE', :full_title => 'Ireland', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default for EU countries and needs to be localised for Ireland. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></str...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.IS.rb
Ruby
mit
47
master
140,400
survey 'IS', :full_title => 'Iceland', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Iceland. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This s...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.DM.rb
Ruby
mit
47
master
140,402
survey 'DM', :full_title => 'Dominica', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Dominica. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.AT.rb
Ruby
mit
47
master
145,138
survey 'AT', :full_title => 'Austria', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default for EU countries and needs to be localised for Austria. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></str...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.NE.rb
Ruby
mit
47
master
140,396
survey 'NE', :full_title => 'Niger', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Niger. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This self-...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.PK.rb
Ruby
mit
47
master
140,402
survey 'PK', :full_title => 'Pakistan', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Pakistan. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.JM.rb
Ruby
mit
47
master
140,400
survey 'JM', :full_title => 'Jamaica', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Jamaica. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This s...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.TC.rb
Ruby
mit
47
master
140,434
survey 'TC', :full_title => 'Turks and Caicos Islands', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Turks and Caicos Islands. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@th...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.SC.rb
Ruby
mit
47
master
140,406
survey 'SC', :full_title => 'Seychelles', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Seychelles. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.MM.rb
Ruby
mit
47
master
140,400
survey 'MM', :full_title => 'Myanmar', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Myanmar. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This s...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.HT.rb
Ruby
mit
47
master
140,396
survey 'HT', :full_title => 'Haiti', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Haiti. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This self-...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.GE.rb
Ruby
mit
47
master
140,400
survey 'GE', :full_title => 'Georgia', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Georgia. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This s...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.GS.rb
Ruby
mit
47
master
140,474
survey 'GS', :full_title => 'South Georgia and The South Sandwich Islands', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for South Georgia and The South Sandwich Islands. Please help us! Contact <a href="mailt...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.BJ.rb
Ruby
mit
47
master
140,396
survey 'BJ', :full_title => 'Benin', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Benin. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This self-...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.ST.rb
Ruby
mit
47
master
140,428
survey 'ST', :full_title => 'Sao Tome and Principe', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Sao Tome and Principe. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.o...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.SB.rb
Ruby
mit
47
master
140,416
survey 'SB', :full_title => 'Solomon Islands', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Solomon Islands. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></stro...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.GR.rb
Ruby
mit
47
master
138,312
survey 'GR', :full_title => 'Greece', :status => 'beta', :description => '<p><strong>This has been generated based on a default for EU countries and needs to be localised for Greece. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This self-assessment ques...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.GD.rb
Ruby
mit
47
master
140,400
survey 'GD', :full_title => 'Grenada', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Grenada. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This s...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.HU.rb
Ruby
mit
47
master
145,138
survey 'HU', :full_title => 'Hungary', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default for EU countries and needs to be localised for Hungary. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></str...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.MZ.rb
Ruby
mit
47
master
140,406
survey 'MZ', :full_title => 'Mozambique', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Mozambique. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.ML.rb
Ruby
mit
47
master
140,394
survey 'ML', :full_title => 'Mali', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Mali. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This self-as...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.TT.rb
Ruby
mit
47
master
140,424
survey 'TT', :full_title => 'Trinidad and Tobago', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Trinidad and Tobago. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.NR.rb
Ruby
mit
47
master
140,396
survey 'NR', :full_title => 'Nauru', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Nauru. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This self-...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.AU.rb
Ruby
mit
47
master
129,397
survey 'AU', :full_title => 'Australia', :status => 'beta', :description => '<p>This self-assessment questionnaire generates an open data certificate and badge you can publish to tell people all about this open data. We also use your answers to learn how organisations publish open data.</p><p>When you answer thes...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.DZ.rb
Ruby
mit
47
master
140,400
survey 'DZ', :full_title => 'Algeria', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Algeria. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This s...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.US.rb
Ruby
mit
47
master
141,190
survey 'US', :full_title => 'United States', :status => 'beta', :description => '<p>This self-assessment questionnaire generates an open data certificate and badge you can publish to tell people all about this open data. We also use your answers to learn how organisations publish open data.</p><p>When you answer ...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.RS.rb
Ruby
mit
47
master
140,398
survey 'RS', :full_title => 'Serbia', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Serbia. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This sel...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.RE.rb
Ruby
mit
47
master
140,402
survey 'RE', :full_title => 'Réunion', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Réunion. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This s...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.LK.rb
Ruby
mit
47
master
140,404
survey 'LK', :full_title => 'Sri Lanka', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Sri Lanka. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>Th...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.IR.rb
Ruby
mit
47
master
140,435
survey 'IR', :full_title => 'Iran, Islamic Republic of', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Islamic Republic of Iran. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@t...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.ID.rb
Ruby
mit
47
master
140,404
survey 'ID', :full_title => 'Indonesia', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Indonesia. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>Th...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.CZ.rb
Ruby
mit
47
master
133,767
survey 'CZ', :full_title => 'Czech Republic', :status => 'beta', :description => '<p>This self-assessment questionnaire generates an open data certificate and badge you can publish to tell people all about this open data. We also use your answers to learn how organisations publish open data.</p><p>When you answer...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
surveys/generated/surveyor/odc_questionnaire.CL.rb
Ruby
mit
47
master
140,396
survey 'CL', :full_title => 'Chile', :default_mandatory => 'false', :status => 'alpha', :description => '<p><strong>This has been generated based on a default and needs to be localised for Chile. Please help us! Contact <a href="mailto:certificate@theodi.org">certificate@theodi.org</a></strong></p><p>This self-...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/spec_helper.rb
Ruby
mit
47
master
1,508
if ENV['COVERAGE'] require 'coveralls' Coveralls.wear_merged! 'rails' end ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'json_spec' require 'database_cleaner' # for asset_pipeline_enabled? in models include Surveyor::Helpers::AssetPipeline...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/controllers/surveyor_controller_spec.rb
Ruby
mit
47
master
4,997
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe SurveyorController do let!(:survey) { FactoryGirl.create(:survey, :title => "Alphabet", :access_code => "alpha", :survey_version => 0)} let!(:survey_beta) { FactoryGirl.create(:survey, :title => "Alphabet", :access_code =...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/exporters/datasets_csv_spec.rb
Ruby
mit
47
master
352
require 'spec_helper' describe DatasetsCSV do subject(:exporter) { DatasetsCSV.new(Dataset) } it 'generates a url for a dataset' do response_set = FactoryGirl.create(:response_set_with_dataset) url = exporter.url(:dataset_url, response_set.dataset) expect(url).to end_with(dataset_path(response_set.da...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/question_spec.rb
Ruby
mit
47
master
7,004
# encoding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Question do let(:question){ FactoryGirl.create(:question) } context "when creating" do it "is invalid without #text" do question.text = nil question.should have(1).error_on :text end it "#mandat...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/certificate_spec.rb
Ruby
mit
47
master
430
require_relative '../spec_helper' describe Certificate do describe '#attained_level' do it "starts out as 'none'" do cert = Certificate.new expect(cert.attained_level).to eql('none') end it 'cannot be saved as nil' do cert = FactoryGirl.create(:certificate) cert.attained_level =...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/survey_section_spec.rb
Ruby
mit
47
master
2,841
# encoding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe SurveySection do let(:survey_section){ FactoryGirl.create(:survey_section) } context "when creating" do it "is invalid without #title" do survey_section.title = nil survey_section.should have(1).error...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/dependency_condition_spec.rb
Ruby
mit
47
master
17,288
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe DependencyCondition do it "should have a list of operators" do %w(== != < > <= >=).each do |operator| DependencyCondition.operators.include?(operator).should be_true end end describe "instance" do before(:each) do ...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/user_spec.rb
Ruby
mit
47
master
592
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe User do it "gets a list of engaged users" do 5.times { FactoryGirl.create :user } 5.times { FactoryGirl.create :confirmed_user } 5.times { FactoryGirl.create :engaged_user } engaged_users = User.engaged_users expect(...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/survey_spec.rb
Ruby
mit
47
master
7,025
# encoding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Survey do let(:survey){ FactoryGirl.create(:survey) } context "when creating" do it "is invalid without #title" do survey.title = nil survey.should have(1).error_on :title end it "adjust #survey...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/answer_spec.rb
Ruby
mit
47
master
5,692
# encoding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Answer do let(:answer){ FactoryGirl.create(:answer) } context "when creating" do it { answer.should be_valid } it "deletes validation when deleted" do v_id = FactoryGirl.create(:validation, :answer => ans...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/dependency_spec.rb
Ruby
mit
47
master
4,055
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Dependency do before(:each) do @dependency = FactoryGirl.create(:dependency) end it "should be valid" do @dependency.should be_valid end it "should be invalid without a rule" do @dependency.rule = nil @dependency....
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/response_set_spec.rb
Ruby
mit
47
master
25,482
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe ResponseSet do let(:response_set) { FactoryGirl.create(:response_set) } before(:each) do @response_set = FactoryGirl.create(:response_set) @radio_response_attributes = HashWithIndifferentAccess.new({"1"=>{"question_id"=>"1", "an...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/validation_spec.rb
Ruby
mit
47
master
3,168
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Validation do before(:each) do @validation = FactoryGirl.create(:validation) end it "should be valid" do @validation.should be_valid end it "should be invalid without a rule" do @validation.rule = nil @validation....
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/question_group_spec.rb
Ruby
mit
47
master
2,925
# encoding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe QuestionGroup do let(:question_group){ FactoryGirl.create(:question_group) } let(:dependency){ FactoryGirl.create(:dependency) } let(:response_set){ FactoryGirl.create(:response_set) } context "when creating" do ...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/validation_condition_spec.rb
Ruby
mit
47
master
5,789
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe ValidationCondition, "Class methods" do it "should have a list of operators" do %w(== != < > <= >= =~).each{|operator| ValidationCondition.operators.include?(operator).should be_true } end end describe ValidationCondition do befor...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/models/response_spec.rb
Ruby
mit
47
master
6,925
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Response, "when saving a response" do before(:each) do # @response = Response.new(:question_id => 314, :response_set_id => 159, :answer_id => 1) @response = FactoryGirl.create(:response, :question => FactoryGirl.create(:question), ...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/helpers/formtastic_custom_input_spec.rb
Ruby
mit
47
master
782
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require File.expand_path(File.dirname(__FILE__) + '/../../vendor/gems/surveyor-1.4.0/lib/surveyor/helpers/formtastic_custom_input') describe Surveyor::Helpers::FormtasticCustomInput do context "input helpers" do it "should translate response cl...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/helpers/surveyor_helper_spec.rb
Ruby
mit
47
master
3,857
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe SurveyorHelper do context "response methods" do it "should find or create responses, with index" do q1 = FactoryGirl.create(:question, :answers => [a = FactoryGirl.create(:answer, :text => "different")]) q2 = FactoryGirl.cr...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/lib/user_export_spec.rb
Ruby
mit
47
master
1,295
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require 'user_export' describe UserExport do before(:each) do @users = [] 5.times { |i| @users << FactoryGirl.create(:engaged_user, name: "User #{i}", email: "user#{i}@example.com") } @csv = "Name,Email\nUser 0,user0@example.com\nUser...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/lib/rake_kitchen_sink.rb
Ruby
mit
47
master
1,137
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require 'rake' describe Surveyor::Parser do before do @rake = Rake::Application.new Rake.application = @rake Rake.application.rake_require "lib/tasks/surveyor_tasks" Rake::Task.define_task(:environment) end it "should return pro...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/lib/unparser_spec.rb
Ruby
mit
47
master
5,022
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Surveyor::Unparser do before(:each) do @survey = Survey.new(:title => "Simple survey", :description => "very simple") @section = @survey.sections.build(:title => "Simple section") end it "should unparse a basic survey, section...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/lib/chinese_survey.rb
Ruby
mit
47
master
605
survey "青少年人际关系问卷", :access_code => "青少年人际关系问卷" do section "Basic questions" do grid "第二部分:以下列出了一些描述。请您根据自己的实际情况作答。如果“非常不像我”,请选“1”,如果“非常像我”,请选“5”,以此类推。" do a "1" a "2" a "3" a "4" a "5" q "我常常想出新的有趣的点子", :pick => :one q "我比同龄的其他孩子更有想象力", :pick => :one q "即使一个人独处,我也不...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/lib/redcap_parser_spec.rb
Ruby
mit
47
master
7,629
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Surveyor::RedcapParser do before(:each) do # @parser = Surveyor::Parser.new end it "should require specific columns" do # with standard fields x = %w(field_units choices_or_calculations text_validation_type variable__field_...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/lib/common_spec.rb
Ruby
mit
47
master
1,778
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Surveyor::Common, "" do it "should convert text to a code that is more appropirate for a database entry" do # A few answers from the survey { "This? is a in - t3rrible-@nswer of! (question) on" => "this_t3rrible_nswer", "Priv...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/lib/parser_spec.rb
Ruby
mit
47
master
2,493
# -*- coding: utf-8 -*- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Surveyor::Parser do let(:parser){ Surveyor::Parser.new } it "should translate shortcuts into full model names" do parser.send(:full, "section").should == "survey_section" parser.send(:full, "g").should == ...
github
theodi/open-data-certificate
https://github.com/theodi/open-data-certificate
spec/requests/cors_request_spec.rb
Ruby
mit
47
master
1,068
require_relative '../spec_helper' describe 'CORS request' do context 'for the homepage' do it 'does not respond with Access-Control-Allow-Origin' do get '/en', nil, {'HTTP_ORIGIN' => 'http://example.com'} expect(response.headers['Access-Control-Allow-Origin']).to be_nil end end context 'Cer...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
shoelace-rails.gemspec
Ruby
mit
47
main
1,378
# frozen_string_literal: true require_relative "lib/shoelace/rails/version" Gem::Specification.new do |spec| spec.name = "shoelace-rails" spec.version = Shoelace::Rails::VERSION spec.authors = ["Yuki Nishijima"] spec.email = ["yuki24@hey.com"] spec.summary = "Rails view h...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
Rakefile
Ruby
mit
47
main
228
# frozen_string_literal: true require "bundler/gem_tasks" require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/*_test.rb"] end task default: [:test]
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
Appraisals
Ruby
mit
47
main
741
appraise "rails_edge" do git "https://github.com/rails/rails.git", branch: "main" do gem "rails" gem "railties" gem "activesupport" end end appraise "rails_72" do gem "rails", "~> 7.2.0" gem "railties", "~> 7.2.0" gem "activesupport", "~> 7.2.0" end appraise "rails_71" do gem "rails", "~> 7.1....
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
lib/shoelace/railtie.rb
Ruby
mit
47
main
1,797
# frozen_string_literal: true require 'action_dispatch/middleware/static' module Shoelace mattr_accessor :invalid_input_class_name self.invalid_input_class_name = nil # The only reason this class exists is to clarify that we have a custom static file server after # `ActionDispatch::Static`. We could just use...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
lib/shoelace/rails.rb
Ruby
mit
47
main
235
# frozen_string_literal: true require_relative "rails/version" if defined?(::Rails::Railtie) require_relative "engine" require_relative "railtie" end module Shoelace module Rails class Error < StandardError; end end end
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
lib/shoelace/testing.rb
Ruby
mit
47
main
958
# frozen_string_literal: true module Shoelace module Testing def sl_select(option_text, from: ) select_element = find("sl-select[placeholder=\"#{from}\"]") select_element.click within select_element do find('sl-option', text: option_text).click end select_element end ...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
lib/tasks/shoelace.rake
Ruby
mit
47
main
773
namespace :shoelace do namespace :icons do desc "Copy Shoelace icons to the assets path" task copy: :environment do cp_r Rails.root.join(Shoelace::Railtie.config.shoelace.dist_path, "assets").to_s, Rails.public_path end desc "Remove Shoelace icons" task clobber: :environment do rm_rf ...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/test_helper.rb
Ruby
mit
47
main
1,045
# frozen_string_literal: true $LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "shoelace/rails" require "minitest/autorun" require "action_controller" require "action_view" require "action_view/testing/resolvers" require "active_model" require_relative '../app/helpers/shoelace/sl_form_builder' ActionV...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_helper_test.rb
Ruby
mit
47
main
2,461
# frozen_string_literal: true require 'test_helper' require_relative '../../app/helpers/shoelace/sl_form_builder' class SlFormHelperTest < ActionView::TestCase include Shoelace::SlFormHelper test "#sl_text_field_tag with name and value" do assert_dom_equal <<~HTML, sl_text_field_tag('name', 'Your name') ...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/translation_test.rb
Ruby
mit
47
main
5,967
# frozen_string_literal: true require 'test_helper' require_relative '../../app/helpers/shoelace/sl_form_builder' class TranslationTest < ActionView::TestCase include ActionView::Helpers::TranslationHelper include Shoelace::SlFormHelper setup do I18n.backend.store_translations :en, ...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/tag_helper_test.rb
Ruby
mit
47
main
1,634
# frozen_string_literal: true require 'test_helper' require_relative '../../app/helpers/shoelace/tag_helper' class TagHelperTest < ActionView::TestCase include Shoelace::TagHelper test "#sl_button_tag" do assert_dom_equal(<<~HTML, sl_button_tag { "Submit" }) <sl-button>Submit</sl-button> HTML end...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_builder_test.rb
Ruby
mit
47
main
435
# frozen_string_literal: true require 'test_helper' require_relative '../../app/helpers/shoelace/sl_form_builder' class FormBuilderTest < ActionView::TestCase include Shoelace::SlFormHelper test "#submit" do sl_form_for(User.new, url: "/") do |form| assert_dom_equal <<~HTML, form.submit("Save") ...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_builder/sl_range_test.rb
Ruby
mit
47
main
991
# frozen_string_literal: true require 'test_helper' require_relative '../../../app/helpers/shoelace/sl_form_helper' class FormBuilderSlRangeTest < ActionView::TestCase include Shoelace::SlFormHelper test "#range_field" do sl_form_for(User.new, url: "/") do |form| assert_dom_equal <<~HTML, form.range_fi...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_builder/sl_switch_test.rb
Ruby
mit
47
main
737
# frozen_string_literal: true require 'test_helper' require_relative '../../../app/helpers/shoelace/sl_form_helper' class FormBuilderSlRangeTest < ActionView::TestCase include Shoelace::SlFormHelper test "#switch_field" do sl_form_for(User.new, url: "/") do |form| assert_dom_equal <<~HTML, form.switch_...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_builder/sl_input_test.rb
Ruby
mit
47
main
4,007
# frozen_string_literal: true require 'test_helper' require_relative '../../../app/helpers/shoelace/sl_form_helper' class FormBuilderSlInputTest < ActionView::TestCase include Shoelace::SlFormHelper test "#text_field" do sl_form_for(User.new, url: "/") do |form| assert_dom_equal <<~HTML, form.text_fiel...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_builder/sl_select_test.rb
Ruby
mit
47
main
10,383
# frozen_string_literal: true require 'test_helper' require_relative '../../../app/helpers/shoelace/sl_form_helper' class FormBuilderSlSelectTest < ActionView::TestCase include Shoelace::SlFormHelper test "#select" do users = { "Yuki Nishijima" => 1, "Matz" => 2, "Koichi Sasada" => 3 } ...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_builder/sl_radio_group_test.rb
Ruby
mit
47
main
2,142
# frozen_string_literal: true require 'test_helper' require_relative '../../../app/helpers/shoelace/sl_form_helper' class FormBuilderSlRadioGroupTest < ActionView::TestCase include Shoelace::SlFormHelper test "#collection_radio_buttons" do users = { 1 => "Yuki Nishijima", 2 => "Matz", 3 => ...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_builder/sl_checkbox_test.rb
Ruby
mit
47
main
1,603
# frozen_string_literal: true require 'test_helper' require_relative '../../../app/helpers/shoelace/sl_form_helper' class FormBuilderSlCheckboxTest < ActionView::TestCase include Shoelace::SlFormHelper test "#check_box" do sl_form_for(User.new, url: "/") do |form| assert_dom_equal <<~HTML, form.check_b...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_builder/sl_textarea_test.rb
Ruby
mit
47
main
2,388
# frozen_string_literal: true require 'test_helper' require_relative '../../../app/helpers/shoelace/sl_form_helper' class FormBuilderSlTextareaTest < ActionView::TestCase include Shoelace::SlFormHelper test "#text_area" do sl_form_for(User.new, url: "/") do |form| assert_dom_equal <<~HTML, form.text_ar...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
test/helpers/form_builder/sl_color_picker_test.rb
Ruby
mit
47
main
781
# frozen_string_literal: true require 'test_helper' require_relative '../../../app/helpers/shoelace/sl_form_helper' class FormBuilderSlColorPickerTest < ActionView::TestCase include Shoelace::SlFormHelper test "#color_field" do sl_form_for(User.new, url: "/") do |form| assert_dom_equal <<~HTML, form.co...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
app/helpers/shoelace/tag_helper.rb
Ruby
mit
47
main
705
# frozen_string_literal: true module Shoelace module TagHelper # Creates a generic +<sl-button>+ element. def sl_button_tag(**attrs, &block) content_tag("sl-button", **attrs, &block) end # Creates an <sl-button> tag with the href value as the caption. def sl_button_to(body, href = nil, **a...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
app/helpers/shoelace/sl_form_helper.rb
Ruby
mit
47
main
5,635
# frozen_string_literal: true require_relative './sl_form_builder' module Shoelace module SlFormHelper ShoelaceFormBuilder = SlFormBuilder deprecate_constant :ShoelaceFormBuilder DEFAULT_FORM_PARAMETERS = { builder: SlFormBuilder } DIVIDER_TAG = "<sl-divider></sl-divider>".html_safe private_co...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
app/helpers/shoelace/sl_form_builder.rb
Ruby
mit
47
main
5,263
# frozen_string_literal: true require_relative './components/sl_checkbox' require_relative './components/sl_collection_radio_buttons' require_relative './components/sl_color_picker' require_relative './components/sl_input' require_relative './components/sl_radio_button' require_relative './components/sl_range' require...
github
yuki24/shoelace-rails
https://github.com/yuki24/shoelace-rails
app/helpers/shoelace/components/sl_color_picker.rb
Ruby
mit
47
main
698
# frozen_string_literal: true require_relative './error_wrappable' module Shoelace module Components class SlColorPicker < ActionView::Helpers::Tags::ColorField #:nodoc: RGB_VALUE_REGEX = /#[0-9a-fA-F]{6}/.freeze include ErrorWrappable def field_type; nil; end def tag(tag_name, *args,...