helena_administration 0.0.2

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.
Files changed (173) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rubocop.yml +18 -0
  4. data/.travis.yml +6 -0
  5. data/Gemfile +44 -0
  6. data/Gemfile.lock +309 -0
  7. data/MIT-LICENSE +20 -0
  8. data/README.md +82 -0
  9. data/Rakefile +28 -0
  10. data/app/assets/images/helena_administration/.keep +0 -0
  11. data/app/assets/javascripts/helena_administration.js.coffee +20 -0
  12. data/app/assets/javascripts/polyfills.js +10 -0
  13. data/app/assets/stylesheets/_dashboard.sass +4 -0
  14. data/app/assets/stylesheets/_layout.sass +50 -0
  15. data/app/assets/stylesheets/_media_queries.scss +18 -0
  16. data/app/assets/stylesheets/_variables.sass +19 -0
  17. data/app/assets/stylesheets/helena_administration.css.sass +27 -0
  18. data/app/controllers/helena_administration/application_controller.rb +19 -0
  19. data/app/controllers/helena_administration/dashboard_controller.rb +11 -0
  20. data/app/controllers/helena_administration/import_surveys_controller.rb +40 -0
  21. data/app/controllers/helena_administration/question_groups_controller.rb +68 -0
  22. data/app/controllers/helena_administration/questions/checkbox_groups_controller.rb +15 -0
  23. data/app/controllers/helena_administration/questions/checkbox_matrix_controller.rb +7 -0
  24. data/app/controllers/helena_administration/questions/long_texts_controller.rb +11 -0
  25. data/app/controllers/helena_administration/questions/radio_groups_controller.rb +15 -0
  26. data/app/controllers/helena_administration/questions/radio_matrix_controller.rb +7 -0
  27. data/app/controllers/helena_administration/questions/short_texts_controller.rb +11 -0
  28. data/app/controllers/helena_administration/questions/static_texts_controller.rb +11 -0
  29. data/app/controllers/helena_administration/questions_controller.rb +96 -0
  30. data/app/controllers/helena_administration/sessions_controller.rb +60 -0
  31. data/app/controllers/helena_administration/surveys_controller.rb +71 -0
  32. data/app/controllers/helena_administration/versions_controller.rb +82 -0
  33. data/app/helpers/helena_administration/application_helper.rb +14 -0
  34. data/app/models/helena_administration/import_survey_form.rb +9 -0
  35. data/app/views/helena_administration/application/_chromeframe.html.slim +4 -0
  36. data/app/views/helena_administration/application/_flash_messages.html.haml +5 -0
  37. data/app/views/helena_administration/application/_head.html.slim +13 -0
  38. data/app/views/helena_administration/application/_header.html.slim +16 -0
  39. data/app/views/helena_administration/dashboard/index.html.slim +14 -0
  40. data/app/views/helena_administration/import_surveys/_form.html.slim +11 -0
  41. data/app/views/helena_administration/import_surveys/new.html.slim +1 -0
  42. data/app/views/helena_administration/kaminari/_first_page.html.slim +2 -0
  43. data/app/views/helena_administration/kaminari/_gap.html.slim +2 -0
  44. data/app/views/helena_administration/kaminari/_last_page.html.slim +2 -0
  45. data/app/views/helena_administration/kaminari/_next_page.html.slim +2 -0
  46. data/app/views/helena_administration/kaminari/_page.html.slim +2 -0
  47. data/app/views/helena_administration/kaminari/_paginator.html.slim +11 -0
  48. data/app/views/helena_administration/kaminari/_prev_page.html.slim +2 -0
  49. data/app/views/helena_administration/layouts/application.html.slim +13 -0
  50. data/app/views/helena_administration/question_groups/_form.html.slim +5 -0
  51. data/app/views/helena_administration/question_groups/edit.html.slim +1 -0
  52. data/app/views/helena_administration/question_groups/new.html.slim +1 -0
  53. data/app/views/helena_administration/question_groups/show.html.slim +60 -0
  54. data/app/views/helena_administration/questions/_form.html.slim +15 -0
  55. data/app/views/helena_administration/questions/_labels.html.slim +24 -0
  56. data/app/views/helena_administration/questions/_sub_questions.html.slim +32 -0
  57. data/app/views/helena_administration/questions/edit.html.slim +1 -0
  58. data/app/views/helena_administration/questions/new.html.slim +1 -0
  59. data/app/views/helena_administration/questions/show.html.slim +26 -0
  60. data/app/views/helena_administration/sessions/_form.html.slim +8 -0
  61. data/app/views/helena_administration/sessions/edit.html.slim +1 -0
  62. data/app/views/helena_administration/surveys/_form.html.slim +5 -0
  63. data/app/views/helena_administration/surveys/edit.html.slim +1 -0
  64. data/app/views/helena_administration/surveys/index.html.slim +34 -0
  65. data/app/views/helena_administration/surveys/new.html.slim +1 -0
  66. data/app/views/helena_administration/surveys/show.html.slim +120 -0
  67. data/app/views/helena_administration/versions/_form.html.slim +14 -0
  68. data/app/views/helena_administration/versions/edit.html.slim +1 -0
  69. data/app/views/helena_administration/versions/new.html.slim +1 -0
  70. data/app/views/helena_administration/versions/show.html.slim +68 -0
  71. data/app/views/layouts/helena_administration/application.html.slim +10 -0
  72. data/bin/rails +12 -0
  73. data/config/compass.rb +2 -0
  74. data/config/html5_rails.yml +26 -0
  75. data/config/locales/en.yml +21 -0
  76. data/config/locales/views/dashboard.en.yml +6 -0
  77. data/config/locales/views/import_surveys.en.yml +11 -0
  78. data/config/locales/views/question_groups.en.yml +5 -0
  79. data/config/locales/views/questions.en.yml +5 -0
  80. data/config/locales/views/surveys.en.yml +10 -0
  81. data/config/locales/views/versions.en.yml +11 -0
  82. data/config/routes.rb +24 -0
  83. data/coverage/.resultset.json.lock +0 -0
  84. data/coverage/assets/0.8.0/application.css +799 -0
  85. data/coverage/assets/0.8.0/application.js +1559 -0
  86. data/coverage/assets/0.8.0/colorbox/border.png +0 -0
  87. data/coverage/assets/0.8.0/colorbox/controls.png +0 -0
  88. data/coverage/assets/0.8.0/colorbox/loading.gif +0 -0
  89. data/coverage/assets/0.8.0/colorbox/loading_background.png +0 -0
  90. data/coverage/assets/0.8.0/favicon_green.png +0 -0
  91. data/coverage/assets/0.8.0/favicon_red.png +0 -0
  92. data/coverage/assets/0.8.0/favicon_yellow.png +0 -0
  93. data/coverage/assets/0.8.0/loading.gif +0 -0
  94. data/coverage/assets/0.8.0/magnify.png +0 -0
  95. data/coverage/assets/0.8.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  96. data/coverage/assets/0.8.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  97. data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  98. data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  99. data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  100. data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  101. data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  102. data/coverage/assets/0.8.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  103. data/coverage/assets/0.8.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
  104. data/coverage/assets/0.8.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  105. data/coverage/assets/0.8.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
  106. data/coverage/assets/0.8.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
  107. data/coverage/assets/0.8.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  108. data/helena_administration.gemspec +37 -0
  109. data/lib/helena_administration/engine.rb +13 -0
  110. data/lib/helena_administration/version.rb +3 -0
  111. data/lib/helena_administration.rb +15 -0
  112. data/lib/tasks/helena_administration_tasks.rake +4 -0
  113. data/spec/controllers/dashboard_controller_spec.rb +11 -0
  114. data/spec/controllers/sessions_controller_spec.rb +102 -0
  115. data/spec/controllers/survey_controller_spec.rb +36 -0
  116. data/spec/dummy/README.rdoc +28 -0
  117. data/spec/dummy/Rakefile +6 -0
  118. data/spec/dummy/app/assets/images/.keep +0 -0
  119. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  120. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  121. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  122. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  123. data/spec/dummy/app/decorators/controllers/helena_administration/application_controller_decorator.rb +5 -0
  124. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  125. data/spec/dummy/app/mailers/.keep +0 -0
  126. data/spec/dummy/app/models/.keep +0 -0
  127. data/spec/dummy/app/models/concerns/.keep +0 -0
  128. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  129. data/spec/dummy/bin/bundle +3 -0
  130. data/spec/dummy/bin/rails +4 -0
  131. data/spec/dummy/bin/rake +4 -0
  132. data/spec/dummy/config/application.rb +27 -0
  133. data/spec/dummy/config/boot.rb +5 -0
  134. data/spec/dummy/config/environment.rb +5 -0
  135. data/spec/dummy/config/environments/development.rb +34 -0
  136. data/spec/dummy/config/environments/production.rb +78 -0
  137. data/spec/dummy/config/environments/test.rb +39 -0
  138. data/spec/dummy/config/initializers/assets.rb +9 -0
  139. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  140. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  141. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  142. data/spec/dummy/config/initializers/inflections.rb +16 -0
  143. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  144. data/spec/dummy/config/initializers/session_store.rb +3 -0
  145. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  146. data/spec/dummy/config/locales/en.yml +23 -0
  147. data/spec/dummy/config/mongoid.yml +13 -0
  148. data/spec/dummy/config/routes.rb +4 -0
  149. data/spec/dummy/config/secrets.yml +22 -0
  150. data/spec/dummy/config.ru +4 -0
  151. data/spec/dummy/lib/assets/.keep +0 -0
  152. data/spec/dummy/log/.keep +0 -0
  153. data/spec/dummy/public/404.html +67 -0
  154. data/spec/dummy/public/422.html +67 -0
  155. data/spec/dummy/public/500.html +66 -0
  156. data/spec/dummy/public/favicon.ico +0 -0
  157. data/spec/features/dashboard/index.html.slim_spec.rb +9 -0
  158. data/spec/features/question_groups/manage_question_groups_spec.rb +97 -0
  159. data/spec/features/questions/manage_questions_spec.rb +108 -0
  160. data/spec/features/questions/question_types/manage_checkbox_group_question_spec.rb +53 -0
  161. data/spec/features/questions/question_types/manage_long_text_question_spec.rb +22 -0
  162. data/spec/features/questions/question_types/manage_radio_group_question_spec.rb +57 -0
  163. data/spec/features/questions/question_types/manage_radio_matrix_question_spec.rb +78 -0
  164. data/spec/features/questions/question_types/manage_short_text_question_spec.rb +20 -0
  165. data/spec/features/questions/question_types/manage_static_text_question_spec.rb +18 -0
  166. data/spec/features/sessions/manage_sessions_spec.rb +51 -0
  167. data/spec/features/surveys/manage_survey_spec.rb +95 -0
  168. data/spec/features/versions/manage_version_spec.rb +113 -0
  169. data/spec/helpers/applicatin_helper_spec.rb +17 -0
  170. data/spec/rails_helper.rb +23 -0
  171. data/spec/spec_helper.rb +63 -0
  172. data/spec/support/.keep +0 -0
  173. metadata +455 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ad0cf132b3c4f069ce1391afdda2ab452210f8d3
