iqvoc 4.1.1 → 4.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e2d49b763b438c0af1ef7b6c84b7c703f0a7710
4
- data.tar.gz: 6b33d6fef2694cb17b3896e6ec6dff382f95d63a
3
+ metadata.gz: fe748701f343a235ed146e497547f4669a07d2aa
4
+ data.tar.gz: a76fbd2601fc477dd0f0f7252f4761fe2c997259
5
5
  SHA512:
6
- metadata.gz: eb47c5803045f513ed1568c3a7c86ef44f7dde8aba215d169442f3be32cb4c94bbc10db6471451f1195e91ad61713d37aa1a281ba613e20dcc549bc93096390d
7
- data.tar.gz: 024a5aae4e2f017f1c78374ef5369e84aa3468cd09dfbec1ecd63c9bfcba3ef0cf0aa049e4b305c4947fe3c6b2cde97142de0b5498f9c8909ee262c2d8e71437
6
+ metadata.gz: 55ee8b2a162e067453c1763995cc1cd1e2f6b89b050a5d0eeaafe400c5b082bb96762cb05ff7641dc91a6c99842af0af91a806df9459a7179ae02926b6acd427
7
+ data.tar.gz: d5febd044f1da68dcf60dac66c617808cd742ac05a43d206a3b88d2b693de25bc955e080a86fe0cb60ab2aa091324f0d9feb9774f76c9b3e8582d7d782390f24
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [4.1.2]
2
+
3
+ * Dumped Jbuilder (introduced in 4.1.1) to fix endless recursions happening in hierarchical views
4
+
1
5
  ## [4.1.1]
2
6
 
3
7
  * Removed duplicate triples from RDF export
data/Gemfile CHANGED
@@ -36,10 +36,8 @@ gem 'json'
36
36
  gem 'rails_autolink'
37
37
  gem 'jruby-openssl', :platforms => :jruby
38
38
  gem 'simple_form'
39
- gem 'jbuilder'
40
39
 
41
40
  group :development do
42
- gem 'heroku'
43
41
  gem 'view_marker'
44
42
  gem 'better_errors'
45
43
  gem 'binding_of_caller', :platform => :ruby
data/Gemfile.lock CHANGED
@@ -78,7 +78,6 @@ GEM
78
78
  debugger-linecache (1.2.0)
79
79
  debugger-ruby_core_source (1.2.0)
80
80
  erubis (2.7.0)
81
- excon (0.16.2)
82
81
  execjs (1.4.0)
83
82
  multi_json (~> 1.0)
84
83
  factory_girl (4.1.0)
@@ -88,14 +87,6 @@ GEM
88
87
  railties (>= 3.0.0)
89
88
  ffi (1.1.5)
90
89
  ffi (1.1.5-java)
91
- heroku (2.31.2)
92
- heroku-api (~> 0.3.4)
93
- launchy (>= 0.3.2)
94
- netrc (~> 0.7.7)
95
- rest-client (~> 1.6.1)
96
- rubyzip
97
- heroku-api (0.3.5)
98
- excon (~> 0.16.1)
99
90
  hike (1.2.1)
100
91
  hirb (0.7.1)
101
92
  hirb-unicode (0.0.5)
@@ -106,9 +97,6 @@ GEM
106
97
  builder
107
98
  bundler
108
99
  iq_triplestorage (0.2.2)
109
- jbuilder (1.3.0)
110
- activesupport (>= 3.0.0)
111
- multi_json (>= 1.2.0)
112
100
  jdbc-mysql (5.1.13)
113
101
  jdbc-sqlite3 (3.7.2)
114
102
  journey (1.0.4)
@@ -119,12 +107,6 @@ GEM
119
107
  kaminari (0.13.0)
120
108
  actionpack (>= 3.0.0)
121
109
  activesupport (>= 3.0.0)
122
- launchy (2.1.2)
123
- addressable (~> 2.3)
124
- launchy (2.1.2-java)
125
- addressable (~> 2.3)
126
- ffi (~> 1.1.1)
127
- spoon (~> 0.0.1)
128
110
  libv8 (3.3.10.4)
129
111
  mail (2.5.3)
130
112
  i18n (>= 0.4.0)
@@ -135,7 +117,6 @@ GEM
135
117
  minitest (3.4.0)
136
118
  multi_json (1.7.2)
137
119
  mysql2 (0.3.11)
138
- netrc (0.7.7)
139
120
  nokogiri (1.5.6)
140
121
  nokogiri (1.5.6-java)
141
122
  parallel (0.6.4)
@@ -180,8 +161,6 @@ GEM
180
161
  rake (10.0.3)
181
162
  rdoc (3.12.2)
182
163
  json (~> 1.4)
183
- rest-client (1.6.7)
184
- mime-types (>= 1.16)
185
164
  rubyzip (0.9.9)
186
165
  sass (3.2.1)
187
166
  sass-rails (3.2.5)
@@ -197,7 +176,6 @@ GEM
197
176
  actionpack (~> 3.0)
