iqvoc 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. data/CHANGELOG.md +6 -1
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +70 -42
  4. data/README.md +3 -0
  5. data/app/assets/javascripts/iqvoc/iqvoc.js +1 -1
  6. data/app/helpers/rdf_helper.rb +1 -1
  7. data/app/views/layouts/_controls.html.erb +3 -2
  8. data/config/database.yml +1 -1
  9. data/db/schema.rb +10 -11
  10. data/db/seeds.rb +18 -16
  11. data/lib/generators/app/template.rb +49 -0
  12. data/lib/iqvoc/version.rb +1 -1
  13. data/public/assets/ajax-loader-dada1fbb71d7fb80d8dde7a031ae6cd0.gif +0 -0
  14. data/public/assets/ajax-loader.gif +0 -0
  15. data/public/assets/arrow_down-07c5dea12928d65fcc31c08279366170.gif +0 -0
  16. data/public/assets/arrow_down.gif +0 -0
  17. data/public/assets/arrow_up-51ede92c113b9a870e7a306907360ba8.gif +0 -0
  18. data/public/assets/arrow_up.gif +0 -0
  19. data/public/assets/bootstrap/bootstrap-2012a68e8267282c0a2c177d7005ae6d.css +9 -0
  20. data/public/assets/bootstrap/bootstrap-2012a68e8267282c0a2c177d7005ae6d.css.gz +0 -0
  21. data/public/assets/bootstrap/bootstrap-2c6144df0bc0f1c9958a69dd77b4f2c2.js +19 -0
  22. data/public/assets/bootstrap/bootstrap-2c6144df0bc0f1c9958a69dd77b4f2c2.js.gz +0 -0
  23. data/public/assets/bootstrap/bootstrap-responsive-609b376f4bb032588c054b563d4bca1f.css +9 -0
  24. data/public/assets/bootstrap/bootstrap-responsive-609b376f4bb032588c054b563d4bca1f.css.gz +0 -0
  25. data/public/assets/bootstrap/bootstrap-responsive.css +9 -0
  26. data/public/assets/bootstrap/bootstrap-responsive.css.gz +0 -0
  27. data/public/assets/bootstrap/bootstrap.css +9 -0
  28. data/public/assets/bootstrap/bootstrap.css.gz +0 -0
  29. data/public/assets/bootstrap/bootstrap.js +19 -0
  30. data/public/assets/bootstrap/bootstrap.js.gz +0 -0
  31. data/public/assets/bootstrap/glyphicons-halflings-0e7ff93d8f48fe1f5f762e4312e78da7.png +0 -0
  32. data/public/assets/bootstrap/glyphicons-halflings-white-ef3d5b8d6a297804352b4a46fdb5466d.png +0 -0
  33. data/public/assets/bootstrap/glyphicons-halflings-white.png +0 -0
  34. data/public/assets/bootstrap/glyphicons-halflings.png +0 -0
  35. data/public/assets/excanvas-41add5296511313d9ceaddebef8ca888.js +14 -0
  36. data/public/assets/excanvas-41add5296511313d9ceaddebef8ca888.js.gz +0 -0
  37. data/public/assets/excanvas.js +14 -0
  38. data/public/assets/excanvas.js.gz +0 -0
  39. data/public/assets/file-58ce0b58f19dfe871b25270e98cff66c.gif +0 -0
  40. data/public/assets/file.gif +0 -0
  41. data/public/assets/folder-5c5b1fd2f1ece710f9159f05cc2aaaa8.gif +0 -0
  42. data/public/assets/folder-closed-8b61fc55011d534f0216c1150994f229.gif +0 -0
  43. data/public/assets/folder-closed.gif +0 -0
  44. data/public/assets/folder.gif +0 -0
  45. data/public/assets/html5-e59131c9bbee37c5d248ab5563f80112.js +3 -0
  46. data/public/assets/html5-e59131c9bbee37c5d248ab5563f80112.js.gz +0 -0
  47. data/public/assets/html5.js +3 -0
  48. data/public/assets/html5.js.gz +0 -0
  49. data/public/assets/iqvoc/ie_fixes-6a106c21d979ccdd1f6bf1cb129a0e69.css +1 -0
  50. data/public/assets/iqvoc/ie_fixes-6a106c21d979ccdd1f6bf1cb129a0e69.css.gz +0 -0
  51. data/public/assets/iqvoc/ie_fixes.css +1 -0
  52. data/public/assets/iqvoc/ie_fixes.css.gz +0 -0
  53. data/public/assets/iqvoc/visualization-85d0de8ba646bf7ba8c05255f38e19e6.js +4 -0
  54. data/public/assets/iqvoc/visualization-85d0de8ba646bf7ba8c05255f38e19e6.js.gz +0 -0
  55. data/public/assets/iqvoc/visualization.js +4 -0
  56. data/public/assets/iqvoc/visualization.js.gz +0 -0
  57. data/public/assets/iqvoc_logo-316859a511c646918fe75e92fa0bf6ac.png +0 -0
  58. data/public/assets/iqvoc_logo.png +0 -0
  59. data/public/assets/jit_rgraph-887e8bf5872bfb759cec78efe5e6c62e.js +25 -0
  60. data/public/assets/jit_rgraph-887e8bf5872bfb759cec78efe5e6c62e.js.gz +0 -0
  61. data/public/assets/jit_rgraph.js +25 -0
  62. data/public/assets/jit_rgraph.js.gz +0 -0
  63. data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-a1eb3e0764573ed4b261ca742ed96ac3.png +0 -0
  64. data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  65. data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100-439ee8e6c8ce855f43ed4d7b90684720.png +0 -0
  66. data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100.png +0 -0
  67. data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400-9357836db77954d0d8c5feb259635223.png +0 -0
  68. data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  69. data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400-7beb11d1590fb2fb1ef5c754100a078a.png +0 -0
  70. data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  71. data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-c723e9a2b50006c6054836a10b76bb84.png +0 -0
  72. data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  73. data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100-cb26f48ac4912c23ce301c69c474d306.png +0 -0
  74. data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  75. data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100-519299e2aa31bffdd4fed34b4fac603d.png +0 -0
  76. data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  77. data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100-27e08524d3d56bb59e354435b663c3ac.png +0 -0
  78. data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  79. data/public/assets/jquery-ui/ui-icons_217bc0_256x240-ed26778199d8722ae064038a1e841bc8.png +0 -0
  80. data/public/assets/jquery-ui/ui-icons_217bc0_256x240.png +0 -0
  81. data/public/assets/jquery-ui/ui-icons_2e83ff_256x240-94086d0ce953eb0887ab1b8140903af9.png +0 -0
  82. data/public/assets/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  83. data/public/assets/jquery-ui/ui-icons_469bdd_256x240-188717a27b4d5504885a03e4ad8e34d1.png +0 -0
  84. data/public/assets/jquery-ui/ui-icons_469bdd_256x240.png +0 -0
  85. data/public/assets/jquery-ui/ui-icons_6da8d5_256x240-8f5b417c5604f1b7b5965c98754c33b9.png +0 -0
  86. data/public/assets/jquery-ui/ui-icons_6da8d5_256x240.png +0 -0
  87. data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240-8b44e266bdc1f57f1393579591f89222.png +0 -0
  88. data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  89. data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240-1b415e411069df902e6f417cc014172c.png +0 -0
  90. data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240.png +0 -0
  91. data/public/assets/jquery-ui/ui-icons_f9bd01_256x240-4553d0576c0498ca4c776aa77aa80833.png +0 -0
  92. data/public/assets/jquery-ui/ui-icons_f9bd01_256x240.png +0 -0
  93. data/public/assets/json2-fedf627b8fba2c78ab3d5cae6e76914d.js +157 -0
  94. data/public/assets/json2-fedf627b8fba2c78ab3d5cae6e76914d.js.gz +0 -0
  95. data/public/assets/json2.js +157 -0
  96. data/public/assets/json2.js.gz +0 -0
  97. data/public/assets/manifest-c97d5faf4a7e78bd05753f8155b4995d.css +51 -0
  98. data/public/assets/manifest-c97d5faf4a7e78bd05753f8155b4995d.css.gz +0 -0
  99. data/public/assets/manifest-cd131c4bf01ad6a09c034157c8cba00a.js +21 -0
  100. data/public/assets/manifest-cd131c4bf01ad6a09c034157c8cba00a.js.gz +0 -0
  101. data/public/assets/manifest.css +51 -0
  102. data/public/assets/manifest.css.gz +0 -0
  103. data/public/assets/manifest.js +21 -0
  104. data/public/assets/manifest.js.gz +0 -0
  105. data/public/assets/manifest.yml +59 -0
  106. data/public/assets/minus-1d0fae0720bab52bd98598218e8345c0.gif +0 -0
  107. data/public/assets/minus.gif +0 -0
  108. data/public/assets/plus-1a29e46532f839ed9c977ef4613d079f.gif +0 -0
  109. data/public/assets/plus.gif +0 -0
  110. data/public/assets/spinner_16x16-17dcf941457ae4e702f4600e714b21c1.gif +0 -0
  111. data/public/assets/spinner_16x16.gif +0 -0
  112. data/public/assets/spinner_24x24-78c707c1921b93962ea5edd7f4a74134.gif +0 -0
  113. data/public/assets/spinner_24x24.gif +0 -0
  114. data/public/assets/treeview-black-c46d96020e5d79c652af0fb0c6656384.gif +0 -0
  115. data/public/assets/treeview-black-line-0903c58efd34c3203d132e6f873049f6.gif +0 -0
  116. data/public/assets/treeview-black-line.gif +0 -0
  117. data/public/assets/treeview-black.gif +0 -0
  118. data/public/assets/treeview-default-ee6298d311205d21dc57c01c0696df70.gif +0 -0
  119. data/public/assets/treeview-default-line-2c4106cfd4d322c6e6565f80702c27cb.gif +0 -0
  120. data/public/assets/treeview-default-line.gif +0 -0
  121. data/public/assets/treeview-default.gif +0 -0
  122. data/public/assets/treeview-famfamfam-20dfef13cd5fd1e08fb61ee68eb9d3fa.gif +0 -0
  123. data/public/assets/treeview-famfamfam-line-a02cce2b80977e066df83137aae71fa8.gif +0 -0
  124. data/public/assets/treeview-famfamfam-line.gif +0 -0
  125. data/public/assets/treeview-famfamfam.gif +0 -0
  126. data/public/assets/treeview-gray-01bfdcd116e081e23daf13024fd3e4e0.gif +0 -0
  127. data/public/assets/treeview-gray-line-029b3a7b92ed10ea6c4b6289cb9fa0e3.gif +0 -0
  128. data/public/assets/treeview-gray-line.gif +0 -0
  129. data/public/assets/treeview-gray.gif +0 -0
  130. data/public/assets/treeview-red-2a5abbce598d05c864d845998381eef6.gif +0 -0
  131. data/public/assets/treeview-red-line-f51e6c30aa3b0ff856900ba85d769f1c.gif +0 -0
  132. data/public/assets/treeview-red-line.gif +0 -0
  133. data/public/assets/treeview-red.gif +0 -0
  134. data/test/factories.rb +1 -1
  135. data/test/integration/client_edit_concept_test.rb +1 -1
  136. data/test/integration/note_annotations_test.rb +2 -4
  137. metadata +146 -24
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 4.0.1 (2012-06-20)
2
+
3
+ * Rails application template
4
+ * Bugfixes
5
+
1
6
  ## 4.0.0 (2012-05-31)
