iqvoc 4.0.6 → 4.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. data/CHANGELOG.md +6 -0
  2. data/Gemfile.lock +1 -1
  3. data/app/assets/javascripts/iqvoc/manifest.js +0 -1
  4. data/app/assets/javascripts/iqvoc/onebox.js.erb +81 -0
  5. data/app/assets/javascripts/iqvoc/quicksearch.js +19 -1
  6. data/app/assets/stylesheets/iqvoc/components.css.scss +26 -3
  7. data/app/controllers/concepts/alphabetical_controller.rb +5 -1
  8. data/app/controllers/triplestore_sync_controller.rb +8 -2
  9. data/app/views/concepts/alphabetical/_pref_labeling.html.erb +17 -4
  10. data/app/views/concepts/alphabetical/index.html.erb +2 -2
  11. data/app/views/frontpage/index.html.erb +7 -8
  12. data/config/boot.rb +3 -10
  13. data/config/engine.rb +5 -0
  14. data/db/migrate/20110510162719_use_mono_hierarchy_instead_of_poly_hierarchy.rb +2 -2
  15. data/db/migrate/20110525103100_separate_note_annotation_predicates.rb +10 -23
  16. data/db/migrate/20110615134040_change_umt_note_annotations_to_dct.rb +2 -2
  17. data/lib/engine_tasks/db.rake +0 -21
  18. data/lib/iqvoc/rdf_sync.rb +22 -14
  19. data/lib/iqvoc/version.rb +1 -1
  20. data/public/assets/ajax-loader-dada1fbb71d7fb80d8dde7a031ae6cd0.gif +0 -0
  21. data/public/assets/ajax-loader.gif +0 -0
  22. data/public/assets/arrow_down-07c5dea12928d65fcc31c08279366170.gif +0 -0
  23. data/public/assets/arrow_down.gif +0 -0
  24. data/public/assets/arrow_up-51ede92c113b9a870e7a306907360ba8.gif +0 -0
  25. data/public/assets/arrow_up.gif +0 -0
  26. data/public/assets/bootstrap/bootstrap-2012a68e8267282c0a2c177d7005ae6d.css +9 -0
  27. data/public/assets/bootstrap/bootstrap-2012a68e8267282c0a2c177d7005ae6d.css.gz +0 -0
  28. data/public/assets/bootstrap/bootstrap-35fd77cdf54a8cb63a39d8d0cea7a746.js +19 -0
  29. data/public/assets/bootstrap/bootstrap-35fd77cdf54a8cb63a39d8d0cea7a746.js.gz +0 -0
  30. data/public/assets/bootstrap/bootstrap-responsive-609b376f4bb032588c054b563d4bca1f.css +9 -0
  31. data/public/assets/bootstrap/bootstrap-responsive-609b376f4bb032588c054b563d4bca1f.css.gz +0 -0
  32. data/public/assets/bootstrap/bootstrap-responsive.css +9 -0
  33. data/public/assets/bootstrap/bootstrap-responsive.css.gz +0 -0
  34. data/public/assets/bootstrap/bootstrap.css +9 -0
  35. data/public/assets/bootstrap/bootstrap.css.gz +0 -0
  36. data/public/assets/bootstrap/bootstrap.js +19 -0
  37. data/public/assets/bootstrap/bootstrap.js.gz +0 -0
  38. data/public/assets/bootstrap/glyphicons-halflings-0e7ff93d8f48fe1f5f762e4312e78da7.png +0 -0
  39. data/public/assets/bootstrap/glyphicons-halflings-white-ef3d5b8d6a297804352b4a46fdb5466d.png +0 -0
  40. data/public/assets/bootstrap/glyphicons-halflings-white.png +0 -0
  41. data/public/assets/bootstrap/glyphicons-halflings.png +0 -0
  42. data/public/assets/file-58ce0b58f19dfe871b25270e98cff66c.gif +0 -0
  43. data/public/assets/file.gif +0 -0
  44. data/public/assets/folder-5c5b1fd2f1ece710f9159f05cc2aaaa8.gif +0 -0
  45. data/public/assets/folder-closed-8b61fc55011d534f0216c1150994f229.gif +0 -0
  46. data/public/assets/folder-closed.gif +0 -0
  47. data/public/assets/folder.gif +0 -0
  48. data/public/assets/html5-05e1be9157c8366db72fb7a1bcc8daff.js +3 -0
  49. data/public/assets/html5-05e1be9157c8366db72fb7a1bcc8daff.js.gz +0 -0
  50. data/public/assets/html5.js +3 -0
  51. data/public/assets/html5.js.gz +0 -0
  52. data/public/assets/iqvoc/ie_fixes-6a106c21d979ccdd1f6bf1cb129a0e69.css +1 -0
  53. data/public/assets/iqvoc/ie_fixes-6a106c21d979ccdd1f6bf1cb129a0e69.css.gz +0 -0
  54. data/public/assets/iqvoc/ie_fixes.css +1 -0
  55. data/public/assets/iqvoc/ie_fixes.css.gz +0 -0
  56. data/public/assets/iqvoc_logo-316859a511c646918fe75e92fa0bf6ac.png +0 -0
  57. data/public/assets/iqvoc_logo.png +0 -0
  58. data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-a1eb3e0764573ed4b261ca742ed96ac3.png +0 -0
  59. data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  60. data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100-439ee8e6c8ce855f43ed4d7b90684720.png +0 -0
  61. data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100.png +0 -0
  62. data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400-9357836db77954d0d8c5feb259635223.png +0 -0
  63. data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  64. data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400-7beb11d1590fb2fb1ef5c754100a078a.png +0 -0
  65. data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  66. data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-c723e9a2b50006c6054836a10b76bb84.png +0 -0
  67. data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  68. data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100-cb26f48ac4912c23ce301c69c474d306.png +0 -0
  69. data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  70. data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100-519299e2aa31bffdd4fed34b4fac603d.png +0 -0
  71. data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  72. data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100-27e08524d3d56bb59e354435b663c3ac.png +0 -0
  73. data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  74. data/public/assets/jquery-ui/ui-icons_217bc0_256x240-ed26778199d8722ae064038a1e841bc8.png +0 -0
  75. data/public/assets/jquery-ui/ui-icons_217bc0_256x240.png +0 -0
  76. data/public/assets/jquery-ui/ui-icons_2e83ff_256x240-94086d0ce953eb0887ab1b8140903af9.png +0 -0
  77. data/public/assets/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  78. data/public/assets/jquery-ui/ui-icons_469bdd_256x240-1c055f2d65517ef8faf1d1999c8ac2fa.png +0 -0
  79. data/public/assets/jquery-ui/ui-icons_469bdd_256x240.png +0 -0
  80. data/public/assets/jquery-ui/ui-icons_6da8d5_256x240-8f5b417c5604f1b7b5965c98754c33b9.png +0 -0
  81. data/public/assets/jquery-ui/ui-icons_6da8d5_256x240.png +0 -0
  82. data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240-8b44e266bdc1f57f1393579591f89222.png +0 -0
  83. data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  84. data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240-1b415e411069df902e6f417cc014172c.png +0 -0
  85. data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240.png +0 -0
  86. data/public/assets/jquery-ui/ui-icons_f9bd01_256x240-4553d0576c0498ca4c776aa77aa80833.png +0 -0
  87. data/public/assets/jquery-ui/ui-icons_f9bd01_256x240.png +0 -0
  88. data/public/assets/json2-b08b7b9af3e715f42c088ac728f62a2b.js +157 -0
  89. data/public/assets/json2-b08b7b9af3e715f42c088ac728f62a2b.js.gz +0 -0
  90. data/public/assets/json2.js +157 -0
  91. data/public/assets/json2.js.gz +0 -0
  92. data/public/assets/manifest-3ce8edde69d5d291841ef7c49daaa9cb.js +21 -0
  93. data/public/assets/manifest-3ce8edde69d5d291841ef7c49daaa9cb.js.gz +0 -0
  94. data/public/assets/manifest-c0eca563fd9f16907d302af9a2dcae6b.css +51 -0
  95. data/public/assets/manifest-c0eca563fd9f16907d302af9a2dcae6b.css.gz +0 -0
  96. data/public/assets/manifest.css +51 -0
  97. data/public/assets/manifest.css.gz +0 -0
  98. data/public/assets/manifest.js +21 -0
  99. data/public/assets/manifest.js.gz +0 -0
  100. data/public/assets/manifest.yml +47 -0
  101. data/public/assets/minus-1d0fae0720bab52bd98598218e8345c0.gif +0 -0
  102. data/public/assets/minus.gif +0 -0
  103. data/public/assets/plus-1a29e46532f839ed9c977ef4613d079f.gif +0 -0
  104. data/public/assets/plus.gif +0 -0
  105. data/public/assets/spinner_16x16-17dcf941457ae4e702f4600e714b21c1.gif +0 -0
  106. data/public/assets/spinner_16x16.gif +0 -0
  107. data/public/assets/spinner_24x24-78c707c1921b93962ea5edd7f4a74134.gif +0 -0
  108. data/public/assets/spinner_24x24.gif +0 -0
  109. data/public/assets/treeview-black-c46d96020e5d79c652af0fb0c6656384.gif +0 -0
  110. data/public/assets/treeview-black-line-0903c58efd34c3203d132e6f873049f6.gif +0 -0
  111. data/public/assets/treeview-black-line.gif +0 -0
  112. data/public/assets/treeview-black.gif +0 -0
  113. data/public/assets/treeview-default-ee6298d311205d21dc57c01c0696df70.gif +0 -0
  114. data/public/assets/treeview-default-line-2c4106cfd4d322c6e6565f80702c27cb.gif +0 -0
  115. data/public/assets/treeview-default-line.gif +0 -0
  116. data/public/assets/treeview-default.gif +0 -0
  117. data/public/assets/treeview-famfamfam-20dfef13cd5fd1e08fb61ee68eb9d3fa.gif +0 -0
  118. data/public/assets/treeview-famfamfam-line-a02cce2b80977e066df83137aae71fa8.gif +0 -0
  119. data/public/assets/treeview-famfamfam-line.gif +0 -0
  120. data/public/assets/treeview-famfamfam.gif +0 -0
  121. data/public/assets/treeview-gray-01bfdcd116e081e23daf13024fd3e4e0.gif +0 -0
  122. data/public/assets/treeview-gray-line-029b3a7b92ed10ea6c4b6289cb9fa0e3.gif +0 -0
  123. data/public/assets/treeview-gray-line.gif +0 -0
  124. data/public/assets/treeview-gray.gif +0 -0
  125. data/public/assets/treeview-red-2a5abbce598d05c864d845998381eef6.gif +0 -0
  126. data/public/assets/treeview-red-line-f51e6c30aa3b0ff856900ba85d769f1c.gif +0 -0
  127. data/public/assets/treeview-red-line.gif +0 -0
  128. data/public/assets/treeview-red.gif +0 -0
  129. data/test/integration/alphabetical_test.rb +5 -7
  130. data/test/unit/hygiene_test.rb +0 -4
  131. data/test/unit/rdf_sync_test.rb +9 -12
  132. metadata +112 -4
  133. data/app/assets/javascripts/iqvoc/extract_concepts.js +0 -19
  134. data/app/assets/javascripts/iqvoc/onebox.js +0 -44
