quby-mongoid 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3b5d5712a32c925a8545f2bf2dcf846ebcb97a3
4
- data.tar.gz: ae30c5f4bbd11849cd95fe2a06dc19d4f82ae5d0
3
+ metadata.gz: ea63a6a791f8af4adf373efa6308788efbc7b9f1
4
+ data.tar.gz: c379735595f44b727308f44fa93332c703cb45c5
5
5
  SHA512:
6
- metadata.gz: c20c5ad3537d135d6bcebbe46939d8c1b0c60936fc112e0a3f541996cd4e6ab822f7ccf0c85b3f84b33bac424999ff73f62fcedde228a94b2aed8502826c3a20
7
- data.tar.gz: 2b1d01e4c9d38ea603c57a0001c3641e46459efd0b88d8a2ec42eb89665a4578a53dacabfa52612510354ffb2109c25372f789b490ece73d5d31c26e4b2ddfdd
6
+ metadata.gz: 1528312457f7c24d498944bc362f5756981a463d10e32a34d6692bbce2b6162ae0099aecfb3b2afb22b8bbebe689a2015777b53811386ac86a64708d964a1255
7
+ data.tar.gz: 1378e03b8cfcc7a95d21997b8e704798d14f4a52653e0ad2f02f0e97b3bf85ca6ad74a6001a0dfe42596c0db7631a0823d130de7617fb4101fea3ee1972d08af
data/Appraisals CHANGED
@@ -11,3 +11,6 @@ appraise "mongoid4" do
11
11
  gem 'mongoid', '~> 4.0.0.beta1'
12
12
  end
13
13
 
14
+ appraise "mongoid5" do
15
+ gem 'mongoid', '~> 5.0'
16
+ end
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: 'd294b615815541b52ff59d0c3e1e5c6570b3a6be'
7
+ gem 'quby', git: 'git@github.com:roqua/quby_engine.git', ref: '3710c65831bff8b0ac893a7f941d9c1192a23c32'
8
8
  # gem 'quby', path: '../quby'
9
9
 
10
10
  gem 'appraisal', '1.0.0.beta3'
data/circle.yml CHANGED
@@ -8,6 +8,7 @@ dependencies:
8
8
  - "bundle check --path=../vendor/bundle --gemfile='gemfiles/mongoid2.gemfile' || bundle install --path=../vendor/bundle --gemfile='gemfiles/mongoid2.gemfile'"
9
9
  - "bundle check --path=../vendor/bundle --gemfile='gemfiles/mongoid3.gemfile' || bundle install --path=../vendor/bundle --gemfile='gemfiles/mongoid3.gemfile'"
10
10
  - "bundle check --path=../vendor/bundle --gemfile='gemfiles/mongoid4.gemfile' || bundle install --path=../vendor/bundle --gemfile='gemfiles/mongoid4.gemfile'"
11
+ - "bundle check --path=../vendor/bundle --gemfile='gemfiles/mongoid5.gemfile' || bundle install --path=../vendor/bundle --gemfile='gemfiles/mongoid5.gemfile'"
11
12
  test:
12
13
  override:
13
14
  - bundle exec rspec spec:
@@ -25,4 +26,9 @@ test:
25
26
  BUNDLE_GEMFILE: gemfiles/mongoid4.gemfile
26
27
  RAILS_ENV: test
27
28
  RACK_ENV: test
29
+ - bundle exec rspec spec:
30
+ environment:
31
+ BUNDLE_GEMFILE: gemfiles/mongoid5.gemfile
32
+ RAILS_ENV: test
33
+ RACK_ENV: test
28
34
  - bundle exec rubocop
