turkee-mongoid 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +27 -0
- data/.travis.yml +8 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +136 -0
- data/Guardfile +12 -0
- data/LICENSE +188 -0
- data/README.rdoc +219 -0
- data/Rakefile +50 -0
- data/VERSION +1 -0
- data/lib/generators/turkee/templates/turkee.rb +8 -0
- data/lib/generators/turkee/turkee_generator.rb +13 -0
- data/lib/helpers/turkee_forms_helper.rb +69 -0
- data/lib/models/turkee_imported_assignment.rb +19 -0
- data/lib/models/turkee_study.rb +17 -0
- data/lib/models/turkee_task.rb +273 -0
- data/lib/tasks/turkee.rb +29 -0
- data/lib/turkee.rb +9 -0
- data/spec/dummy/Rakefile +7 -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/models/survey.rb +6 -0
- data/spec/dummy/app/views/layouts/application.html.erb +20 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +21 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +24 -0
- data/spec/dummy/config/environments/production.rb +51 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -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/locales/en.yml +5 -0
- data/spec/dummy/config/mongoid.yml +21 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/db/seeds.rb +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/application.js +2 -0
- data/spec/dummy/public/javascripts/controls.js +965 -0
- data/spec/dummy/public/javascripts/dragdrop.js +974 -0
- data/spec/dummy/public/javascripts/effects.js +1123 -0
- data/spec/dummy/public/javascripts/prototype.js +6001 -0
- data/spec/dummy/public/javascripts/rails.js +191 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/dummy/public/stylesheets/scaffold.css +56 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/factories/survey_factory.rb +7 -0
- data/spec/factories/turkee_task_factory.rb +21 -0
- data/spec/helpers/turkee_forms_helper_spec.rb +75 -0
- data/spec/models/turkee_study_spec.rb +19 -0
- data/spec/models/turkee_task_spec.rb +139 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +49 -0
- data/turkee.gemspec +60 -0
- metadata +243 -0
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
#require 'rubygems'
|
2
|
+
#require "bundler/setup"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
|
6
|
+
require 'factory_girl'
|
7
|
+
require 'spork'
|
8
|
+
require 'rails/all'
|
9
|
+
require 'rturk'
|
10
|
+
require 'lockfile'
|
11
|
+
#require 'active_support/dependencies/autoload'
|
12
|
+
#require 'action_view'
|
13
|
+
require 'rspec/rails'
|
14
|
+
|
15
|
+
Spork.prefork do
|
16
|
+
# Loading more in this block will cause your tests to run faster. However,
|
17
|
+
# if you change any configuration or code from libraries loaded here, you'll
|
18
|
+
# need to restart spork for it take effect.
|
19
|
+
|
20
|
+
FactoryGirl.find_definitions
|
21
|
+
|
22
|
+
RSpec.configure do |config|
|
23
|
+
config.include FactoryGirl::Syntax::Methods
|
24
|
+
|
25
|
+
# == Mock Framework
|
26
|
+
#
|
27
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
28
|
+
#
|
29
|
+
# config.mock_with :mocha
|
30
|
+
# config.mock_with :flexmock
|
31
|
+
# config.mock_with :rr
|
32
|
+
config.mock_with :rspec
|
33
|
+
|
34
|
+
config.include Turkee::TurkeeFormHelper
|
35
|
+
|
36
|
+
#config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
37
|
+
|
38
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
39
|
+
# examples within a transaction, comment the following line or assign false
|
40
|
+
# instead of true.
|
41
|
+
#config.use_transactional_fixtures = true
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
Spork.each_run do
|
47
|
+
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
|
48
|
+
Dir["#{File.dirname(__FILE__)}/../lib/**/*.rb"].each {|f| require f}
|
49
|
+
end
|
data/turkee.gemspec
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = %q{turkee-mongoid}
|
6
|
+
s.version = "2.0.2"
|
7
|
+
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
|
+
s.authors = [%q{Jim Jones}, %q{Numerico}]
|
10
|
+
s.date = %q{2013-05-14}
|
11
|
+
s.description = %q{Mongoid port of Turkee. The same as Turkee, it creates usability studies, posts HITs, and retrieves the user entered values from Mechanical Turk.}
|
12
|
+
s.email = %q{webmaster@numerica.cl}
|
13
|
+
s.extra_rdoc_files = [
|
14
|
+
"LICENSE",
|
15
|
+
"README.rdoc"
|
16
|
+
]
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
|
+
|
22
|
+
s.homepage = %q{http://github.com/Numerico/turkee}
|
23
|
+
s.post_install_message = %q{
|
24
|
+
========================================================================
|
25
|
+
Turkee Mongoid Installation Complete.
|
26
|
+
------------------------------------------------------------------------
|
27
|
+
|
28
|
+
BEWARE! THIS GEM ISN'T ACTIVELY MAINTAINED
|
29
|
+
|
30
|
+
If you got it from RubyGems, it might have gotten outdated.
|
31
|
+
To be sure, you can fork it on GitHub:
|
32
|
+
https://github.com/Numerico/turkee
|
33
|
+
add Turkee as a remote:
|
34
|
+
git remote add turkee git@github.com:aantix/turkee.git
|
35
|
+
and then pull it
|
36
|
+
git pull turkee master
|
37
|
+
any new features (needing conversion) would then appear
|
38
|
+
|
39
|
+
========================================================================
|
40
|
+
-- Gobble gobble too.
|
41
|
+
}
|
42
|
+
s.require_paths = [%q{lib}]
|
43
|
+
s.rubygems_version = %q{1.8.1}
|
44
|
+
s.summary = %q{This is a port of Turkee gem to use Mongoid instead of Active Record.}
|
45
|
+
|
46
|
+
s.add_dependency(%q<lockfile>)
|
47
|
+
s.add_dependency(%q<rails>, [">= 4.0.0"])
|
48
|
+
s.add_dependency(%q<rturk>, [">= 2.4.1"])
|
49
|
+
s.add_dependency 'mongoid', '>= 4.0.0.alpha1'
|
50
|
+
|
51
|
+
s.add_development_dependency "mocha"
|
52
|
+
s.add_development_dependency "spork"
|
53
|
+
|
54
|
+
# RSpec has to be in both test and development so that rake tasks and generators
|
55
|
+
# are available without having to explicitly switch the environment to 'test'
|
56
|
+
s.add_development_dependency 'factory_girl', '>= 4.3.0'
|
57
|
+
s.add_development_dependency "rspec-rails", "~> 2.14.0"
|
58
|
+
|
59
|
+
end
|
60
|
+
|
metadata
ADDED
@@ -0,0 +1,243 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: turkee-mongoid
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jim Jones
|
9
|
+
- Numerico
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-05-14 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: lockfile
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: rails
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 4.0.0
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 4.0.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rturk
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.4.1
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.4.1
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: mongoid
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 4.0.0.alpha1
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 4.0.0.alpha1
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: mocha
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
type: :development
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: spork
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: factory_girl
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 4.3.0
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 4.3.0
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: rspec-rails
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ~>
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 2.14.0
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ~>
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 2.14.0
|
143
|
+
description: Mongoid port of Turkee. The same as Turkee, it creates usability studies,
|
144
|
+
posts HITs, and retrieves the user entered values from Mechanical Turk.
|
145
|
+
email: webmaster@numerica.cl
|
146
|
+
executables: []
|
147
|
+
extensions: []
|
148
|
+
extra_rdoc_files:
|
149
|
+
- LICENSE
|
150
|
+
- README.rdoc
|
151
|
+
files:
|
152
|
+
- .document
|
153
|
+
- .gitignore
|
154
|
+
- .travis.yml
|
155
|
+
- Gemfile
|
156
|
+
- Gemfile.lock
|
157
|
+
- Guardfile
|
158
|
+
- LICENSE
|
159
|
+
- README.rdoc
|
160
|
+
- Rakefile
|
161
|
+
- VERSION
|
162
|
+
- lib/generators/turkee/templates/turkee.rb
|
163
|
+
- lib/generators/turkee/turkee_generator.rb
|
164
|
+
- lib/helpers/turkee_forms_helper.rb
|
165
|
+
- lib/models/turkee_imported_assignment.rb
|
166
|
+
- lib/models/turkee_study.rb
|
167
|
+
- lib/models/turkee_task.rb
|
168
|
+
- lib/tasks/turkee.rb
|
169
|
+
- lib/turkee.rb
|
170
|
+
- spec/dummy/Rakefile
|
171
|
+
- spec/dummy/app/controllers/application_controller.rb
|
172
|
+
- spec/dummy/app/helpers/application_helper.rb
|
173
|
+
- spec/dummy/app/models/survey.rb
|
174
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
175
|
+
- spec/dummy/config.ru
|
176
|
+
- spec/dummy/config/application.rb
|
177
|
+
- spec/dummy/config/boot.rb
|
178
|
+
- spec/dummy/config/environment.rb
|
179
|
+
- spec/dummy/config/environments/development.rb
|
180
|
+
- spec/dummy/config/environments/production.rb
|
181
|
+
- spec/dummy/config/environments/test.rb
|
182
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
183
|
+
- spec/dummy/config/initializers/inflections.rb
|
184
|
+
- spec/dummy/config/initializers/mime_types.rb
|
185
|
+
- spec/dummy/config/initializers/secret_token.rb
|
186
|
+
- spec/dummy/config/initializers/session_store.rb
|
187
|
+
- spec/dummy/config/locales/en.yml
|
188
|
+
- spec/dummy/config/mongoid.yml
|
189
|
+
- spec/dummy/config/routes.rb
|
190
|
+
- spec/dummy/db/seeds.rb
|
191
|
+
- spec/dummy/public/404.html
|
192
|
+
- spec/dummy/public/422.html
|
193
|
+
- spec/dummy/public/500.html
|
194
|
+
- spec/dummy/public/favicon.ico
|
195
|
+
- spec/dummy/public/javascripts/application.js
|
196
|
+
- spec/dummy/public/javascripts/controls.js
|
197
|
+
- spec/dummy/public/javascripts/dragdrop.js
|
198
|
+
- spec/dummy/public/javascripts/effects.js
|
199
|
+
- spec/dummy/public/javascripts/prototype.js
|
200
|
+
- spec/dummy/public/javascripts/rails.js
|
201
|
+
- spec/dummy/public/stylesheets/.gitkeep
|
202
|
+
- spec/dummy/public/stylesheets/scaffold.css
|
203
|
+
- spec/dummy/script/rails
|
204
|
+
- spec/factories/survey_factory.rb
|
205
|
+
- spec/factories/turkee_task_factory.rb
|
206
|
+
- spec/helpers/turkee_forms_helper_spec.rb
|
207
|
+
- spec/models/turkee_study_spec.rb
|
208
|
+
- spec/models/turkee_task_spec.rb
|
209
|
+
- spec/spec.opts
|
210
|
+
- spec/spec_helper.rb
|
211
|
+
- turkee.gemspec
|
212
|
+
homepage: http://github.com/Numerico/turkee
|
213
|
+
licenses: []
|
214
|
+
post_install_message: ! "\n ========================================================================\n
|
215
|
+
\ Turkee Mongoid Installation Complete.\n ------------------------------------------------------------------------\n\n
|
216
|
+
\ BEWARE! THIS GEM ISN'T ACTIVELY MAINTAINED\n\n If you got it from RubyGems, it
|
217
|
+
might have gotten outdated.\n To be sure, you can fork it on GitHub:\n https://github.com/Numerico/turkee\n
|
218
|
+
\ add Turkee as a remote:\n git remote add turkee git@github.com:aantix/turkee.git\n
|
219
|
+
\ and then pull it\n git pull turkee master\n any new features (needing conversion)
|
220
|
+
would then appear\n\n ========================================================================\n
|
221
|
+
\ -- Gobble gobble too.\n "
|
222
|
+
rdoc_options: []
|
223
|
+
require_paths:
|
224
|
+
- lib
|
225
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
226
|
+
none: false
|
227
|
+
requirements:
|
228
|
+
- - ! '>='
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: '0'
|
231
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
|
+
none: false
|
233
|
+
requirements:
|
234
|
+
- - ! '>='
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
requirements: []
|
238
|
+
rubyforge_project:
|
239
|
+
rubygems_version: 1.8.25
|
240
|
+
signing_key:
|
241
|
+
specification_version: 3
|
242
|
+
summary: This is a port of Turkee gem to use Mongoid instead of Active Record.
|
243
|
+
test_files: []
|