helena_administration 0.1.1 → 0.2.0

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: 6431e28f4dea66ec502020cb526e6767a8d15e93
4
- data.tar.gz: 56d003fec38acf09a3de1975ed9a77c84daab7aa
3
+ metadata.gz: 17f07aeac256c6374c6c74617480b11bbf38148a
4
+ data.tar.gz: a5243f43d78abcbc2abc74dda291684335cd9ebe
5
5
  SHA512:
6
- metadata.gz: cf0febd446ecafdf5b91a26c7b5a90e84a86932bc985d210cd89f6c270e8648097bf1df16813e62ae580a97b2aaabd94f1ff9fe306ebaaaa21164a5811af705c
7
- data.tar.gz: 0f5edbf76ebee2bdbeea48b148f70bee1a72e6b73c8f061f7b062bc61150dceac27628c56a59c3cd4f72aff03d54d54d0ce2b63a737837fb26adb17326256cdf
6
+ metadata.gz: 32afaf673845894ef1e08cff1072399be614c69cc9129191e76cce2ab4a47035515b3c9b8e9dfb3560b7ccafdc5f540823e4d09381241b815e54cbb9db6859a5
7
+ data.tar.gz: a4f26e65ed204826abd52f7dc99dc6134291444f0b02d499df7c2e7291177f8ac608c0b64c167edd0f17befc301e6e87054c00be0b7ea48130febcd4080249c1
data/Gemfile CHANGED
@@ -10,13 +10,6 @@ gemspec
10
10
  # Git. Remember to move these dependencies to your gemspec before releasing
11
11
  # your gem to rubygems.org.
12
12
 
13
- # To use debugger
14
- # gem 'debugger'
15
-
16
- gem 'helena', '~> 1.0.0.rc3'
17
- # git: 'https://github.com/gurix/helena.git'
18
- # path: '../helena/'
19
-
20
13
  gem 'compass-h5bp', group: :assets
21
14
  group :development, :test do
22
15
  gem 'better_errors'
data/Gemfile.lock CHANGED
@@ -1,17 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- helena_administration (0.1.1)
4
+ helena_administration (0.2.0)
5
5
  bootstrap-sass (~> 3.2)
6
6
  breadcrumbs_on_rails (~> 2.3)
7
7
  codemirror-rails (~> 5)
8
8
  coffee-rails (~> 4.1)
9
9
  font-awesome-sass (~> 4.3.0)
10
10
  haml-rails (~> 0.5)
11
+ helena (~> 1.0.0)
11
12
  html5-rails (~> 0.1)
12
13
  jquery-rails (~> 4)
13
14
  kaminari (~> 0.16)
14
- mongoid (~> 4.0)
15
+ mongoid (>= 4.0, < 6.0)
15
16
  mongoid-simple-tags (~> 0.1)
16
17
  mongoid_orderable (~> 4.1)
17
18
  rails (~> 4.2)
@@ -25,44 +26,44 @@ GEM
25
26
  remote: https://rubygems.org/
26
27
  specs:
27
28
  ZenTest (4.11.0)
28
- actionmailer (4.2.3)
29
- actionpack (= 4.2.3)
30
- actionview (= 4.2.3)
31
- activejob (= 4.2.3)
29
+ actionmailer (4.2.4)
30
+ actionpack (= 4.2.4)
31
+ actionview (= 4.2.4)
32
+ activejob (= 4.2.4)
32
33
  mail (~> 2.5, >= 2.5.4)
33
34
  rails-dom-testing (~> 1.0, >= 1.0.5)
34
- actionpack (4.2.3)
35
- actionview (= 4.2.3)
36
- activesupport (= 4.2.3)
35
+ actionpack (4.2.4)
36
+ actionview (= 4.2.4)
37
+ activesupport (= 4.2.4)
37
38
  rack (~> 1.6)
38
39
  rack-test (~> 0.6.2)
