iqvoc_inflectionals 1.1.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
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
3
  gem 'rails', '~> 3.2.1'
4
- gem 'iqvoc', '~> 3.5.1'#, :path => '../iqvoc'
5
- gem 'iqvoc_skosxl', '~> 1.2.0'#, :path => '../iqvoc_skosxl'
4
+ gem 'iqvoc', '~> 4.0.0'#, :path => '../iqvoc'
5
+ gem 'iqvoc_skosxl', '~> 2.0.0'#, :path => '../iqvoc_skosxl'
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,8 +125,11 @@ PLATFORMS
114
125
  ruby
115
126
 
116
127
  DEPENDENCIES
117
- iqvoc (~> 3.5.1)
118
- iqvoc_skosxl (~> 1.2.0)
128
+ activerecord-jdbcmysql-adapter
129
+ activerecord-jdbcsqlite3-adapter
130
+ iqvoc (~> 4.0.0)
131
+ iqvoc_skosxl (~> 2.0.0)
132
+ mysql2
119
133
  rails (~> 3.2.1)
120
134
  spork
121
135
  spork-testunit
@@ -1,12 +1,12 @@
1
- <h4><%= t("txt.views.labels.inflectionals") %></h4>
2
- <% labels_inflectionals_values = label.send(klass.name.to_relation_name).map(&:value) %>
3
- <div class="relation">
1
+ <div class="relation panel">
2
+ <h2><%= t("txt.views.labels.inflectionals") %></h2>
3
+ <% labels_inflectionals_values = label.send(klass.name.to_relation_name).map(&:value) %>
4
4
  <%= labels_inflectionals_values.join(', ') %>
5
5
  <%
6
- all_inflectionals = Inflectional::Base.where(:value => labels_inflectionals_values).all
7
- # subtract initial and current version from the inflectionals collection
8
- inflectionals_labels = Iqvoc::XLLabel.base_class.find(all_inflectionals.map(&:label_id)-[label.published_version_id, label.id].compact)
9
- %>
6
+ all_inflectionals = Inflectional::Base.where(:value => labels_inflectionals_values).all
7
+ # subtract initial and current version from the inflectionals collection
8
+ inflectionals_labels = Iqvoc::XLLabel.base_class.find(all_inflectionals.map(&:label_id)-[label.published_version_id, label.id].compact)
9
+ %>
10
10
  <% if inflectionals_labels.present? %>
11
11
  <p><%= t("txt.views.labels.inflectionals_used_in") %></p>
12
12
  <ul>
@@ -1,7 +1,8 @@
1
- <li>
2
- <%= f.label :inflectionals_attributes, t("txt.views.labels.inflectionals") %>
3
- <%= f.text_area :inflectionals_attributes,
4
- :value => label.send(klass.name.to_relation_name).map(&:value).join("\n"),
1
+ <%= f.input :inflectionals_attributes,
2
+ :as => :text,
3
+ :label => t("txt.views.labels.inflectionals"),
4
+ :value => label.send(klass.name.to_relation_name).map(&:value).join("\n"),
5
+ :input_html => {
5
6
  :rows => 10,
6
- :cols => 40 %>
7
- </li>
7
+ :cols => 40
8
+ } %>
@@ -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_inflectionals"
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 Inflectionals
3
- VERSION = "1.1.3"
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_inflectionals
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
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: &70116973005100 !ruby/object:Gem::Requirement
18
+ requirement: &70320989998600 !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: *70116973005100
26
+ version_requirements: *70320989998600
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: iqvoc
29
- requirement: &70116973003740 !ruby/object:Gem::Requirement
29
+ requirement: &70320989997920 !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: *70116973003740
37
+ version_requirements: *70320989997920
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: iqvoc_skosxl
40
- requirement: &70116973003060 !ruby/object:Gem::Requirement
40
+ requirement: &70320989996680 !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: *70116973003060
48
+ version_requirements: *70320989996680
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
@@ -65,6 +66,8 @@ files:
65
66
  - config.ru
66
67
  - config/application.rb
67
68
  - config/boot.rb
69
+ - config/database.mysql.yml
70
+ - config/database.sqlite.yml
68
71
  - config/database.template.yml
69
72
  - config/engine.rb
70
73
  - config/environment.rb
@@ -89,6 +92,7 @@ files:
89
92
  - lib/iqvoc/inflectionals/version.rb
90
93
  - lib/iqvoc_inflectionals.rb
91
94
  - public/.gitkeep
95
+ - script/ci/travis_before_build.rb
92
96
  - script/rails
93
97
  - test/test_helper.rb
94
98
  - test/unit/inflectional_test.rb
@@ -112,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
116
  version: '0'
113
117
  requirements: []
114
118
  rubyforge_project: iqvoc_inflectionals
115
- rubygems_version: 1.8.15
119
+ rubygems_version: 1.8.11
116
120
  signing_key:
117
121
  specification_version: 3
118
122
  summary: ''