iqvoc_compound_forms 1.1.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ rvm:
2
+ - 1.8.7
3
+ - 1.9.2
4
+ - 1.9.3
5
+
6
+ env:
7
+ - DB=sqlite
8
+ - DB=mysql
9
+
10
+ before_script: ruby ./script/ci/travis_before_build.rb
11
+ script: bundle exec rake iqvoc:setup:generate_secret_token db:drop db:create iqvoc:db:migrate_all test RAILS_ENV=test
12
+
13
+ branches:
14
+ only:
15
+ - master
16
+
17
+ notifications:
18
+ recipients:
19
+ - iqvoc@innoq.com
data/Gemfile CHANGED
@@ -1,11 +1,18 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'rails', '~> 3.2.1'
4
- gem 'iqvoc', '~> 3.5.1'#, :path => '../iqvoc'
5
- gem 'iqvoc_skosxl', '~> 1.2.0'#, :path => '../iqvoc_skosxl'
3
+ gem 'rails', '~> 3.2.2'
4
+ gem 'iqvoc', '~> 4.0.0'
5
+ gem 'iqvoc_skosxl', '~> 2.0.0'
6
6
 
7
7
  group :development, :test do
8
- gem 'sqlite3'
8
+ platforms :ruby do
9
+ gem 'mysql2'
10
+ gem 'sqlite3'
11
+ end
12
+ platforms :jruby do
13
+ gem 'activerecord-jdbcsqlite3-adapter'
14
+ gem 'activerecord-jdbcmysql-adapter'
15
+ end
9
16
  end
10
17
 
11
18
  group :test do
data/Gemfile.lock CHANGED
@@ -35,13 +35,13 @@ GEM
35
35
  builder (3.0.0)
36
36
  cancan (1.6.7)
37
37
  erubis (2.7.0)
38
- fastercsv (1.5.4)
38
+ fastercsv (1.5.5)
39
39
  hike (1.2.1)
40
40
  i18n (0.6.0)
41
41
  iq_rdf (0.1.5)
42
42
  builder
43
43
  bundler
44
- iqvoc (3.5.6)
44
+ iqvoc (4.0.0)
45
45
  authlogic
46
46
  bundler
47
47
  cancan
@@ -51,21 +51,24 @@ GEM
51
51
  kaminari
52
52
  rails (~> 3.2.1)
53
53
  rails_autolink
54
- iqvoc_skosxl (1.2.3)
54
+ sass-rails (~> 3.2.5)
55
+ simple_form
56
+ iqvoc_skosxl (2.0.0)
55
57
  bundler
56
- iqvoc (~> 3.5.1)
58
+ iqvoc (~> 4.0.0)
57
59
  journey (1.0.3)
58
60
  json (1.6.5)
59
61
  kaminari (0.13.0)
60
62
  actionpack (>= 3.0.0)
61
63
  activesupport (>= 3.0.0)
62
64
  railties (>= 3.0.0)
63
- mail (2.4.3)
65
+ mail (2.4.4)
64
66
  i18n (>= 0.4.0)
65
67
  mime-types (~> 1.16)
66
68
  treetop (~> 1.4.8)
67
69
  mime-types (1.17.2)
68
70
  multi_json (1.1.0)
71
+ mysql2 (0.3.11)
69
72
  polyglot (0.3.3)
70
73
  rack (1.4.1)
71
74
  rack-cache (1.2)
@@ -82,7 +85,7 @@ GEM
82
85
  activesupport (= 3.2.2)
83
86
  bundler (~> 1.0)
84
87
  railties (= 3.2.2)
85
- rails_autolink (1.0.5)
88
+ rails_autolink (1.0.9)
86
89
  rails (~> 3.1)
87
90
  railties (3.2.2)
88
91
  actionpack (= 3.2.2)
@@ -94,6 +97,14 @@ GEM
94
97
  rake (0.9.2.2)
95
98
  rdoc (3.12)
96
99
  json (~> 1.4)