39
40
  rails-dom-testing (~> 1.0, >= 1.0.5)
40
41
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
41
- actionview (4.2.3)
42
- activesupport (= 4.2.3)
42
+ actionview (4.2.4)
43
+ activesupport (= 4.2.4)
43
44
  builder (~> 3.1)
44
45
  erubis (~> 2.7.0)
45
46
  rails-dom-testing (~> 1.0, >= 1.0.5)
46
47
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
47
- activejob (4.2.3)
48
- activesupport (= 4.2.3)
48
+ activejob (4.2.4)
49
+ activesupport (= 4.2.4)
49
50
  globalid (>= 0.3.0)
50
- activemodel (4.2.3)
51
- activesupport (= 4.2.3)
51
+ activemodel (4.2.4)
52
+ activesupport (= 4.2.4)
52
53
  builder (~> 3.1)
53
- activerecord (4.2.3)
54
- activemodel (= 4.2.3)
55
- activesupport (= 4.2.3)
54
+ activerecord (4.2.4)
55
+ activemodel (= 4.2.4)
56
+ activesupport (= 4.2.4)
56
57
  arel (~> 6.0)
57
- activesupport (4.2.3)
58
+ activesupport (4.2.4)
58
59
  i18n (~> 0.7)
59
60
  json (~> 1.7, >= 1.7.7)
60
61
  minitest (~> 5.1)
61
62
  thread_safe (~> 0.3, >= 0.3.4)
62
63
  tzinfo (~> 1.1)
63
64
  addressable (2.3.8)
64
- arel (6.0.2)
65
- autoprefixer-rails (5.2.1.1)
65
+ arel (6.0.3)
66
+ autoprefixer-rails (6.0.3)
66
67
  execjs
67
68
  json
68
69
  autotest (4.4.6)
@@ -80,20 +81,20 @@ GEM
80
81
  bootstrap-sass (3.3.5.1)
81
82
  autoprefixer-rails (>= 5.0.0.1)
82
83
  sass (>= 3.3.0)
83
- breadcrumbs_on_rails (2.3.0)
84
- browser (0.8.0)
85
- bson (3.1.2)
84
+ breadcrumbs_on_rails (2.3.1)
85
+ browser (1.0.1)
86
+ bson (3.2.4)
86
87
  builder (3.2.2)
87
88
  byebug (5.0.0)
88
89
  columnize (= 0.9.0)
89
- capybara (2.4.4)
90
+ capybara (2.5.0)
90
91
  mime-types (>= 1.16)
91
92
  nokogiri (>= 1.3.3)
92
93
  rack (>= 1.0.0)
93
94
  rack-test (>= 0.5.4)
94
95
  xpath (~> 2.0)
95
96
  chunky_png (1.3.4)
96
- codemirror-rails (5.3)
97
+ codemirror-rails (5.6)
97
98
  railties (>= 3.0, < 5)
98
99
  coderay (1.1.0)
99
100
  coffee-rails (4.1.0)
@@ -118,8 +119,6 @@ GEM
118
119
  compass (~> 1.0, >= 1.0.3)
119
120
  compass-import-once (1.0.5)
120
121
  sass (>= 3.2, < 3.5)
121
- connection_pool (2.2.0)
122
- database_cleaner (1.4.1)
123
122
  debug_inspector (0.0.2)
124
123
  diff-lcs (1.2.5)
125
124
  docile (1.1.5)
@@ -128,20 +127,20 @@ GEM
128
127
  dotenv (= 2.0.2)
129
128
  railties (~> 4.0)
130
129
  erubis (2.7.0)
131
- execjs (2.5.2)
130
+ execjs (2.6.0)
132
131
  factory_girl (4.5.0)
133
132
  activesupport (>= 3.0.0)
134
133
  factory_girl_rails (4.5.0)
135
134
  factory_girl (~> 4.5.0)
136
135
  railties (>= 3.0.0)
