limesurvey_rails 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +23 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +42 -0
- data/app/assets/images/limesurvey_rails/.gitkeep +0 -0
- data/app/assets/javascripts/limesurvey_rails/application.js +15 -0
- data/app/assets/javascripts/limesurvey_rails/surveys.js +2 -0
- data/app/assets/stylesheets/limesurvey_rails/application.css +13 -0
- data/app/assets/stylesheets/limesurvey_rails/surveys.css +4 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/controllers/limesurvey_rails/application_controller.rb +3 -0
- data/app/controllers/limesurvey_rails/surveys_controller.rb +51 -0
- data/app/helpers/limesurvey_rails/application_helper.rb +4 -0
- data/app/helpers/limesurvey_rails/surveys_helper.rb +4 -0
- data/app/models/limesurvey_rails/no_persistence_active_model.rb +33 -0
- data/app/models/limesurvey_rails/survey.rb +151 -0
- data/app/models/limesurvey_rails/survey_participation.rb +78 -0
- data/app/views/limesurvey_rails/surveys/_form.html.haml +16 -0
- data/app/views/limesurvey_rails/surveys/edit.html.haml +7 -0
- data/app/views/limesurvey_rails/surveys/index.html.haml +21 -0
- data/app/views/limesurvey_rails/surveys/new.html.haml +5 -0
- data/app/views/limesurvey_rails/surveys/show.html.haml +12 -0
- data/config/locales/en.yml +2 -0
- data/config/locales/it.yml +15 -0
- data/config/routes.rb +7 -0
- data/db/migrate/20140130110450_create_limesurvey_rails_survey_participations.rb +11 -0
- data/lib/limesurvey_rails.rb +10 -0
- data/lib/limesurvey_rails/configuration.rb +31 -0
- data/lib/limesurvey_rails/engine.rb +21 -0
- data/lib/limesurvey_rails/exceptions.rb +7 -0
- data/lib/limesurvey_rails/limesurvey_rails.rb +86 -0
- data/lib/limesurvey_rails/participant.rb +86 -0
- data/lib/limesurvey_rails/version.rb +3 -0
- data/limesurvey_rails.gemspec +30 -0
- data/script/rails +8 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/models/test_model.rb +7 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +38 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140130103310_create_test_models.rb +12 -0
- data/spec/dummy/db/schema.rb +34 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/spec/factories/test_models.rb +10 -0
- data/spec/factories/limesurvey_rails_survey_participations.rb +9 -0
- data/spec/factories/limesurvey_rails_surveys.rb +8 -0
- data/spec/limesurvey_rails_spec.rb +97 -0
- data/spec/models/limesurvey_rails/participant_spec.rb +174 -0
- data/spec/models/limesurvey_rails/survey_participations_spec.rb +113 -0
- data/spec/models/limesurvey_rails/survey_spec.rb +222 -0
- data/spec/spec_helper.rb +77 -0
- data/spec/support/shared_examples.rb +56 -0
- data/spec/support/test_limesurvey_constants.rb +26 -0
- data/spec/support/utils.rb +47 -0
- metadata +286 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'rspec/its'
|
6
|
+
require 'factory_girl_rails'
|
7
|
+
|
8
|
+
Rails.backtrace_cleaner.remove_silencers!
|
9
|
+
|
10
|
+
# This is done so that we can access it in our tests or RSpec configuration
|
11
|
+
ENGINE_RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '../'))
|
12
|
+
|
13
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
14
|
+
# in spec/support/ and its subdirectories.
|
15
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
16
|
+
|
17
|
+
# add factories paths just to be sure
|
18
|
+
FactoryGirl.definition_file_paths << Pathname.new(File.join(ENGINE_RAILS_ROOT,"spec/dummy/spec/factories"))
|
19
|
+
FactoryGirl.definition_file_paths << Pathname.new(File.join(ENGINE_RAILS_ROOT,"spec/factories"))
|
20
|
+
FactoryGirl.definition_file_paths.uniq!
|
21
|
+
FactoryGirl.reload
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
config.use_transactional_examples = true # this rollback db after each example
|
25
|
+
config.fail_fast = true
|
26
|
+
config.order = "random"
|
27
|
+
config.color = true
|
28
|
+
config.formatter = :documentation
|
29
|
+
end
|
30
|
+
|
31
|
+
# http://stackoverflow.com/questions/4763983/comparing-activerecord-objects-with-rspec?rq=1
|
32
|
+
RSpec::Matchers.define :have_same_attributes_as do |expected|
|
33
|
+
match do |actual|
|
34
|
+
ignored = [:id, :updated_at, :created_at]
|
35
|
+
actual.attributes.except(*ignored) == expected.attributes.except(*ignored)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
RSpec::Matchers.define :ar_eql do |expected|
|
40
|
+
match do |actual|
|
41
|
+
# puts 'custom eql'
|
42
|
+
actual.class.name == expected.class.name and actual.id == expected.id
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
RSpec::Matchers.define :match_ar_array do |expected|
|
47
|
+
match do |actual|
|
48
|
+
actual.sort_by!(&:id)
|
49
|
+
expected.sort_by!(&:id)
|
50
|
+
actual.map{|e| e.class.name } == expected.map{|e| e.class.name } and actual.map(&:id) == expected.map(&:id)
|
51
|
+
end
|
52
|
+
|
53
|
+
failure_message do |actual|
|
54
|
+
<<-MSG
|
55
|
+
expected collection classes contained: #{expected.map{|e| e.class.name }}
|
56
|
+
actual collection classes contained: #{actual.map{|e| e.class.name }}
|
57
|
+
expected collection ids contained: #{expected.map(&:id)}
|
58
|
+
actual collection ids contained: #{actual.map(&:id)}
|
59
|
+
MSG
|
60
|
+
end
|
61
|
+
|
62
|
+
failure_message_when_negated do |actual|
|
63
|
+
<<-MSG
|
64
|
+
expected collection classes contained: #{expected.map{|e| e.class.name }}
|
65
|
+
actual collection classes contained: #{actual.map{|e| e.class.name }}
|
66
|
+
expected collection ids contained: #{expected.map(&:id)}
|
67
|
+
actual collection ids contained: #{actual.map(&:id)}
|
68
|
+
MSG
|
69
|
+
end
|
70
|
+
|
71
|
+
description do
|
72
|
+
"contains same AR objects as #{expected}"
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module LimesurveyRails
|
2
|
+
module SharedExamples
|
3
|
+
|
4
|
+
shared_examples "removing a participant" do |method|
|
5
|
+
context "when they are regularly registered" do
|
6
|
+
before(:each) { test_survey.add_participant(a_participant) }
|
7
|
+
it "returns true" do
|
8
|
+
expect(test_survey.send(method,a_participant)).to be true
|
9
|
+
end
|
10
|
+
describe "what happens on Limesurvey" do
|
11
|
+
before(:each) do
|
12
|
+
@deleted_tid = a_participant.survey_participations.for_survey(test_survey.id).token_id
|
13
|
+
test_survey.send(method,a_participant)
|
14
|
+
end
|
15
|
+
it "survey doesn't include participant" do
|
16
|
+
expect(LimesurveyRails.list_participants(test_survey.id).map{|p| p['tid']}).not_to include(@deleted_tid)
|
17
|
+
end
|
18
|
+
describe "#survey_participations.for_survey(survey_id)" do
|
19
|
+
specify { expect(a_participant.survey_participations.for_survey(test_survey.id)).to be_nil }
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
shared_examples "adding a participant" do |method|
|
26
|
+
context "when they are not registered" do
|
27
|
+
it "returns true" do
|
28
|
+
expect(test_survey.send(method,a_participant)).to be true
|
29
|
+
end
|
30
|
+
describe "what happens on Limesurvey" do
|
31
|
+
before(:each) { test_survey.send(method,a_participant) }
|
32
|
+
it "is present" do
|
33
|
+
expect(LimesurveyRails.list_participants(test_survey.id).map { |p| p["tid"] }).to include(a_participant.survey_participations.for_survey(test_survey.id).token_id)
|
34
|
+
end
|
35
|
+
['email', 'firstname', 'lastname'].each do |a|
|
36
|
+
it "has correct value for attribute #{a}" do
|
37
|
+
token_value = LimesurveyRails.get_participant_properties(test_survey.id,'1',[a])[a]
|
38
|
+
participant_value = a_participant.send(TestModel.send("limesurvey_participant_#{a}_attr"))
|
39
|
+
expect(token_value).to eq(participant_value)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
it "has correct value for attribute attribute_1" do
|
43
|
+
token_value = LimesurveyRails.get_participant_properties(test_survey.id,'1',['attribute_1'])['attribute_1']
|
44
|
+
participant_value = a_participant.send(TestModel.send("limesurvey_participant_attribute_1_attr"))
|
45
|
+
expect(token_value).to eq(participant_value)
|
46
|
+
end
|
47
|
+
|
48
|
+
describe "#survey_participations.for_survey(survey_id)" do
|
49
|
+
specify { expect(a_participant.survey_participations.for_survey(test_survey.id)).to ar_eql(LimesurveyRails::SurveyParticipation.last) }
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# at cinzia's
|
2
|
+
# LIMESURVEY_USERNAME = "rails_user"
|
3
|
+
# LIMESURVEY_PASSWORD = "limoncello"
|
4
|
+
# LIMESURVEY_API_URL = "http://172.21.42.5/~cinzia/limesurvey/index.php/admin/remotecontrol"
|
5
|
+
# LIMESURVEY_BASE_URL = "http://172.21.42.5/~cinzia/limesurvey/index.php"
|
6
|
+
|
7
|
+
# at limesurveys's
|
8
|
+
# LIMESURVEY_API_URL = "http://demo.limesurvey.org/index.php?r=admin/remotecontrol"
|
9
|
+
# LIMESURVEY_BASE_URL = "http://demo.limesurvey.org/index.php"
|
10
|
+
# LIMESURVEY_USERNAME = "rails_user"
|
11
|
+
# LIMESURVEY_PASSWORD = "limoncello"
|
12
|
+
# LIMESURVEY_USERNAME = "admin"
|
13
|
+
# LIMESURVEY_PASSWORD = "test"
|
14
|
+
|
15
|
+
|
16
|
+
# # at osr
|
17
|
+
# LIMESURVEY_API_URL = "http://172.21.156.16/limesurvey/index.php/admin/remotecontrol"
|
18
|
+
# LIMESURVEY_USERNAME = "rails_user_test"
|
19
|
+
# LIMESURVEY_PASSWORD = "limoncello"
|
20
|
+
# LIMESURVEY_BASE_URL = "http://172.21.156.16/limesurvey/index.php"
|
21
|
+
|
22
|
+
# at localhost
|
23
|
+
LIMESURVEY_API_URL = "http://localhost/~masciugo/LimeSurvey/index.php/admin/remotecontrol"
|
24
|
+
LIMESURVEY_USERNAME = "rails_user_test"
|
25
|
+
LIMESURVEY_PASSWORD = "limoncello"
|
26
|
+
LIMESURVEY_BASE_URL = "http://localhost/~masciugo/LimeSurvey/index.php"
|
@@ -0,0 +1,47 @@
|
|
1
|
+
def configure_and_connect
|
2
|
+
LimesurveyRails.reset
|
3
|
+
LimesurveyRails.configure do |config|
|
4
|
+
config.api_url = LIMESURVEY_API_URL
|
5
|
+
config.username = LIMESURVEY_USERNAME
|
6
|
+
config.password = LIMESURVEY_PASSWORD
|
7
|
+
end
|
8
|
+
raise "can't connect to limesurvey (#{LimesurveyRails.configuration.api_url}) with user #{LimesurveyRails.configuration.username} and password #{LimesurveyRails.configuration.password}" unless LimesurveyRails.connect
|
9
|
+
end
|
10
|
+
|
11
|
+
def get_brand_new_test_survey_id(opts = {})
|
12
|
+
id = LimesurveyRails.add_survey(nil,'LIMESURVEY_RAILS TEST','en')
|
13
|
+
LimesurveyRails.activate_tokens(id,['1']) if opts[:activate_tokens]
|
14
|
+
id
|
15
|
+
end
|
16
|
+
|
17
|
+
def remove_all_test_surveys
|
18
|
+
all_test_surveys = LimesurveyRails.list_surveys(LimesurveyRails.configuration.username)
|
19
|
+
all_test_surveys.each{|s| LimesurveyRails.delete_survey(s['sid'])}
|
20
|
+
end
|
21
|
+
|
22
|
+
# reload test model to reuse it among tests (mostly to reset variable classes...)
|
23
|
+
# http://stackoverflow.com/questions/14063395/rspec-class-variable-testing
|
24
|
+
def reset_models
|
25
|
+
# puts "resetting TestModel ..."
|
26
|
+
|
27
|
+
if Object.const_defined? :TestModel
|
28
|
+
Object.constants Object.send(:remove_const,:TestModel)
|
29
|
+
load File.join(ENGINE_RAILS_ROOT,'spec','dummy','app','models','test_model.rb')
|
30
|
+
# puts ">>>> TestModel.object_id: #{TestModel.object_id}"
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
# if LimesurveyRails.const_defined? :Participant
|
35
|
+
# LimesurveyRails.send(:remove_const,:Participant)
|
36
|
+
# load File.join(ENGINE_RAILS_ROOT,'lib','limesurvey_rails','participant.rb')
|
37
|
+
# end
|
38
|
+
|
39
|
+
if LimesurveyRails.const_defined? :SurveyParticipation
|
40
|
+
LimesurveyRails.send(:remove_const,:SurveyParticipation)
|
41
|
+
load File.join(ENGINE_RAILS_ROOT,'app','models','limesurvey_rails','survey_participation.rb')
|
42
|
+
# puts ">>>> LimesurveyRails::SurveyParticipation.object_id: #{LimesurveyRails::SurveyParticipation.object_id}"
|
43
|
+
end
|
44
|
+
|
45
|
+
FactoryGirl.reload
|
46
|
+
end
|
47
|
+
|
metadata
ADDED
@@ -0,0 +1,286 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: limesurvey_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- masciugo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-07-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.16
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.16
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: limesurvey
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-its
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: factory_girl_rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sqlite3
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: debugger
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: awesome_print
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: An ORM-like layer to Limesurvey
|
126
|
+
email:
|
127
|
+
- masciugo@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- .gitignore
|
133
|
+
- Gemfile
|
134
|
+
- LICENSE.txt
|
135
|
+
- README.md
|
136
|
+
- Rakefile
|
137
|
+
- app/assets/images/limesurvey_rails/.gitkeep
|
138
|
+
- app/assets/javascripts/limesurvey_rails/application.js
|
139
|
+
- app/assets/javascripts/limesurvey_rails/surveys.js
|
140
|
+
- app/assets/stylesheets/limesurvey_rails/application.css
|
141
|
+
- app/assets/stylesheets/limesurvey_rails/surveys.css
|
142
|
+
- app/assets/stylesheets/scaffold.css
|
143
|
+
- app/controllers/limesurvey_rails/application_controller.rb
|
144
|
+
- app/controllers/limesurvey_rails/surveys_controller.rb
|
145
|
+
- app/helpers/limesurvey_rails/application_helper.rb
|
146
|
+
- app/helpers/limesurvey_rails/surveys_helper.rb
|
147
|
+
- app/models/limesurvey_rails/no_persistence_active_model.rb
|
148
|
+
- app/models/limesurvey_rails/survey.rb
|
149
|
+
- app/models/limesurvey_rails/survey_participation.rb
|
150
|
+
- app/views/limesurvey_rails/surveys/_form.html.haml
|
151
|
+
- app/views/limesurvey_rails/surveys/edit.html.haml
|
152
|
+
- app/views/limesurvey_rails/surveys/index.html.haml
|
153
|
+
- app/views/limesurvey_rails/surveys/new.html.haml
|
154
|
+
- app/views/limesurvey_rails/surveys/show.html.haml
|
155
|
+
- config/locales/en.yml
|
156
|
+
- config/locales/it.yml
|
157
|
+
- config/routes.rb
|
158
|
+
- db/migrate/20140130110450_create_limesurvey_rails_survey_participations.rb
|
159
|
+
- lib/limesurvey_rails.rb
|
160
|
+
- lib/limesurvey_rails/configuration.rb
|
161
|
+
- lib/limesurvey_rails/engine.rb
|
162
|
+
- lib/limesurvey_rails/exceptions.rb
|
163
|
+
- lib/limesurvey_rails/limesurvey_rails.rb
|
164
|
+
- lib/limesurvey_rails/participant.rb
|
165
|
+
- lib/limesurvey_rails/version.rb
|
166
|
+
- limesurvey_rails.gemspec
|
167
|
+
- script/rails
|
168
|
+
- spec/dummy/README.rdoc
|
169
|
+
- spec/dummy/Rakefile
|
170
|
+
- spec/dummy/app/assets/javascripts/application.js
|
171
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
172
|
+
- spec/dummy/app/controllers/application_controller.rb
|
173
|
+
- spec/dummy/app/helpers/application_helper.rb
|
174
|
+
- spec/dummy/app/mailers/.gitkeep
|
175
|
+
- spec/dummy/app/models/.gitkeep
|
176
|
+
- spec/dummy/app/models/test_model.rb
|
177
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
178
|
+
- spec/dummy/config.ru
|
179
|
+
- spec/dummy/config/application.rb
|
180
|
+
- spec/dummy/config/boot.rb
|
181
|
+
- spec/dummy/config/database.yml
|
182
|
+
- spec/dummy/config/environment.rb
|
183
|
+
- spec/dummy/config/environments/development.rb
|
184
|
+
- spec/dummy/config/environments/production.rb
|
185
|
+
- spec/dummy/config/environments/test.rb
|
186
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
187
|
+
- spec/dummy/config/initializers/inflections.rb
|
188
|
+
- spec/dummy/config/initializers/mime_types.rb
|
189
|
+
- spec/dummy/config/initializers/secret_token.rb
|
190
|
+
- spec/dummy/config/initializers/session_store.rb
|
191
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
192
|
+
- spec/dummy/config/locales/en.yml
|
193
|
+
- spec/dummy/config/routes.rb
|
194
|
+
- spec/dummy/db/development.sqlite3
|
195
|
+
- spec/dummy/db/migrate/20140130103310_create_test_models.rb
|
196
|
+
- spec/dummy/db/schema.rb
|
197
|
+
- spec/dummy/lib/assets/.gitkeep
|
198
|
+
- spec/dummy/log/.gitkeep
|
199
|
+
- spec/dummy/public/404.html
|
200
|
+
- spec/dummy/public/422.html
|
201
|
+
- spec/dummy/public/500.html
|
202
|
+
- spec/dummy/public/favicon.ico
|
203
|
+
- spec/dummy/script/rails
|
204
|
+
- spec/dummy/spec/factories/test_models.rb
|
205
|
+
- spec/factories/limesurvey_rails_survey_participations.rb
|
206
|
+
- spec/factories/limesurvey_rails_surveys.rb
|
207
|
+
- spec/limesurvey_rails_spec.rb
|
208
|
+
- spec/models/limesurvey_rails/participant_spec.rb
|
209
|
+
- spec/models/limesurvey_rails/survey_participations_spec.rb
|
210
|
+
- spec/models/limesurvey_rails/survey_spec.rb
|
211
|
+
- spec/spec_helper.rb
|
212
|
+
- spec/support/shared_examples.rb
|
213
|
+
- spec/support/test_limesurvey_constants.rb
|
214
|
+
- spec/support/utils.rb
|
215
|
+
homepage: ''
|
216
|
+
licenses:
|
217
|
+
- MIT
|
218
|
+
metadata: {}
|
219
|
+
post_install_message:
|
220
|
+
rdoc_options: []
|
221
|
+
require_paths:
|
222
|
+
- lib
|
223
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
224
|
+
requirements:
|
225
|
+
- - ! '>='
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: '0'
|
228
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
|
+
requirements:
|
230
|
+
- - ! '>='
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '0'
|
233
|
+
requirements: []
|
234
|
+
rubyforge_project:
|
235
|
+
rubygems_version: 2.3.0
|
236
|
+
signing_key:
|
237
|
+
specification_version: 4
|
238
|
+
summary: An ORM-like layer to Limesurvey
|
239
|
+
test_files:
|
240
|
+
- spec/dummy/README.rdoc
|
241
|
+
- spec/dummy/Rakefile
|
242
|
+
- spec/dummy/app/assets/javascripts/application.js
|
243
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
244
|
+
- spec/dummy/app/controllers/application_controller.rb
|
245
|
+
- spec/dummy/app/helpers/application_helper.rb
|
246
|
+
- spec/dummy/app/mailers/.gitkeep
|
247
|
+
- spec/dummy/app/models/.gitkeep
|
248
|
+
- spec/dummy/app/models/test_model.rb
|
249
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
250
|
+
- spec/dummy/config.ru
|
251
|
+
- spec/dummy/config/application.rb
|
252
|
+
- spec/dummy/config/boot.rb
|
253
|
+
- spec/dummy/config/database.yml
|
254
|
+
- spec/dummy/config/environment.rb
|
255
|
+
- spec/dummy/config/environments/development.rb
|
256
|
+
- spec/dummy/config/environments/production.rb
|
257
|
+
- spec/dummy/config/environments/test.rb
|
258
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
259
|
+
- spec/dummy/config/initializers/inflections.rb
|
260
|
+
- spec/dummy/config/initializers/mime_types.rb
|
261
|
+
- spec/dummy/config/initializers/secret_token.rb
|
262
|
+
- spec/dummy/config/initializers/session_store.rb
|
263
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
264
|
+
- spec/dummy/config/locales/en.yml
|
265
|
+
- spec/dummy/config/routes.rb
|
266
|
+
- spec/dummy/db/development.sqlite3
|
267
|
+
- spec/dummy/db/migrate/20140130103310_create_test_models.rb
|
268
|
+
- spec/dummy/db/schema.rb
|
269
|
+
- spec/dummy/lib/assets/.gitkeep
|
270
|
+
- spec/dummy/log/.gitkeep
|
271
|
+
- spec/dummy/public/404.html
|
272
|
+
- spec/dummy/public/422.html
|
273
|
+
- spec/dummy/public/500.html
|
274
|
+
- spec/dummy/public/favicon.ico
|
275
|
+
- spec/dummy/script/rails
|
276
|
+
- spec/dummy/spec/factories/test_models.rb
|
277
|
+
- spec/factories/limesurvey_rails_survey_participations.rb
|
278
|
+
- spec/factories/limesurvey_rails_surveys.rb
|
279
|
+
- spec/limesurvey_rails_spec.rb
|
280
|
+
- spec/models/limesurvey_rails/participant_spec.rb
|
281
|
+
- spec/models/limesurvey_rails/survey_participations_spec.rb
|
282
|
+
- spec/models/limesurvey_rails/survey_spec.rb
|
283
|
+
- spec/spec_helper.rb
|
284
|
+
- spec/support/shared_examples.rb
|
285
|
+
- spec/support/test_limesurvey_constants.rb
|
286
|
+
- spec/support/utils.rb
|