helena 1.0.1 → 1.0.2

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: b96eec003c97b60f958e541f4eabaa6f62a6d3a2
4
- data.tar.gz: 769042bc79eedb05fd0b584fbf5953fd736e6f66
3
+ metadata.gz: 65cc05bdb09b8f779401d5b5c5d742c49773012a
4
+ data.tar.gz: fbafbd80b936572264d05a600619a97cba24aed9
5
5
  SHA512:
6
- metadata.gz: 4ddda08bdc6c83a759bb03f799d88393cfa12dd66d1b0a0e70061598aac20ca18bb368b70f8859ddd47a2a9fb5d8fd1d31e2d9f08c180b4de7bd950c1436ef55
7
- data.tar.gz: c61002c5ca03e9ed95f5a008341116e7e0133ab452a3a2b879599cceeb541b660efb44f189e7b2e60de506a12e6a57fc05b0ce2abcebc8474b97c801c2591740
6
+ metadata.gz: 9cbccf0cfddcddef0dee2296d6db26516e204c80f71cb29c37ec326277cc523d1b7a6f9d57e4ed564105a84480116dc718da13ffdba1b0013d26db7f7e172927
7
+ data.tar.gz: 7abde6cce969cc78923ddcdad9227b56ee0fd1ad88be33d6c5a38d45cce28d18c0da078b6bf8cf9dfa505154402e5ef3b288e637b0baf80a3e0d4f4755ed40e0
data/Gemfile CHANGED
@@ -21,7 +21,6 @@ group :development, :test do
21
21
  gem 'launchy'
22
22
  gem 'binding_of_caller'
23
23
  gem 'selenium-webdriver'
24
- gem 'i18n-tasks'
25
24
  gem 'simple_form'
26
25
  gem 'jquery-rails'
27
26
  gem 'bootstrap-sass'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- helena (1.0.1)
4
+ helena (1.0.2)
5
5
  bootstrap-sass (~> 3.2)
6
6
  breadcrumbs_on_rails (~> 2.3)
7
7
  browser (> 0.4)
@@ -21,36 +21,36 @@ PATH
21
21
  GEM
22
22
  remote: https://rubygems.org/
23
23
  specs:
24
- actionmailer (4.2.4)
25
- actionpack (= 4.2.4)
26
- actionview (= 4.2.4)
27
- activejob (= 4.2.4)
24
+ actionmailer (4.2.5)
25
+ actionpack (= 4.2.5)
26
+ actionview (= 4.2.5)
27
+ activejob (= 4.2.5)
28
28
  mail (~> 2.5, >= 2.5.4)
29
29
  rails-dom-testing (~> 1.0, >= 1.0.5)
30
- actionpack (4.2.4)
31
- actionview (= 4.2.4)
32
- activesupport (= 4.2.4)
30
+ actionpack (4.2.5)
31
+ actionview (= 4.2.5)
32
+ activesupport (= 4.2.5)
33
33
  rack (~> 1.6)
34
34
  rack-test (~> 0.6.2)
35
35
  rails-dom-testing (~> 1.0, >= 1.0.5)
36
36
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
37
- actionview (4.2.4)
38
- activesupport (= 4.2.4)
37
+ actionview (4.2.5)
38
+ activesupport (= 4.2.5)
39
39
  builder (~> 3.1)
40
40
  erubis (~> 2.7.0)
41
41
  rails-dom-testing (~> 1.0, >= 1.0.5)
42
42
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
43
- activejob (4.2.4)
44
- activesupport (= 4.2.4)
43
+ activejob (4.2.5)
44
+ activesupport (= 4.2.5)
45
45
  globalid (>= 0.3.0)
46
- activemodel (4.2.4)
47
- activesupport (= 4.2.4)
46
+ activemodel (4.2.5)
47
+ activesupport (= 4.2.5)
48
48
  builder (~> 3.1)
49
- activerecord (4.2.4)
50
- activemodel (= 4.2.4)
51
- activesupport (= 4.2.4)
49
+ activerecord (4.2.5)
50
+ activemodel (= 4.2.5)
51
+ activesupport (= 4.2.5)
52
52
  arel (~> 6.0)
53
- activesupport (4.2.4)
53
+ activesupport (4.2.5)
54
54
  i18n (~> 0.7)
55
55
  json (~> 1.7, >= 1.7.7)
56
56
  minitest (~> 5.1)
