enju_bookmark 0.1.2.pre2 → 0.1.2.pre3

Sign up to get free protection for your applications and to get access to all the features.
data/app/models/tag.rb CHANGED
@@ -14,7 +14,7 @@ class Tag < ActiveRecord::Base
14
14
  time :created_at
15
15
  time :updated_at
16
16
  integer :bookmark_ids, :multiple => true do
17
- tagged(Bookmark).collect(&:id)
17
+ tagged(Bookmark).compact.collect(&:id)
18
18
  end
19
19
  integer :taggings_count do
20
20
  taggings.size
@@ -13,7 +13,7 @@
13
13
  <%= javascript_tag("$('#bookmark_tag_list').focus()") -%>
14
14
  <%- else -%>
15
15
  <!-- bookmarked_by_other_patron_or_not_bookmarked -->
16
- <%= form_for(:bookmark, :url => user_bookmarks_path(current_user, :mode => 'tag_edit'), :html => { :method => :post }) do |f| -%>
16
+ <%= form_for(:bookmark, :url => bookmarks_path(:mode => 'tag_edit'), :html => { :method => :post }) do |f| -%>
17
17
  <div>
18
18
  <%= f.text_field :tag_list, :class => 'editable_text_field' -%>
19
19
  <%= f.hidden_field :title, :value => manifestation.original_title -%>
@@ -25,7 +25,7 @@ module EnjuBookmark
25
25
  content_tag :div, :class => "hTagcloud" do
26
26
  content_tag :ul, :class => "popularity" do
27
27
  tags.collect do |tag|
28
- concat(content_tag :li, link_to(tag.name, manifestations_path(:tag => tag.name), :class => classes[(tag.taggings.size - min).div(divisor)]))
28
+ concat(content_tag :li, link_to(tag.name, manifestations_path(:tag => tag.name), :class => classes[(tag.taggings.size - min).div(divisor)]) + "\n")
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module EnjuBookmark
2
- VERSION = "0.1.2.pre2"
2
+ VERSION = "0.1.2.pre3"
3
3
  end
@@ -60,7 +60,7 @@ class ApplicationController < ActionController::Base
60
60
  def convert_charset
61
61
  case params[:format]
62
62
  when 'csv'
63
- return unless configatron.csv_charset_conversion
63
+ return unless Setting.csv_charset_conversion
64
64
  # TODO: 他の言語
65
65
  if @locale.to_sym == :ja
66
66
  headers["Content-Type"] = "text/csv; charset=Shift_JIS"
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_bookmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.pre2
4
+ version: 0.1.2.pre3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-23 00:00:00.000000000 Z
12
+ date: 2012-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -114,7 +114,7 @@ dependencies:
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 0.1.0.pre5
117
+ version: 0.1.0.pre6
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +122,7 @@ dependencies:
122
122
  requirements:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
- version: 0.1.0.pre5
125
+ version: 0.1.0.pre6
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: enju_library
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -130,7 +130,7 @@ dependencies:
130
130
  requirements:
131
131
  - - ~>
132
132
  - !ruby/object:Gem::Version
133
- version: 0.1.0.pre3
133
+ version: 0.1.0.pre4
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
@@ -138,7 +138,7 @@ dependencies:
138
138
  requirements:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
- version: 0.1.0.pre3
141
+ version: 0.1.0.pre4
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: enju_circulation
144
144
  requirement: !ruby/object:Gem::Requirement
@@ -293,7 +293,6 @@ files:
293
293
  - spec/dummy/config/locales/en.yml
294
294
  - spec/dummy/config/routes.rb
295
295
  - spec/dummy/config.ru
296
- - spec/dummy/db/development.sqlite3
297
296
  - spec/dummy/db/migrate/001_create_patrons.rb
298
297
  - spec/dummy/db/migrate/005_create_manifestations.rb
299
298
  - spec/dummy/db/migrate/006_create_items.rb
@@ -444,7 +443,7 @@ files:
444
443
  - spec/dummy/solr/conf/stopwords.txt
445
444
  - spec/dummy/solr/conf/synonyms.txt
446
445
  - spec/dummy/solr/data/test/index/segments.gen
447
- - spec/dummy/solr/data/test/index/segments_4y
446
+ - spec/dummy/solr/data/test/index/segments_3c
448
447
  - spec/dummy/solr/data/test/spellchecker/segments.gen
449
448
  - spec/dummy/solr/data/test/spellchecker/segments_1
450
449
  - spec/factories/bookmark.rb
@@ -547,7 +546,6 @@ test_files:
547
546
  - spec/dummy/config/locales/en.yml
548
547
  - spec/dummy/config/routes.rb
549
548
  - spec/dummy/config.ru
550
- - spec/dummy/db/development.sqlite3
551
549
  - spec/dummy/db/migrate/001_create_patrons.rb
552
550
  - spec/dummy/db/migrate/005_create_manifestations.rb
553
551
  - spec/dummy/db/migrate/006_create_items.rb
@@ -698,7 +696,7 @@ test_files:
698
696
  - spec/dummy/solr/conf/stopwords.txt
699
697
  - spec/dummy/solr/conf/synonyms.txt
700
698
  - spec/dummy/solr/data/test/index/segments.gen
701
- - spec/dummy/solr/data/test/index/segments_4y
699
+ - spec/dummy/solr/data/test/index/segments_3c
702
700
  - spec/dummy/solr/data/test/spellchecker/segments.gen
703
701
  - spec/dummy/solr/data/test/spellchecker/segments_1
704
702
  - spec/factories/bookmark.rb
File without changes