198
177
  activemodel (~> 3.0)
199
178
  slop (3.3.3)
200
- spoon (0.0.1)
201
179
  sprockets (2.2.2)
202
180
  hike (~> 1.2)
203
181
  multi_json (~> 1.0)
@@ -247,11 +225,9 @@ DEPENDENCIES
247
225
  capybara-webkit (~> 0.14.2)
248
226
  database_cleaner
249
227
  factory_girl_rails
250
- heroku
251
228
  hirb-unicode
252
229
  iq_rdf
253
230
  iq_triplestorage
254
- jbuilder
255
231
  jruby-openssl
256
232
  json
257
233
  kaminari
data/README.md CHANGED
@@ -26,17 +26,16 @@ iQvoc is built with state-of-the-art technology and can be easily customized acc
26
26
  ### Heroku
27
27
 
28
28
  You can easily setup your iQvoc instance in under 5 minutes, we wanted to make this process really easy.
29
-
30
- To run iQvoc on heroku do the following:
29
+ In order to deploy to heroku you need to have an account and [heroku toolbelt](https://toolbelt.heroku.com) installed.
31
30
 
32
31
  ```
33
- bundle install
34
- bundle exec heroku create
35
- bundle exec rake heroku:config
36
- git push heroku master
37
- bundle exec heroku run rake db:migrate
38
- bundle exec heroku run rake db:seed
39
- bundle exec heroku restart
32
+ $ bundle install
33
+ $ heroku create
34
+ $ bundle exec rake heroku:config
35
+ $ git push heroku master
36
+ $ heroku run rake db:migrate
37
+ $ heroku run rake db:seed
38
+ $ heroku restart
40
39
  ```
41
40
 
42
41
  `heroku open` opens your app in the browser.
@@ -54,7 +54,18 @@ class Concepts::HierarchicalController < ConceptsController
54
54
 
55
55
  respond_to do |format|
56
56
  format.html
57
- format.json # Treeview data
57
+ format.json do # Treeview data
58
+ concepts = @concepts.select {|c| can? :read, c }.map do |c|
59
+ {
60
+ :id => c.id,
61
+ :url => concept_path(:id => c, :format => :html),
62
+ :text => CGI.escapeHTML(c.pref_label.to_s),
63
+ :hasChildren => (params[:broader] ? c.broader_relations.any? : c.narrower_relations.any?),
64
+ :additionalText => (" (#{c.additional_info})" if c.additional_info.present?)
65
+ }
66
+ end
67
+ render :json => concepts
68
+ end
58
69
  end
59
70
  end
60
71
 
data/iqvoc.gemspec CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency 'simple_form'
24
24
  s.add_dependency 'sass-rails', '~> 3.2.5'
25
25
  s.add_dependency 'iq_triplestorage'
26
- s.add_dependency 'jbuilder'
27
26
 
28
27
  s.files = %w(LICENSE README.md CHANGELOG.md Gemfile Gemfile.lock Rakefile iqvoc.gemspec) +
29
28
  Dir.glob("{app,config,db,public,lib,test,vendor}/**/*")
data/lib/iqvoc/version.rb CHANGED
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module Iqvoc
18
- VERSION = "4.1.1"
18
+ VERSION = "4.1.2"
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: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Glaser
@@ -166,20 +166,6 @@ dependencies:
166
166
  - - '>='
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
- - !ruby/object:Gem::Dependency
170
- name: jbuilder
171
- requirement: !ruby/object:Gem::Requirement
172
- requirements:
173
- - - '>='
174
- - !ruby/object:Gem::Version
175
- version: '0'
176
- type: :runtime
177
- prerelease: false
178
- version_requirements: !ruby/object:Gem::Requirement
179
- requirements:
180
- - - '>='
181
- - !ruby/object:Gem::Version
182
- version: '0'
183
169
  description: iQvoc - a SKOS(-XL) vocabulary management system built on the Semantic
184
170
  Web
185
171
  email:
@@ -319,7 +305,6 @@ files:
319
305
  - app/views/concepts/expired/index.html.erb
320
306
  - app/views/concepts/hierarchical/_treeview.html.erb
321
307
  - app/views/concepts/hierarchical/index.html.erb
322
- - app/views/concepts/hierarchical/index.json.jbuilder
323
308
  - app/views/concepts/index.iqrdf
324
309
  - app/views/concepts/new.html.erb
325
310
  - app/views/concepts/notifications/_referenced_concepts.html.erb
@@ -1,15 +0,0 @@
1
- json.array! @concepts.select { |c| can? :read, c } do |concept|
2
- json.id concept.id
3
- json.url concept_path(:id => concept, :format => :html)
4
- json.text CGI.escapeHTML(concept.pref_label.to_s)
5
-
6
- if params[:broader]
7
- json.hasChildren concept.broader_relations.any?
8
- else
9
- json.hasChildren concept.narrower_relations.any?
10
- end
11
-
12
- if concept.additional_info.present?
13
- json.additionalText " (#{concept.additional_info})"
14
- end
15
- end