quby-mongoid 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e3bb09750b659426327ffae84535b481eb49a13
4
- data.tar.gz: 4c65f8f1c40099a16eab9d05a91f567f94b1307c
3
+ metadata.gz: c7e8a9e3d4c48a503b316a088a4016ee748a918e
4
+ data.tar.gz: 6d38025d6241cde50fa24f5106c2ac02078453ed
5
5
  SHA512:
6
- metadata.gz: a985a7ece19d6f02fe384280b6f6e4e3141840342f00c716af172fca460f2e424d3d313c829b7b64f23443f786895ec74c6f69fe4d73ffdf029c3cc13fc538f9
7
- data.tar.gz: e0d2eb7b5f4b321121109458b32cc7e33cc4a9ae27b3b1a899ac59a13492ef83529538f60450dd04deff42a1af7594911ddcd236d2c28f4ab6a29194296d9a1f
6
+ metadata.gz: a7503adb9511b090ab7d2398b0c654add4633afc7f5b2b819d7a12f93df449b63b27efb0f6499fdb92d74d9dfaff734be525a89c7748b23632a9691ea0ac4851
7
+ data.tar.gz: 8208094eed3bc70e30c7fbffb20410d19bbf85d28d7331cb8c1a0472949d96fca418513907f4cc6fc9e8d2e0b7910294c73a3432c1a6a6eb054a3172fd0d6e87
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .idea/
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  # Quby is not pushed to rubygems.org, so we specify its source here explicitly.
7
- gem 'quby', git: 'git@github.com:roqua/quby_engine.git', ref: 'f5675d2df1b5aa89bc353d617ed6b198203be891'
7
+ gem 'quby', git: 'git@github.com:roqua/quby_engine.git', ref: 'd294b615815541b52ff59d0c3e1e5c6570b3a6be'
8
8
  # gem 'quby', path: '../quby'
9
9
 
10
10
  gem 'appraisal', '1.0.0.beta3'
data/README.md CHANGED
@@ -16,7 +16,7 @@ And then execute:
16
16
 
17
17
  To configure Quby to use this database adapter for storage, perform the following somewhere during your application's initialization process:
18
18
 
19
- Quby.answer_repo = Quby::AnswerRepos::MongoidRepo.new
19
+ Quby.answer_repo = Quby::Answers::Repos::MongoidRepo.new
20
20
 
21
21
  ## Development guide
22
22
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"f5675d2df1b5aa89bc353d617ed6b198203be891"
5
+ gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"d294b615815541b52ff59d0c3e1e5c6570b3a6be"
6
6
  gem "appraisal", "1.0.0.beta3"
7
7
  gem "mongoid", "~> 2.8"
8
8
  gem "bson_ext"
@@ -1,39 +1,40 @@
1
1
  GIT
2
2
  remote: git@github.com:roqua/quby_engine.git
3
- revision: f5675d2df1b5aa89bc353d617ed6b198203be891
4
- ref: f5675d2df1b5aa89bc353d617ed6b198203be891
3
+ revision: d294b615815541b52ff59d0c3e1e5c6570b3a6be
4
+ ref: d294b615815541b52ff59d0c3e1e5c6570b3a6be
5
5
  specs:
6
- quby (2.0.0)
6
+ quby (2.2.0)
7
7
  addressable
8
8
  coffee-rails
9
+ compass (~> 0.12)
9
10
  compass-rails
10
11
  haml
11
12
  jquery-rails (~> 2.2.1)
12
13
  json
13
14
  maruku (= 0.6.1)
14
- opencpu (~> 0.7.0)
15
+ opencpu (~> 0.7.4)
15
16
  rails (>= 3.2, < 5.0)
16
17
  ryansch-andand
17
18
  sass-rails (>= 3.2, < 5.0)
18
19
  susy (~> 1.0.rc)
19
- virtus (~> 1.0)
20
+ virtus (>= 1.0.3, < 2.0)
20
21
 
21
22
  PATH
22
23
  remote: .././
23
24
  specs:
24
25
  quby-mongoid (2.0.0)
25
26
  mongoid (>= 2.2, < 5.0)