@@ -58,7 +58,7 @@ GEM
58
58
  tzinfo (~> 1.1)
59
59
  addressable (2.3.8)
60
60
  arel (6.0.3)
61
- autoprefixer-rails (6.0.3)
61
+ autoprefixer-rails (6.1.1)
62
62
  execjs
63
63
  json
64
64
  better_errors (2.1.1)
@@ -67,40 +67,35 @@ GEM
67
67
  rack (>= 0.9.0)
68
68
  binding_of_caller (0.7.2)
69
69
  debug_inspector (>= 0.0.1)
70
- bootstrap-sass (3.3.5.1)
71
- autoprefixer-rails (>= 5.0.0.1)
72
- sass (>= 3.3.0)
70
+ bootstrap-sass (3.3.6)
71
+ autoprefixer-rails (>= 5.2.1)
72
+ sass (>= 3.3.4)
73
73
  breadcrumbs_on_rails (2.3.1)
74
74
  browser (1.0.1)
75
- bson (3.2.4)
75
+ bson (3.2.6)
76
76
  builder (3.2.2)
77
- byebug (5.0.0)
78
- columnize (= 0.9.0)
77
+ byebug (8.2.0)
79
78
  capybara (2.5.0)
80
79
  mime-types (>= 1.16)
81
80
  nokogiri (>= 1.3.3)
82
81
  rack (>= 1.0.0)
83
82
  rack-test (>= 0.5.4)
84
83
  xpath (~> 2.0)
85
- childprocess (0.5.6)
84
+ childprocess (0.5.8)
86
85
  ffi (~> 1.0, >= 1.0.11)
87
86
  coderay (1.1.0)
88
- columnize (0.9.0)
89
- coveralls (0.8.2)
87
+ coveralls (0.8.9)
90
88
  json (~> 1.8)
91
89
  rest-client (>= 1.6.8, < 2)
92
90
  simplecov (~> 0.10.0)
93
91
  term-ansicolor (~> 1.3)
94
92
  thor (~> 0.19.1)
93
+ tins (~> 1.6.0)
95
94
  debug_inspector (0.0.2)
96
95
  diff-lcs (1.2.5)
97
96
  docile (1.1.5)
98
- domain_name (0.5.24)
97
+ domain_name (0.5.25)
99
98
  unf (>= 0.0.5, < 1.0.0)
100
- easy_translate (0.5.0)
101
- json
102
- thread
103
- thread_safe
104
99
  erubis (2.7.0)
105
100
  execjs (2.6.0)
106
101
  factory_girl (4.5.0)
@@ -108,7 +103,7 @@ GEM
108
103
  factory_girl_rails (4.5.0)
109
104
  factory_girl (~> 4.5.0)
110
105
  railties (>= 3.0.0)
111
- faker (1.5.0)
106
+ faker (1.6.1)
112
107
  i18n (~> 0.5)
113
108
  ffi (1.9.10)
114
109
  globalid (0.3.6)
@@ -121,7 +116,6 @@ GEM
121
116
  haml (>= 4.0.6, < 5.0)
122
117
  html2haml (>= 1.0.1)
123
118
  railties (>= 4.0.1)
124
- highline (1.7.7)
125
119
  html2haml (2.0.0)
126
120
  erubis (~> 2.7.0)
127
121
  haml (~> 4.0.0)
@@ -130,14 +124,6 @@ GEM
130
124
  http-cookie (1.0.2)
131
125
  domain_name (~> 0.5)
132
126
  i18n (0.7.0)
133
- i18n-tasks (0.8.7)
134
- activesupport (>= 2.3.18)
135
- easy_translate (>= 0.5.0)
136
- erubis
137
- highline (>= 1.7.3)
138
- i18n
139
- term-ansicolor (>= 1.3.2)
140
- terminal-table (>= 1.5.1)
141
127
  jquery-rails (4.0.5)
142
128
  rails-dom-testing (~> 1.0)
143
129
  railties (>= 4.2.0)
@@ -150,12 +136,12 @@ GEM
150
136
  mail (2.6.3)
151
137
  mime-types (>= 1.16, < 3)
152
138
  method_source (0.8.2)
153
- mime-types (2.6.2)
139
+ mime-types (2.99)
154
140
  mini_portile (0.6.2)
155
- minitest (5.8.0)
156
- mongo (2.1.0)
141
+ minitest (5.8.3)
142
+ mongo (2.1.2)
157
143
  bson (~> 3.0)