100
+ sass (3.1.19)
101
+ sass-rails (3.2.5)
102
+ railties (~> 3.2.0)
103
+ sass (>= 3.1.10)
104
+ tilt (~> 1.3)
105
+ simple_form (2.0.2)
106
+ actionpack (~> 3.0)
107
+ activemodel (~> 3.0)
97
108
  spork (0.9.0)
98
109
  spork-testunit (0.0.8)
99
110
  spork (>= 0.6.0)
@@ -114,9 +125,12 @@ PLATFORMS
114
125
  ruby
115
126
 
116
127
  DEPENDENCIES
117
- iqvoc (~> 3.5.1)
118
- iqvoc_skosxl (~> 1.2.0)
119
- rails (~> 3.2.1)
128
+ activerecord-jdbcmysql-adapter
129
+ activerecord-jdbcsqlite3-adapter
130
+ iqvoc (~> 4.0.0)
131
+ iqvoc_skosxl (~> 2.0.0)
132
+ mysql2
133
+ rails (~> 3.2.2)
120
134
  spork
121
135
  spork-testunit
122
136
  sqlite3
@@ -1,11 +1,10 @@
1
- <div class="relation">
2
- <h4><%= t("txt.views.labels.compound_from") %></h4>
1
+ <div class="relation panel">
2
+ <h2><%= t("txt.views.labels.compound_from") %></h2>
3
3
  <div class="relation-body">
4
- <%- label.send(klass.name.to_relation_name).each do |cf| -%>
4
+ <% label.send(klass.name.to_relation_name).each do |cf| %>
5
5
  <%= raw cf.compound_form_contents.label_published.map { |cfc|
6
6
  link_to(cfc.label.value, label_path(:id => cfc.label))
7
7
  }.join(', ') %>
8
- <br />
9
- <%- end -%>
8
+ <% end %>
10
9
  </div>
11
10
  </div>
@@ -1,16 +1,16 @@
1
1
  <li class="compound-form">
2
- <%= label_tag "inline_compound_form_origins",
3
- CompoundForm::Base.model_name.human %>
4
- <%- items = Iqvoc::XLLabel.base_class.editor_selectable.
2
+ <% items = Iqvoc::XLLabel.base_class.editor_selectable.
5
3
  by_origin(compound_form.compound_form_contents.
6
- map { |cfc| cfc.label.origin }) -%>
7
- <%= text_field_tag "label[inline_compound_form_origins][]",
8
- items.join(Iqvoc::InlineDataHelper::Joiner),
4
+ map { |cfc| cfc.label.origin }) %>
5
+ <% fieldname = "label[inline_compound_form_origins][]" %>
6
+ <%= f.input fieldname, :label => t('txt.common.type_to_search') do %>
7
+ <%= f.text_field_tag fieldname, items.join(Iqvoc::InlineDataHelper::Joiner),
9
8
  :class => "entity_select",
10
9
  :"data-query-url" => labels_path(:format => :json),
11
10
  :"data-entity-uri" => label_path("{id}"),
12
11
  :"data-entities" => (not compound_form) ? nil : items.
13
12
  map { |l| label_widget_data(l) }.to_json %>
13
+ <% end %>
14
14
 
15
15
  <input type="button" class="add-compound-form" value="<%= t("txt.common.add_note") %>">
16
16
  <input type="button" class="rm-compound-form" value="<%= t("txt.common.delete") %>">
@@ -1,4 +1,4 @@
1
- <%- label.compound_forms.build if label.compound_forms.empty? -%>
1
+ <% label.compound_forms.build if label.compound_forms.empty? %>
2
2
  <% label.compound_forms.each do |compound_form| %>
3
3
  <%= render 'partials/compound_form/compound_form', :label => label, :compound_form => compound_form, :klass => klass %>
4
4
  <% end %>
@@ -1,5 +1,5 @@
1
- <div class="relation">
2
- <h4><%= t("txt.views.labels.compound_in") %></h4>
1
+ <div class="relation panel">
2
+ <h2><%= t("txt.views.labels.compound_in") %></h2>
3
3
  <div class="relation-body">