@@ -0,0 +1,47 @@
1
+ ---
2
+ arrow_down.gif: arrow_down-07c5dea12928d65fcc31c08279366170.gif
3
+ arrow_up.gif: arrow_up-51ede92c113b9a870e7a306907360ba8.gif
4
+ iqvoc_logo.png: iqvoc_logo-316859a511c646918fe75e92fa0bf6ac.png
5
+ spinner_16x16.gif: spinner_16x16-17dcf941457ae4e702f4600e714b21c1.gif
6
+ spinner_24x24.gif: spinner_24x24-78c707c1921b93962ea5edd7f4a74134.gif
7
+ manifest.js: manifest-3ce8edde69d5d291841ef7c49daaa9cb.js
8
+ iqvoc/ie_fixes.css: iqvoc/ie_fixes-6a106c21d979ccdd1f6bf1cb129a0e69.css
9
+ manifest.css: manifest-c0eca563fd9f16907d302af9a2dcae6b.css
10
+ ajax-loader.gif: ajax-loader-dada1fbb71d7fb80d8dde7a031ae6cd0.gif
11
+ bootstrap/glyphicons-halflings-white.png: bootstrap/glyphicons-halflings-white-ef3d5b8d6a297804352b4a46fdb5466d.png
12
+ bootstrap/glyphicons-halflings.png: bootstrap/glyphicons-halflings-0e7ff93d8f48fe1f5f762e4312e78da7.png
13
+ file.gif: file-58ce0b58f19dfe871b25270e98cff66c.gif
14
+ folder-closed.gif: folder-closed-8b61fc55011d534f0216c1150994f229.gif
15
+ folder.gif: folder-5c5b1fd2f1ece710f9159f05cc2aaaa8.gif
16
+ jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png: jquery-ui/ui-bg_flat_0_aaaaaa_40x100-a1eb3e0764573ed4b261ca742ed96ac3.png
17
+ jquery-ui/ui-bg_flat_55_fbec88_40x100.png: jquery-ui/ui-bg_flat_55_fbec88_40x100-439ee8e6c8ce855f43ed4d7b90684720.png
18
+ jquery-ui/ui-bg_glass_75_d0e5f5_1x400.png: jquery-ui/ui-bg_glass_75_d0e5f5_1x400-9357836db77954d0d8c5feb259635223.png
19
+ jquery-ui/ui-bg_glass_85_dfeffc_1x400.png: jquery-ui/ui-bg_glass_85_dfeffc_1x400-7beb11d1590fb2fb1ef5c754100a078a.png
20
+ jquery-ui/ui-bg_glass_95_fef1ec_1x400.png: jquery-ui/ui-bg_glass_95_fef1ec_1x400-c723e9a2b50006c6054836a10b76bb84.png
21
+ jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100.png: jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100-cb26f48ac4912c23ce301c69c474d306.png
22
+ jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100.png: jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100-519299e2aa31bffdd4fed34b4fac603d.png
23
+ jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100.png: jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100-27e08524d3d56bb59e354435b663c3ac.png
24
+ jquery-ui/ui-icons_217bc0_256x240.png: jquery-ui/ui-icons_217bc0_256x240-ed26778199d8722ae064038a1e841bc8.png
25
+ jquery-ui/ui-icons_2e83ff_256x240.png: jquery-ui/ui-icons_2e83ff_256x240-94086d0ce953eb0887ab1b8140903af9.png
26
+ jquery-ui/ui-icons_469bdd_256x240.png: jquery-ui/ui-icons_469bdd_256x240-1c055f2d65517ef8faf1d1999c8ac2fa.png
27
+ jquery-ui/ui-icons_6da8d5_256x240.png: jquery-ui/ui-icons_6da8d5_256x240-8f5b417c5604f1b7b5965c98754c33b9.png
28
+ jquery-ui/ui-icons_cd0a0a_256x240.png: jquery-ui/ui-icons_cd0a0a_256x240-8b44e266bdc1f57f1393579591f89222.png
29
+ jquery-ui/ui-icons_d8e7f3_256x240.png: jquery-ui/ui-icons_d8e7f3_256x240-1b415e411069df902e6f417cc014172c.png
30
+ jquery-ui/ui-icons_f9bd01_256x240.png: jquery-ui/ui-icons_f9bd01_256x240-4553d0576c0498ca4c776aa77aa80833.png
31
+ minus.gif: minus-1d0fae0720bab52bd98598218e8345c0.gif
32
+ plus.gif: plus-1a29e46532f839ed9c977ef4613d079f.gif
33
+ treeview-black-line.gif: treeview-black-line-0903c58efd34c3203d132e6f873049f6.gif
34
+ treeview-black.gif: treeview-black-c46d96020e5d79c652af0fb0c6656384.gif
35
+ treeview-default-line.gif: treeview-default-line-2c4106cfd4d322c6e6565f80702c27cb.gif
36
+ treeview-default.gif: treeview-default-ee6298d311205d21dc57c01c0696df70.gif
37
+ treeview-famfamfam-line.gif: treeview-famfamfam-line-a02cce2b80977e066df83137aae71fa8.gif
38
+ treeview-famfamfam.gif: treeview-famfamfam-20dfef13cd5fd1e08fb61ee68eb9d3fa.gif
39
+ treeview-gray-line.gif: treeview-gray-line-029b3a7b92ed10ea6c4b6289cb9fa0e3.gif
40
+ treeview-gray.gif: treeview-gray-01bfdcd116e081e23daf13024fd3e4e0.gif
41
+ treeview-red-line.gif: treeview-red-line-f51e6c30aa3b0ff856900ba85d769f1c.gif
42
+ treeview-red.gif: treeview-red-2a5abbce598d05c864d845998381eef6.gif
43
+ bootstrap/bootstrap.js: bootstrap/bootstrap-35fd77cdf54a8cb63a39d8d0cea7a746.js
44
+ html5.js: html5-05e1be9157c8366db72fb7a1bcc8daff.js
45
+ json2.js: json2-b08b7b9af3e715f42c088ac728f62a2b.js
46
+ bootstrap/bootstrap-responsive.css: bootstrap/bootstrap-responsive-609b376f4bb032588c054b563d4bca1f.css
47
+ bootstrap/bootstrap.css: bootstrap/bootstrap-2012a68e8267282c0a2c177d7005ae6d.css
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -33,21 +33,19 @@ class AlphabeticalConceptsTest < ActionDispatch::IntegrationTest
33
33
 