158
- mongoid (5.0.0)
144
+ mongoid (5.0.1)
159
145
  activemodel (~> 4.0)
160
146
  mongo (~> 2.1)
161
147
  origin (~> 2.1)
@@ -172,32 +158,32 @@ GEM
172
158
  mongoid_orderable (4.1.1)
173
159
  mongoid
174
160
  multi_json (1.11.2)
175
- netrc (0.10.3)
176
- nokogiri (1.6.6.2)
161
+ netrc (0.11.0)
162
+ nokogiri (1.6.6.4)
177
163
  mini_portile (~> 0.6.0)
178
164
  origin (2.1.1)
179
- pry (0.10.1)
165
+ pry (0.10.3)
180
166
  coderay (~> 1.1.0)
181
167
  method_source (~> 0.8.1)
182
168
  slop (~> 3.4)
183
- pry-byebug (3.2.0)
184
- byebug (~> 5.0)
169
+ pry-byebug (3.3.0)
170
+ byebug (~> 8.0)
185
171
  pry (~> 0.10)
186
172
  quiet_assets (1.1.0)
187
173
  railties (>= 3.1, < 5.0)
188
174
  rack (1.6.4)
189
175
  rack-test (0.6.3)
190
176
  rack (>= 1.0)
191
- rails (4.2.4)
192
- actionmailer (= 4.2.4)
193
- actionpack (= 4.2.4)
194
- actionview (= 4.2.4)
195
- activejob (= 4.2.4)
196
- activemodel (= 4.2.4)
197
- activerecord (= 4.2.4)
198
- activesupport (= 4.2.4)
177
+ rails (4.2.5)
178
+ actionmailer (= 4.2.5)
179
+ actionpack (= 4.2.5)
180
+ actionview (= 4.2.5)
181
+ activejob (= 4.2.5)
182
+ activemodel (= 4.2.5)
183
+ activerecord (= 4.2.5)
184
+ activesupport (= 4.2.5)
199
185
  bundler (>= 1.3.0, < 2.0)
200
- railties (= 4.2.4)
186
+ railties (= 4.2.5)
201
187
  sprockets-rails
202
188
  rails-deprecated_sanitizer (1.0.3)
203
189
  activesupport (>= 4.2.0.alpha)
@@ -207,12 +193,12 @@ GEM
207
193
  rails-deprecated_sanitizer (>= 1.0.1)
208
194
  rails-html-sanitizer (1.0.2)
209
195
  loofah (~> 2.0)
210
- rails-i18n (4.0.5)
211
- i18n (~> 0.6)
196
+ rails-i18n (4.0.7)
197
+ i18n (~> 0.7)
212
198
  railties (~> 4.0)
213
- railties (4.2.4)
214
- actionpack (= 4.2.4)
215
- activesupport (= 4.2.4)
199
+ railties (4.2.5)
200
+ actionpack (= 4.2.5)
201
+ activesupport (= 4.2.5)
216
202
  rake (>= 0.8.7)
217
203
  thor (>= 0.18.1, < 2.0)
218
204
  rake (10.4.2)
@@ -222,48 +208,48 @@ GEM
222
208
  http-cookie (>= 1.0.2, < 2.0)
223
209
  mime-types (>= 1.16, < 3.0)
224
210
  netrc (~> 0.7)
225
- rspec (3.3.0)
226
- rspec-core (~> 3.3.0)
227
- rspec-expectations (~> 3.3.0)
228
- rspec-mocks (~> 3.3.0)
211
+ rspec (3.4.0)
212
+ rspec-core (~> 3.4.0)
213
+ rspec-expectations (~> 3.4.0)
214
+ rspec-mocks (~> 3.4.0)
229
215
  rspec-collection_matchers (1.1.2)
230
216
  rspec-expectations (>= 2.99.0.beta1)
231
- rspec-core (3.3.2)
232
- rspec-support (~> 3.3.0)
233
- rspec-expectations (3.3.1)
217
+ rspec-core (3.4.1)
218
+ rspec-support (~> 3.4.0)
219
+ rspec-expectations (3.4.0)
234
220
  diff-lcs (>= 1.2.0, < 2.0)
235
- rspec-support (~> 3.3.0)
236
- rspec-mocks (3.3.2)
221
+ rspec-support (~> 3.4.0)
222
+ rspec-mocks (3.4.0)
237
223
  diff-lcs (>= 1.2.0, < 2.0)