26
- quby (~> 2.0)
27
+ quby (~> 2.2.0)
27
28
 
28
29
  GEM
29
30
  remote: https://rubygems.org/
30
31
  specs:
31
- actionmailer (3.2.18)
32
- actionpack (= 3.2.18)
32
+ actionmailer (3.2.19)
33
+ actionpack (= 3.2.19)
33
34
  mail (~> 2.5.4)
34
- actionpack (3.2.18)
35
- activemodel (= 3.2.18)
36
- activesupport (= 3.2.18)
35
+ actionpack (3.2.19)
36
+ activemodel (= 3.2.19)
37
+ activesupport (= 3.2.19)
37
38
  builder (~> 3.0.0)
38
39
  erubis (~> 2.7.0)
39
40
  journey (~> 1.0.4)
@@ -41,18 +42,18 @@ GEM
41
42
  rack-cache (~> 1.2)
42
43
  rack-test (~> 0.6.1)
43
44
  sprockets (~> 2.2.1)
44
- activemodel (3.2.18)
45
- activesupport (= 3.2.18)
45
+ activemodel (3.2.19)
46
+ activesupport (= 3.2.19)
46
47
  builder (~> 3.0.0)
47
- activerecord (3.2.18)
48
- activemodel (= 3.2.18)
49
- activesupport (= 3.2.18)
48
+ activerecord (3.2.19)
49
+ activemodel (= 3.2.19)
50
+ activesupport (= 3.2.19)
50
51
  arel (~> 3.0.2)
51
52
  tzinfo (~> 0.3.29)
52
- activeresource (3.2.18)
53
- activemodel (= 3.2.18)
54
- activesupport (= 3.2.18)
55
- activesupport (3.2.18)
53
+ activeresource (3.2.19)
54
+ activemodel (= 3.2.19)
55
+ activesupport (= 3.2.19)
56
+ activesupport (3.2.19)
56
57
  i18n (~> 0.6, >= 0.6.4)
57
58
  multi_json (~> 1.0)
58
59
  addressable (2.3.6)
@@ -77,17 +78,16 @@ GEM
77
78
  coffee-rails (3.2.1)
78
79
  coffee-script (>= 2.2.0)
79
80
  railties (~> 3.2.0.beta)
80
- coffee-script (2.2.0)
81
+ coffee-script (2.3.0)
81
82
  coffee-script-source
82
83
  execjs
83
- coffee-script-source (1.7.0)
84
- compass (0.12.6)
84
+ coffee-script-source (1.8.0)
85
+ compass (0.12.7)
85
86
  chunky_png (~> 1.2)
86
87
  fssm (>= 0.2.7)
87
88
  sass (~> 3.2.19)
88
- compass-rails (1.1.7)
89
+ compass-rails (2.0.0)
89
90
  compass (>= 0.12.2)
90
- sprockets (<= 2.11.0)
91
91
  database_cleaner (1.2.0)
92
92
  descendants_tracker (0.0.4)
93
93
  thread_safe (~> 0.3, >= 0.3.1)
@@ -102,7 +102,7 @@ GEM
102
102
  httparty (0.13.1)
103
103
  json (~> 1.8)
104
104
  multi_xml (>= 0.5.2)
105
- i18n (0.6.9)
105
+ i18n (0.6.11)
106
106
  ice_nine (0.11.0)
107
107
  journey (1.0.4)
108
108
  jquery-rails (2.2.2)
@@ -124,7 +124,7 @@ GEM
124
124
  tzinfo (~> 0.3.22)
125
125
  multi_json (1.10.1)
126
126
  multi_xml (0.5.5)
127
- opencpu (0.7.1)
127
+ opencpu (0.7.4)
128
128
  httparty (~> 0.12)
129
129
  yajl-ruby (~> 1.2, >= 1.2.0)
130
130
  parser (2.1.9)
@@ -143,17 +143,17 @@ GEM
143
143
  rack
144
144
  rack-test (0.6.2)
145
145
  rack (>= 1.0)
