iqvoc 4.1.3 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/Gemfile +13 -16
  4. data/Gemfile.lock +168 -156
  5. data/app/assets/javascripts/iqvoc/entityselect.js.erb +4 -0
  6. data/app/assets/javascripts/iqvoc/iqvoc.js +3 -0
  7. data/app/assets/stylesheets/iqvoc/components.css.scss +21 -16
  8. data/app/assets/stylesheets/iqvoc/entity_select.css.scss +1 -0
  9. data/app/controllers/collections_controller.rb +4 -12
  10. data/app/controllers/concepts/alphabetical_controller.rb +1 -0
  11. data/app/controllers/concepts/expired_controller.rb +2 -1
  12. data/app/controllers/concepts/scheme_controller.rb +2 -4
  13. data/app/controllers/concepts/versions_controller.rb +39 -16
  14. data/app/controllers/concepts_controller.rb +4 -8
  15. data/app/controllers/dashboard_controller.rb +1 -1
  16. data/app/controllers/hierarchy_controller.rb +44 -20
  17. data/app/controllers/rdf_controller.rb +19 -10
  18. data/app/controllers/search_results_controller.rb +2 -10
  19. data/app/controllers/user_sessions_controller.rb +1 -1
  20. data/app/helpers/application_helper.rb +13 -1
  21. data/app/helpers/rdf_helper.rb +1 -1
  22. data/app/models/concept/base.rb +4 -2
  23. data/app/models/concept/relation/base.rb +3 -1
  24. data/app/models/concept/relation/reverse_relation_extension.rb +2 -2
  25. data/app/models/concept/relation/skos/base.rb +1 -1
  26. data/app/models/configuration_setting.rb +1 -1
  27. data/app/models/labeling/base.rb +1 -1
  28. data/app/models/labeling/skos/base.rb +25 -6
  29. data/app/models/match/skos/base.rb +2 -2
  30. data/app/models/note/base.rb +1 -1
  31. data/app/models/note/skos/base.rb +6 -1
  32. data/app/views/collections/_form.html.erb +1 -2
  33. data/app/views/collections/_header.html.erb +2 -2
  34. data/app/views/collections/_sidebar.html.erb +2 -2
  35. data/app/views/collections/show.html.erb +1 -1
  36. data/app/views/concepts/scheme/show.iqrdf +1 -0
  37. data/app/views/concepts/show_unpublished.html.erb +1 -1
  38. data/app/views/concepts/sidebars/_plural.html.erb +4 -0
  39. data/app/views/concepts/sidebars/_singular.html.erb +1 -1
  40. data/app/views/hierarchy/show.iqrdf +2 -2
  41. data/app/views/instance_configuration/index.html.erb +1 -1
  42. data/app/views/layouts/_controls.html.erb +5 -6
  43. data/app/views/layouts/_sections.html.erb +1 -1
  44. data/app/views/layouts/application.html.erb +1 -1
  45. data/app/views/partials/concept/relation/_base.html.erb +1 -1
  46. data/app/views/partials/concept/relation/_ranked.html.erb +1 -1
  47. data/config/application.rb +3 -9
  48. data/config/boot.rb +0 -2
  49. data/config/engine.rb +2 -1
  50. data/config/environments/development.rb +0 -1
  51. data/config/environments/heroku.rb +6 -0
  52. data/config/environments/test.rb +0 -1
  53. data/config/initializers/iqvoc.rb +6 -0
  54. data/config/initializers/secret_token.rb +8 -26
  55. data/config/initializers/secret_token.rb.template +1 -3
  56. data/config/locales/de.yml +2 -0
  57. data/config/locales/en.yml +2 -0
  58. data/config/routes.rb +4 -4
  59. data/db/schema.rb +44 -44
  60. data/iqvoc.gemspec +6 -4
  61. data/lib/engine_tasks/db.rake +4 -4
  62. data/lib/generators/app/template.rb +3 -0
  63. data/lib/iqvoc/configuration/collection.rb +7 -1
  64. data/lib/iqvoc/configuration/core.rb +8 -7
  65. data/lib/iqvoc/environments/development.rb +15 -29
  66. data/lib/iqvoc/environments/production.rb +54 -34
  67. data/lib/iqvoc/environments/test.rb +17 -24
  68. data/lib/iqvoc/rankable.rb +1 -1
  69. data/lib/iqvoc/rdfapi.rb +2 -1
  70. data/lib/iqvoc/skos_importer.rb +8 -3
  71. data/lib/iqvoc/version.rb +1 -1
  72. data/lib/tasks/release.rake +15 -0
  73. data/test/capybara_helper.rb +31 -0
  74. data/test/functional/hierarchy_test.rb +84 -30
  75. data/test/integration/client_edit_concept_test.rb +1 -1
  76. data/test/integration/{concept_test.rb → concept_browsing_test.rb} +1 -1
  77. data/test/integration/{concept_scheme_test.rb → concept_scheme_browsing_test.rb} +1 -1
  78. data/test/integration/{instance_configuration_test.rb → instance_configuration_browsing_test.rb} +0 -0
  79. data/test/integration/note_annotations_test.rb +1 -0
  80. data/test/integration/search_test.rb +0 -1
  81. data/test/integration_test_helper.rb +3 -28
  82. data/test/test_helper.rb +0 -2
  83. data/test/unit/instance_configuration_test.rb +1 -1
  84. data/test/unit/skos_import_test.rb +14 -0
  85. data/vendor/assets/stylesheets/jquery-ui-1.8.23.custom.css.scss +20 -20
  86. metadata +39 -22
  87. data/lib/debug.rb +0 -40
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69a13cf281376e316b925171dc9c5bc7a22bd9ab
4
- data.tar.gz: cfd1c8a7b2d3476a3704c15ed0de3653337fff4d
3
+ metadata.gz: ebb9e46d3a119f2b2318bbe6818debef048d41cc
4
+ data.tar.gz: 8cc74d5728f037b852601113107a1df766b1532e
5
5
  SHA512:
