iqvoc 3.2.6 → 3.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ while true
8
8
  # fact you can't render a view from a controller multiple times we had to
9
9
  # move the logic to the view.
10
10
 
11
- concepts = Iqvoc::Concept.base_class.published.order("id").limit(100).offset(offset).all
11
+ concepts = Iqvoc::Concept.base_class.published.order("id").limit(50).offset(offset).all
12
12
  break if concepts.size == 0
13
13
 
14
14
  # When in single query mode, AR handles ALL includes to be loaded by that
data/config/database.yml CHANGED
@@ -1,13 +1,3 @@
1
- # MySQL. Versions 4.1 and 5.0 are recommended.
2
- #
3
- # Install the MYSQL driver
4
- # gem install mysql2
5
- #
6
- # Ensure the MySQL gem is defined in your Gemfile
7
- # gem 'mysql2'
8
- #
9
- # And be sure to use new-style password hashing:
10
- # http://dev.mysql.com/doc/refman/5.0/en/old-client.html
11
1
  development:
12
2
  adapter: mysql2
13
3
  encoding: utf8
@@ -16,11 +6,8 @@ development:
16
6
  pool: 5
17
7
  username: root
18
8
  password:
19
- socket: /tmp/mysql.sock
9
+ hostname: 127.0.0.1
20
10
 
21
- # Warning: The database defined as "test" will be erased and
22
- # re-generated from your development database when you run "rake".
23
- # Do not set this db to the same as development or production.
24
11
  test:
25
12
  adapter: mysql2
26
13
  encoding: utf8
@@ -29,14 +16,14 @@ test:
29
16
  pool: 5
30
17
  username: root
31
18
  password:
32
- socket: /tmp/mysql.sock
19
+ hostname: 127.0.0.1
33
20
 
34
21
  production:
35
- adapter:
22
+ adapter: mysql2
36
23
  encoding: utf8
37
24
  reconnect: false
38
- database: iqvoc_production
25
+ database: iqvoc_development
39
26
  pool: 5
40
27
  username: root
41
28
  password:
42
- socket: /tmp/mysql.sock
29
+ hostname: 127.0.0.1
data/config/deploy.rb ADDED
@@ -0,0 +1,72 @@
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
+ require "#{File.dirname(__FILE__)}/deploy/history"
18
+ load_history
19
+
20
+ load "#{File.dirname(__FILE__)}/deploy/common.rb"
21
+
22
+ set :default_stage, "innoq"
23
+ set :stages, %w(ec2 innoq bian)
24
+ require 'capistrano/ext/multistage'
25
+
26
+ # RVM bootstrap
27
+ $:.unshift(File.expand_path('./lib', ENV['rvm_path']))
28
+ require 'rvm/capistrano'
29
+ set :rvm_ruby_string, '1.9.3'
30
+ # set :rvm_type, :user
31
+
32
+ # bundler bootstrap
33
+ require 'bundler/capistrano'
34
+
35
+ # main details
36
+ set :application, "iqvoc"
37
+
38
+ # repo details
39
+ set :scm, :git
40
+ set :git_enable_submodules, 1
41
+ # set :scm_username, "passenger"
42
+ set :repository, "git@github.com:innoq/iqvoc.git"
43
+ @capistrano_history['last_branch'] = "master" if @capistrano_history['last_branch'].nil? || @capistrano_history['last_branch'] == ""
44
+ set :branch, Capistrano::CLI.ui.ask("Please enter the branch or tag we should use [#{@capistrano_history['last_branch']}]: ")
45
+ set :branch, @capistrano_history['last_branch'] if fetch(:branch) == ""
46
+ @capistrano_history['last_branch'] = fetch(:branch)
47
+
48
+ save_history
49
+
50
+ # tasks
51
+ namespace :deploy do
52
+ task :start, :roles => :app do
53
+ run "touch #{current_path}/tmp/restart.txt"
54
+ end
55
+
56
+ task :stop, :roles => :app do
57
+ # Do nothing.
58
+ end
59
+
60
+ desc "Restart Application"
61
+ task :restart, :roles => :app do
62
+ run "touch #{current_path}/tmp/restart.txt"
63
+ end
64
+
65
+ desc "Symlink shared resources on each release"
66
+ task :symlink_shared, :roles => :app do
67
+ run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
68
+ run "ln -nfs #{shared_path}/config/initializers/secret_token.rb #{release_path}/config/initializers/secret_token.rb"
69
+ end
70
+ end
71
+
72
+ after 'deploy:update_code', 'deploy:symlink_shared'
@@ -25,6 +25,6 @@ if Iqvoc.const_defined?(:Application)
25
25
 