146
- rails (3.2.18)
147
- actionmailer (= 3.2.18)
148
- actionpack (= 3.2.18)
149
- activerecord (= 3.2.18)
150
- activeresource (= 3.2.18)
151
- activesupport (= 3.2.18)
146
+ rails (3.2.19)
147
+ actionmailer (= 3.2.19)
148
+ actionpack (= 3.2.19)
149
+ activerecord (= 3.2.19)
150
+ activeresource (= 3.2.19)
151
+ activesupport (= 3.2.19)
152
152
  bundler (~> 1.0)
153
- railties (= 3.2.18)
154
- railties (3.2.18)
155
- actionpack (= 3.2.18)
156
- activesupport (= 3.2.18)
153
+ railties (= 3.2.19)
154
+ railties (3.2.19)
155
+ actionpack (= 3.2.19)
156
+ activesupport (= 3.2.19)
157
157
  rack-ssl (~> 1.3.2)
158
158
  rake (>= 0.8.7)
159
159
  rdoc (~> 3.4)
@@ -199,12 +199,12 @@ GEM
199
199
  treetop (1.4.15)
200
200
  polyglot
201
201
  polyglot (>= 0.3.1)
202
- tzinfo (0.3.39)
203
- virtus (1.0.2)
202
+ tzinfo (0.3.41)
203
+ virtus (1.0.3)
204
204
  axiom-types (~> 0.1)
205
205
  coercible (~> 1.0)
206
- descendants_tracker (~> 0.0.3)
207
- equalizer (~> 0.0.9)
206
+ descendants_tracker (~> 0.0, >= 0.0.3)
207
+ equalizer (~> 0.0, >= 0.0.9)
208
208
  yajl-ruby (1.2.1)
209
209
 
210
210
  PLATFORMS
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"f5675d2df1b5aa89bc353d617ed6b198203be891"
5
+ gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"d294b615815541b52ff59d0c3e1e5c6570b3a6be"
6
6
  gem "appraisal", "1.0.0.beta3"
7
7
  gem "mongoid", "~> 3.0"
8
8
 
@@ -1,39 +1,40 @@
1
1
  GIT
2
2
  remote: git@github.com:roqua/quby_engine.git
3
- revision: f5675d2df1b5aa89bc353d617ed6b198203be891
4
- ref: f5675d2df1b5aa89bc353d617ed6b198203be891
3
+ revision: d294b615815541b52ff59d0c3e1e5c6570b3a6be
4
+ ref: d294b615815541b52ff59d0c3e1e5c6570b3a6be
5
5
  specs:
6
- quby (2.0.0)
6
+ quby (2.2.0)
7
7
  addressable
8
8
  coffee-rails
9
+ compass (~> 0.12)
9
10
  compass-rails
10
11
  haml
11
12
  jquery-rails (~> 2.2.1)
12
13
  json
13
14
  maruku (= 0.6.1)
14
- opencpu (~> 0.7.0)
15
+ opencpu (~> 0.7.4)
15
16
  rails (>= 3.2, < 5.0)
16
17
  ryansch-andand
17
18
  sass-rails (>= 3.2, < 5.0)
18
19
  susy (~> 1.0.rc)
19
- virtus (~> 1.0)
20
+ virtus (>= 1.0.3, < 2.0)
20
21
 
21
22
  PATH
22
23
  remote: .././
23
24
  specs:
24
25
  quby-mongoid (2.0.0)
25
26
  mongoid (>= 2.2, < 5.0)
26
- quby (~> 2.0)
27
+ quby (~> 2.2.0)
27
28
 
28
29
  GEM
29
30
  remote: https://rubygems.org/
30
31
  specs:
31
- actionmailer (3.2.18)
32
- actionpack (= 3.2.18)
32
+ actionmailer (3.2.19)
33
+ actionpack (= 3.2.19)
33
34
  mail (~> 2.5.4)
34
- actionpack (3.2.18)
35
- activemodel (= 3.2.18)
36
- activesupport (= 3.2.18)
35
+ actionpack (3.2.19)
36
+ activemodel (= 3.2.19)
37
+ activesupport (= 3.2.19)
37
38
  builder (~> 3.0.0)
38
39
  erubis (~> 2.7.0)
39
40
  journey (~> 1.0.4)