4
4
  <%= raw label.compound_in.map { |label|
5
5
  link_to(label.value, label_path(:id => label))
@@ -0,0 +1,20 @@
1
+ development:
2
+ adapter: mysql2
3
+ database: iqvoc_skosxl_development
4
+ username: root
5
+ password:
6
+ encoding: utf8
7
+
8
+ test:
9
+ adapter: mysql2
10
+ database: iqvoc_skosxl_test
11
+ username: root
12
+ password:
13
+ encoding: utf8
14
+
15
+ production:
16
+ adapter: mysql2
17
+ database: iqvoc_skosxl_production
18
+ username: root
19
+ password:
20
+ encoding: utf8
@@ -0,0 +1,17 @@
1
+ development:
2
+ adapter: sqlite3
3
+ database: db/development.sqlite
4
+ timeout: 5000
5
+ pool: 5
6
+
7
+ test:
8
+ adapter: sqlite3
9
+ database: db/test.sqlite
10
+ timeout: 5000
11
+ pool: 5
12
+
13
+ production:
14
+ adapter: sqlite3
15
+ database: db/production.sqlite
16
+ timeout: 5000
17
+ pool: 5
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.rubyforge_project = "iqvoc_compound_forms"
17
17
 
18
18
  s.add_dependency "rails", "~> 3.2.1"
19
- s.add_dependency "iqvoc", "~> 3.5.1"
20
- s.add_dependency "iqvoc_skosxl", "~> 1.2.0"
19
+ s.add_dependency "iqvoc", "~> 4.0.0"
20
+ s.add_dependency "iqvoc_skosxl", "~> 2.0.0"
21
21
 
22
22
  s.files = `git ls-files`.split("\n")
23
23
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,5 +1,5 @@
1
1
  module Iqvoc
2
2
  module CompoundForms
3
- VERSION = "1.1.2"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -0,0 +1 @@
1
+ system "cp config/database.#{ENV['DB']}.yml config/database.yml"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iqvoc_compound_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 2.0.0
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-03-07 00:00:00.000000000 Z
14
+ date: 2012-05-31 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
- requirement: &70124346592560 !ruby/object:Gem::Requirement
18
+ requirement: &70331186349820 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,29 +23,29 @@ dependencies:
23
23
  version: 3.2.1
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70124346592560
26
+ version_requirements: *70331186349820
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: iqvoc
29
- requirement: &70124346591560 !ruby/object:Gem::Requirement
29
+ requirement: &70331186349200 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
33
33
  - !ruby/object:Gem::Version
34
- version: 3.5.1
34
+ version: 4.0.0
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70124346591560
37
+ version_requirements: *70331186349200
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: iqvoc_skosxl
40
- requirement: &70124346606440 !ruby/object:Gem::Requirement
40
+ requirement: &70331186348140 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 1.2.0
45
+ version: 2.0.0
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *70124346606440
48
+ version_requirements: *70331186348140
49
49
  description: ''
50
50
  email:
51
51
  - robert.glaser@innoq.com
@@ -54,6 +54,7 @@ extensions: []
54
54
  extra_rdoc_files: []
55
55
  files:
56
56
  - .gitignore
57
+ - .travis.yml
57
58
  - Gemfile
58
59
  - Gemfile.lock
59
60
  - README.md
@@ -70,6 +71,8 @@ files:
70
71
  - config.ru
71
72
  - config/application.rb
72
73
  - config/boot.rb
74
+ - config/database.mysql.yml
75
+ - config/database.sqlite.yml
73
76
  - config/database.template.yml
74
77
  - config/engine.rb
75
78
  - config/environment.rb
@@ -94,6 +97,7 @@ files:
94
97
  - lib/iqvoc/compound_forms/version.rb
95
98
  - lib/iqvoc_compound_forms.rb
96
99
  - public/.gitkeep
100
+ - script/ci/travis_before_build.rb
97
101
  - script/rails
98
102
  - test/test_helper.rb
99
103
  - test/unit/compound_form_test.rb
@@ -117,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
121
  version: '0'
118
122
  requirements: []
119
123
  rubyforge_project: iqvoc_compound_forms
120
- rubygems_version: 1.8.15
124
+ rubygems_version: 1.8.11
121
125
  signing_key:
122
126
  specification_version: 3
123
127
  summary: ''