enju_bookmark 0.1.2.pre8 → 0.1.2.pre9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/enju_bookmark/ability.rb +1 -1
- data/app/views/bookmarks/_index.html.erb +1 -1
- data/app/views/bookmarks/_index_user.html.erb +1 -1
- data/app/views/manifestations/_tag_list.html.erb +1 -1
- data/lib/enju_bookmark/manifestation.rb +2 -4
- data/lib/enju_bookmark/version.rb +1 -1
- data/spec/dummy/app/models/ability.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_ca +0 -0
- metadata +8 -8
- data/spec/dummy/solr/data/test/index/segments_bo +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7b5b27f32240372a6cd8a1d3da3bdf3dd5a293f
|
4
|
+
data.tar.gz: 926d0b6885702eec6a86ecceb6e51369ee6a63f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa373de672bb8ab7887febd285f7a6b6f03385ba37e5febb7eaa7003726943698cdebfaaa66033d066fee2d8baaaf312dbc2a342476ace7d8da451a90151189d
|
7
|
+
data.tar.gz: 93eedd05e92f7c527a4256a0aebcc55f9b73f7894fe8dfd1bc6496edb503a0db11262f6da27e0d1e2edbaafadc818c55e2c86789fbb660977de846cc2b218be4
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</td>
|
28
28
|
<td><%= l(bookmark.created_at) -%></td>
|
29
29
|
<td>
|
30
|
-
<%- if can? :
|
30
|
+
<%- if can? :delete, bookmark -%>
|
31
31
|
<%= link_to t('page.show'), bookmark_path(bookmark) -%>
|
32
32
|
<%= link_to t('page.destroy'), bookmark_path(bookmark), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
33
33
|
<%- end -%>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</td>
|
31
31
|
<td><%= l(bookmark.created_at) -%></td>
|
32
32
|
<td>
|
33
|
-
<%- if can? :
|
33
|
+
<%- if can? :delete, bookmark -%>
|
34
34
|
<%= link_to t('page.destroy'), bookmark, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
35
35
|
<%- end -%>
|
36
36
|
</td>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%- if manifestation.tags -%>
|
3
3
|
<%- manifestation.tags.each do |tag| -%>
|
4
4
|
<%= link_to_tag(tag) -%>
|
5
|
-
<%- if can? :
|
5
|
+
<%- if can? :delete, tag -%>
|
6
6
|
<%= link_to image_tag('icons/tag_blue_edit.png', :alt => t('page.edit')), tag_path(tag.name) -%>
|
7
7
|
<%- end -%>
|
8
8
|
<%- end -%>
|
@@ -9,11 +9,7 @@ module EnjuBookmark
|
|
9
9
|
include InstanceMethods
|
10
10
|
has_many :bookmarks, :include => :tags, :dependent => :destroy, :foreign_key => :manifestation_id
|
11
11
|
has_many :users, :through => :bookmarks
|
12
|
-
end
|
13
|
-
end
|
14
12
|
|
15
|
-
module InstanceMethods
|
16
|
-
def owned_tags_by_solr
|
17
13
|
searchable do
|
18
14
|
string :tag, :multiple => true do
|
19
15
|
tags.collect(&:name)
|
@@ -23,7 +19,9 @@ module EnjuBookmark
|
|
23
19
|
end
|
24
20
|
end
|
25
21
|
end
|
22
|
+
end
|
26
23
|
|
24
|
+
module InstanceMethods
|
27
25
|
def bookmarked?(user)
|
28
26
|
return true if user.bookmarks.where(:url => url).first
|
29
27
|
false
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_bookmark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.2.
|
4
|
+
version: 0.1.2.pre9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.1.0.
|
103
|
+
version: 0.1.0.pre26
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.1.0.
|
110
|
+
version: 0.1.0.pre26
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: enju_library
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.1.0.
|
117
|
+
version: 0.1.0.pre14
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.1.0.
|
124
|
+
version: 0.1.0.pre14
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: sunspot_solr
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -405,7 +405,7 @@ files:
|
|
405
405
|
- spec/dummy/solr/conf/stopwords.txt
|
406
406
|
- spec/dummy/solr/conf/synonyms.txt
|
407
407
|
- spec/dummy/solr/data/test/index/segments.gen
|
408
|
-
- spec/dummy/solr/data/test/index/
|
408
|
+
- spec/dummy/solr/data/test/index/segments_ca
|
409
409
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
410
410
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
411
411
|
- spec/factories/bookmark.rb
|
@@ -650,7 +650,7 @@ test_files:
|
|
650
650
|
- spec/dummy/solr/conf/stopwords.txt
|
651
651
|
- spec/dummy/solr/conf/synonyms.txt
|
652
652
|
- spec/dummy/solr/data/test/index/segments.gen
|
653
|
-
- spec/dummy/solr/data/test/index/
|
653
|
+
- spec/dummy/solr/data/test/index/segments_ca
|
654
654
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
655
655
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
656
656
|
- spec/factories/bookmark.rb
|
Binary file
|