34
34
  test "showing only concepts with a pref label in respective language" do
35
35
  visit alphabetical_concepts_path(:lang => :en, :prefix => "x", :format => :html)
36
- lists = page.all("#content ul")
37
- assert_equal 2, lists.length
38
- concepts = lists[1].all("li") # XXX: too unspecific
36
+ concepts = page.all("ol.concepts li")
39
37
 
40
38
  assert_equal :en, I18n.locale
41
39
  assert_equal 2, concepts.length
42
- assert_equal "Xen1", concepts[0].text.strip
43
- assert_equal "Xen2", concepts[1].text.strip
40
+ assert_equal "Xen1", concepts[0].find("p.term").text.strip
41
+ assert_equal "Xen2", concepts[1].find("p.term").text.strip
44
42
 
45
43
  visit alphabetical_concepts_path(:lang => :de, :prefix => "x", :format => :html)
46
- concepts = page.all("#content ul")[1].all("li") # XXX: too unspecific
44
+ concepts = page.all("ol.concepts li")
47
45
 
48
46
  assert_equal :de, I18n.locale
49
47
  assert_equal 1, concepts.length
50
- assert_equal "Xde1", concepts[0].text.strip
48
+ assert_equal "Xde1", concepts[0].find("p.term").text.strip
51
49
  end