137
- faker (1.4.3)
136
+ faker (1.5.0)
138
137
  i18n (~> 0.5)
139
- ffi (1.9.8)
138
+ ffi (1.9.10)
140
139
  font-awesome-sass (4.3.2.1)
141
140
  sass (~> 3.2)
142
- globalid (0.3.5)
141
+ globalid (0.3.6)
143
142
  activesupport (>= 4.1.0)
144
- haml (4.0.6)
143
+ haml (4.0.7)
145
144
  tilt
146
145
  haml-rails (0.9.0)
147
146
  actionpack (>= 4.0.1)
@@ -149,13 +148,13 @@ GEM
149
148
  haml (>= 4.0.6, < 5.0)
150
149
  html2haml (>= 1.0.1)
151
150
  railties (>= 4.0.1)
152
- helena (1.0.0.rc3)
151
+ helena (1.0.0)
153
152
  bootstrap-sass (~> 3.2)
154
153
  breadcrumbs_on_rails (~> 2.3)
155
- browser (~> 0.8)
154
+ browser (> 0.4)
156
155
  haml-rails (~> 0.9)
157
156
  jquery-rails (~> 4.0)
158
- mongoid (~> 4.0)
157
+ mongoid (>= 4.0, < 6.0)
159
158
  mongoid-simple-tags (~> 0.1)
160
159
  mongoid-tree (~> 2.0)
161
160
  mongoid_orderable (~> 4.1)
@@ -175,7 +174,7 @@ GEM
175
174
  railties (>= 3.2)
176
175
  thor (~> 0.14)
177
176
  i18n (0.7.0)
178
- jquery-rails (4.0.4)
177
+ jquery-rails (4.0.5)
179
178
  rails-dom-testing (~> 1.0)
180
179
  railties (>= 4.2.0)
181
180
  thor (>= 0.14, < 2.0)
@@ -185,38 +184,35 @@ GEM
185
184
  activesupport (>= 3.0.0)
186
185
  launchy (2.4.3)
187
186
  addressable (~> 2.3)
188
- loofah (2.0.2)
187
+ loofah (2.0.3)
189
188
  nokogiri (>= 1.5.9)
190
189
  mail (2.6.3)
191
190
  mime-types (>= 1.16, < 3)
192
191
  method_source (0.8.2)
193
- mime-types (2.6.1)
192
+ mime-types (2.6.2)
194
193
  mini_portile (0.6.2)
195
- minitest (5.7.0)
196
- mongoid (4.0.2)
194
+ minitest (5.8.0)
195
+ mongo (2.1.0)
196
+ bson (~> 3.0)
197
+ mongoid (5.0.0)
197
198
  activemodel (~> 4.0)
198
- moped (~> 2.0.0)
199
+ mongo (~> 2.1)
199
200
  origin (~> 2.1)
200
201
  tzinfo (>= 0.3.37)
201
- mongoid-rspec (2.2.0)
202
- mongoid (~> 4.0.0)
202
+ mongoid-rspec (3.0.0)
203
+ mongoid (~> 5.0)
203
204
  rake
204
- rspec (~> 3.1)
205
+ rspec (~> 3.3)
205
206
  mongoid-simple-tags (0.1.3)
206
207
  json (~> 1.8)
207
208
  mongoid (>= 3.0.3)
208
- mongoid-tree (2.0.0)
209
- mongoid (>= 4.0, <= 5.0)
209
+ mongoid-tree (2.0.1)
210
+ mongoid (>= 4.0, < 6.0)
210
211
  mongoid_orderable (4.1.1)
211
212
  mongoid
212
- moped (2.0.6)
213
- bson (~> 3.0)
214
- connection_pool (~> 2.0)
215
- optionable (~> 0.2.0)
216
- multi_json (1.11.1)
213
+ multi_json (1.11.2)
217
214
  nokogiri (1.6.6.2)
218
215
  mini_portile (~> 0.6.0)