@@ -41,18 +42,18 @@ GEM
41
42
  rack-cache (~> 1.2)
42
43
  rack-test (~> 0.6.1)
43
44
  sprockets (~> 2.2.1)
44
- activemodel (3.2.18)
45
- activesupport (= 3.2.18)
45
+ activemodel (3.2.19)
46
+ activesupport (= 3.2.19)
46
47
  builder (~> 3.0.0)
47
- activerecord (3.2.18)
48
- activemodel (= 3.2.18)
49
- activesupport (= 3.2.18)
48
+ activerecord (3.2.19)
49
+ activemodel (= 3.2.19)
50
+ activesupport (= 3.2.19)
50
51
  arel (~> 3.0.2)
51
52
  tzinfo (~> 0.3.29)
52
- activeresource (3.2.18)
53
- activemodel (= 3.2.18)
54
- activesupport (= 3.2.18)
55
- activesupport (3.2.18)
53
+ activeresource (3.2.19)
54
+ activemodel (= 3.2.19)
55
+ activesupport (= 3.2.19)
56
+ activesupport (3.2.19)
56
57
  i18n (~> 0.6, >= 0.6.4)
57
58
  multi_json (~> 1.0)
58
59
  addressable (2.3.6)
@@ -71,20 +72,19 @@ GEM
71
72
  coderay (1.1.0)
72
73
  coercible (1.0.0)
73
74
  descendants_tracker (~> 0.0.1)
74
- coffee-rails (3.2.2)
75
+ coffee-rails (3.2.1)
75
76
  coffee-script (>= 2.2.0)
76
- railties (~> 3.2.0)
77
- coffee-script (2.2.0)
77
+ railties (~> 3.2.0.beta)
78
+ coffee-script (2.3.0)
78
79
  coffee-script-source
79
80
  execjs
80
- coffee-script-source (1.7.0)
81
- compass (0.12.6)
81
+ coffee-script-source (1.8.0)
82
+ compass (0.12.7)
82
83
  chunky_png (~> 1.2)
83
84
  fssm (>= 0.2.7)
84
85
  sass (~> 3.2.19)
85
- compass-rails (1.1.7)
86
+ compass-rails (2.0.0)
86
87
  compass (>= 0.12.2)
87
- sprockets (<= 2.11.0)
88
88
  database_cleaner (1.2.0)
89
89
  descendants_tracker (0.0.4)
90
90
  thread_safe (~> 0.3, >= 0.3.1)
@@ -99,7 +99,7 @@ GEM
99
99
  httparty (0.13.1)
100
100
  json (~> 1.8)
101
101
  multi_xml (>= 0.5.2)
102
- i18n (0.6.9)
102
+ i18n (0.6.11)
103
103
  ice_nine (0.11.0)
104
104
  journey (1.0.4)
105
105
  jquery-rails (2.2.2)
@@ -121,7 +121,7 @@ GEM
121
121
  moped (1.5.2)
122
122
  multi_json (1.10.1)
123
123
  multi_xml (0.5.5)
124
- opencpu (0.7.1)
124
+ opencpu (0.7.4)
125
125
  httparty (~> 0.12)
126
126
  yajl-ruby (~> 1.2, >= 1.2.0)
127
127
  origin (1.1.0)
@@ -141,17 +141,17 @@ GEM
141
141
  rack
142
142
  rack-test (0.6.2)
143
143
  rack (>= 1.0)
144
- rails (3.2.18)
145
- actionmailer (= 3.2.18)
146
- actionpack (= 3.2.18)
147
- activerecord (= 3.2.18)
148
- activeresource (= 3.2.18)
149
- activesupport (= 3.2.18)
144
+ rails (3.2.19)
145
+ actionmailer (= 3.2.19)
146
+ actionpack (= 3.2.19)
147
+ activerecord (= 3.2.19)
148
+ activeresource (= 3.2.19)
149
+ activesupport (= 3.2.19)
150
150
  bundler (~> 1.0)
151
- railties (= 3.2.18)
152
- railties (3.2.18)
153
- actionpack (= 3.2.18)
154
- activesupport (= 3.2.18)
151
+ railties (= 3.2.19)
152
+ railties (3.2.19)
153
+ actionpack (= 3.2.19)
154
+ activesupport (= 3.2.19)
155
155
  rack-ssl (~> 1.3.2)