52
50
 
53
51
  end
@@ -26,10 +26,6 @@ class HygieneTest < ActiveSupport::TestCase
26
26
  assert_no_occurrence "#{space}#{tab}\|#{tab}#{space}", "mixed whitespace", true
27
27
  end
28
28
 
29
- test "quotation mark consistency" do
30
- assert_no_occurrence '^require "', "`require` should use single quotes"
31
- end
32
-
33
29
  def assert_no_occurrence(pattern, error_message, extended=false)
34
30
  extra_options = extended ? "E" : ""
35
31
  lines = `git grep -In#{extra_options} '#{pattern}' | grep -v '^vendor/'`
@@ -25,7 +25,7 @@ class RDFSyncTest < ActiveSupport::TestCase
25
25
  @skos = "http://www.w3.org/2004/02/skos/core#"
26
26
 
27
27
  @base_url = "http://example.com/"
28
- @target_host = "http://example.org"
28
+ @target_host = "http://example.org/sesame/repositories/test"
29
29
  @username = "johndoe"
30
30
 
31
31
  class FakeViewContext # XXX: does not belong here
@@ -53,7 +53,7 @@ class RDFSyncTest < ActiveSupport::TestCase
53
53
  fn.call(req)
54
54
  true
55
55
  end.to_return do |req|
56
- { :status => 201 }
56
+ { :status => 204 }
57
57
  end
58
58
  end
59
59
 
@@ -71,22 +71,19 @@ class RDFSyncTest < ActiveSupport::TestCase
71
71
  EOS
72
72
  end
73
73
 
74
- test "single-batch syncronization" do
74
+ test "single-batch synchronization" do
75
75
  concepts = @concepts[0..4]
76
76
 
77
77
  @observers << lambda do |req|
78
78
  concepts.each do |concept|
79
- uri = @base_url + concept.origin
80
- assert req.body.include?("CLEAR GRAPH <#{uri}>")
79
+ assert_equal :delete, req.method
81
80
  end
82
81
  end
83
82
  @observers << lambda do |req|
84
83
  concepts.each do |concept|
85
- path = req.uri.path
86
- assert path.start_with?("/DAV/home/#{@username}/")
87
- assert_equal 4, path.count("/")
88
- uri = @base_url + concept.origin
89
- assert req.body.include?("INSERT IN GRAPH <#{uri}> {")
84
+ assert_equal :post, req.method
85
+ graph_uri = @base_url + concept.origin
86
+ assert req.body.include?("<#{graph_uri}> {")
90
87
  end
91
88
  end
92
89
  res = @sync.sync(concepts)
@@ -98,7 +95,7 @@ class RDFSyncTest < ActiveSupport::TestCase
98
95
  assert_not_equal 0, concepts.count
99
96
  assert_not_equal 0, concepts.where(:rdf_updated_at => nil).count
100
97
 
101
- 2.times do # 3 * 2 requests (reset + insert per batch)
98
+ 2.times do # 2 requests (reset + insert) per batch
102
99
  @observers << lambda { |req| } # no need to check details here
103
100
  end
104
101
  assert @sync.all
@@ -114,7 +111,7 @@ class RDFSyncTest < ActiveSupport::TestCase
114
111
  :batch_size => (concept_count / batch_count).ceil,
115
112
  :view_context => @view_context)
116
113
 
117
- (batch_count * 2).times do # two requests (reset + insert) per batch
114
+ (2 * batch_count).times do # 2 requests (reset + insert) per batch
118
115
  @observers << lambda { |req| } # no need to check details here
119
116
  end
120
117
  assert sync.all
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iqvoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.6
4
+ version: 4.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-11-09 00:00:00.000000000 Z
14
+ date: 2012-11-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -230,11 +230,10 @@ files:
230
230
  - app/assets/javascripts/framework.js
231
231
  - app/assets/javascripts/iqvoc/entityselect.js.erb
232
232
  - app/assets/javascripts/iqvoc/entityselect_qualified.js.erb
233
- - app/assets/javascripts/iqvoc/extract_concepts.js
234
233
  - app/assets/javascripts/iqvoc/iqvoc.js
235
234
  - app/assets/javascripts/iqvoc/langselect.js
236
235
  - app/assets/javascripts/iqvoc/manifest.js
237
- - app/assets/javascripts/iqvoc/onebox.js
236
+ - app/assets/javascripts/iqvoc/onebox.js.erb
238
237
  - app/assets/javascripts/iqvoc/quicksearch.js
239
238
  - app/assets/javascripts/manifest.js
240
239
  - app/assets/stylesheets/framework.css
@@ -469,6 +468,115 @@ files:
469
468
  - public/404.html
470
469
  - public/422.html
471
470
  - public/500.html
