iqvoc_similar_terms 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2dace2748cbace567b159808910e1ebbe1d31483
4
- data.tar.gz: af43d5266ee8d506c7e7fe3cec4b923a479bb449
3
+ metadata.gz: 7290a8dcc954b9e7ea2547a7dd78b8e6661e5902
4
+ data.tar.gz: e5bc652571fc7feac2c1d7e09dc8b28db1244a36
5
5
  SHA512:
6
- metadata.gz: 3197e31a660fd70f5d14046aa5b51d8002fd950f2e5798dc57f30ee04facec56fa4600e548ab953e0d45f8986321c82a45b902296c3104183a57b8b472ff05b2
7
- data.tar.gz: 9a37c52d395cd6f6e59f4760a660b7fecdd5540a5db820e5a61ff13873b3d84a6df571925c3da37925a1085c774c0ab911900524534065b618f5322036bd0083
6
+ metadata.gz: f34d6868081c0386c33cfa7f9bdfa5a33f600fd938017ee2a357c17685dcc085413d138171e2a6bea77d886ec09d9c34465476283f00922850c404a7641b78f2
7
+ data.tar.gz: 7e017337ebf40b6ac66e7fda4c180e210778c9633fd5c978954a7e6847f5859fea7795fa3fdf23e598aee3fcee1c7a9770cbcc581c1863340af171886c065b6f
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ rvm:
2
+ - 1.9.2
3
+ - 1.9.3
4
+ - 2.0.0
5
+
6
+ env:
7
+ - DB=sqlite
8
+ - DB=mysql
9
+
10
+ script: "./script/ci/travis-build"
11
+ before_script: "./script/ci/travis-before-build"
12
+
13
+ branches:
14
+ only:
15
+ - master
16
+
17
+ notifications:
18
+ recipients:
19
+ - iqvoc@innoq.com
data/Gemfile CHANGED
@@ -4,15 +4,16 @@ gem 'rails', '~> 3.2.1'
4
4
  gem 'iqvoc', '~> 4.0.9'
5
5
 
6
6
  group :development, :test do
7
- gem 'pry'
8
- gem 'pry-rails'
9
- gem 'pry-debugger'
10
- gem 'hirb-unicode'
11
- gem 'zeus'
12
- gem 'cane'
13
7
 
14
8
  platforms :ruby do
9
+ gem 'mysql2'
15
10
  gem 'sqlite3'
11
+
12
+ gem 'pry'
13
+ gem 'pry-rails'
14
+ gem 'pry-debugger'
15
+ gem 'hirb-unicode'
16
+ gem 'cane'
16
17
  end
17
18
  end
18
19
 
data/Gemfile.lock CHANGED
@@ -83,6 +83,7 @@ GEM
83
83
  mime-types (1.22)
84
84
  minitest (4.7.1)
85
85
  multi_json (1.7.2)
86
+ mysql2 (0.3.11)
86
87
  parallel (0.6.4)
87
88
  polyglot (0.3.3)
88
89
  pry (0.9.12)
@@ -143,8 +144,6 @@ GEM
143
144
  polyglot (>= 0.3.1)
144
145
  tzinfo (0.3.37)
145
146
  unicode-display_width (0.1.1)
146
- zeus (0.13.3)
147
- method_source (>= 0.6.7)
148
147
 
149
148
  PLATFORMS
150
149
  ruby
@@ -154,9 +153,9 @@ DEPENDENCIES
154
153
  hirb-unicode
155
154
  iqvoc (~> 4.0.9)
156
155
  minitest
156
+ mysql2
157
157
  pry
158
158
  pry-debugger
159
159
  pry-rails
160
160
  rails (~> 3.2.1)
161
161
  sqlite3
162
- zeus
@@ -5,7 +5,7 @@
5
5
  <%= sidebar_header t('txt.common.representations') %>
6
6
  <%= sidebar_item :icon => 'share', :text => 'HTML', :path => similar_path(:terms => params[:terms], :format => :html) %>
7
7
  <%= sidebar_item :icon => 'share', :text => 'RDF/XML', :path => similar_path(:terms => params[:terms], :format => :rdf) %>