156
156
  rake (>= 0.8.7)
157
157
  rdoc (~> 3.4)
@@ -197,12 +197,12 @@ GEM
197
197
  treetop (1.4.15)
198
198
  polyglot
199
199
  polyglot (>= 0.3.1)
200
- tzinfo (0.3.39)
201
- virtus (1.0.2)
200
+ tzinfo (0.3.41)
201
+ virtus (1.0.3)
202
202
  axiom-types (~> 0.1)
203
203
  coercible (~> 1.0)
204
- descendants_tracker (~> 0.0.3)
205
- equalizer (~> 0.0.9)
204
+ descendants_tracker (~> 0.0, >= 0.0.3)
205
+ equalizer (~> 0.0, >= 0.0.9)
206
206
  yajl-ruby (1.2.1)
207
207
 
208
208
  PLATFORMS
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"f5675d2df1b5aa89bc353d617ed6b198203be891"
5
+ gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"d294b615815541b52ff59d0c3e1e5c6570b3a6be"
6
6
  gem "appraisal", "1.0.0.beta3"
7
7
  gem "mongoid", "~> 4.0.0.beta1"
8
8
 
@@ -1,54 +1,55 @@
1
1
  GIT
2
2
  remote: git@github.com:roqua/quby_engine.git
3
- revision: f5675d2df1b5aa89bc353d617ed6b198203be891
4
- ref: f5675d2df1b5aa89bc353d617ed6b198203be891
3
+ revision: d294b615815541b52ff59d0c3e1e5c6570b3a6be
4
+ ref: d294b615815541b52ff59d0c3e1e5c6570b3a6be
5
5
  specs:
6
- quby (2.0.0)
6
+ quby (2.2.0)
7
7
  addressable
8
8
  coffee-rails
9
+ compass (~> 0.12)
9
10
  compass-rails
10
11
  haml
11
12
  jquery-rails (~> 2.2.1)
12
13
  json
13
14
  maruku (= 0.6.1)
14
- opencpu (~> 0.7.0)
15
+ opencpu (~> 0.7.4)
15
16
  rails (>= 3.2, < 5.0)
16
17
  ryansch-andand
17
18
  sass-rails (>= 3.2, < 5.0)
18
19
  susy (~> 1.0.rc)
19
- virtus (~> 1.0)
20
+ virtus (>= 1.0.3, < 2.0)
20
21
 
21
22
  PATH
22
23
  remote: .././
23
24
  specs:
24
25
  quby-mongoid (2.0.0)
25
26
  mongoid (>= 2.2, < 5.0)
26
- quby (~> 2.0)
27
+ quby (~> 2.2.0)
27
28
 
28
29
  GEM
29
30
  remote: https://rubygems.org/
30
31
  specs:
31
- actionmailer (4.1.1)
32
- actionpack (= 4.1.1)
33
- actionview (= 4.1.1)
34
- mail (~> 2.5.4)
35
- actionpack (4.1.1)
36
- actionview (= 4.1.1)
37
- activesupport (= 4.1.1)
32
+ actionmailer (4.1.6)
33
+ actionpack (= 4.1.6)
34
+ actionview (= 4.1.6)
35
+ mail (~> 2.5, >= 2.5.4)
36
+ actionpack (4.1.6)
37
+ actionview (= 4.1.6)
38
+ activesupport (= 4.1.6)
38
39
  rack (~> 1.5.2)
39
40
  rack-test (~> 0.6.2)
40
- actionview (4.1.1)
41
- activesupport (= 4.1.1)
41
+ actionview (4.1.6)
42
+ activesupport (= 4.1.6)
42
43
  builder (~> 3.1)
43
44
  erubis (~> 2.7.0)
44
- activemodel (4.1.1)
45
- activesupport (= 4.1.1)
45
+ activemodel (4.1.6)
46
+ activesupport (= 4.1.6)
46
47
  builder (~> 3.1)