219
- optionable (0.2.0)
220
216
  origin (2.1.1)
221
217
  pry (0.10.1)
222
218
  coderay (~> 1.1.0)
@@ -230,35 +226,35 @@ GEM
230
226
  rack (1.6.4)
231
227
  rack-test (0.6.3)
232
228
  rack (>= 1.0)
233
- rails (4.2.3)
234
- actionmailer (= 4.2.3)
235
- actionpack (= 4.2.3)
236
- actionview (= 4.2.3)
237
- activejob (= 4.2.3)
238
- activemodel (= 4.2.3)
239
- activerecord (= 4.2.3)
240
- activesupport (= 4.2.3)
229
+ rails (4.2.4)
230
+ actionmailer (= 4.2.4)
231
+ actionpack (= 4.2.4)
232
+ actionview (= 4.2.4)
233
+ activejob (= 4.2.4)
234
+ activemodel (= 4.2.4)
235
+ activerecord (= 4.2.4)
236
+ activesupport (= 4.2.4)
241
237
  bundler (>= 1.3.0, < 2.0)
242
- railties (= 4.2.3)
238
+ railties (= 4.2.4)
243
239
  sprockets-rails
244
240
  rails-deprecated_sanitizer (1.0.3)
245
241
  activesupport (>= 4.2.0.alpha)
246
- rails-dom-testing (1.0.6)
242
+ rails-dom-testing (1.0.7)
247
243
  activesupport (>= 4.2.0.beta, < 5.0)
248
244
  nokogiri (~> 1.6.0)
249
245
  rails-deprecated_sanitizer (>= 1.0.1)
250
246
  rails-html-sanitizer (1.0.2)
251
247
  loofah (~> 2.0)
252
- rails-i18n (4.0.4)
248
+ rails-i18n (4.0.5)
253
249
  i18n (~> 0.6)
254
250
  railties (~> 4.0)
255
- railties (4.2.3)
256
- actionpack (= 4.2.3)
257
- activesupport (= 4.2.3)
251
+ railties (4.2.4)
252
+ actionpack (= 4.2.4)
253
+ activesupport (= 4.2.4)
258
254
  rake (>= 0.8.7)
259
255
  thor (>= 0.18.1, < 2.0)
260
256
  rake (10.4.2)
261
- rb-fsevent (0.9.5)
257
+ rb-fsevent (0.9.6)
262
258
  rb-inotify (0.9.5)
263
259
  ffi (>= 0.5.0)
264
260
  responders (2.1.0)
@@ -286,17 +282,17 @@ GEM
286
282
  rspec-mocks (~> 3.3.0)
287
283
  rspec-support (~> 3.3.0)
288
284
  rspec-support (3.3.0)
289
- ruby_parser (3.7.0)
285
+ ruby_parser (3.7.1)
290
286
  sexp_processor (~> 4.1)
291
- sass (3.4.16)
292
- sass-rails (5.0.3)
287
+ sass (3.4.18)
288
+ sass-rails (5.0.4)
293
289
  railties (>= 4.0.0, < 5.0)
294
290
  sass (~> 3.1)
295
291
  sprockets (>= 2.8, < 4.0)
296
292
  sprockets-rails (>= 2.0, < 4.0)
297
- tilt (~> 1.1)
293
+ tilt (>= 1.1, < 3)
298
294
  sexp_processor (4.6.0)
299
- simple_form (3.1.0)
295
+ simple_form (3.1.1)
300
296
  actionpack (~> 4.0)
301
297
  activemodel (~> 4.0)
302
298
  simplecov (0.10.0)
@@ -315,18 +311,18 @@ GEM
315
311
  slim (~> 3.0)
316
312
  slop (3.6.0)
317
313
  spork (0.9.2)
318
- sprockets (3.2.0)
314
+ sprockets (3.3.4)
319
315
  rack (~> 1.0)