@@ -0,0 +1,10 @@
1
+ test:
2
+ host: localhost
3
+ database: <%= ENV['MONGOID_DATABASE'] || 'quby_mongoid_test' %>
4
+ autocreate_indexes: true
5
+ persist_in_safe_mode: true
6
+ clients:
7
+ default:
8
+ database: <%= ENV['MONGOID_DATABASE'] || 'quby_mongoid_test' %>
9
+ hosts:
10
+ - localhost:27017
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"3710c65831bff8b0ac893a7f941d9c1192a23c32"
6
+ gem "appraisal", "1.0.0.beta3"
7
+ gem "mongoid", "~> 5.0"
8
+
9
+ gemspec :path=>".././"
@@ -0,0 +1,251 @@
1
+ GIT
2
+ remote: git@github.com:roqua/quby_engine.git
3
+ revision: 3710c65831bff8b0ac893a7f941d9c1192a23c32
4
+ ref: 3710c65831bff8b0ac893a7f941d9c1192a23c32
5
+ specs:
6
+ quby (2.3.0)
7
+ addressable
8
+ coffee-rails
9
+ compass (~> 0.12)
10
+ compass-rails
11
+ haml
12
+ jquery-rails (~> 2.2.1)
13
+ json
14
+ maruku (= 0.6.1)
15
+ opencpu (~> 0.8.0)
16
+ rails (>= 3.2, < 5.0)
17
+ ryansch-andand
18
+ sass-rails (>= 3.2, < 5.0)
19
+ susy (~> 1.0.rc)
20
+ virtus (>= 1.0.3, < 2.0)
21
+
22
+ PATH
23
+ remote: .././
24
+ specs:
25
+ quby-mongoid (2.3.0)
26
+ mongoid (>= 2.2, < 6.0)
27
+ quby (~> 2.2)
28
+
29
+ GEM
30
+ remote: https://rubygems.org/
31
+ specs:
32
+ actionmailer (4.2.5)
33
+ actionpack (= 4.2.5)
34
+ actionview (= 4.2.5)
35
+ activejob (= 4.2.5)
36
+ mail (~> 2.5, >= 2.5.4)
37
+ rails-dom-testing (~> 1.0, >= 1.0.5)
38
+ actionpack (4.2.5)
39
+ actionview (= 4.2.5)
40
+ activesupport (= 4.2.5)
41
+ rack (~> 1.6)
42
+ rack-test (~> 0.6.2)
43
+ rails-dom-testing (~> 1.0, >= 1.0.5)
44
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
45
+ actionview (4.2.5)
46
+ activesupport (= 4.2.5)
47
+ builder (~> 3.1)
48
+ erubis (~> 2.7.0)
49
+ rails-dom-testing (~> 1.0, >= 1.0.5)
50
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
51
+ activejob (4.2.5)
52
+ activesupport (= 4.2.5)
53
+ globalid (>= 0.3.0)
54
+ activemodel (4.2.5)
55
+ activesupport (= 4.2.5)
56
+ builder (~> 3.1)
57
+ activerecord (4.2.5)
58
+ activemodel (= 4.2.5)
59
+ activesupport (= 4.2.5)
60
+ arel (~> 6.0)
61
+ activesupport (4.2.5)
62
+ i18n (~> 0.7)
63
+ json (~> 1.7, >= 1.7.7)
64
+ minitest (~> 5.1)
65
+ thread_safe (~> 0.3, >= 0.3.4)
66
+ tzinfo (~> 1.1)
67
+ addressable (2.3.8)
68
+ appraisal (1.0.0.beta3)
69
+ bundler
70
+ rake
71
+ thor (>= 0.14.0)
72
+ arel (6.0.3)
73
+ ast (2.1.0)
74
+ axiom-types (0.1.1)
75
+ descendants_tracker (~> 0.0.4)
76
+ ice_nine (~> 0.11.0)
77
+ thread_safe (~> 0.3, >= 0.3.1)
78
+ bson (3.2.6)
79
+ builder (3.2.2)
80
+ chunky_png (1.3.5)
81
+ coderay (1.1.0)
82
+ coercible (1.0.0)
83
+ descendants_tracker (~> 0.0.1)
84
+ coffee-rails (4.1.0)
85
+ coffee-script (>= 2.2.0)
86
+ railties (>= 4.0.0, < 5.0)
87
+ coffee-script (2.4.1)
88
+ coffee-script-source
89
+ execjs
90
+ coffee-script-source (1.10.0)
91
+ compass (0.12.7)
92
+ chunky_png (~> 1.2)
93
+ fssm (>= 0.2.7)
94
+ sass (~> 3.2.19)
95
+ compass-rails (2.0.0)
96
+ compass (>= 0.12.2)
97
+ database_cleaner (1.5.1)
98
+ descendants_tracker (0.0.4)
99
+ thread_safe (~> 0.3, >= 0.3.1)
100
+ diff-lcs (1.2.5)
101
+ equalizer (0.0.11)
102
+ erubis (2.7.0)
103
+ execjs (2.6.0)
104
+ fssm (0.2.10)
105
+ globalid (0.3.6)
106
+ activesupport (>= 4.1.0)
107
+ haml (4.0.7)
108
+ tilt
109
+ hike (1.2.3)
110
+ httmultiparty (0.3.16)
111
+ httparty (>= 0.7.3)
112
+ mimemagic
113
+ multipart-post
114
+ httparty (0.13.7)
115
+ json (~> 1.8)
116
+ multi_xml (>= 0.5.2)
117
+ i18n (0.7.0)
118
+ ice_nine (0.11.1)
119
+ jquery-rails (2.2.2)
120
+ railties (>= 3.0, < 5.0)
121
+ thor (>= 0.14, < 2.0)
122
+ json (1.8.3)
123
+ loofah (2.0.3)
124
+ nokogiri (>= 1.5.9)
125
+ mail (2.6.3)
126
+ mime-types (>= 1.16, < 3)
127
+ maruku (0.6.1)
128
+ syntax (>= 1.0.0)
129
+ method_source (0.8.2)
130
+ mime-types (2.6.2)
131
+ mimemagic (0.3.0)
132
+ mini_portile (0.6.2)
133
+ minitest (5.8.3)
134
+ mongo (2.1.2)
135
+ bson (~> 3.0)
136
+ mongoid (5.0.1)
137
+ activemodel (~> 4.0)
138
+ mongo (~> 2.1)
139
+ origin (~> 2.1)
140
+ tzinfo (>= 0.3.37)
141
+ multi_json (1.11.2)
142
+ multi_xml (0.5.5)
143
+ multipart-post (2.0.0)
144
+ nokogiri (1.6.6.3)
145
+ mini_portile (~> 0.6.0)
146
+ opencpu (0.8.2)
147
+ httmultiparty (~> 0.3.16)
148
+ yajl-ruby (~> 1.2, >= 1.2.0)
149
+ origin (2.1.1)
150
+ parser (2.1.9)
151
+ ast (>= 1.1, < 3.0)
152
+ slop (~> 3.4, >= 3.4.5)
153
+ powerpack (0.0.9)
154
+ pry (0.10.3)
155
+ coderay (~> 1.1.0)
156
+ method_source (~> 0.8.1)
157
+ slop (~> 3.4)
158
+ rack (1.6.4)
159
+ rack-test (0.6.3)
160
+ rack (>= 1.0)
161
+ rails (4.2.5)
162
+ actionmailer (= 4.2.5)
163
+ actionpack (= 4.2.5)
164
+ actionview (= 4.2.5)
165
+ activejob (= 4.2.5)
166
+ activemodel (= 4.2.5)
167
+ activerecord (= 4.2.5)
168
+ activesupport (= 4.2.5)
169
+ bundler (>= 1.3.0, < 2.0)
170
+ railties (= 4.2.5)
171
+ sprockets-rails
172
+ rails-deprecated_sanitizer (1.0.3)
173
+ activesupport (>= 4.2.0.alpha)
174
+ rails-dom-testing (1.0.7)
175
+ activesupport (>= 4.2.0.beta, < 5.0)
176
+ nokogiri (~> 1.6.0)
177
+ rails-deprecated_sanitizer (>= 1.0.1)
178
+ rails-html-sanitizer (1.0.2)
179
+ loofah (~> 2.0)
180
+ railties (4.2.5)
181
+ actionpack (= 4.2.5)
182
+ activesupport (= 4.2.5)
183
+ rake (>= 0.8.7)
184
+ thor (>= 0.18.1, < 2.0)
185
+ rainbow (2.0.0)
186
+ rake (10.4.2)
187
+ rspec (2.14.1)
188
+ rspec-core (~> 2.14.0)
189
+ rspec-expectations (~> 2.14.0)
190
+ rspec-mocks (~> 2.14.0)
191
+ rspec-core (2.14.8)
192
+ rspec-expectations (2.14.5)
193
+ diff-lcs (>= 1.1.3, < 2.0)
194
+ rspec-mocks (2.14.6)
195
+ rubocop (0.19.1)
196
+ json (>= 1.7.7, < 2)
197
+ parser (~> 2.1.7)
198
+ powerpack (~> 0.0.6)
199
+ rainbow (>= 1.99.1, < 3.0)
200
+ ruby-progressbar (~> 1.4)
201
+ ruby-progressbar (1.7.5)
202
+ ryansch-andand (1.3.2)
203
+ sass (3.2.19)
204
+ sass-rails (4.0.5)
205
+ railties (>= 4.0.0, < 5.0)
206
+ sass (~> 3.2.2)
207
+ sprockets (~> 2.8, < 3.0)
208
+ sprockets-rails (~> 2.0)
209
+ slop (3.6.0)
210
+ sprockets (2.12.4)
211
+ hike (~> 1.2)
212
+ multi_json (~> 1.0)
213
+ rack (~> 1.0)
214
+ tilt (~> 1.1, != 1.3.0)
215
+ sprockets-rails (2.3.3)
216
+ actionpack (>= 3.0)
217
+ activesupport (>= 3.0)
218
+ sprockets (>= 2.8, < 4.0)
219
+ susy (1.0.9)
220
+ compass (>= 0.12.2)
221
+ sass (>= 3.2.0)
222
+ syntax (1.2.0)
223
+ thor (0.19.1)
224
+ thread_safe (0.3.5)
225
+ tilt (1.4.1)
226
+ tzinfo (1.2.2)
227
+ thread_safe (~> 0.1)
228
+ virtus (1.0.5)
229
+ axiom-types (~> 0.1)
230
+ coercible (~> 1.0)
231
+ descendants_tracker (~> 0.0, >= 0.0.3)
232
+ equalizer (~> 0.0, >= 0.0.9)
233
+ yajl-ruby (1.2.1)
234
+
235
+ PLATFORMS
236
+ ruby
237
+
238
+ DEPENDENCIES
239
+ appraisal (= 1.0.0.beta3)
240
+ bundler (~> 1.6)
241
+ database_cleaner
242
+ mongoid (~> 5.0)
243
+ pry
244
+ quby!
245
+ quby-mongoid!
246
+ rake
247
+ rspec (~> 2.14.0)
248
+ rubocop (~> 0.19.0)
249
+
250
+ BUNDLED WITH
251
+ 1.10.2
@@ -1,5 +1,5 @@
1
1
  module Quby