47
- activerecord (4.1.1)
48
- activemodel (= 4.1.1)
49
- activesupport (= 4.1.1)
48
+ activerecord (4.1.6)
49
+ activemodel (= 4.1.6)
50
+ activesupport (= 4.1.6)
50
51
  arel (~> 5.0.0)
51
- activesupport (4.1.1)
52
+ activesupport (4.1.6)
52
53
  i18n (~> 0.6, >= 0.6.9)
53
54
  json (~> 1.7, >= 1.7.7)
54
55
  minitest (~> 5.1)
@@ -74,17 +75,16 @@ GEM
74
75
  coffee-rails (4.0.1)
75
76
  coffee-script (>= 2.2.0)
76
77
  railties (>= 4.0.0, < 5.0)
77
- coffee-script (2.2.0)
78
+ coffee-script (2.3.0)
78
79
  coffee-script-source
79
80
  execjs
80
- coffee-script-source (1.7.0)
81
- compass (0.12.6)
81
+ coffee-script-source (1.8.0)
82
+ compass (0.12.7)
82
83
  chunky_png (~> 1.2)
83
84
  fssm (>= 0.2.7)
84
85
  sass (~> 3.2.19)
85
- compass-rails (1.1.7)
86
+ compass-rails (2.0.0)
86
87
  compass (>= 0.12.2)
87
- sprockets (<= 2.11.0)
88
88
  connection_pool (2.0.0)
89
89
  database_cleaner (1.2.0)
90
90
  descendants_tracker (0.0.4)
@@ -100,20 +100,19 @@ GEM
100
100
  httparty (0.13.1)
101
101
  json (~> 1.8)
102
102
  multi_xml (>= 0.5.2)
103
- i18n (0.6.9)
103
+ i18n (0.6.11)
104
104
  ice_nine (0.11.0)
105
105
  jquery-rails (2.2.2)
106
106
  railties (>= 3.0, < 5.0)
107
107
  thor (>= 0.14, < 2.0)
108
108
  json (1.8.1)
109
- mail (2.5.4)
110
- mime-types (~> 1.16)
111
- treetop (~> 1.4.8)
109
+ mail (2.6.1)
110
+ mime-types (>= 1.16, < 3)
112
111
  maruku (0.6.1)
113
112
  syntax (>= 1.0.0)
114
113
  method_source (0.8.2)
115
- mime-types (1.25.1)
116
- minitest (5.3.5)
114
+ mime-types (2.3)
115
+ minitest (5.4.2)
117
116
  mongoid (4.0.0)
118
117
  activemodel (~> 4.0)
119
118
  moped (~> 2.0.0)
@@ -125,7 +124,7 @@ GEM
125
124
  optionable (~> 0.2.0)
126
125
  multi_json (1.10.1)
127
126
  multi_xml (0.5.5)
128
- opencpu (0.7.1)
127
+ opencpu (0.7.4)
129
128
  httparty (~> 0.12)
130
129
  yajl-ruby (~> 1.2, >= 1.2.0)
131
130
  optionable (0.2.0)
@@ -133,7 +132,6 @@ GEM
133
132
  parser (2.1.9)
134
133
  ast (>= 1.1, < 3.0)
135
134
  slop (~> 3.4, >= 3.4.5)
136
- polyglot (0.3.5)
137
135
  powerpack (0.0.9)
138
136
  pry (0.10.0)
139
137
  coderay (~> 1.1.0)
@@ -142,19 +140,19 @@ GEM
142
140
  rack (1.5.2)
143
141
  rack-test (0.6.2)
144
142
  rack (>= 1.0)
145
- rails (4.1.1)
146
- actionmailer (= 4.1.1)
147
- actionpack (= 4.1.1)
148
- actionview (= 4.1.1)
149
- activemodel (= 4.1.1)
150
- activerecord (= 4.1.1)
151
- activesupport (= 4.1.1)
143
+ rails (4.1.6)
144
+ actionmailer (= 4.1.6)
145
+ actionpack (= 4.1.6)
146
+ actionview (= 4.1.6)
147
+ activemodel (= 4.1.6)
148
+ activerecord (= 4.1.6)
149
+ activesupport (= 4.1.6)
152
150
  bundler (>= 1.3.0, < 2.0)
