enju_bookmark 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,3 +1,3 @@
1
- = EnjuBookmark
1
+ = EnjuBookmark {<img src="https://secure.travis-ci.org/nabeta/enju_bookmark.png?branch=master" alt="Build Status" />}[http://travis-ci.org/nabeta/enju_bookmark]
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ This project rocks and uses MIT-LICENSE.
@@ -28,7 +28,7 @@ class Bookmark < ActiveRecord::Base
28
28
  end
29
29
  string :url
30
30
  string :tag, :multiple => true do
31
- tags.collect(&:name)
31
+ tags.pluck(:name)
32
32
  end
33
33
  integer :user_id
34
34
  integer :manifestation_id
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.bookmark_stat_has_manifestation')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th><%= t('activerecord.models.bookmark_stat') -%></th>
8
8
  <th><%= t('activerecord.models.manifestation') -%></th>
@@ -2,7 +2,7 @@
2
2
  <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.bookmark_stat')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
- <table class="index">
5
+ <table class="table table-striped index">
6
6
  <tr>
7
7
  <th><%= t('activerecord.attributes.bookmark_stat.start_date') -%></th>
8
8
  <th><%= t('activerecord.attributes.bookmark_stat.end_date') -%></th>
@@ -23,7 +23,7 @@
23
23
  <%= @bookmark_stat.note -%>
24
24
  </p>
25
25
 
26
- <table class="index">
26
+ <table class="table table-striped index">
27
27
  <tr>
28
28
  <th><%= t('activerecord.models.manifestation') -%></th>
29
29
  <th><%= t('activerecord.attributes.bookmark_stat_has_manifestation.bookmarks_count') -%></th>
@@ -11,7 +11,7 @@
11
11
  <%- end -%>
12
12
  </div>
13
13
 
14
- <table class="index">
14
+ <table class="table table-striped index">
15
15
  <tr>
16
16
  <th><%= t('activerecord.models.user') -%></th>
17
17
  <th><%= t('activerecord.models.bookmark') -%></th>
@@ -14,7 +14,7 @@
14
14
  <%- end -%>
15
15
  </div>
16
16
 
17
- <table class="index">
17
+ <table class="table table-striped index">
18
18
  <tr>
19
19
  <th><%= t('activerecord.models.user') -%></th>
20
20
  <th><%= t('activerecord.models.bookmark') -%></th>
@@ -16,7 +16,7 @@
16
16
  <%= link_to t('page.created_at'), tags_path(:sort_by => 'created_at') -%>
17
17
  </p>
18
18
 
19
- <table class="index">
19
+ <table class="table table-striped index">
20
20
  <tr>
21
21
  <th><%= t('activerecord.attributes.tag.name') -%></th>
22
22
  <th><%= t('activerecord.attributes.tag.taggings_count') -%></th>
@@ -1,3 +1,3 @@
1
1
  module EnjuBookmark
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
@@ -5,6 +5,10 @@ describe BookmarksController do
5
5
  fixtures :all
6
6
 
7
7
  describe "GET index", :solr => true do
8
+ before do
9
+ Bookmark.reindex
10
+ end
11
+
8
12
  describe "When logged in as Administrator" do
9
13
  login_fixture_admin
10
14
 
@@ -1,8 +1,13 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe TagsController do
4
+ fixtures :all
5
+
6
+ describe "GET index", :solr => true do
7
+ before do
8
+ Tag.reindex
9
+ end
4
10
 
5
- describe "GET index" do
6
11
  describe "When logged in as Administrator" do
7
12
  login_admin
8
13
 
Binary file
data/spec/spec_helper.rb CHANGED
@@ -38,7 +38,7 @@ RSpec.configure do |config|
38
38
  config.before :each, :solr => true do
39
39
  Sunspot::Rails::Tester.start_original_sunspot_session
40
40
  Sunspot.session = $original_sunspot_session
41
- #Sunspot.remove_all!
41
+ Sunspot.remove_all!
42
42
  end
43
43
  end
44
44
 
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.0.21
4
+ version: 0.0.22
5
5
  prerelease:
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-06-22 00:00:00.000000000 Z
12
+ date: 2012-07-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -112,17 +112,17 @@ dependencies:
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
115
- - - ! '>='
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 0.0.7
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
123
- - - ! '>='
123
+ - - ~>
124
124
  - !ruby/object:Gem::Version
125
- version: '0'
125
+ version: 0.0.7
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: enju_circulation
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -176,17 +176,17 @@ dependencies:
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements:
179
- - - ! '>='
179
+ - - ~>
180
180
  - !ruby/object:Gem::Version
181
- version: '0'
181
+ version: 2.0.0.pre.120720
182
182
  type: :development
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  none: false
186
186
  requirements:
187
- - - ! '>='
187
+ - - ~>
188
188
  - !ruby/object:Gem::Version
189
- version: '0'
189
+ version: 2.0.0.pre.120720
190
190
  description: Purchase request management for Next-L Enju
191
191
  email:
192
192
  - tanabe@mwr.mediacom.keio.ac.jp
@@ -438,16 +438,8 @@ files:
438
438
  - spec/dummy/solr/conf/spellings.txt
439
439
  - spec/dummy/solr/conf/stopwords.txt
440
440
  - spec/dummy/solr/conf/synonyms.txt
441
- - spec/dummy/solr/data/test/index/_0.fdt
442
- - spec/dummy/solr/data/test/index/_0.fdx
443
- - spec/dummy/solr/data/test/index/_0.fnm
444
- - spec/dummy/solr/data/test/index/_0.frq
445
- - spec/dummy/solr/data/test/index/_0.nrm
446
- - spec/dummy/solr/data/test/index/_0.prx
447
- - spec/dummy/solr/data/test/index/_0.tii
448
- - spec/dummy/solr/data/test/index/_0.tis
449
441
  - spec/dummy/solr/data/test/index/segments.gen
450
- - spec/dummy/solr/data/test/index/segments_2
442
+ - spec/dummy/solr/data/test/index/segments_1a
451
443
  - spec/dummy/solr/data/test/spellchecker/segments.gen
452
444
  - spec/dummy/solr/data/test/spellchecker/segments_1
453
445
  - spec/factories/bookmark.rb
@@ -696,16 +688,8 @@ test_files:
696
688
  - spec/dummy/solr/conf/spellings.txt
697
689
  - spec/dummy/solr/conf/stopwords.txt
698
690
  - spec/dummy/solr/conf/synonyms.txt
699
- - spec/dummy/solr/data/test/index/_0.fdt
700
- - spec/dummy/solr/data/test/index/_0.fdx
701
- - spec/dummy/solr/data/test/index/_0.fnm
702
- - spec/dummy/solr/data/test/index/_0.frq
703
- - spec/dummy/solr/data/test/index/_0.nrm
704
- - spec/dummy/solr/data/test/index/_0.prx
705
- - spec/dummy/solr/data/test/index/_0.tii
706
- - spec/dummy/solr/data/test/index/_0.tis
707
691
  - spec/dummy/solr/data/test/index/segments.gen
708
- - spec/dummy/solr/data/test/index/segments_2
692
+ - spec/dummy/solr/data/test/index/segments_1a
709
693
  - spec/dummy/solr/data/test/spellchecker/segments.gen
710
694
  - spec/dummy/solr/data/test/spellchecker/segments_1
711
695
  - spec/factories/bookmark.rb
Binary file
Binary file
@@ -1,3 +0,0 @@
1
- ���� idtype
2
- class_nameurl_s user_id_imanifestation_id_i created_at_d updated_at_d
3
- title_text
Binary file
@@ -1 +0,0 @@
1
- NRM�ttrtt
Binary file
Binary file
Binary file