471
+ - public/assets/ajax-loader-dada1fbb71d7fb80d8dde7a031ae6cd0.gif
472
+ - public/assets/ajax-loader.gif
473
+ - public/assets/arrow_down-07c5dea12928d65fcc31c08279366170.gif
474
+ - public/assets/arrow_down.gif
475
+ - public/assets/arrow_up-51ede92c113b9a870e7a306907360ba8.gif
476
+ - public/assets/arrow_up.gif
477
+ - public/assets/bootstrap/bootstrap-2012a68e8267282c0a2c177d7005ae6d.css
478
+ - public/assets/bootstrap/bootstrap-2012a68e8267282c0a2c177d7005ae6d.css.gz
479
+ - public/assets/bootstrap/bootstrap-35fd77cdf54a8cb63a39d8d0cea7a746.js
480
+ - public/assets/bootstrap/bootstrap-35fd77cdf54a8cb63a39d8d0cea7a746.js.gz
481
+ - public/assets/bootstrap/bootstrap-responsive-609b376f4bb032588c054b563d4bca1f.css
482
+ - public/assets/bootstrap/bootstrap-responsive-609b376f4bb032588c054b563d4bca1f.css.gz
483
+ - public/assets/bootstrap/bootstrap-responsive.css
484
+ - public/assets/bootstrap/bootstrap-responsive.css.gz
485
+ - public/assets/bootstrap/bootstrap.css
486
+ - public/assets/bootstrap/bootstrap.css.gz
487
+ - public/assets/bootstrap/bootstrap.js
488
+ - public/assets/bootstrap/bootstrap.js.gz
489
+ - public/assets/bootstrap/glyphicons-halflings-0e7ff93d8f48fe1f5f762e4312e78da7.png
490
+ - public/assets/bootstrap/glyphicons-halflings-white-ef3d5b8d6a297804352b4a46fdb5466d.png
491
+ - public/assets/bootstrap/glyphicons-halflings-white.png
492
+ - public/assets/bootstrap/glyphicons-halflings.png
493
+ - public/assets/file-58ce0b58f19dfe871b25270e98cff66c.gif
494
+ - public/assets/file.gif
495
+ - public/assets/folder-5c5b1fd2f1ece710f9159f05cc2aaaa8.gif
496
+ - public/assets/folder-closed-8b61fc55011d534f0216c1150994f229.gif
497
+ - public/assets/folder-closed.gif
498
+ - public/assets/folder.gif
499
+ - public/assets/html5-05e1be9157c8366db72fb7a1bcc8daff.js
500
+ - public/assets/html5-05e1be9157c8366db72fb7a1bcc8daff.js.gz
501
+ - public/assets/html5.js
502
+ - public/assets/html5.js.gz
503
+ - public/assets/iqvoc/ie_fixes-6a106c21d979ccdd1f6bf1cb129a0e69.css
504
+ - public/assets/iqvoc/ie_fixes-6a106c21d979ccdd1f6bf1cb129a0e69.css.gz
505
+ - public/assets/iqvoc/ie_fixes.css
506
+ - public/assets/iqvoc/ie_fixes.css.gz
507
+ - public/assets/iqvoc_logo-316859a511c646918fe75e92fa0bf6ac.png
508
+ - public/assets/iqvoc_logo.png
509
+ - public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-a1eb3e0764573ed4b261ca742ed96ac3.png
510
+ - public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png
511
+ - public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100-439ee8e6c8ce855f43ed4d7b90684720.png
512
+ - public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100.png
513
+ - public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400-9357836db77954d0d8c5feb259635223.png
514
+ - public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400.png
515
+ - public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400-7beb11d1590fb2fb1ef5c754100a078a.png
516
+ - public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400.png
517
+ - public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-c723e9a2b50006c6054836a10b76bb84.png
518
+ - public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png
519
+ - public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100-cb26f48ac4912c23ce301c69c474d306.png
520
+ - public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100.png
521
+ - public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100-519299e2aa31bffdd4fed34b4fac603d.png
522
+ - public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100.png
523
+ - public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100-27e08524d3d56bb59e354435b663c3ac.png
524
+ - public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100.png
525
+ - public/assets/jquery-ui/ui-icons_217bc0_256x240-ed26778199d8722ae064038a1e841bc8.png
526
+ - public/assets/jquery-ui/ui-icons_217bc0_256x240.png
527
+ - public/assets/jquery-ui/ui-icons_2e83ff_256x240-94086d0ce953eb0887ab1b8140903af9.png
528
+ - public/assets/jquery-ui/ui-icons_2e83ff_256x240.png
529
+ - public/assets/jquery-ui/ui-icons_469bdd_256x240-1c055f2d65517ef8faf1d1999c8ac2fa.png
530
+ - public/assets/jquery-ui/ui-icons_469bdd_256x240.png
531
+ - public/assets/jquery-ui/ui-icons_6da8d5_256x240-8f5b417c5604f1b7b5965c98754c33b9.png
532
+ - public/assets/jquery-ui/ui-icons_6da8d5_256x240.png
533
+ - public/assets/jquery-ui/ui-icons_cd0a0a_256x240-8b44e266bdc1f57f1393579591f89222.png
534
+ - public/assets/jquery-ui/ui-icons_cd0a0a_256x240.png
535
+ - public/assets/jquery-ui/ui-icons_d8e7f3_256x240-1b415e411069df902e6f417cc014172c.png
536
+ - public/assets/jquery-ui/ui-icons_d8e7f3_256x240.png
537
+ - public/assets/jquery-ui/ui-icons_f9bd01_256x240-4553d0576c0498ca4c776aa77aa80833.png
538
+ - public/assets/jquery-ui/ui-icons_f9bd01_256x240.png
539
+ - public/assets/json2-b08b7b9af3e715f42c088ac728f62a2b.js
540
+ - public/assets/json2-b08b7b9af3e715f42c088ac728f62a2b.js.gz
541
+ - public/assets/json2.js
542
+ - public/assets/json2.js.gz
543
+ - public/assets/manifest-3ce8edde69d5d291841ef7c49daaa9cb.js
544
+ - public/assets/manifest-3ce8edde69d5d291841ef7c49daaa9cb.js.gz
545
+ - public/assets/manifest-c0eca563fd9f16907d302af9a2dcae6b.css
546
+ - public/assets/manifest-c0eca563fd9f16907d302af9a2dcae6b.css.gz
547
+ - public/assets/manifest.css
548
+ - public/assets/manifest.css.gz
549
+ - public/assets/manifest.js
550
+ - public/assets/manifest.js.gz
551
+ - public/assets/manifest.yml
552
+ - public/assets/minus-1d0fae0720bab52bd98598218e8345c0.gif
553
+ - public/assets/minus.gif
554
+ - public/assets/plus-1a29e46532f839ed9c977ef4613d079f.gif
555
+ - public/assets/plus.gif
556
+ - public/assets/spinner_16x16-17dcf941457ae4e702f4600e714b21c1.gif
557
+ - public/assets/spinner_16x16.gif
558
+ - public/assets/spinner_24x24-78c707c1921b93962ea5edd7f4a74134.gif
559
+ - public/assets/spinner_24x24.gif
560
+ - public/assets/treeview-black-c46d96020e5d79c652af0fb0c6656384.gif
561
+ - public/assets/treeview-black-line-0903c58efd34c3203d132e6f873049f6.gif
562
+ - public/assets/treeview-black-line.gif
563
+ - public/assets/treeview-black.gif
564
+ - public/assets/treeview-default-ee6298d311205d21dc57c01c0696df70.gif
565
+ - public/assets/treeview-default-line-2c4106cfd4d322c6e6565f80702c27cb.gif
566
+ - public/assets/treeview-default-line.gif
567
+ - public/assets/treeview-default.gif
568
+ - public/assets/treeview-famfamfam-20dfef13cd5fd1e08fb61ee68eb9d3fa.gif
569
+ - public/assets/treeview-famfamfam-line-a02cce2b80977e066df83137aae71fa8.gif
570
+ - public/assets/treeview-famfamfam-line.gif
571
+ - public/assets/treeview-famfamfam.gif
572
+ - public/assets/treeview-gray-01bfdcd116e081e23daf13024fd3e4e0.gif
573
+ - public/assets/treeview-gray-line-029b3a7b92ed10ea6c4b6289cb9fa0e3.gif
574
+ - public/assets/treeview-gray-line.gif
575
+ - public/assets/treeview-gray.gif
576
+ - public/assets/treeview-red-2a5abbce598d05c864d845998381eef6.gif
577
+ - public/assets/treeview-red-line-f51e6c30aa3b0ff856900ba85d769f1c.gif
578
+ - public/assets/treeview-red-line.gif
579
+ - public/assets/treeview-red.gif
472
580
  - public/favicon.ico