320
- sprockets-rails (2.3.2)
316
+ sprockets-rails (2.3.3)
321
317
  actionpack (>= 3.0)
322
318
  activesupport (>= 3.0)
323
319
  sprockets (>= 2.8, < 4.0)
324
- sys-uname (0.9.2)
320
+ sys-uname (1.0.2)
325
321
  ffi (>= 1.0.0)
326
322
  temple (0.7.6)
327
323
  thor (0.19.1)
328
324
  thread_safe (0.3.5)
329
- tilt (1.4.1)
325
+ tilt (2.0.1)
330
326
  tzinfo (1.2.2)
331
327
  thread_safe (~> 0.1)
332
328
  xpath (2.0.0)
@@ -344,11 +340,9 @@ DEPENDENCIES
344
340
  binding_of_caller
345
341
  capybara
346
342
  compass-h5bp
347
- database_cleaner (~> 1.3)
348
343
  dotenv-rails
349
344
  factory_girl_rails
350
345
  faker
351
- helena (~> 1.0.0.rc3)
352
346
  helena_administration!
353
347
  launchy
354
348
  mongoid-rspec
data/Rakefile CHANGED
@@ -22,7 +22,5 @@ Bundler::GemHelper.install_tasks
22
22
  require 'rspec/core'
23
23
  require 'rspec/core/rake_task'
24
24
 
25
- desc 'Run all specs in spec directory (excluding plugin specs)'
26
- RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare')
27
-
25
+ RSpec::Core::RakeTask.new(:spec)
28
26
  task default: :spec
@@ -21,7 +21,6 @@ module HelenaAdministration
21
21
  def create
22
22
  @version = build_version
23
23
  @version.update_attributes(version_params)
24
-
25
24
  if @version.save
26
25
  flash[:success] = t 'shared.actions.created'
27
26
  else
@@ -69,7 +68,8 @@ module HelenaAdministration
69
68
 
70
69
  def version_params
71
70
  params.require(:version).permit(:parent, :notes, :session_report, :active,
72
- settings: [:display_progressbar], survey_detail_attributes: [:title, :description])
71
+ settings: [:display_progressbar],
72
+ survey_detail_attributes: [:title, :description])
73
73
  end
74
74
 
75
75
  def build_version
@@ -21,7 +21,8 @@ Gem::Specification.new do |s|
21
21
  s.add_runtime_dependency 'rails', '~> 4.2'
22
22
  s.add_runtime_dependency 'slim-rails', '~> 3.0'
23
23
  s.add_runtime_dependency 'codemirror-rails', '~> 5'
24
- s.add_dependency 'mongoid', '~> 4.0'
24
+ s.add_dependency 'helena', '~> 1.0.0'
25
+ s.add_dependency 'mongoid', ['< 6.0', '>= 4.0']
25
26
  s.add_dependency 'mongoid_orderable', '~> 4.1'
26
27
  s.add_dependency 'mongoid-simple-tags', '~> 0.1'
27
28
  s.add_dependency 'haml-rails', '~> 0.5'
@@ -35,6 +36,4 @@ Gem::Specification.new do |s|
35
36
  s.add_runtime_dependency 'font-awesome-sass', '~> 4.3.0'
36
37
  s.add_runtime_dependency 'coffee-rails', '~> 4.1'
37
38
  s.add_dependency 'responders', '~> 2.0'
38
-
39
- s.add_development_dependency 'database_cleaner', '~> 1.3'
40
39
  end
@@ -1,3 +1,3 @@
1
1
  module HelenaAdministration
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -36,7 +36,7 @@ describe 'Versions ' do
36
36
 
37
37
  expect { click_button 'Save' }.to change { survey.reload.versions.count }.by(1)
38
38
 
39
- new_version = survey.reload.versions.last
39
+ new_version = survey.versions.sort.last
40
40
 
41
41
  expect(new_version.survey_detail.title).to eq 'Everybody lies'