8
- <%= sidebar_item :icon => 'share', :text => 'RDF/XML', :path => similar_path(:terms => params[:terms], :format => :ttl) %>
8
+ <%= sidebar_item :icon => 'share', :text => 'RDF/Turtle', :path => similar_path(:terms => params[:terms], :format => :ttl) %>
9
9
  <% end %>
10
10
  <% end %>
11
11
 
@@ -0,0 +1,29 @@
1
+ development:
2
+ adapter: mysql2
3
+ encoding: utf8
4
+ reconnect: false
5
+ database: iqvoc_similar_terms_development
6
+ pool: 5
7
+ username: root
8
+ password:
9
+ hostname: 127.0.0.1
10
+
11
+ test:
12
+ adapter: mysql2
13
+ encoding: utf8
14
+ reconnect: false
15
+ database: iqvoc_similar_terms_test
16
+ pool: 5
17
+ username: root
18
+ password:
19
+ hostname: 127.0.0.1
20
+
21
+ production:
22
+ adapter: mysql2
23
+ encoding: utf8
24
+ reconnect: false
25
+ database: iqvoc_similar_terms_production
26
+ pool: 5
27
+ username: root
28
+ password:
29
+ hostname: 127.0.0.1
@@ -0,0 +1,11 @@
1
+ development:
2
+ adapter: sqlite3
3
+ database: db/iqvoc_similar_terms_development.sqlite3
4
+
5
+ test:
6
+ adapter: sqlite3
7
+ database: db/iqvoc_similar_terms_test.sqlite3
8
+
9
+ production:
10
+ adapter: sqlite3
11
+ database: db/iqvoc_similar_terms_production.sqlite3
@@ -1,5 +1,5 @@
1
1
  module Iqvoc
2
2
  module SimilarTerms
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Start virtual X frame buffer
4
+ system "sh -e /etc/init.d/xvfb start"
5
+ sleep 3
6
+
7
+ # Create a database.yml for the current database env
8
+ puts "Setting up database.yml for #{ENV["DB"]}"
9
+ system "cp config/database.yml.#{ENV["DB"]} config/database.yml"
10
+
11
+ # Generate and copy secret token initializer
12
+ secret = `bundle exec rake secret`.strip
13
+ path = File.join(File.dirname(__FILE__), '../../config/initializers/')
14
+ template = File.read(File.join(path, 'secret_token.rb.template'))
15
+
16
+ template.gsub!('S-E-C-R-E-T', secret)
17
+ File.open(File.join(path, 'secret_token.rb'), 'w') do |file|
18
+ file.puts template
19
+ end
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env sh
2
+
3
+ set -e
4
+ set -x
5
+
6
+ env="RAILS_ENV=test"
7
+
8
+ export DISPLAY=:99.0
9
+ bundle exec rake db:drop db:create $env
10
+ bundle exec rake db:migrate $env
11
+ bundle exec rake test $env
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iqvoc_similar_terms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederik Dohr
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-16 00:00:00.000000000 Z
13
+ date: 2013-04-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -48,6 +48,7 @@ extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
50
  - .gitignore
51
+ - .travis.yml
51
52
  - Gemfile
52
53
  - Gemfile.lock
53
54
  - README.md
@@ -58,7 +59,8 @@ files:
58
59
  - config.ru
59
60
  - config/application.rb
60
61
  - config/boot.rb
61
- - config/database.sqlite.yml
62
+ - config/database.yml.mysql
63
+ - config/database.yml.sqlite
62
64
  - config/engine.rb
63
65
  - config/environment.rb
64
66
  - config/environments/development.rb
@@ -75,6 +77,8 @@ files:
75
77
  - lib/iqvoc/similar_terms/version.rb
76
78
  - lib/iqvoc_similar_terms.rb
77
79
  - public/.gitkeep
80
+ - script/ci/travis-before-build
81
+ - script/ci/travis-build
78
82
  - script/rails
79
83
  - test/functional/api_test.rb
80
84
  - test/test_helper.rb
@@ -1,11 +0,0 @@
1
- development:
2
- adapter: sqlite3
3
- database: db/dev.sqlite
4
-
5
- test:
6
- adapter: sqlite3
7
- database: db/test.sqlite
8
-
9
- production:
10
- adapter: sqlite3
11
- database: db/production.sqlite