2
2
  module Mongoid
3
- VERSION = "2.3.0"
3
+ VERSION = "2.3.1"
4
4
  end
5
5
  end
data/quby-mongoid.gemspec CHANGED
@@ -18,8 +18,8 @@ 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.2.0'
22
- spec.add_dependency "mongoid", ">= 2.2", '< 5.0'
21
+ spec.add_dependency 'quby', '~> 2.2'
22
+ spec.add_dependency "mongoid", ">= 2.2", '< 6.0'
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.6"
25
25
  spec.add_development_dependency "rake"
data/spec/spec_helper.rb CHANGED
@@ -7,7 +7,9 @@ Quby.questionnaire_repo = Quby::Questionnaires::Repos::DiskRepo.new(Quby.fixture
7
7
  Quby.answer_repo = Quby::Answers::Repos::MongoidRepo.new
8
8
 
9
9
  require 'mongoid'
10
- if ::Mongoid::VERSION > '4'
10
+ if ::Mongoid::VERSION > '5'
11
+ Mongoid.load!(File.expand_path("../../config/mongoid5.yml", __FILE__), :test)
12
+ elsif ::Mongoid::VERSION > '4'
11
13
  Mongoid.load!(File.expand_path("../../config/mongoid4.yml", __FILE__), :test)
12
14
  elsif ::Mongoid::VERSION > '3'
13
15
  Mongoid.load!(File.expand_path("../../config/mongoid3.yml", __FILE__), :test)
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.3.0
4
+ version: 2.3.1
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-10-15 00:00:00.000000000 Z
11
+ date: 2015-11-23 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.2.0
19
+ version: '2.2'
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.2.0
26
+ version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mongoid
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '2.2'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '5.0'
36
+ version: '6.0'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '2.2'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '5.0'
46
+ version: '6.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -146,12 +146,15 @@ files:
146
146
  - config/mongoid2.yml
147
147
  - config/mongoid3.yml
148
148
  - config/mongoid4.yml
149
+ - config/mongoid5.yml
149
150
  - gemfiles/mongoid2.gemfile
150
151
  - gemfiles/mongoid2.gemfile.lock
151
152
  - gemfiles/mongoid3.gemfile
152
153
  - gemfiles/mongoid3.gemfile.lock
153
154
  - gemfiles/mongoid4.gemfile
154
155
  - gemfiles/mongoid4.gemfile.lock
156
+ - gemfiles/mongoid5.gemfile
157
+ - gemfiles/mongoid5.gemfile.lock
155
158
  - lib/quby/answer_repos/mongoid_repo.rb
156
159
  - lib/quby/mongoid.rb
157
160
  - lib/quby/mongoid/version.rb
@@ -179,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
182
  version: '0'
180
183
  requirements: []
181
184
  rubyforge_project:
182
- rubygems_version: 2.2.2
185
+ rubygems_version: 2.4.8
183
186
  signing_key:
184
187
  specification_version: 4
185
188
  summary: Mongoid database adapter for the Quby questionnaire engine