2
7
 
3
8
  * Completely redesigned UI
@@ -11,7 +16,7 @@
11
16
  * Counting concept members in collection hierarchy view
12
17
  * Improved heroku support
13
18
  * Bugfixes
14
-
19
+
15
20
  Please note that this is the last tiny release before we hit 4.0.0.
16
21
 
17
22
  ## 3.5.6 (2012-03-07)
data/Gemfile CHANGED
@@ -19,7 +19,7 @@ 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.3'
22
+ gem 'rails', '3.2.6'
23
23
 
24
24
  group :assets do
25
25
  gem 'uglifier', '>= 1.0.3'
data/Gemfile.lock CHANGED
@@ -1,40 +1,51 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (3.2.3)
5
- actionpack (= 3.2.3)
4
+ actionmailer (3.2.6)
5
+ actionpack (= 3.2.6)
6
6
  mail (~> 2.4.4)
7
- actionpack (3.2.3)
8
- activemodel (= 3.2.3)
9
- activesupport (= 3.2.3)
7
+ actionpack (3.2.6)
8
+ activemodel (= 3.2.6)
9
+ activesupport (= 3.2.6)
10
10
  builder (~> 3.0.0)
11
11
  erubis (~> 2.7.0)
12
12
  journey (~> 1.0.1)
13
13
  rack (~> 1.4.0)
14
14
  rack-cache (~> 1.2)
15
15
  rack-test (~> 0.6.1)
16
- sprockets (~> 2.1.2)
17
- activemodel (3.2.3)
18
- activesupport (= 3.2.3)
16
+ sprockets (~> 2.1.3)
17
+ activemodel (3.2.6)
18
+ activesupport (= 3.2.6)
19
19
  builder (~> 3.0.0)
20
- activerecord (3.2.3)
21
- activemodel (= 3.2.3)
22
- activesupport (= 3.2.3)
20
+ activerecord (3.2.6)
21
+ activemodel (= 3.2.6)
22
+ activesupport (= 3.2.6)
23
23
  arel (~> 3.0.2)
24
24
  tzinfo (~> 0.3.29)
25
- activeresource (3.2.3)
26
- activemodel (= 3.2.3)
27
- activesupport (= 3.2.3)
28
- activesupport (3.2.3)
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)
31
+ jdbc-sqlite3 (~> 3.7.2)
32
+ activerecord-oracle_enhanced-adapter (1.4.1)
33
+ activeresource (3.2.6)
34
+ activemodel (= 3.2.6)
35
+ activesupport (= 3.2.6)
36
+ activesupport (3.2.6)
29
37
  i18n (~> 0.6)
30
38
  multi_json (~> 1.0)
31
39
  addressable (2.2.8)
32
40
  ansi (1.4.2)
33
41
  arel (3.0.2)
34
- authlogic (3.1.0)
35
- activerecord (>= 3.0.7)
42
+ authlogic (3.1.2)
43
+ activerecord (>= 3.0.0)
36
44
  activerecord (>= 3.0.7)
45
+ activesupport (>= 3.0.0)
46
+ activesupport (>= 3.0.7)
37
47
  awesome_print (1.0.2)
48
+ bouncy-castle-java (1.5.0146.1)
38
49
  builder (3.0.0)
39
50
  cancan (1.6.7)
40
51
  capybara (1.1.2)
@@ -46,13 +57,14 @@ GEM
46
57
  xpath (~> 0.1.4)
47
58
  capybara-screenshot (0.1.10)
48
59
  capybara (>= 1.0)
49
- capybara-webkit (0.12.0)
60
+ capybara-webkit (0.12.1)
50
61
  capybara (>= 1.0.0, < 1.2)
51
62
  json
52
63
  childprocess (0.3.2)
53
64
  ffi (~> 1.0.6)
54
- database_cleaner (0.7.2)
65
+ database_cleaner (0.8.0)
55
66
  erubis (2.7.0)
67
+ excon (0.14.0)
56
68
  execjs (1.4.0)
57
69
  multi_json (~> 1.0)
58
70
  factory_girl (3.3.0)
@@ -62,24 +74,37 @@ GEM
62
74
  railties (>= 3.0.0)
63
75
  fastercsv (1.5.5)
64
76
  ffi (1.0.11)
65
- heroku (2.25.0)
77
+ ffi (1.0.11-java)
78
+ heroku (2.26.6)
79
+ heroku-api (~> 0.2.4)
66
80
  launchy (>= 0.3.2)
67
- netrc (~> 0.7.1)
81
+ netrc (~> 0.7.2)
68
82
  rest-client (~> 1.6.1)
69
83
  rubyzip
84
+ heroku-api (0.2.4)
85
+ excon (~> 0.14.0)
70
86
  hike (1.2.1)
71
87
  i18n (0.6.0)
72
88
  iq_rdf (0.1.5)
73
89
  builder
74
90
  bundler
75
- journey (1.0.3)
91
+ jdbc-mysql (5.1.13)
92
+ jdbc-sqlite3 (3.7.2)
93
+ journey (1.0.4)
94
+ jruby-openssl (0.7.7)
95
+ bouncy-castle-java (>= 1.5.0146.1)
76
96
  json (1.7.3)
97
+ json (1.7.3-java)
77
98
  kaminari (0.13.0)
78
99
  actionpack (>= 3.0.0)
79
100
  activesupport (>= 3.0.0)
80
101
  railties (>= 3.0.0)
81
102
  launchy (2.1.0)
82
103
  addressable (~> 2.2.6)
104
+ launchy (2.1.0-java)
105
+ addressable (~> 2.2.6)
106
+ ffi (~> 1.0.9)
107
+ spoon (~> 0.0.1)
83
108
  libv8 (3.3.10.4)
84
109
  libwebsocket (0.1.3)
85
110
  addressable
@@ -88,11 +113,12 @@ GEM
88
113
  mime-types (~> 1.16)
89
114
  treetop (~> 1.4.8)
90
115
  mime-types (1.18)
91
- minitest (3.0.0)
92
- multi_json (1.3.5)
116
+ minitest (3.0.1)
117
+ multi_json (1.3.6)
93
118
  mysql2 (0.3.11)
94
- netrc (0.7.1)
95
- nokogiri (1.5.2)
119
+ netrc (0.7.4)
120
+ nokogiri (1.5.3)
121
+ nokogiri (1.5.3-java)
96
122
  pg (0.13.2)
97
123
  polyglot (0.3.3)
98
124
  rack (1.4.1)
@@ -102,35 +128,35 @@ GEM
102
128
  rack
103
129
  rack-test (0.6.1)
104
130
  rack (>= 1.0)
105
- rails (3.2.3)
106
- actionmailer (= 3.2.3)
107
- actionpack (= 3.2.3)
108
- activerecord (= 3.2.3)
109
- activeresource (= 3.2.3)
110
- activesupport (= 3.2.3)
131
+ rails (3.2.6)
132
+ actionmailer (= 3.2.6)
133
+ actionpack (= 3.2.6)
134
+ activerecord (= 3.2.6)
135
+ activeresource (= 3.2.6)
136
+ activesupport (= 3.2.6)
111
137
  bundler (~> 1.0)
112
- railties (= 3.2.3)
113
- rails_autolink (1.0.7)
138
+ railties (= 3.2.6)
139
+ rails_autolink (1.0.9)
114
140
  rails (~> 3.1)
115
- railties (3.2.3)
116
- actionpack (= 3.2.3)
117
- activesupport (= 3.2.3)
141
+ railties (3.2.6)
142
+ actionpack (= 3.2.6)
143
+ activesupport (= 3.2.6)
118
144
  rack-ssl (~> 1.3.2)
119
145
  rake (>= 0.8.7)
120
146
  rdoc (~> 3.4)
121
- thor (~> 0.14.6)
147
+ thor (>= 0.14.6, < 2.0)
122
148
  rake (0.9.2.2)
123
149
  rdoc (3.12)
124
150
  json (~> 1.4)
125
151
  rest-client (1.6.7)
126
152
  mime-types (>= 1.16)
127
153
  rubyzip (0.9.8)
128
- sass (3.1.18)
154
+ sass (3.1.19)
129
155
  sass-rails (3.2.5)
130
156
  railties (~> 3.2.0)
131
157
  sass (>= 3.1.10)
132
158
  tilt (~> 1.3)
133
- selenium-webdriver (2.21.2)
159
+ selenium-webdriver (2.22.1)
134
160
  childprocess (>= 0.2.5)
135
161
  ffi (~> 1.0)
136
162
  libwebsocket (~> 0.1.3)
@@ -139,6 +165,7 @@ GEM
139
165
  simple_form (2.0.2)
140
166
  actionpack (~> 3.0)
141
167
  activemodel (~> 3.0)
168
+ spoon (0.0.1)
142
169
  spork (0.9.2)
143
170
  spork-testunit (0.0.8)
144
171
  spork (>= 0.6.0)
@@ -149,7 +176,7 @@ GEM
149
176
  sqlite3 (1.3.6)
150
177
  therubyracer (0.10.1)
151
178
  libv8 (~> 3.3.10)
152
- thor (0.14.6)
179
+ thor (0.15.3)
153
180
  tilt (1.3.3)
154
181
  treetop (1.4.10)
155
182
  polyglot
@@ -166,6 +193,7 @@ GEM
166
193
  nokogiri (~> 1.3)
167
194
 
168
195
  PLATFORMS
196
+ java
169
197
  ruby
170
198
 
171
199
  DEPENDENCIES
@@ -190,7 +218,7 @@ DEPENDENCIES
190
218
  mysql2
191
219
  nokogiri (~> 1.5.0)
192
220
  pg
193
- rails (= 3.2.3)
221
+ rails (= 3.2.6)
194
222
  rails_autolink
195
223
  sass-rails (~> 3.2.5)
196
224
  simple_form
data/README.md CHANGED
@@ -48,6 +48,9 @@ in the Gemfile and Cedar does not support a custom `BUNDLE_WITHOUT` config like
48
48
 
49
49
  ### Custom
50
50
 
51
+ We recommend running [iQvoc as a Rails engine](https://github.com/innoq/iqvoc/wiki/iQvoc-as-a-Rails-Engine).
52
+ Running the cloned source code is possible but any modifications would require a fork.
53
+
51
54
  1. Configure your database via `config/database.template.yml`. Don't forget to rename it to `database.yml`
52
55
  2. Run `bundle install`
53
56
  3. Run `bundle exec rake db:create` to create the database
@@ -102,7 +102,7 @@ jQuery(document).ready(function($) {
102
102
  $(".translation[lang]").each(function(i, node) {
103
103
  var el = $(node),
104
104
  lang = el.attr("lang");
105
- if(lang !== locale && $.inArray(lang, langSelected) === -1) {
105
+ if(lang && lang !== locale && $.inArray(lang, langSelected) === -1) {
106
106
  el.addClass("hidden");
107
107
  } else {
108
108
  el.removeClass("hidden");
@@ -33,7 +33,7 @@ module RdfHelper
33
33
  end
34
34
  end
35
35
 
36
- c.Schema::expires(concept.expired_at) if concept.expired_at
36
+ c.Schema::expires(concept.expired_at.to_s) if concept.expired_at
37
37
  c.Owl::deprecated(true) if concept.expired_at and concept.expired_at <= Date.new
38
38
 
39
39
  c.Skos::topConceptOf IqRdf.build_uri(Iqvoc::Concept.root_class.instance.origin) if concept.top_term?
@@ -17,9 +17,10 @@
17
17
  <% end %>
18
18
  <% end %>
19
19
 
20
- <% if Iqvoc.available_languages.any? %>
20
+ <% secondary_languages = Iqvoc.available_languages.reject { |lang| lang == I18n.locale.to_s } %>
21
+ <% if secondary_languages.any? %>
21
22
  <li><h3><%= t("txt.views.lang_widget.secondary") %></h3></li>
22
- <% Iqvoc.available_languages.reject { |lang| lang == I18n.locale.to_s }.each do |lang| %>
23
+ <% secondary_languages.each do |lang| %>
23
24
  <li>
24
25
  <label>
25
26
  <input type="checkbox" value="<%= lang %>"> <%= t("languages.#{lang}") %>
data/config/database.yml CHANGED
@@ -28,7 +28,7 @@ production:
28
28
  adapter: mysql2
29
29
  encoding: utf8
30
30
  reconnect: false
31
- database: iqvoc_production
31
+ database: iqvoc_development
32
32
  username: root
33
33
  password:
34
34
  hostname: 127.0.0.1
data/db/schema.rb CHANGED
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20120412090126) do
14
+ ActiveRecord::Schema.define(:version => 20120601094501) do
15
15
 
16
16
  create_table "collection_members", :force => true do |t|
17
17
  t.integer "collection_id"
@@ -92,16 +92,6 @@ ActiveRecord::Schema.define(:version => 20120412090126) do
92
92
  add_index "matches", ["concept_id", "type"], :name => "ix_matches_fk_type"
93
93
  add_index "matches", ["type"], :name => "ix_matches_on_type"
94
94
 
95
- create_table "metrics", :force => true do |t|
96
- t.string "name"
97
- t.integer "duration"
98
- t.integer "request_id"
99
- t.integer "parent_id"
100
- t.text "payload"
101
- t.datetime "started_at"
102
- t.datetime "created_at"
103
- end
104
-
105
95
  create_table "note_annotations", :force => true do |t|
106
96
  t.integer "note_id"
107
97
  t.string "predicate", :limit => 50
@@ -127,6 +117,15 @@ ActiveRecord::Schema.define(:version => 20120412090126) do
127
117
  add_index "notes", ["owner_id", "owner_type", "type"], :name => "ix_notes_fk_type"
128
118
  add_index "notes", ["type"], :name => "ix_notes_on_type"
129
119
 
120
+ create_table "page_requests", :force => true do |t|
121
+ t.string "path"
122
+ t.float "page_duration"
123
+ t.float "view_duration"
124
+ t.float "db_duration"
125
+ t.datetime "created_at", :null => false
126
+ t.datetime "updated_at", :null => false
127
+ end
128
+
130
129
  create_table "users", :force => true do |t|
131
130
  t.string "forename"
132
131
  t.string "surname"
data/db/seeds.rb CHANGED
@@ -15,23 +15,25 @@
15
15
  # limitations under the License.
16
16
 
17
17
  if User.where(:email => 'admin@iqvoc').none?
18
- User.create!(
19
- :forename => 'Admin',
20
- :surname => 'Istrator',
21
- :email => 'admin@iqvoc',
22
- :password => 'admin',
23
- :password_confirmation => 'admin',
24
- :active => true,
25
- :role => "administrator")
18
+ User.create! do |user|
19
+ user.forename = 'Admin'
20
+ user.surname = 'Istrator'
21
+ user.email = 'admin@iqvoc'
22
+ user.password = 'admin'
23
+ user.password_confirmation = 'admin'
24
+ user.active = true
25
+ user.role = "administrator"
26
+ end
26
27
  end
27
28
 
28
29
  if User.where(:email => 'demo@iqvoc').none?
29
- User.create!(
30
- :forename => 'Demo',
31
- :surname => 'User',
32
- :email => 'demo@iqvoc',
33
- :password => 'cooluri',
34
- :password_confirmation => 'cooluri',
35
- :active => true,
36
- :role => "reader")
30
+ User.create! do |user|
31
+ user.forename = 'Demo'
32
+ user.surname = 'User'
33
+ user.email = 'demo@iqvoc'
34
+ user.password = 'cooluri'
35
+ user.password_confirmation = 'cooluri'
36
+ user.active = true
37
+ user.role = "reader"
38
+ end
37
39
  end
@@ -0,0 +1,49 @@
1
+ namespaced_app_name = app_path.gsub("_", "/").camelize
2
+
3
+ gem 'iqvoc'
4
+
5
+ ["config/application.rb",
6
+ "config/environment.rb",
7
+ "config/initializers/secret_token.rb",
8
+ "config/initializers/session_store.rb",
9
+ "config.ru",
10
+ "Rakefile"].each do |file|
11
+ gsub_file file, app_const_base, namespaced_app_name
12
+ end
13
+
14
+ gsub_file "config/routes.rb", "#{app_const_base}::Application", "Rails.application"
15
+
16
+ %w(development test production).each do |env|
17
+ remove_file "config/environments/#{env}.rb"
18
+ create_file "config/environments/#{env}.rb", <<-EOF
19
+ require 'iqvoc/environments/#{env}'
20
+
21
+ if #{namespaced_app_name}.const_defined?(:Application)
22
+ #{namespaced_app_name}::Application.configure do
23
+ # Settings specified here will take precedence over those in config/environment.rb
24
+ Iqvoc::Environments.setup_#{env}(config)
25
+ end
26
+ end
27
+ EOF
28
+ end
29
+
30
+ initializer 'iqvoc.rb', <<-EOF
31
+ Iqvoc.config do |config|
32
+ config.register_settings({
33
+ "title" => "#{app_const_base.titleize}"
34
+ })
35
+ end
36
+
37
+ # Iqvoc::Concept.base_class_name = "#{app_path}"
38
+ # Iqvoc::Concept.pref_labeling_class_name = "MyLabelingClass"
39
+ # Iqvoc::Concept.further_relation_class_names << "MyConceptRelationClass"
40
+ # Iqvoc::Concept.note_class_names = []
41
+ # Iqvoc.default_rdf_namespace_helper_methods << :my_namespace
42
+
43
+ # Iqvoc.core_assets += []
44
+ EOF
45
+
46
+ remove_file "public/index.html"
47
+ remove_file "app/controllers/application_controller.rb"
48
+ remove_file "app/helpers/application_helper.rb"
49
+ remove_file "app/views/layouts/application.html.erb"
data/lib/iqvoc/version.rb CHANGED
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module Iqvoc
18
- VERSION = "4.0.0"
18
+ VERSION = "4.0.1"
19
19
  end