4
+ data.tar.gz: a2e287c718ac4d2e8f9e2d4af2cdd3b71d5eda69
5
+ SHA512:
6
+ metadata.gz: 38726907f25aa8538adabc5e0b44496697530df05c8e71402bd60a7a67b399c2ca6cf9bf3750166851a74450b47e51447d2798d7583a38dda95600465d73d1df
7
+ data.tar.gz: c3d373ff9a1190e0dc88fa1ee4f0efd9c3bae5afee7b1f32c6142377104878b3deff371657ad24288f4b65133ef4d1ed13bfba9283ed7c7fd6f53dfbb17bb1ae
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ spec/dummy/db/*.sqlite3
5
+ spec/dummy/db/*.sqlite3-journal
6
+ spec/dummy/log/*.log
7
+ spec/dummy/tmp/
8
+ spec/dummy/.sass-cache
9
+ coverage/*
data/.rubocop.yml ADDED
@@ -0,0 +1,18 @@
1
+ AllCops:
2
+ Include:
3
+ - '**/Rakefile'
4
+ - '**/config.ru'
5
+ Exclude:
6
+ - bin/**
7
+ - spec/dummy/db/schema.rb
8
+ - spec/dummy/config/initializers/secret_token.rb
9
+ - db/migrate/**/*
10
+ - db/seeds.rb
11
+ - db/seeds/**/*
12
+ Documentation:
13
+ Enabled: false
14
+ LineLength:
15
+ Enabled: true
16
+ Max: 160
17
+ AbcSize:
18
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1
4
+
5
+ services:
6
+ - mongodb
data/Gemfile ADDED
@@ -0,0 +1,44 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in helena_administration.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use debugger
14
+ # gem 'debugger'
15
+
16
+ gem 'helena', '~> 1.0.0.rc1'
17
+ #git: 'https://github.com/gurix/helena.git'
18
+ #path: '../helena/'
19
+
20
+ gem 'compass-h5bp', group: :assets
21
+
22
+ group :development, :test do
23
+ gem 'better_errors'
24
+ gem 'quiet_assets'
25
+ gem 'pry'
26
+ gem 'simplecov'
27
+ gem 'pry-byebug'
28
+ gem 'dotenv-rails'
29
+ gem 'mongoid-rspec'
30
+ gem 'rspec-collection_matchers', '~> 1'
31
+ gem 'database_cleaner'
32
+ gem 'rspec-rails'
33
+ gem 'factory_girl_rails'
34
+ gem 'capybara'
35
+ gem 'launchy'
36
+ gem 'spork'
37
+ gem 'autotest', require: false
38
+ gem 'autotest-rails-pure', require: false
39
+ gem 'autotest-fsevent', require: false
40
+ gem 'autotest-growl', require: false
41
+ gem 'ffaker', '~> 1.23'
42
+ gem 'binding_of_caller'
43
+ gem 'rspec-core'
44
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,309 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ helena_administration (0.0.2)
5
+ bootstrap-sass (~> 3.2)
6
+ breadcrumbs_on_rails (~> 2.3)
7
+ codemirror-rails (~> 4.5)
8
+ coffee-rails (~> 4.1)
9
+ font-awesome-rails (~> 4.2)
10
+ haml-rails (~> 0.5)
11
+ html5-rails (~> 0.1)
12
+ jquery-rails (~> 3.1)
13
+ kaminari (~> 0.16)
14
+ mongoid (~> 4.0)
15
+ mongoid-simple-tags (~> 0.1)
16
+ mongoid_orderable (~> 4.1)
17
+ rails (~> 4.1)
18
+ rails-i18n (~> 4.0)
19
+ sass-rails (~> 4.0)
20
+ simple_form (~> 3.1.0.rc2)
21
+ slim-rails (~> 2.1)
22
+
23
+ GEM
24
+ remote: https://rubygems.org/
25
+ specs:
26
+ ZenTest (4.11.0)
27
+ actionmailer (4.1.7)
28
+ actionpack (= 4.1.7)
29
+ actionview (= 4.1.7)
30
+ mail (~> 2.5, >= 2.5.4)
31
+ actionpack (4.1.7)
32
+ actionview (= 4.1.7)
33
+ activesupport (= 4.1.7)
34
+ rack (~> 1.5.2)
35
+ rack-test (~> 0.6.2)
36
+ actionview (4.1.7)
37
+ activesupport (= 4.1.7)
38
+ builder (~> 3.1)
39
+ erubis (~> 2.7.0)
40
+ activemodel (4.1.7)
41
+ activesupport (= 4.1.7)
42
+ builder (~> 3.1)
43
+ activerecord (4.1.7)
44
+ activemodel (= 4.1.7)
45
+ activesupport (= 4.1.7)
46
+ arel (~> 5.0.0)
47
+ activesupport (4.1.7)
48
+ i18n (~> 0.6, >= 0.6.9)
49
+ json (~> 1.7, >= 1.7.7)
50
+ minitest (~> 5.1)
51
+ thread_safe (~> 0.1)
52
+ tzinfo (~> 1.1)
53
+ addressable (2.3.6)
54
+ arel (5.0.1.20140414130214)
55
+ autotest (4.4.6)
56
+ ZenTest (>= 4.4.1)
57
+ autotest-fsevent (0.2.10)
58
+ sys-uname
59
+ autotest-growl (0.2.16)
60
+ autotest-rails-pure (4.1.2)
61
+ better_errors (2.0.0)
62
+ coderay (>= 1.0.0)
63
+ erubis (>= 2.6.6)
64
+ rack (>= 0.9.0)
65
+ binding_of_caller (0.7.2)
66
+ debug_inspector (>= 0.0.1)
67
+ bootstrap-sass (3.3.0.1)
68
+ sass (~> 3.2)
69
+ breadcrumbs_on_rails (2.3.0)
70
+ bson (2.3.0)
71
+ builder (3.2.2)
72
+ byebug (3.5.1)
73
+ columnize (~> 0.8)
74
+ debugger-linecache (~> 1.2)
75
+ slop (~> 3.6)
76
+ capybara (2.4.4)
77
+ mime-types (>= 1.16)
78
+ nokogiri (>= 1.3.3)
79
+ rack (>= 1.0.0)
80
+ rack-test (>= 0.5.4)
81
+ xpath (~> 2.0)
82
+ chunky_png (1.3.3)
83
+ codemirror-rails (4.5)
84
+ railties (>= 3.0, < 5)
85
+ coderay (1.1.0)
86
+ coffee-rails (4.1.0)
87
+ coffee-script (>= 2.2.0)
88
+ railties (>= 4.0.0, < 5.0)
89
+ coffee-script (2.3.0)
90
+ coffee-script-source
91
+ execjs
92
+ coffee-script-source (1.8.0)
93
+ columnize (0.8.9)
94
+ compass (0.12.7)
95
+ chunky_png (~> 1.2)
96
+ fssm (>= 0.2.7)
97
+ sass (~> 3.2.19)
98
+ compass-h5bp (0.1.2)
99
+ compass
100
+ connection_pool (2.0.0)
101
+ database_cleaner (1.3.0)
102
+ debug_inspector (0.0.2)
103
+ debugger-linecache (1.2.0)
104
+ diff-lcs (1.2.5)
105
+ docile (1.1.5)
106
+ dotenv (1.0.2)
107
+ dotenv-rails (1.0.2)
108
+ dotenv (= 1.0.2)
109
+ erubis (2.7.0)
110
+ execjs (2.2.2)
111
+ factory_girl (4.5.0)
112
+ activesupport (>= 3.0.0)
113
+ factory_girl_rails (4.5.0)
114
+ factory_girl (~> 4.5.0)
115
+ railties (>= 3.0.0)
116
+ ffaker (1.25.0)
117
+ ffi (1.9.6)
118
+ font-awesome-rails (4.2.0.0)
119
+ railties (>= 3.2, < 5.0)
120
+ fssm (0.2.10)
121
+ haml (4.0.5)
122
+ tilt
123
+ haml-rails (0.5.3)
124
+ actionpack (>= 4.0.1)
125
+ activesupport (>= 4.0.1)
126
+ haml (>= 3.1, < 5.0)
127
+ railties (>= 4.0.1)
128
+ helena (1.0.0.rc1)
129
+ bootstrap-sass (~> 3.2)
130
+ breadcrumbs_on_rails (~> 2.3)
131
+ haml-rails (~> 0.5)
132
+ jquery-rails (~> 3.1)
133
+ mongoid (~> 4.0.0.rc2)
134
+ mongoid-simple-tags (~> 0.1)
135
+ mongoid_orderable (~> 4.1)
136
+ rails (~> 4.1)
137
+ rails-i18n (~> 4.0)
138
+ sass-rails (~> 4.0.3)
139
+ simple_form (~> 3.1.0.rc2)
140
+ slim (~> 2.1.0)
141
+ hike (1.2.3)
142
+ html5-rails (0.1.0)
143
+ jquery-rails (>= 2.0)
144
+ railties (>= 3.2)
145
+ thor (~> 0.14)
146
+ i18n (0.6.11)
147
+ jquery-rails (3.1.2)
148
+ railties (>= 3.0, < 5.0)
149
+ thor (>= 0.14, < 2.0)
150
+ json (1.8.1)
151
+ kaminari (0.16.1)
152
+ actionpack (>= 3.0.0)
153
+ activesupport (>= 3.0.0)
154
+ launchy (2.4.3)
155
+ addressable (~> 2.3)
156
+ mail (2.6.3)
157
+ mime-types (>= 1.16, < 3)
158
+ method_source (0.8.2)
159
+ mime-types (2.4.3)
160
+ mini_portile (0.6.1)
161
+ minitest (5.4.2)
162
+ mongoid (4.0.0)
163
+ activemodel (~> 4.0)
164
+ moped (~> 2.0.0)
165
+ origin (~> 2.1)
166
+ tzinfo (>= 0.3.37)
167
+ mongoid-rspec (1.10.0)
168
+ mongoid (>= 3.0.1)
169
+ rake
170
+ rspec (>= 2.14)
171
+ mongoid-simple-tags (0.1.3)
172
+ json (~> 1.8)
173
+ mongoid (>= 3.0.3)
174
+ mongoid_orderable (4.1.0)
175
+ mongoid
176
+ moped (2.0.1)
177
+ bson (~> 2.2)
178
+ connection_pool (~> 2.0)
179
+ optionable (~> 0.2.0)
180
+ multi_json (1.10.1)
181
+ nokogiri (1.6.4.1)
182
+ mini_portile (~> 0.6.0)
183
+ optionable (0.2.0)
184
+ origin (2.1.1)
185
+ pry (0.10.1)
186
+ coderay (~> 1.1.0)
187
+ method_source (~> 0.8.1)
188
+ slop (~> 3.4)
189
+ pry-byebug (2.0.0)
190
+ byebug (~> 3.4)
191
+ pry (~> 0.10)
192
+ quiet_assets (1.0.3)
193
+ railties (>= 3.1, < 5.0)
194
+ rack (1.5.2)
195
+ rack-test (0.6.2)
196
+ rack (>= 1.0)
197
+ rails (4.1.7)
198
+ actionmailer (= 4.1.7)
199
+ actionpack (= 4.1.7)
200
+ actionview (= 4.1.7)
201
+ activemodel (= 4.1.7)
202
+ activerecord (= 4.1.7)
203
+ activesupport (= 4.1.7)
204
+ bundler (>= 1.3.0, < 2.0)
205
+ railties (= 4.1.7)
206
+ sprockets-rails (~> 2.0)
207
+ rails-i18n (4.0.3)
208
+ i18n (~> 0.6)
209
+ railties (~> 4.0)
210
+ railties (4.1.7)
211
+ actionpack (= 4.1.7)
212
+ activesupport (= 4.1.7)
213
+ rake (>= 0.8.7)
214
+ thor (>= 0.18.1, < 2.0)
215
+ rake (10.3.2)
216
+ rspec (3.1.0)
217
+ rspec-core (~> 3.1.0)
218
+ rspec-expectations (~> 3.1.0)
219
+ rspec-mocks (~> 3.1.0)
220
+ rspec-collection_matchers (1.0.0)
221
+ rspec-expectations (>= 2.99.0.beta1)
222
+ rspec-core (3.1.7)
223
+ rspec-support (~> 3.1.0)
224
+ rspec-expectations (3.1.2)
225
+ diff-lcs (>= 1.2.0, < 2.0)
226
+ rspec-support (~> 3.1.0)
227
+ rspec-mocks (3.1.3)
228
+ rspec-support (~> 3.1.0)
229
+ rspec-rails (3.1.0)
230
+ actionpack (>= 3.0)
231
+ activesupport (>= 3.0)
232
+ railties (>= 3.0)
233
+ rspec-core (~> 3.1.0)
234
+ rspec-expectations (~> 3.1.0)
235
+ rspec-mocks (~> 3.1.0)
236
+ rspec-support (~> 3.1.0)
237
+ rspec-support (3.1.2)
238
+ sass (3.2.19)
239
+ sass-rails (4.0.4)
240
+ railties (>= 4.0.0, < 5.0)
241
+ sass (~> 3.2.2)
242
+ sprockets (~> 2.8, < 2.12)
243
+ sprockets-rails (~> 2.0)
244
+ simple_form (3.1.0.rc2)
245
+ actionpack (~> 4.0)
246
+ activemodel (~> 4.0)
247
+ simplecov (0.9.1)
248
+ docile (~> 1.1.0)
249
+ multi_json (~> 1.0)
250
+ simplecov-html (~> 0.8.0)
251
+ simplecov-html (0.8.0)
252
+ slim (2.1.0)
253
+ temple (~> 0.6.9)
254
+ tilt (>= 1.3.3, < 2.1)
255
+ slim-rails (2.1.5)
256
+ actionpack (>= 3.0, < 4.2)
257
+ activesupport (>= 3.0, < 4.2)
258
+ railties (>= 3.0, < 4.2)
259
+ slim (~> 2.0)
260
+ slop (3.6.0)
261
+ spork (0.9.2)
262
+ sprockets (2.11.3)
263
+ hike (~> 1.2)
264
+ multi_json (~> 1.0)
265
+ rack (~> 1.0)
266
+ tilt (~> 1.1, != 1.3.0)
267
+ sprockets-rails (2.2.0)
268
+ actionpack (>= 3.0)
269
+ activesupport (>= 3.0)
270
+ sprockets (>= 2.8, < 4.0)
271
+ sys-uname (0.9.2)
272
+ ffi (>= 1.0.0)
273
+ temple (0.6.10)
274
+ thor (0.19.1)
275
+ thread_safe (0.3.4)
276
+ tilt (1.4.1)
277
+ tzinfo (1.2.2)
278
+ thread_safe (~> 0.1)
279
+ xpath (2.0.0)
280
+ nokogiri (~> 1.3)
281
+
282
+ PLATFORMS
283
+ ruby
284
+
285
+ DEPENDENCIES
286
+ autotest
287
+ autotest-fsevent
288
+ autotest-growl
289
+ autotest-rails-pure
290
+ better_errors
291
+ binding_of_caller
292
+ capybara
293
+ compass-h5bp
294
+ database_cleaner
295
+ dotenv-rails
296
+ factory_girl_rails
297
+ ffaker (~> 1.23)
298
+ helena (~> 1.0.0.rc1)
299
+ helena_administration!
300
+ launchy
301
+ mongoid-rspec
302
+ pry
303
+ pry-byebug
304
+ quiet_assets
305
+ rspec-collection_matchers (~> 1)
306
+ rspec-core
307
+ rspec-rails
308
+ simplecov
309
+ spork
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2014 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,82 @@
1
+ [![Build Status](https://img.shields.io/travis/gurix/helena_administration/master.svg?style=flat)](https://travis-ci.org/gurix/helena_administration)
2
+
3
+ ## Helena Administration
4
+
5
+ Helena Administration is a simple rails application that provides a user interface to manage apps running with the [Helena framework](https://github.com/gurix/helena).
6
+
7
+ # Features
8
+ * Manage surveys, question groups and questions
9
+ * Survey versioning
10
+ * Export answers as CSV or JSON
11
+
12
+ ## Requirements
13
+ see [requirements for running an application using Helena](https://github.com/gurix/helena#requirements)
14
+
15
+ ## Installation
16
+ Add this line to your application's Gemfile:
17
+
18
+ ```
19
+ gem 'helena_administration', git: 'git://github.com/gurix/helena_administration.git'
20
+ ```
21
+
22
+ And then execute:
23
+
24
+ ```
25
+ $ bundle install
26
+ ```
27
+
28
+ ## Usage
29
+ Add the following line to your routes to include administration in your App
30
+
31
+ ```ruby
32
+ mount HelenaAdministration::Engine, at: '/admin'
33
+ ```
34
+
35
+ HelenaAdministration::ApplicationController calls by default the `can_administer?` method that is not implemented by default, you have to define a decorator under `yourapp/app/decorators/controllers/helena_administration/application_controller_decorators.rb`. i.e your `current_user` has an `admin?` attribute.
36
+
37
+ ```ruby
38
+ HelenaAdministration::ApplicationController.class_eval do
39
+ def can_administer?
40
+ current_user.admin? if current_user
41
+ end
42
+ end
43
+
44
+ ```
45
+
46
+ ## Contributing
47
+
48
+ 1. Fork it
49
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
50
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
51
+ 4. Push to the branch (`git push origin my-new-feature`)
52
+ 5. Create new Pull Request
53
+
54
+ ## Contact
55
+
56
+ [info@markusgraf.ch](mailto: info@markusgraf.ch)
57
+
58
+ Or at [#HelenaFramework](irc://chat.freenode.net/HelenaFramework) on freenode.net
59
+
60
+ ## Support
61
+
62
+ If you like helena and want to support the development, I would appreciate a donation:
63
+
64
+ [![Donate](https://www.paypalobjects.com/en_US/CH/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=info%40markusgraf%2ech&lc=CH&item_name=Helena&currency_code=CHF&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
65
+
66
+ ## License
67
+
68
+ Helena Administration is a simple rails application that provides a user interface to manage apps running with the Helena framework.
69
+ Copyright (C) 2014 Markus Graf <info@markusgraf.ch>
70
+
71
+ This program is free software: you can redistribute it and/or modify
72
+ it under the terms of the GNU General Public License as published by
73
+ the Free Software Foundation, either version 3 of the License, or
74
+ (at your option) any later version.
75
+
76
+ This program is distributed in the hope that it will be useful,
77
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
78
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
79
+ GNU General Public License for more details.
80
+
81
+ You should have received a copy of the GNU General Public License
82
+ along with this program. If not, see <http://www.gnu.org/licenses/>.