6
- metadata.gz: 93f3bdcc53729392cd0b8bbc45ff03ce1f452f33401bad96e3d1fdc96c1610cebf50a985ca21edd029202e8472626b4952512bdcf6d70831bceb86945535bf27
7
- data.tar.gz: 21976d7d516483188dcef8c4a09bfa604479afb97855079d3c333b9b6788d37f263ec4a52f518aba9587d000f5d40a0c155ae302f848fd31cf38b9cd7b56b9c5
6
+ metadata.gz: 0d2fcb9c40f78e0bd0528cd2532efd3685f1f755fb773fafddf508079ab51e16bb8ad47544e5ca37d1e5e93b42cdc6197a43c6e2c32dfa9e7bcc12e03606245a
7
+ data.tar.gz: 09edcec2d24b3764661820e8b1ddb7359db43d49a1e909c153a2ccfd8b80846205b83f2da0a08123cc30db155aee5e4c388ee97e9354841a7b04157c22ad7477
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [4.2.0]
2
+
3
+ As 5.0.0 has been postponed, 4.2.0 comes as another 4.x release.
4
+
5
+ * Rails 4
6
+ * Unbounded hierarchy API depth (853883668977a85d29b30b4e2654f2f53094cae6)
7
+ * Collection notes are now configurable
8
+ * HTML titles throughout the app
9
+ * Bugfixes
10
+
1
11
  ## [4.1.3]
2
12
 
3
13
  This version is intended as the last minor/patch release before version 5.0.0 -
@@ -14,7 +24,8 @@ as well as more sophisticated RDF processing.
14
24
 
15
25
  ## [4.1.2]
16
26
 
17
- * Dumped Jbuilder (introduced in 4.1.1) to fix endless recursions happening in hierarchical views
27
+ * Dumped Jbuilder (introduced in 4.1.1) to fix endless recursions happening in
28
+ hierarchical views
18
29
 
19
30
  ## [4.1.1]
20
31
 
data/Gemfile CHANGED
@@ -19,36 +19,33 @@ source 'http://rubygems.org'
19
19
  # TODO: The following dependencies could be included by the "gemspec" command.
20
20
  # There is only one problem: gemspec puts the dependencies automatically to a
21
21
  # group (:development by default). This is not what we need.
22
- gem 'rails', '3.2.13'
23
-
24
- group :assets do
25
- gem 'uglifier', '>= 1.0.3'
26
- gem 'sass-rails', '~> 3.2.5'
27
- gem 'bootstrap-sass', '~> 2.3.1.0'
28
- gem 'therubyracer', :platforms => :ruby
29
- end
30
-
31
- gem 'kaminari'
22
+ gem 'rails', '4.0.1'
23
+ gem 'protected_attributes', '>= 1.0.5'
24
+ gem 'kaminari', '0.13.0'
32
25
  gem 'authlogic'
33
26
  gem 'cancan'
34
27
  gem 'iq_rdf'
35
28
  gem 'iq_triplestorage'
36
29
  gem 'json'
37
- gem 'rails_autolink'
30
+ gem 'rails_autolink', :git => 'git://github.com/tenderlove/rails_autolink.git'
38
31
  gem 'jruby-openssl', :platforms => :jruby
39
- gem 'simple_form'
32
+ gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'
33
+ gem 'uglifier'
34
+ gem 'sass-rails', '~> 4.0.0'
35
+ gem 'bootstrap-sass', '2.3.1.3'
40
36
 
41
37
  group :development do
42
38
  gem 'view_marker'
43
39
  gem 'better_errors'
44
40
  gem 'binding_of_caller', :platform => :ruby
41
+ gem 'quiet_assets'
45
42
  end
46
43
 
47
44
  group :development, :test do
48
45
  gem 'awesome_print'
49
46
 
50
47
  platforms :ruby do
51
- gem 'mysql2'
48
+ gem 'mysql2', '0.3.13'
52
49
  gem 'sqlite3'
53
50
 
54
51
  gem 'zeus'
@@ -67,14 +64,13 @@ group :development, :test do
67
64
  end
68
65
 
69
66
  group :test do
70
- gem 'nokogiri', '~> 1.5.0'
67
+ gem 'nokogiri'
71
68
  gem 'capybara'
72
69
  gem 'capybara-screenshot'
73
- gem 'capybara-webkit', '~> 0.14.2'
70
+ gem 'capybara-webkit'
74
71
  gem 'database_cleaner'
75
72
  gem 'factory_girl_rails'
76
73
  gem 'turn'
77
- gem 'minitest'
78
74
  gem 'webmock'
79
75
  end
80
76
 
@@ -83,4 +79,5 @@ end
83
79
 
84
80
  group :heroku do
85
81
  gem 'pg', :platforms => :ruby
82
+ gem 'passenger'
86
83
  end
data/Gemfile.lock CHANGED
@@ -1,210 +1,221 @@
1
+ GIT
2
+ remote: git://github.com/plataformatec/simple_form.git
3
+ revision: 7f743fd161a73839202a12d2ec765a41896e2f5b
4
+ specs:
5
+ simple_form (3.0.0)
6
+ actionpack (>= 4.0.0, < 4.1)
7
+ activemodel (>= 4.0.0, < 4.1)
8
+
9
+ GIT
10
+ remote: git://github.com/tenderlove/rails_autolink.git
11
+ revision: 0afc461e9b6ec1f4d0386011201ac63ceef3c06c
12
+ specs:
13
+ rails_autolink (1.1.5)
14
+ rails (> 3.1)
15
+
1
16
  GEM
2
17
  remote: http://rubygems.org/
3
18
  specs:
4
- actionmailer (3.2.13)
5
- actionpack (= 3.2.13)
6
- mail (~> 2.5.3)
7
- actionpack (3.2.13)
8
- activemodel (= 3.2.13)
9
- activesupport (= 3.2.13)
10
- builder (~> 3.0.0)
19
+ actionmailer (4.0.1)
20
+ actionpack (= 4.0.1)
21
+ mail (~> 2.5.4)
22
+ actionpack (4.0.1)
23
+ activesupport (= 4.0.1)
24
+ builder (~> 3.1.0)
11
25
  erubis (~> 2.7.0)
12
- journey (~> 1.0.4)
13
- rack (~> 1.4.5)
14
- rack-cache (~> 1.2)
15
- rack-test (~> 0.6.1)
16
- sprockets (~> 2.2.1)
17
- activemodel (3.2.13)
18
- activesupport (= 3.2.13)
19
- builder (~> 3.0.0)
20
- activerecord (3.2.13)
21
- activemodel (= 3.2.13)
22
- activesupport (= 3.2.13)
23
- arel (~> 3.0.2)
24
- tzinfo (~> 0.3.29)
25
- activerecord-jdbc-adapter (1.2.2)
26
- activerecord-jdbcmysql-adapter (1.2.2)
27
- activerecord-jdbc-adapter (~> 1.2.2)
28
- jdbc-mysql (~> 5.1.0)
29
- activerecord-jdbcsqlite3-adapter (1.2.2)
30
- activerecord-jdbc-adapter (~> 1.2.2)
26
+ rack (~> 1.5.2)
27
+ rack-test (~> 0.6.2)
28
+ activemodel (4.0.1)
29
+ activesupport (= 4.0.1)
30
+ builder (~> 3.1.0)
31
+ activerecord (4.0.1)
32
+ activemodel (= 4.0.1)
33
+ activerecord-deprecated_finders (~> 1.0.2)
34
+ activesupport (= 4.0.1)
35
+ arel (~> 4.0.0)
36
+ activerecord-deprecated_finders (1.0.3)
37
+ activerecord-jdbc-adapter (1.3.2)
38
+ activerecord (>= 2.2)
39
+ activerecord-jdbcmysql-adapter (1.3.2)
40
+ activerecord-jdbc-adapter (~> 1.3.2)
41
+ jdbc-mysql (>= 5.1.22)
42
+ activerecord-jdbcsqlite3-adapter (1.3.2)
43
+ activerecord-jdbc-adapter (~> 1.3.2)
31
44
  jdbc-sqlite3 (~> 3.7.2)
32
- activeresource (3.2.13)
33
- activemodel (= 3.2.13)
34
- activesupport (= 3.2.13)
35
- activesupport (3.2.13)
36
- i18n (= 0.6.1)
37
- multi_json (~> 1.0)
38
- addressable (2.3.3)
45
+ activesupport (4.0.1)
46
+ i18n (~> 0.6, >= 0.6.4)
47
+ minitest (~> 4.2)
48
+ multi_json (~> 1.3)
49
+ thread_safe (~> 0.1)
50
+ tzinfo (~> 0.3.37)
51
+ addressable (2.3.5)
39
52
  ansi (1.4.3)
40
- arel (3.0.2)
41
- authlogic (3.1.3)
42
- activerecord (>= 3.0.0)
43
- activesupport (>= 3.0.0)
44
- awesome_print (1.1.0)
45
- better_errors (0.3.2)
53
+ arel (4.0.1)
54
+ atomic (1.1.14)
55
+ atomic (1.1.14-java)
56
+ authlogic (3.3.0)
57
+ activerecord (>= 3.2)
58
+ activesupport (>= 3.2)
59
+ awesome_print (1.2.0)
60
+ better_errors (1.0.1)
46
61
  coderay (>= 1.0.0)
47
- erubis (>= 2.7.0)
48
- binding_of_caller (0.7.1)
62
+ erubis (>= 2.6.6)
63
+ binding_of_caller (0.7.2)
49
64
  debug_inspector (>= 0.0.1)
50
- bootstrap-sass (2.3.1.0)
65
+ bootstrap-sass (2.3.1.3)
51
66
  sass (~> 3.2)
52
- bouncy-castle-java (1.5.0146.1)
53
- builder (3.0.4)
54
- cancan (1.6.8)
55
- cane (2.5.2)
67
+ bouncy-castle-java (1.5.0147)
68
+ builder (3.1.4)
69
+ cancan (1.6.10)
70
+ cane (2.6.1)
56
71
  parallel
57
- capybara (2.0.2)
72
+ capybara (2.1.0)
58
73
  mime-types (>= 1.16)
59
74
  nokogiri (>= 1.3.3)
60
75
  rack (>= 1.0.0)
61
76
  rack-test (>= 0.5.4)
62
- selenium-webdriver (~> 2.0)
63
- xpath (~> 1.0.0)
64
- capybara-screenshot (0.3.1)
77
+ xpath (~> 2.0)
78
+ capybara-screenshot (0.3.14)
65
79
  capybara (>= 1.0, < 3)
66
- capybara-webkit (0.14.2)
80
+ launchy
81
+ capybara-webkit (1.0.0)
67
82
  capybara (~> 2.0, >= 2.0.2)
68
83
  json
69
- childprocess (0.3.8)
70
- ffi (~> 1.0, >= 1.0.11)
71
- coderay (1.0.8)
84
+ coderay (1.0.9)
72
85
  columnize (0.3.6)
73
- crack (0.3.1)
74
- database_cleaner (0.8.0)
86
+ crack (0.4.1)
87
+ safe_yaml (~> 0.9.0)
88
+ daemon_controller (1.1.7)
89
+ database_cleaner (1.2.0)
75
90
  debug_inspector (0.0.2)
76
- debugger (1.5.0)
91
+ debugger (1.6.2)
77
92
  columnize (>= 0.3.1)
78
93
  debugger-linecache (~> 1.2.0)
79
- debugger-ruby_core_source (~> 1.2.0)
94
+ debugger-ruby_core_source (~> 1.2.3)
80
95
  debugger-linecache (1.2.0)
81
- debugger-ruby_core_source (1.2.0)
96
+ debugger-ruby_core_source (1.2.3)
82
97
  erubis (2.7.0)
83
- execjs (1.4.0)
84
- multi_json (~> 1.0)
85
- factory_girl (4.1.0)
98
+ execjs (2.0.2)
99
+ factory_girl (4.3.0)
86
100
  activesupport (>= 3.0.0)
87
- factory_girl_rails (4.1.0)
88
- factory_girl (~> 4.1.0)
101
+ factory_girl_rails (4.3.0)
102
+ factory_girl (~> 4.3.0)
89
103
  railties (>= 3.0.0)
90
- ffi (1.1.5)
91
- ffi (1.1.5-java)
92
- hike (1.2.1)
104
+ hike (1.2.3)
93
105
  hirb (0.7.1)
94
106
  hirb-unicode (0.0.5)
95
107
  hirb (~> 0.5)
96
108
  unicode-display_width (~> 0.1.1)
97
- i18n (0.6.1)
98
- iq_rdf (0.1.8)
109
+ i18n (0.6.5)
110
+ iq_rdf (0.1.10)
111
+ activesupport
99
112
  builder
100
113
  bundler
101
114
  iq_triplestorage (0.2.2)
102
- jdbc-mysql (5.1.13)
103
- jdbc-sqlite3 (3.7.2)
104
- journey (1.0.4)
105
- jruby-openssl (0.7.7)
106
- bouncy-castle-java (>= 1.5.0146.1)
107
- json (1.8.0)
108
- json (1.8.0-java)
115
+ jdbc-mysql (5.1.27)
116
+ jdbc-sqlite3 (3.7.2.1)
117
+ jruby-openssl (0.9.4)
118
+ bouncy-castle-java (>= 1.5.0147)
119
+ json (1.8.1)
120
+ json (1.8.1-java)
109
121
  kaminari (0.13.0)
110
122
  actionpack (>= 3.0.0)
111
123
  activesupport (>= 3.0.0)
112
- libv8 (3.3.10.4)
113
- mail (2.5.3)
114
- i18n (>= 0.4.0)
124
+ railties (>= 3.0.0)
125
+ launchy (2.3.0)
126
+ addressable (~> 2.3)
127
+ mail (2.5.4)
115
128
  mime-types (~> 1.16)
116
129
  treetop (~> 1.4.8)
117
- method_source (0.8.1)
118
- mime-types (1.21)
119
- minitest (3.4.0)
120
- multi_json (1.7.2)
121
- mysql2 (0.3.11)
122
- nokogiri (1.5.6)
123
- nokogiri (1.5.6-java)
124
- parallel (0.6.4)
125
- pg (0.14.1)
130
+ method_source (0.8.2)
131
+ mime-types (1.25)
132
+ mini_portile (0.5.2)
133
+ minitest (4.7.5)
134
+ multi_json (1.8.2)
135
+ mysql2 (0.3.13)
136
+ nokogiri (1.6.0)
137
+ mini_portile (~> 0.5.0)
138
+ nokogiri (1.6.0-java)
139
+ mini_portile (~> 0.5.0)
140
+ parallel (0.9.0)
141
+ passenger (4.0.23)
142
+ daemon_controller (>= 1.1.0)
143
+ rack
144
+ rake (>= 0.8.1)
145
+ pg (0.17.0)
126
146
  polyglot (0.3.3)
127
- pry (0.9.10)
147
+ protected_attributes (1.0.5)
148
+ activemodel (>= 4.0.1, < 5.0)
149
+ pry (0.9.12.2)
128
150
  coderay (~> 1.0.5)
129
151
  method_source (~> 0.8)
130
- slop (~> 3.3.1)
152
+ slop (~> 3.4)
131
153
  pry-debugger (0.2.2)
132
154
  debugger (~> 1.3)
133
155
  pry (~> 0.9.10)
134
- pry-rails (0.2.2)
156
+ pry-rails (0.3.2)
135
157
  pry (>= 0.9.10)
136
- pry-remote (0.1.6)
158
+ pry-remote (0.1.7)
137
159
  pry (~> 0.9)
138
160
  slop (~> 3.0)
139
- rack (1.4.5)
140
- rack-cache (1.2)
141
- rack (>= 0.4)
142
- rack-ssl (1.3.3)
143
- rack
161
+ quiet_assets (1.0.2)
162
+ railties (>= 3.1, < 5.0)
163
+ rack (1.5.2)
144
164
  rack-test (0.6.2)
145
165
  rack (>= 1.0)
146
- rails (3.2.13)
147
- actionmailer (= 3.2.13)
148
- actionpack (= 3.2.13)
149
- activerecord (= 3.2.13)
150
- activeresource (= 3.2.13)
151
- activesupport (= 3.2.13)
152
- bundler (~> 1.0)
153
- railties (= 3.2.13)
154
- rails_autolink (1.0.9)
155
- rails (~> 3.1)
156
- railties (3.2.13)
157
- actionpack (= 3.2.13)
158
- activesupport (= 3.2.13)
159
- rack-ssl (~> 1.3.2)
166
+ rails (4.0.1)
167
+ actionmailer (= 4.0.1)
168
+ actionpack (= 4.0.1)
169
+ activerecord (= 4.0.1)
170
+ activesupport (= 4.0.1)
171
+ bundler (>= 1.3.0, < 2.0)
172
+ railties (= 4.0.1)
173
+ sprockets-rails (~> 2.0.0)
174
+ railties (4.0.1)
175
+ actionpack (= 4.0.1)
176
+ activesupport (= 4.0.1)
160
177
  rake (>= 0.8.7)
161
- rdoc (~> 3.4)
162
- thor (>= 0.14.6, < 2.0)
163
- rake (10.0.3)
164
- rdoc (3.12.2)
165
- json (~> 1.4)
166
- rubyzip (0.9.9)
167
- sass (3.2.1)
168
- sass-rails (3.2.5)
169
- railties (~> 3.2.0)
178
+ thor (>= 0.18.1, < 2.0)
179
+ rake (10.1.0)
180
+ safe_yaml (0.9.7)
181
+ sass (3.2.12)
182
+ sass-rails (4.0.1)
183
+ railties (>= 4.0.0, < 5.0)
170
184
  sass (>= 3.1.10)
171
- tilt (~> 1.3)
172
- selenium-webdriver (2.30.0)
173
- childprocess (>= 0.2.5)
174
- multi_json (~> 1.0)
175
- rubyzip
176
- websocket (~> 1.0.4)
177
- simple_form (2.0.2)
178
- actionpack (~> 3.0)
179
- activemodel (~> 3.0)
180
- slop (3.3.3)
181
- sprockets (2.2.2)
185
+ sprockets-rails (~> 2.0.0)
186
+ slop (3.4.6)
187
+ sprockets (2.10.0)
182
188
  hike (~> 1.2)
183
189
  multi_json (~> 1.0)
184
190
  rack (~> 1.0)
185
191
  tilt (~> 1.1, != 1.3.0)
186
- sqlite3 (1.3.6)
187
- therubyracer (0.10.2)
188
- libv8 (~> 3.3.10)
189
- thor (0.17.0)
190
- tilt (1.3.6)
191
- treetop (1.4.12)
192
+ sprockets-rails (2.0.1)
193
+ actionpack (>= 3.0)
194
+ activesupport (>= 3.0)
195
+ sprockets (~> 2.8)
196
+ sqlite3 (1.3.8)
197
+ thor (0.18.1)
198
+ thread_safe (0.1.3)
199
+ atomic
200
+ thread_safe (0.1.3-java)
201
+ atomic
202
+ tilt (1.4.1)
203
+ treetop (1.4.15)
192
204
  polyglot
193
205
  polyglot (>= 0.3.1)
194
206
  turn (0.9.6)
195
207
  ansi
196
- tzinfo (0.3.37)
197
- uglifier (1.3.0)
208
+ tzinfo (0.3.38)
209
+ uglifier (2.3.0)
198
210
  execjs (>= 0.3.0)
199
- multi_json (~> 1.0, >= 1.0.2)
211
+ json (>= 1.8.0)
200
212
  unicode-display_width (0.1.1)
201
213
  view_marker (1.0.0)
202
214
  rails
203
- webmock (1.8.11)
215
+ webmock (1.15.2)
204
216
  addressable (>= 2.2.7)
205
- crack (>= 0.1.7)
206
- websocket (1.0.7)
207
- xpath (1.0.0)
217
+ crack (>= 0.3.2)
218
+ xpath (2.0.0)
208
219
  nokogiri (~> 1.3)
209
220
  zeus (0.13.3)
210
221
  method_source (>= 0.6.7)
@@ -220,12 +231,12 @@ DEPENDENCIES
220
231
  awesome_print
221
232
  better_errors
222
233
  binding_of_caller
223
- bootstrap-sass (~> 2.3.1.0)
234
+ bootstrap-sass (= 2.3.1.3)
224
235
  cancan
225
236
  cane
226
237
  capybara
227
238
  capybara-screenshot
228
- capybara-webkit (~> 0.14.2)
239
+ capybara-webkit
229
240
  database_cleaner
230
241
  factory_girl_rails
231
242
  hirb-unicode
@@ -233,23 +244,24 @@ DEPENDENCIES
233
244
  iq_triplestorage
234
245
  jruby-openssl
235
246
  json
236
- kaminari
237
- minitest
238
- mysql2
239
- nokogiri (~> 1.5.0)
247
+ kaminari (= 0.13.0)
248
+ mysql2 (= 0.3.13)
249
+ nokogiri
250
+ passenger
240
251
  pg
252
+ protected_attributes (>= 1.0.5)
241
253
  pry
242
254
  pry-debugger
243
255
  pry-rails
244
256
  pry-remote
245
- rails (= 3.2.13)
246
- rails_autolink
247
- sass-rails (~> 3.2.5)
248
- simple_form
257
+ quiet_assets
258
+ rails (= 4.0.1)
259
+ rails_autolink!
260
+ sass-rails (~> 4.0.0)
261
+ simple_form!
249
262
  sqlite3
250
- therubyracer
251
263
  turn
252
- uglifier (>= 1.0.3)
264
+ uglifier
253
265
  view_marker
254
266
  webmock
255
267
  zeus
@@ -47,6 +47,10 @@ var EntitySelector = function(node) {
47
47
  select: this.onSelect
48
48
  });
49
49
 
50
+ // jQuery UI does not add a type attribute
51
+ // Bootstrap expects it to be there
52
+ this.input.attr('type', 'text');
53
+
50
54
  this.container.append(this.input).append(img).append(selection).
51
55
  insertAfter(node).prepend(node);
52
56
 
@@ -197,5 +197,8 @@ jQuery(document).ready(function($) {
197
197
  });
198
198
  });
199
199
 
200
+ // unobtrusive tabs
201
+ $(".tab-panels").addClass("tab-content"); // the latter is for Bootstrap Tabs
202
+
200
203
  IQVOC.onebox(".onebox");
201
204
  });
@@ -127,24 +127,29 @@ ol.concepts {
127
127
  .lang-widget {
128
128
  padding: 0 15px 20px 15px;
129
129
 
130
- h3 {
130
+ .lang-widget-item {
131
+ white-space: nowrap;
132
+
133
+ label {
134
+ margin: 0;
135
+ padding: 2px 10px;
136
+
137
+ input {
138
+ margin-top: -2px;
139
+ margin-right: 0.5em;
140
+ display: inline;
141
+ }
142
+
143
+ a {
144
+ padding-left: 0;
145
+ display: inline;
146
+ }
147
+ }
148
+ }
149
+
150
+ .lang-widget-header {
131
151
  margin-top: 10px;
132
152
  margin-bottom: 0;
133
153
  font-size: 18px;
134
154
  }
135
- label {
136
- margin: 0;
137
- padding: 2px 10px;
138
-
139
- input {
140
- margin-top: -2px;
141
- margin-right: 0.5em;
142
- display: inline;
143
- }
144
-
145
- a {
146
- padding-left: 0;
147
- display: inline;
148
- }
149
- }
150
155
  }
@@ -33,6 +33,7 @@
33
33
  margin-top: 5px;
34
34
  li {
35
35
  float: left;
36
+ a { font-size: 14px; }
36
37
  }
37
38
  }
38
39
 
@@ -55,9 +55,7 @@ class CollectionsController < ApplicationController
55
55
  end
56
56
 
57
57
  def show
58
- @collection = Iqvoc::Collection.base_class.by_origin(params[:id]).last
59
- raise ActiveRecord::RecordNotFound.new("Could not find Collection for id '#{params[:id]}'") unless @collection
60
-
58
+ @collection = Iqvoc::Collection.base_class.by_origin(params[:id]).last!
61
59
  authorize! :read, @collection
62
60
 
63
61
  # When in single query mode, AR handles ALL includes to be loaded by that
@@ -89,9 +87,7 @@ class CollectionsController < ApplicationController
89
87
  end
90
88
 
91
89
  def edit
92
- @collection = Iqvoc::Collection.base_class.by_origin(params[:id]).last
93
- raise ActiveRecord::RecordNotFound.new("Could not find Collection for id '#{params[:id]}'") unless @collection
94
-
90
+ @collection = Iqvoc::Collection.base_class.by_origin(params[:id]).last!
95
91
  authorize! :update, @collection
96
92
 
97
93
  # When in single query mode, AR handles ALL includes to be loaded by that
@@ -104,9 +100,7 @@ class CollectionsController < ApplicationController
104
100
  end
105
101
 
106
102
  def update
107
- @collection = Iqvoc::Collection.base_class.by_origin(params[:id]).last
108
- raise ActiveRecord::RecordNotFound.new("Could not find Collection for id '#{params[:id]}'") unless @collection
109
-
103
+ @collection = Iqvoc::Collection.base_class.by_origin(params[:id]).last!
110
104
  authorize! :update, @collection
111
105
 
112
106
  if @collection.update_attributes(params[:concept])
@@ -119,9 +113,7 @@ class CollectionsController < ApplicationController
119
113
  end
120
114
 
121
115
  def destroy
122
- @collection = Iqvoc::Collection.base_class.by_origin(params[:id]).last
123
- raise ActiveRecord::RecordNotFound.new("Could not find Collection for id '#{params[:id]}'") unless @collection
124
-
116
+ @collection = Iqvoc::Collection.base_class.by_origin(params[:id]).last!
125
117
  authorize! :destroy, @collection
126
118
 
127
119
  if @collection.destroy
@@ -46,6 +46,7 @@ class Concepts::AlphabeticalController < ConceptsController
46
46
  order("LOWER(#{Label::Base.table_name}.value)").
47
47
  joins(:owner).
48
48
  where(:concepts => { :type => Iqvoc::Concept.base_class_name }).
49
+ references(:concepts, :labels, :labelings).
49
50
  page(params[:page])
50
51
  end
51
52
  end
@@ -26,6 +26,7 @@ class Concepts::ExpiredController < Concepts::AlphabeticalController
26
26
  order("LOWER(#{Label::Base.table_name}.value)").
27
27
  joins(:owner).
28
28
  where(:concepts => { :type => Iqvoc::Concept.base_class_name }).
29
+ references(:concepts, :labels, :labelings).
29
30
  page(params[:page])
30
31
  end
31
- end
32
+ end
@@ -23,10 +23,8 @@ class Concepts::SchemeController < ApplicationController
23
23
  @top_concepts = Iqvoc::Concept.base_class.tops.published
24
24
 
25
25
  respond_to do |format|
26
- format.html do
27
- end
28
- format.any :rdf, :ttl do
29
- end
26
+ format.html
27
+ format.any(:rdf, :ttl)
30
28
  end
31
29
  end
32
30