238
- rspec-support (~> 3.3.0)
239
- rspec-rails (3.3.3)
224
+ rspec-support (~> 3.4.0)
225
+ rspec-rails (3.4.0)
240
226
  actionpack (>= 3.0, < 4.3)
241
227
  activesupport (>= 3.0, < 4.3)
242
228
  railties (>= 3.0, < 4.3)
243
- rspec-core (~> 3.3.0)
244
- rspec-expectations (~> 3.3.0)
245
- rspec-mocks (~> 3.3.0)
246
- rspec-support (~> 3.3.0)
247
- rspec-support (3.3.0)
229
+ rspec-core (~> 3.4.0)
230
+ rspec-expectations (~> 3.4.0)
231
+ rspec-mocks (~> 3.4.0)
232
+ rspec-support (~> 3.4.0)
233
+ rspec-support (3.4.1)
248
234
  ruby-progressbar (1.7.5)
249
- ruby_parser (3.7.1)
235
+ ruby_parser (3.7.2)
250
236
  sexp_processor (~> 4.1)
251
237
  rubyzip (1.1.7)
252
- sass (3.4.18)
238
+ sass (3.4.19)
253
239
  sass-rails (5.0.4)
254
240
  railties (>= 4.0.0, < 5.0)
255
241
  sass (~> 3.1)
256
242
  sprockets (>= 2.8, < 4.0)
257
243
  sprockets-rails (>= 2.0, < 4.0)
258
244
  tilt (>= 1.1, < 3)
259
- selenium-webdriver (2.47.1)
245
+ selenium-webdriver (2.48.1)
260
246
  childprocess (~> 0.5)
261
247
  multi_json (~> 1.0)
262
248
  rubyzip (~> 1.0)
263
249
  websocket (~> 1.0)
264
250
  sexp_processor (4.6.0)
265
- shoulda-matchers (2.8.0)
266
- activesupport (>= 3.0.0)
251
+ shoulda-matchers (3.0.1)
252
+ activesupport (>= 4.0.0)
267
253
  simple_form (3.1.1)
268
254
  actionpack (~> 4.0)
269
255
  activemodel (~> 4.0)
@@ -276,8 +262,8 @@ GEM
276
262
  temple (~> 0.7.3)
277
263
  tilt (>= 1.3.3, < 2.1)
278
264
  slop (3.6.0)
279
- sprockets (3.3.4)
280
- rack (~> 1.0)
265
+ sprockets (3.4.0)
266
+ rack (> 1, < 3)
281
267
  sprockets-rails (2.3.3)
282
268
  actionpack (>= 3.0)
283
269
  activesupport (>= 3.0)
@@ -285,9 +271,7 @@ GEM
285
271
  temple (0.7.6)
286
272
  term-ansicolor (1.3.2)
287
273
  tins (~> 1.0)
288
- terminal-table (1.5.2)
289
274
  thor (0.19.1)
290
- thread (0.2.2)
291
275
  thread_safe (0.3.5)
292
276
  tilt (2.0.1)
293
277
  tins (1.6.0)
@@ -313,7 +297,6 @@ DEPENDENCIES
313
297
  factory_girl_rails (~> 4.4)
314
298
  faker (~> 1.4)
315
299
  helena!
316
- i18n-tasks
317
300
  jquery-rails
318
301
  launchy
319
302
  mongoid-rspec
@@ -40,6 +40,7 @@ module Helena
40
40
  private
41
41
 
42
42
  def uniqueness_of_code
43
+ return unless question_group
43
44
  question_code_occurences = question_group.version.question_code_occurences
44
45
  errors.add :code, :taken if question_code_occurences[code] > 1
45
46
  end
@@ -24,6 +24,7 @@ module Helena
24
24
  end
25
25
 
26
26
  def uniqueness_of_code
27
+ return unless question
27
28
  question_code_occurences = question.question_group.version.question_code_occurences
28
29
 
29
30
  return true if question_code_occurences[code] <= 1
@@ -1,3 +1,3 @@
1
1
  module Helena
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -40,3 +40,12 @@ RSpec.configure do |config|
40
40
  Mongoid.purge!
41
41
  end
42
42
  end
43
+
44
+ Shoulda::Matchers.configure do |config|
45
+ config.integrate do |with|
46
+ # Choose a test framework:
47
+ with.test_framework :rspec
48
+ with.library :active_model
49
+ with.library :action_controller
50
+ end
51
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helena
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Graf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-23 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails