iqvoc 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. data/Gemfile +1 -1
  2. data/Gemfile.lock +2 -2
  3. data/config/database.yml +2 -2
  4. data/config/deploy.rb +72 -0
  5. data/config/engine.rb +7 -11
  6. data/config/environments/production.rb +6 -0
  7. data/db/schema.rb +3 -3
  8. data/iqvoc.gemspec +1 -1
  9. data/lib/engine_tasks/db.rake +61 -1
  10. data/lib/iqvoc.rb +12 -1
  11. data/lib/iqvoc/version.rb +1 -1
  12. data/public/assets/ajax-loader-0fa916c3be443770cc9e800077e4e9b2.gif +0 -0
  13. data/public/assets/ajax-loader.gif +0 -0
  14. data/public/assets/application-d65a2a29c82b44dda72b13621ddb47c7.js +21 -0
  15. data/public/assets/application-d65a2a29c82b44dda72b13621ddb47c7.js.gz +0 -0
  16. data/public/assets/application.js +21 -0
  17. data/public/assets/application.js.gz +0 -0
  18. data/public/assets/arrow_down-5207848d1c2483637d23222d0a699bec.gif +0 -0
  19. data/public/assets/arrow_down.gif +0 -0
  20. data/public/assets/arrow_up-05112da8e77bcb5e6f0c74923d8d2046.gif +0 -0
  21. data/public/assets/arrow_up.gif +0 -0
  22. data/public/assets/back-c6339fdb1267ffad7181a80f4a8193fc.png +0 -0
  23. data/public/assets/back.png +0 -0
  24. data/public/assets/blueprint/ie-0761b92d02baf44f0b2011e3009e6aa9.css +36 -0
  25. data/public/assets/blueprint/ie-0761b92d02baf44f0b2011e3009e6aa9.css.gz +0 -0
  26. data/public/assets/blueprint/ie.css +36 -0
  27. data/public/assets/blueprint/ie.css.gz +0 -0
  28. data/public/assets/blueprint/print-5340d510f8a3aaea2879ccb701f5ce4a.css +30 -0
  29. data/public/assets/blueprint/print-5340d510f8a3aaea2879ccb701f5ce4a.css.gz +0 -0
  30. data/public/assets/blueprint/print.css +30 -0
  31. data/public/assets/blueprint/print.css.gz +0 -0
  32. data/public/assets/blueprint/screen-b57fcdc7a38d7572b2f442522dbbde0d.css +259 -0
  33. data/public/assets/blueprint/screen-b57fcdc7a38d7572b2f442522dbbde0d.css.gz +0 -0
  34. data/public/assets/blueprint/screen.css +259 -0
  35. data/public/assets/blueprint/screen.css.gz +0 -0
  36. data/public/assets/branch-c1c90f973cc2cd8b2d5ae7e2214fd4f7.png +0 -0
  37. data/public/assets/branch.png +0 -0
  38. data/public/assets/categ-66a10d72780bccbd3a6f196091021bbf.png +0 -0
  39. data/public/assets/categ.png +0 -0
  40. data/public/assets/categ_open-2d3546d40f05036d0e08da8cb1d0fc87.png +0 -0
  41. data/public/assets/categ_open.png +0 -0
  42. data/public/assets/file-45c18a58eafafdac404d858f4a148cd2.gif +0 -0
  43. data/public/assets/file.gif +0 -0
  44. data/public/assets/folder-3f2075b676cac310e1f9daa39fc50d54.gif +0 -0
  45. data/public/assets/folder-closed-c6f37b78cc35d7b09ce4115625d665c2.gif +0 -0
  46. data/public/assets/folder-closed.gif +0 -0
  47. data/public/assets/folder.gif +0 -0
  48. data/public/assets/footer-3b7d79bf0c4924fc68b4eaf3927a29df.png +0 -0
  49. data/public/assets/footer.png +0 -0
  50. data/public/assets/go_there-de3af0fac53cd580c5967c841ed4e996.png +0 -0
  51. data/public/assets/go_there.png +0 -0
  52. data/public/assets/header_long-4eb824a89cfbbad56dfd917e6142a5da.png +0 -0
  53. data/public/assets/header_long.png +0 -0
  54. data/public/assets/iqvoc-37d26e519d0a9f0f70b9edba282a0cc7.png +0 -0
  55. data/public/assets/iqvoc.png +0 -0
  56. data/public/assets/iqvoc/ie_fixes-7a001f31445ddfb2e0668c419f81742f.css +7 -0
  57. data/public/assets/iqvoc/ie_fixes-7a001f31445ddfb2e0668c419f81742f.css.gz +0 -0
  58. data/public/assets/iqvoc/ie_fixes.css +7 -0
  59. data/public/assets/iqvoc/ie_fixes.css.gz +0 -0
  60. data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-2cf4f64704121d570c8c944feecb599d.png +0 -0
  61. data/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  62. data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100-8f50cdf335d64e5d9895aaec152586aa.png +0 -0
  63. data/public/assets/jquery-ui/ui-bg_flat_55_fbec88_40x100.png +0 -0
  64. data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400-c149282e2a5d003d978b5c506282f9dd.png +0 -0
  65. data/public/assets/jquery-ui/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  66. data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400-8d727817e068fe9f5e68574497632df1.png +0 -0
  67. data/public/assets/jquery-ui/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  68. data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-e0594ba8df95fda58e653d52b471897e.png +0 -0
  69. data/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  70. data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100-f0681dc174ac10396aafaad6a1911416.png +0 -0
  71. data/public/assets/jquery-ui/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  72. data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100-955df99e8d8cbf64b2994ababf68ad10.png +0 -0
  73. data/public/assets/jquery-ui/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  74. data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100-69d0968ce999cafcf93f3e46387c6f57.png +0 -0
  75. data/public/assets/jquery-ui/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  76. data/public/assets/jquery-ui/ui-icons_217bc0_256x240-6dcd65bc29c791cb800678e3d2dff52a.png +0 -0
  77. data/public/assets/jquery-ui/ui-icons_217bc0_256x240.png +0 -0
  78. data/public/assets/jquery-ui/ui-icons_2e83ff_256x240-f4ef86290cf23b605ae667668f854294.png +0 -0
  79. data/public/assets/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  80. data/public/assets/jquery-ui/ui-icons_469bdd_256x240-7d1fb4e22e8b0406b8b539f3922df871.png +0 -0
  81. data/public/assets/jquery-ui/ui-icons_469bdd_256x240.png +0 -0
  82. data/public/assets/jquery-ui/ui-icons_6da8d5_256x240-8f956fe8d003b98a78c7cf3fd1f01b5a.png +0 -0
  83. data/public/assets/jquery-ui/ui-icons_6da8d5_256x240.png +0 -0
  84. data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240-5e404740e7b81db33ff68615256381c7.png +0 -0
  85. data/public/assets/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  86. data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240-4a8e8266fbe7c500dbb89f245adb380a.png +0 -0
  87. data/public/assets/jquery-ui/ui-icons_d8e7f3_256x240.png +0 -0
  88. data/public/assets/jquery-ui/ui-icons_f9bd01_256x240-1bbe87b055494b5ffc3297ade0fd4e5d.png +0 -0
  89. data/public/assets/jquery-ui/ui-icons_f9bd01_256x240.png +0 -0
  90. data/public/assets/json2-c87ab6ae12eefd145eaabf20addd7d14.js +157 -0
  91. data/public/assets/json2-c87ab6ae12eefd145eaabf20addd7d14.js.gz +0 -0
  92. data/public/assets/json2.js +157 -0
  93. data/public/assets/json2.js.gz +0 -0
  94. data/public/assets/leaf_end-c746324c7ae93955a71344540e19be57.png +0 -0
  95. data/public/assets/leaf_end.png +0 -0
  96. data/public/assets/leaf_end_filled-ffd6d8a1edf2b6c89140039c41c5a6c8.png +0 -0
  97. data/public/assets/leaf_end_filled.png +0 -0
  98. data/public/assets/leaf_mid-36f0aeb7d394be1f41411cc898c849ee.png +0 -0
  99. data/public/assets/leaf_mid.png +0 -0
  100. data/public/assets/leaf_mid_filled-3f929ebf2751edaa0070cf020720239e.png +0 -0
  101. data/public/assets/leaf_mid_filled.png +0 -0
  102. data/public/assets/leaf_nothing-b16696e96882b9c52fb58505c747d152.png +0 -0
  103. data/public/assets/leaf_nothing.png +0 -0
  104. data/public/assets/leaf_only-832baae54f2ac297f04345301f9b2e8b.png +0 -0
  105. data/public/assets/leaf_only.png +0 -0
  106. data/public/assets/leaf_only_filled-845d1817f13a20b80c72c9c5d109ef89.png +0 -0
  107. data/public/assets/leaf_only_filled.png +0 -0
  108. data/public/assets/leaf_top-8b0c6af753f319d658fd15305b3f72e6.png +0 -0
  109. data/public/assets/leaf_top.png +0 -0
  110. data/public/assets/leaf_top_filled-46854fbdb9a9d53519587ebcf883fdf2.png +0 -0
  111. data/public/assets/leaf_top_filled.png +0 -0
  112. data/public/assets/manifest-8554416e5abd292b31e978c42f20350f.css +1126 -0
  113. data/public/assets/manifest-8554416e5abd292b31e978c42f20350f.css.gz +0 -0
  114. data/public/assets/manifest-d65a2a29c82b44dda72b13621ddb47c7.js +21 -0
  115. data/public/assets/manifest-d65a2a29c82b44dda72b13621ddb47c7.js.gz +0 -0
  116. data/public/assets/manifest-ie-2d35dab17a0668b54761c5e09caa3a25.css +45 -0
  117. data/public/assets/manifest-ie-2d35dab17a0668b54761c5e09caa3a25.css.gz +0 -0
  118. data/public/assets/manifest-ie-c87ab6ae12eefd145eaabf20addd7d14.js +157 -0
  119. data/public/assets/manifest-ie-c87ab6ae12eefd145eaabf20addd7d14.js.gz +0 -0
  120. data/public/assets/manifest-ie.css +45 -0
  121. data/public/assets/manifest-ie.css.gz +0 -0
  122. data/public/assets/manifest-ie.js +157 -0
  123. data/public/assets/manifest-ie.js.gz +0 -0
  124. data/public/assets/manifest-print-fa33f9ec79743207309a4c15585417dd.css +32 -0
  125. data/public/assets/manifest-print-fa33f9ec79743207309a4c15585417dd.css.gz +0 -0
  126. data/public/assets/manifest-print.css +32 -0
  127. data/public/assets/manifest-print.css.gz +0 -0
  128. data/public/assets/manifest-screen-d75139d61efe94f6bee940daf1f205cd.css +261 -0
  129. data/public/assets/manifest-screen-d75139d61efe94f6bee940daf1f205cd.css.gz +0 -0
  130. data/public/assets/manifest-screen.css +261 -0
  131. data/public/assets/manifest-screen.css.gz +0 -0
  132. data/public/assets/manifest.css +1126 -0
  133. data/public/assets/manifest.css.gz +0 -0
  134. data/public/assets/manifest.js +21 -0
  135. data/public/assets/manifest.js.gz +0 -0
  136. data/public/assets/manifest.yml +70 -0
  137. data/public/assets/minus-b2a188eb9c79e297cf226940d274bde3.gif +0 -0
  138. data/public/assets/minus.gif +0 -0
  139. data/public/assets/nothing-13356bee8ae7be80ca9e2b12437ec11b.png +0 -0
  140. data/public/assets/nothing.png +0 -0
  141. data/public/assets/ok-b470e6ad2a51f8d831337bcdceac81b3.png +0 -0
  142. data/public/assets/ok.png +0 -0
  143. data/public/assets/plus-48a82f482680dc6a40b228c598f7737a.gif +0 -0
  144. data/public/assets/plus.gif +0 -0
  145. data/public/assets/rdf_flyer-2c03ecea52ac7c51ea052214ec51cf41.gif +0 -0
  146. data/public/assets/rdf_flyer.gif +0 -0
  147. data/public/assets/red_arrow-bd4018c221ad0d64ff39591301978985.png +0 -0
  148. data/public/assets/red_arrow.png +0 -0
  149. data/public/assets/shadow-e8b8808c02efb04cd6dd03cb60b1df51.png +0 -0
  150. data/public/assets/shadow.png +0 -0
  151. data/public/assets/spinner-376ad78a3c6a4731a4d08e6a7a958a08.gif +0 -0
  152. data/public/assets/spinner.gif +0 -0
  153. data/public/assets/tokenizer_delete-9fcf87a2460fd26e1d06694a674c64fd.png +0 -0
  154. data/public/assets/tokenizer_delete.png +0 -0
  155. data/public/assets/tokenizer_pencile-0ce94776c0a1a2f26de102be8d93e01f.png +0 -0
  156. data/public/assets/tokenizer_pencile.png +0 -0
  157. data/public/assets/tokenizer_show-3e3b535ad0047218c41a67bab0bde5a1.png +0 -0
  158. data/public/assets/tokenizer_show.png +0 -0
  159. data/public/assets/top_01-20317bcf2744bf21f09646edf1db83e3.png +0 -0
  160. data/public/assets/top_01.png +0 -0
  161. data/public/assets/treeview-black-b9efd44ad2274dd1a755680f05c97190.gif +0 -0
  162. data/public/assets/treeview-black-line-c017011af5be73fb837016e0a7548275.gif +0 -0
  163. data/public/assets/treeview-black-line.gif +0 -0
  164. data/public/assets/treeview-black.gif +0 -0
  165. data/public/assets/treeview-default-aa27b2f289c0f4e17c9848db92b7efc7.gif +0 -0
  166. data/public/assets/treeview-default-line-88dfb2ce9ef6ce0b6728e9b8b625dc56.gif +0 -0
  167. data/public/assets/treeview-default-line.gif +0 -0
  168. data/public/assets/treeview-default.gif +0 -0
  169. data/public/assets/treeview-famfamfam-e4842329994e3a6650a61aa96b744c88.gif +0 -0
  170. data/public/assets/treeview-famfamfam-line-f36551e5105684a46193f6723fe9dd02.gif +0 -0
  171. data/public/assets/treeview-famfamfam-line.gif +0 -0
  172. data/public/assets/treeview-famfamfam.gif +0 -0
  173. data/public/assets/treeview-gray-7725ad8dad103df1dddd282e8b76ad38.gif +0 -0
  174. data/public/assets/treeview-gray-line-139b3c730f3ea071ee459da1c97ceddb.gif +0 -0
  175. data/public/assets/treeview-gray-line.gif +0 -0
  176. data/public/assets/treeview-gray.gif +0 -0
  177. data/public/assets/treeview-red-abf293cd5d1fe415f8c11bd96936f8e4.gif +0 -0
  178. data/public/assets/treeview-red-line-1a93b70ab4c8e3cd5982e91e9def3afe.gif +0 -0
  179. data/public/assets/treeview-red-line.gif +0 -0
  180. data/public/assets/treeview-red.gif +0 -0
  181. data/public/assets/trunk-608b3757340ea0e291ef7bae37739530.png +0 -0
  182. data/public/assets/trunk.png +0 -0
  183. data/public/assets/unfinished-7f5796d43fa537f8e16caddaf0ba759b.png +0 -0
  184. data/public/assets/unfinished.png +0 -0
  185. metadata +193 -21
  186. data/lib/engine_tasks/assets.rake +0 -49
  187. data/lib/engine_tasks/release.rake +0 -118