42
42
  expect(new_version.survey_detail.description).to eq 'but shoes always tell the truth'
data/spec/spec_helper.rb CHANGED
@@ -6,13 +6,18 @@ require File.expand_path('../dummy/config/environment.rb', __FILE__)
6
6
 
7
7
  require 'rspec/rails'
8
8
  require 'factory_girl_rails'
9
- require 'database_cleaner'
10
9
  require 'mongoid-rspec'
11
10
  require 'capybara/rspec'
12
11
  require 'rspec/collection_matchers'
13
12
  require 'dotenv'
14
13
  Dotenv.load
15
14
 
15
+ Mongoid.configure do |config|
16
+ config.connect_to('helena_adminstration_test')
17
+ end
18
+
19
+ Mongo::Logger.logger.level = Logger::WARN # Set log level to DEBUG to see everything
20
+
16
21
  ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../')
17
22
  Dir[File.join(ENGINE_RAILS_ROOT, 'spec/support/**/*.rb')].each { |f| require f }
18
23
 
@@ -31,13 +36,7 @@ RSpec.configure do |config|
31
36
  config.order = :random
32
37
  config.profile_examples = 30
33
38
 
34
- DatabaseCleaner.strategy = :truncation
35
-
36
- config.before(:each) do
37
- DatabaseCleaner.start
38
- end
39
-
40
39
  config.after(:each) do
41
- DatabaseCleaner.clean
40
+ Mongoid.purge!
42
41
  end
43
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helena_administration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
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-08-04 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kaminari
@@ -67,17 +67,37 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5'
69
69
  - !ruby/object:Gem::Dependency
70
- name: mongoid
70
+ name: helena
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '4.0'
75
+ version: 1.0.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.0.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: mongoid
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "<"
88
+ - !ruby/object:Gem::Version
89
+ version: '6.0'
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '4.0'
93
+ type: :runtime
94
+ prerelease: false
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "<"
98
+ - !ruby/object:Gem::Version
99
+ version: '6.0'
100
+ - - ">="
81
101
  - !ruby/object:Gem::Version
82
102
  version: '4.0'
83
103
  - !ruby/object:Gem::Dependency
@@ -262,20 +282,6 @@ dependencies:
262
282
  - - "~>"
263
283
  - !ruby/object:Gem::Version
264
284
  version: '2.0'
265
- - !ruby/object:Gem::Dependency
266
- name: database_cleaner
267
- requirement: !ruby/object:Gem::Requirement
268
- requirements:
269
- - - "~>"
270
- - !ruby/object:Gem::Version
271
- version: '1.3'
272
- type: :development
273
- prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - "~>"
277
- - !ruby/object:Gem::Version
278
- version: '1.3'
279
285
  description: Helena Administration is a simple rails application that provides a user
280
286
  interface to manage apps running with the Helena framework.
281
287
  email:
@@ -429,7 +435,6 @@ files:
429
435
  - spec/dummy/config/initializers/session_store.rb
430
436
  - spec/dummy/config/initializers/wrap_parameters.rb
431
437
  - spec/dummy/config/locales/en.yml
432
- - spec/dummy/config/mongoid.yml
433
438
  - spec/dummy/config/routes.rb
434
439
  - spec/dummy/config/secrets.yml
435
440
  - spec/dummy/lib/assets/.keep
@@ -480,3 +485,4 @@ specification_version: 4
480
485
  summary: Helena Administration is a simple rails application that provides a user
481
486
  interface to manage apps running with the Helena framework.
482
487
  test_files: []
488
+ has_rdoc:
@@ -1,13 +0,0 @@
1
- development:
2
- sessions:
3
- default:
4
- database: helena_adminstration_dev
5
- hosts:
6
- - localhost:27017
7
-
8
- test:
9
- sessions:
10
- default:
11
- database: helena_adminstration_test
12
- hosts:
13
- - localhost:27017