153
- railties (= 4.1.1)
151
+ railties (= 4.1.6)
154
152
  sprockets-rails (~> 2.0)
155
- railties (4.1.1)
156
- actionpack (= 4.1.1)
157
- activesupport (= 4.1.1)
153
+ railties (4.1.6)
154
+ actionpack (= 4.1.6)
155
+ activesupport (= 4.1.6)
158
156
  rake (>= 0.8.7)
159
157
  thor (>= 0.18.1, < 2.0)
160
158
  rainbow (2.0.0)
@@ -187,7 +185,7 @@ GEM
187
185
  multi_json (~> 1.0)
188
186
  rack (~> 1.0)
189
187
  tilt (~> 1.1, != 1.3.0)
190
- sprockets-rails (2.1.3)
188
+ sprockets-rails (2.1.4)
191
189
  actionpack (>= 3.0)
192
190
  activesupport (>= 3.0)
193
191
  sprockets (~> 2.8)
@@ -198,16 +196,13 @@ GEM
198
196
  thor (0.19.1)
199
197
  thread_safe (0.3.4)
200
198
  tilt (1.4.1)
201
- treetop (1.4.15)
202
- polyglot
203
- polyglot (>= 0.3.1)
204
- tzinfo (1.2.1)
199
+ tzinfo (1.2.2)
205
200
  thread_safe (~> 0.1)
206
- virtus (1.0.2)
201
+ virtus (1.0.3)
207
202
  axiom-types (~> 0.1)
208
203
  coercible (~> 1.0)
209
- descendants_tracker (~> 0.0.3)
210
- equalizer (~> 0.0.9)
204
+ descendants_tracker (~> 0.0, >= 0.0.3)
205
+ equalizer (~> 0.0, >= 0.0.9)
211
206
  yajl-ruby (1.2.1)
212
207
 
213
208
  PLATFORMS
@@ -13,7 +13,8 @@ module Quby
13
13
  store_in collection: :answers
14
14
  field :_id, type: String,
15
15
  pre_processed: true,
16
- default: -> { BSON::ObjectId.new.to_s }
16
+ default: -> { BSON::ObjectId.new.to_s },
17
+ overwrite: true
17
18
  elsif ::Mongoid::VERSION > '3'
18
19
  store_in collection: :answers
19
20
  field :_id, type: String,
@@ -33,12 +34,14 @@ module Quby
33
34
  field :token, type: String
34
35
  field :active, type: Boolean, default: true
35
36
  field :test, type: Boolean, default: false
37
+ field :started_at, type: Time
36
38
  field :completed_at, type: Time
37
39
  field :outcome_generated_at, type: Time
38
40
  field :scores, type: Hash, default: {}
39
41
  field :actions, type: Hash, default: {}
40
42
  field :completion, type: Hash, default: {}
41
43
  field :dsl_last_update, type: Time
44
+ field :flags, type: Hash, default: {}
42
45
  end
43
46
 
44
47
  def find_completed_after(time, answer_ids)
@@ -1,5 +1,5 @@
1
1
  module Quby
2
2
  module Mongoid
3
- VERSION = "2.0.0"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
data/quby-mongoid.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'quby', '~> 2.0'
21
+ spec.add_dependency 'quby', '~> 2.2.0'
22
22
  spec.add_dependency "mongoid", ">= 2.2", '< 5.0'
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.6"
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,7 @@ ENV["RACK_ENV"] = "test"
3
3
  ENV["MONGOID_ENV"] = "test"
4
4
 
5
5
  require 'quby/mongoid'
6
- Quby.questionnaires_path = Quby.fixtures_path
6
+ Quby.questionnaire_repo = Quby::Questionnaires::Repos::DiskRepo.new(Quby.fixtures_path)
7
7
  Quby.answer_repo = Quby::Answers::Repos::MongoidRepo.new
8
8
 
9
9
  require 'mongoid'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quby-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-01 00:00:00.000000000 Z
11
+ date: 2014-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: quby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: 2.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: 2.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mongoid
29
29
  requirement: !ruby/object:Gem::Requirement