@@ -1,49 +0,0 @@
1
- require 'fileutils'
2
-
3
- namespace :iqvoc do
4
- namespace :assets do
5
-
6
- def Iqvoc.for_static_folders
7
- engine_public_dir = Iqvoc::Engine.find_root_with_flag("public").join('public')
8
- app_public_dir = Rails.public_path
9
-
10
- if File.directory?(app_public_dir)
11
- %w(stylesheets javascripts images fonts).each do |specific_dir|
12
- source_common_dir = File.join(engine_public_dir, specific_dir, "iqvoc")
13
- if File.exist?(source_common_dir)
14
- target_common_dir = File.join(app_public_dir, specific_dir, "iqvoc")
15
- FileUtils.mkdir_p(File.join(app_public_dir, specific_dir))
16
-
17
- yield(source_common_dir, target_common_dir)
18
- end
19
- end
20
- end
21
- end
22
-
23
- desc "Create symlinks to public stylesheets, javascripts, fonts and images folders in engine"
24
- task :link do
25
- Iqvoc.for_static_folders do |source_common_dir, target_common_dir|
26
- File.unlink(target_common_dir) if File.symlink?(target_common_dir) && ENV['force'] == "true"
27
- if !File.exists?(target_common_dir)
28
- puts "Linking #{source_common_dir} -> #{target_common_dir}"
29
- File.symlink(source_common_dir, target_common_dir)
30
- else
31
- puts "Symlink #{target_common_dir} already exists!"
32
- end
33
- end
34
- end
35
-
36
- desc "Copy public stylesheets, javascripts, fonts and images folders in engine to the public directory of this application"
37
- task :copy do
38
- Iqvoc.for_static_folders do |source_common_dir, target_common_dir|
39
- if !File.exists?(File.join(target_common_dir, "engine"))
40
- puts "Copying #{source_common_dir} -> #{target_common_dir}"
41
- FileUtils.cp_r(source_common_dir, target_common_dir)
42
- else
43
- puts "Directory #{File.join(target_common_dir, "vendor")} already exists!"
44
- end
45
- end
46
- end
47
-
48
- end
49
- end
@@ -1,118 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- # Copyright 2011 innoQ Deutschland GmbH
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- namespace :iqvoc do
18
- namespace :release do
19
-
20
- desc "Build a production ready release to tmp/release (or to RELEASE_PATH). Use the parameter RUBY_CMD to speficy weather to use ruby or jruby to bundle the release."
21
- task :build => :environment do
22
- ENV['RELEASE_PATH'] ||= Rails.root.join('tmp/release')
23
- ENV['RUBY_CMD'] ||= RUBY_PLATFORM == 'java' ? "jruby" : "ruby"
24
-
25
- Rake::Task["iqvoc:release:initialize"].invoke
26
- Rake::Task["iqvoc:release:bundle"].invoke
27
- Rake::Task["iqvoc:release:iqvoc_assets"].invoke
28
- Rake::Task["iqvoc:release:finalize"].invoke
29
- puts "Release complete: #{ENV['RELEASE_PATH']}"
30
- end
31
-
32
- task :initialize do
33
- path = File.expand_path(ENV['RELEASE_PATH'] || raise("You have to specify RELEASE_PATH"))
34
-
35
- FileUtils.rm_rf(path) if File.directory?(path)
36
- FileUtils.mkdir path
37
-
38
- git_remotes = `git remote show origin`
39
- raise "Couldn't read Fetch URL from #{git_remotes}" unless git_remotes.match(/Fetch URL: (.+)$/)
40
- fetch_url = $1
41
-
42
- git_remote_branches = `git branch -r`
43
- raise "Couldn't read remote branches from #{git_remote_branches}" unless git_remote_branches.match(/origin\/.+/)
44
- git_remote_branches.match(/(origin\/.+)\n/m)
45
- branches = $1.squish.gsub("origin/", "").split(" ")
46
-
47
- git_heroku_remote = `git remote -v`.split(/\n/).select{|s| s =~ /^heroku/}.map{|s| s.squish.split(" ").second}.first
48
- puts "Found heroku remote '#{git_heroku_remote}'" if git_heroku_remote
49
-
50
- branch = nil
51
- while true
52
- STDOUT.print "Enter branch name [master]: "
53
- branch = (STDIN.gets.presence || 'master').gsub(/\n/, "")
54
- break if branches.include?(branch)
55
- puts "Branch must be one of #{branches.inspect}"
56
- end
57
-
58
- `git clone -b #{branch} #{fetch_url} #{path}`
59
-
60
- FileUtils.cd(path) do
61
-
62
- # Defuse the git repository
63
- `git remote rm origin` # Nobody should push this back into our holy repository
64
- `git remote add heroku #{git_heroku_remote}` if git_heroku_remote
65
-
66
- end
67
-
68
- end
69
-
70
- task :bundle do
71
- path = File.expand_path(ENV['RELEASE_PATH'] || raise("You have to specify RELEASE_PATH"))
72
- gemfile = File.join(path, "Gemfile")
73
- ruby_cmd = ENV['RUBY_CMD'].presence || raise("You have to specify RUBY_CMD")
74
-
75
- Bundler.with_clean_env do
76
- FileUtils.cd(path) do
77
-
78
- if (File.exist?('Gemfile.production'))
79
- FileUtils.cp('Gemfile.production', 'Gemfile')
80
-
81
- FileUtils.rm('Gemfile.lock') if File.exist?('Gemfile.lock')
82
-
83
- # We'll have to "rebundle" the Gemfile.lock
84
- puts "Gemfile was replaced by Gemfile.production. Rebundling Gemfile.lock..."
85
- puts `#{ruby_cmd} -S bundle install --path=vendor/bundle --gemfile=#{gemfile} --without=development:test`
86
- end
87
-
88
- puts `#{ruby_cmd} -S bundle install --deployment --gemfile=#{gemfile}`
89
- end
90
- end
91
- end
92
-
93
- task :iqvoc_assets do
94
- path = File.expand_path(ENV['RELEASE_PATH'] || raise("You have to specify RELEASE_PATH"))
95
- gemfile = File.join(path, "Gemfile")
96
- ruby_cmd = ENV['RUBY_CMD'].presence || raise("You have to specify RUBY_CMD")
97
-
98
- Bundler.with_clean_env do
99
- FileUtils.cd(path) do
100
-
101
- puts `export BUNDLE_GEMFILE='#{gemfile}' && #{ruby_cmd} -S bundle exec rake iqvoc:assets:copy`
102
-
103
- end
104
- end
105
- end
106
-
107
- task :finalize do
108
- path = File.expand_path(ENV['RELEASE_PATH'] || raise("You have to specify RELEASE_PATH"))
109
-
110
- FileUtils.cd(path) do
111
- `git add *`
112
- `git commit -m 'iqvoc:release:build: Packed release'`
113
- end
114
-
115
- end
116
-
117
- end
118
- end