473
581
  - public/robots.txt
474
582
  - lib/debug.rb
@@ -1,19 +0,0 @@
1
- /*jslint vars: true, white: true */
2
- /*global jQuery, IQVOC */
3
-
4
- IQVOC.extractConcepts = function(html) {
5
- "use strict";
6
- var $ = jQuery;
7
-
8
- // disable scripts (adapted from jQuery's `load`)
9
- var rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;
10
- html = html.replace(rscript, "");
11
-
12
- var concepts = $("<div />").append(html).find("ul.concepts li");
13
- concepts = concepts.map(function(i, node) {
14
- var el = $("a", node);
15
- return { value: el.attr("href"), label: $.trim(el.text()) };
16
- });
17
-
18
- return concepts.length ? Array.prototype.slice.call(concepts, 0) : [];
19
- };
@@ -1,44 +0,0 @@
1
- /*jslint vars: true, browser: true, white: true */
2
- /*global jQuery, IQVOC */
3
-
4
- IQVOC.onebox = (function($) {
5
-
6
- "use strict";
7
-
8
- var renderResults = function(concepts, container) {
9
- container.empty();
10
- $.each(concepts, function(i, concept) {
11
- var link = $("<a />").attr("href", concept.value).text(concept.label);
12
- $("<li />").append(link).appendTo(container);
13
- });
14
- };
15
-
16
- var getConcepts = function(input, container) {
17
- var form = input.closest("form");
18
- $.ajax({
19
- type: form.attr("method"),
20
- url: form.attr("action"),
21
- data: form.serialize(),
22
- success: function(data, status, xhr) {
23
- renderResults(IQVOC.extractConcepts(data), container);
24
- }
25
- });
26
- };
27
-
28
- return function(selector, options) {
29
- var container = $(selector);
30
- var input = container.find("input[type=search]");
31
- var initialValue = input.val();
32
- var resultList = $("<ul />").addClass("results").appendTo(container);
33
-
34
- input.keyup(function() {
35
- if (input.val().length == 0) {
36
- resultList.empty();
37
- }
38
- else if (input.val().length > 0 && input.val() != initialValue) {
39
- setTimeout(function() { getConcepts(input, resultList) }, 200);
40
- }
41
- });
42
- };
43
-
44
- }(jQuery));