26
26
  # Run `rake secret` and uncomment the following line
27
27
  # Replace the secret-placeholder with your generated token
28
- Iqvoc::Application.config.secret_token = 'b8d90f50515345071ea3a8fced203bfac91c734afda36bbe4a51a630cc11f1d7b99d6d6da19d6bc0aa2c636d46da87159cd53661ed6d98bbc5af30d72410e1a6'
28
+ Iqvoc::Application.config.secret_token = '17d06ea2c1b5aceb4274a466a83d3b063094ecb22826c82af3572740bf2d61b30f756f1aea5e6c845ad5c078265065c8748760e655da7f6425a11bbf22ec8007'
29
29
 
30
30
  end
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 => 20110615134040) do
14
+ ActiveRecord::Schema.define(:version => 20120201120736) do
15
15
 
16
16
  create_table "collection_members", :force => true do |t|
17
17
  t.integer "collection_id"
@@ -44,11 +44,17 @@ ActiveRecord::Schema.define(:version => 20110615134040) do
44
44
  t.date "rdf_updated_at"
45
45
  t.datetime "created_at"
46
46
  t.datetime "updated_at"
47
+ t.boolean "top_term", :default => false
47
48
  end
48
49
 
49
50
  add_index "concepts", ["origin"], :name => "ix_concepts_on_origin", :length => {"origin"=>255}
50
51
  add_index "concepts", ["published_version_id"], :name => "ix_concepts_publ_version_id"
51
52
 
53
+ create_table "configuration_settings", :force => true do |t|
54
+ t.string "key"
55
+ t.string "value"
56
+ end
57
+
52
58
  create_table "labelings", :force => true do |t|
53
59
  t.string "type"
54
60
  t.integer "owner_id"
data/lib/iqvoc/version.rb CHANGED
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module Iqvoc
18
- VERSION = "3.2.6"
18
+ VERSION = "3.2.7"
19
19
  end
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: 3.2.6
4
+ version: 3.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-01-10 00:00:00.000000000 Z
14
+ date: 2012-02-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
- requirement: &70256698528960 !ruby/object:Gem::Requirement
18
+ requirement: &70182803396680 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 3.0.9
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70256698528960
26
+ version_requirements: *70182803396680
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
- requirement: &70256698528380 !ruby/object:Gem::Requirement
29
+ requirement: &70182803396020 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70256698528380
37
+ version_requirements: *70182803396020
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: kaminari
40
- requirement: &70256698526920 !ruby/object:Gem::Requirement
40
+ requirement: &70182803394520 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *70256698526920
48
+ version_requirements: *70182803394520
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: authlogic
51
- requirement: &70256698526060 !ruby/object:Gem::Requirement
51
+ requirement: &70182803391860 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *70256698526060
59
+ version_requirements: *70182803391860
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: cancan
62
- requirement: &70256699937680 !ruby/object:Gem::Requirement
62
+ requirement: &70182803390640 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '0'
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *70256699937680
70
+ version_requirements: *70182803390640
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: iq_rdf
73
- requirement: &70256699937180 !ruby/object:Gem::Requirement
73
+ requirement: &70182803390040 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ~>
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: 0.0.14
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *70256699937180
81
+ version_requirements: *70182803390040
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: json
84
- requirement: &70256699936760 !ruby/object:Gem::Requirement
84
+ requirement: &70182803389140 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,7 +89,7 @@ dependencies:
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
- version_requirements: *70256699936760
92
+ version_requirements: *70182803389140
93
93
  description: iQvoc - a SKOS(-XL) vocabulary management system built on the Semantic
94
94
  Web
95
95
  email:
@@ -242,6 +242,7 @@ files:
242
242
  - config/database.yml
243
243
  - config/database.yml.mysql
244
244
  - config/database.yml.sqlite
245
+ - config/deploy.rb
245
246
  - config/engine.rb
246
247
  - config/environment.rb
247
248
  - config/environments/development.rb
@@ -268,7 +269,6 @@ files:
268
269
  - config/locales/en.yml
269
270
  - config/routes.rb
270
271
  - config/warble.rb
271
- - db/iqvoc_test.sqlite3
272
272
  - db/migrate/20100927101502_create_schema.rb
273
273
  - db/migrate/20101125141218_add_collection_tables.rb
274
274
  - db/migrate/20101129161528_add_type_to_collections.rb
Binary file