enju_bookmark 0.1.2.pre10 → 0.1.2.pre11
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 +4 -4
- data/lib/enju_bookmark/version.rb +1 -1
- data/spec/dummy/db/migrate/006_create_items.rb +0 -4
- data/spec/dummy/db/schema.rb +7 -11
- 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_eq +0 -0
- data/spec/fixtures/items.yml +0 -49
- metadata +8 -9
- data/lib/generators/enju_bookmark/views_generator.rb +0 -21
- data/spec/dummy/solr/data/test/index/segments_di +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c87c97c601bf0b9341820526c8b8bca43b11f05
|
|
4
|
+
data.tar.gz: ed5364b6ddf7e28c4bdda114da2ba46065cd6c18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b99d046233064b3f1a3dd084e93e34c2486e3726290fdc708157d021c75ed9629cd10376dbd5da5618d6fb60e3df7e2f91792c491c7d16f693cfd6817c2e2469
|
|
7
|
+
data.tar.gz: 97823e8c1b906964532f8795ce1582fa281e131d5f0721bfdd184ad008952bf51f68357949f9eb19036843793de884f1d91908af3d0b87b3ee78dcae2960d95b
|
|
@@ -4,8 +4,6 @@ class CreateItems < ActiveRecord::Migration
|
|
|
4
4
|
#t.integer :manifestation_id
|
|
5
5
|
t.string :call_number
|
|
6
6
|
t.string :item_identifier
|
|
7
|
-
t.integer :circulation_status_id, :default => 5, :null => false
|
|
8
|
-
t.integer :checkout_type_id, :default => 1, :null => false
|
|
9
7
|
t.timestamps
|
|
10
8
|
t.datetime :deleted_at
|
|
11
9
|
t.integer :shelf_id, :default => 1, :null => false
|
|
@@ -19,8 +17,6 @@ class CreateItems < ActiveRecord::Migration
|
|
|
19
17
|
t.integer :required_score, :default => 0, :null => false
|
|
20
18
|
end
|
|
21
19
|
#add_index :items, :manifestation_id
|
|
22
|
-
add_index :items, :circulation_status_id
|
|
23
|
-
add_index :items, :checkout_type_id
|
|
24
20
|
add_index :items, :shelf_id
|
|
25
21
|
add_index :items, :item_identifier
|
|
26
22
|
add_index :items, :required_role_id
|
data/spec/dummy/db/schema.rb
CHANGED
|
@@ -322,20 +322,18 @@ ActiveRecord::Schema.define(:version => 20121119153944) do
|
|
|
322
322
|
create_table "items", :force => true do |t|
|
|
323
323
|
t.string "call_number"
|
|
324
324
|
t.string "item_identifier"
|
|
325
|
-
t.
|
|
326
|
-
t.
|
|
327
|
-
t.datetime "created_at", :null => false
|
|
328
|
-
t.datetime "updated_at", :null => false
|
|
325
|
+
t.datetime "created_at", :null => false
|
|
326
|
+
t.datetime "updated_at", :null => false
|
|
329
327
|
t.datetime "deleted_at"
|
|
330
|
-
t.integer "shelf_id",
|
|
331
|
-
t.boolean "include_supplements",
|
|
328
|
+
t.integer "shelf_id", :default => 1, :null => false
|
|
329
|
+
t.boolean "include_supplements", :default => false, :null => false
|
|
332
330
|
t.text "note"
|
|
333
331
|
t.string "url"
|
|
334
332
|
t.integer "price"
|
|
335
|
-
t.integer "lock_version",
|
|
336
|
-
t.integer "required_role_id",
|
|
333
|
+
t.integer "lock_version", :default => 0, :null => false
|
|
334
|
+
t.integer "required_role_id", :default => 1, :null => false
|
|
337
335
|
t.string "state"
|
|
338
|
-
t.integer "required_score",
|
|
336
|
+
t.integer "required_score", :default => 0, :null => false
|
|
339
337
|
t.datetime "acquired_at"
|
|
340
338
|
t.integer "bookstore_id"
|
|
341
339
|
t.integer "budget_type_id"
|
|
@@ -343,8 +341,6 @@ ActiveRecord::Schema.define(:version => 20121119153944) do
|
|
|
343
341
|
end
|
|
344
342
|
|
|
345
343
|
add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
|
|
346
|
-
add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
|
|
347
|
-
add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
|
|
348
344
|
add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
|
|
349
345
|
add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
|
|
350
346
|
add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
|
data/spec/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/spec/fixtures/items.yml
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
item_00001:
|
|
3
3
|
updated_at: 2007-08-24 23:46:00.484813 +09:00
|
|
4
4
|
item_identifier: '00001'
|
|
5
|
-
circulation_status_id: 2
|
|
6
|
-
checkout_type_id: 1
|
|
7
5
|
shelf_id: 1
|
|
8
6
|
call_number:
|
|
9
7
|
id: 1
|
|
@@ -12,8 +10,6 @@ item_00001:
|
|
|
12
10
|
item_00002:
|
|
13
11
|
updated_at: 2007-08-24 23:46:01.641413 +09:00
|
|
14
12
|
item_identifier: '00002'
|
|
15
|
-
circulation_status_id: 2
|
|
16
|
-
checkout_type_id: 1
|
|
17
13
|
shelf_id: 1
|
|
18
14
|
call_number:
|
|
19
15
|
id: 2
|
|
@@ -22,8 +18,6 @@ item_00002:
|
|
|
22
18
|
item_00003:
|
|
23
19
|
updated_at: 2007-08-24 23:46:02.502569 +09:00
|
|
24
20
|
item_identifier: '00003'
|
|
25
|
-
circulation_status_id: 2
|
|
26
|
-
checkout_type_id: 2
|
|
27
21
|
shelf_id: 1
|
|
28
22
|
call_number:
|
|
29
23
|
id: 3
|
|
@@ -32,8 +26,6 @@ item_00003:
|
|
|
32
26
|
item_00004:
|
|
33
27
|
updated_at: 2007-08-24 23:46:03.520781 +09:00
|
|
34
28
|
item_identifier: '00004'
|
|
35
|
-
circulation_status_id: 2
|
|
36
|
-
checkout_type_id: 1
|
|
37
29
|
shelf_id: 1
|
|
38
30
|
call_number:
|
|
39
31
|
id: 4
|
|
@@ -42,8 +34,6 @@ item_00004:
|
|
|
42
34
|
item_00005:
|
|
43
35
|
updated_at: 2007-08-24 23:46:04.538073 +09:00
|
|
44
36
|
item_identifier: '00005'
|
|
45
|
-
circulation_status_id: 2
|
|
46
|
-
checkout_type_id: 2
|
|
47
37
|
shelf_id: 1
|
|
48
38
|
call_number:
|
|
49
39
|
id: 5
|
|
@@ -52,8 +42,6 @@ item_00005:
|
|
|
52
42
|
item_00006:
|
|
53
43
|
updated_at: 2007-08-24 23:46:05.555353 +09:00
|
|
54
44
|
item_identifier: '00006'
|
|
55
|
-
circulation_status_id: 2
|
|
56
|
-
checkout_type_id: 2
|
|
57
45
|
shelf_id: 1
|
|
58
46
|
call_number:
|
|
59
47
|
id: 6
|
|
@@ -62,8 +50,6 @@ item_00006:
|
|
|
62
50
|
item_00007:
|
|
63
51
|
updated_at: 2007-08-24 23:46:06.572631 +09:00
|
|
64
52
|
item_identifier: '00007'
|
|
65
|
-
circulation_status_id: 2
|
|
66
|
-
checkout_type_id: 1
|
|
67
53
|
shelf_id: 1
|
|
68
54
|
call_number:
|
|
69
55
|
id: 7
|
|
@@ -72,8 +58,6 @@ item_00007:
|
|
|
72
58
|
item_00008:
|
|
73
59
|
updated_at: 2007-08-24 23:46:07.589909 +09:00
|
|
74
60
|
item_identifier: '00008'
|
|
75
|
-
circulation_status_id: 2
|
|
76
|
-
checkout_type_id: 2
|
|
77
61
|
shelf_id: 1
|
|
78
62
|
call_number:
|
|
79
63
|
id: 8
|
|
@@ -82,8 +66,6 @@ item_00008:
|
|
|
82
66
|
item_00009:
|
|
83
67
|
updated_at: 2007-08-24 23:46:08.607081 +09:00
|
|
84
68
|
item_identifier: '00009'
|
|
85
|
-
circulation_status_id: 2
|
|
86
|
-
checkout_type_id: 1
|
|
87
69
|
shelf_id: 4
|
|
88
70
|
call_number:
|
|
89
71
|
id: 9
|
|
@@ -92,8 +74,6 @@ item_00009:
|
|
|
92
74
|
item_00010:
|
|
93
75
|
updated_at: 2007-08-24 23:46:09.624281 +09:00
|
|
94
76
|
item_identifier: '00010'
|
|
95
|
-
circulation_status_id: 2
|
|
96
|
-
checkout_type_id: 2
|
|
97
77
|
shelf_id: 1
|
|
98
78
|
call_number:
|
|
99
79
|
id: 10
|
|
@@ -102,8 +82,6 @@ item_00010:
|
|
|
102
82
|
item_00011:
|
|
103
83
|
updated_at: 2007-08-24 23:46:10.484813 +09:00
|
|
104
84
|
item_identifier: '00011'
|
|
105
|
-
circulation_status_id: 2
|
|
106
|
-
checkout_type_id: 1
|
|
107
85
|
shelf_id: 1
|
|
108
86
|
call_number:
|
|
109
87
|
id: 11
|
|
@@ -112,8 +90,6 @@ item_00011:
|
|
|
112
90
|
item_00012:
|
|
113
91
|
updated_at: 2007-08-24 23:46:11.484813 +09:00
|
|
114
92
|
item_identifier: '00012'
|
|
115
|
-
circulation_status_id: 3
|
|
116
|
-
checkout_type_id: 2
|
|
117
93
|
shelf_id: 1
|
|
118
94
|
call_number:
|
|
119
95
|
id: 12
|
|
@@ -122,8 +98,6 @@ item_00012:
|
|
|
122
98
|
item_00013:
|
|
123
99
|
updated_at: 2007-08-24 23:46:12.484813 +09:00
|
|
124
100
|
item_identifier: '00013'
|
|
125
|
-
circulation_status_id: 10
|
|
126
|
-
checkout_type_id: 1
|
|
127
101
|
shelf_id: 1
|
|
128
102
|
call_number:
|
|
129
103
|
id: 13
|
|
@@ -132,8 +106,6 @@ item_00013:
|
|
|
132
106
|
item_00014:
|
|
133
107
|
updated_at: 2007-08-24 23:46:13.484813 +09:00
|
|
134
108
|
item_identifier: '00014'
|
|
135
|
-
circulation_status_id: 10
|
|
136
|
-
checkout_type_id: 2
|
|
137
109
|
shelf_id: 1
|
|
138
110
|
call_number:
|
|
139
111
|
id: 14
|
|
@@ -142,8 +114,6 @@ item_00014:
|
|
|
142
114
|
item_00015:
|
|
143
115
|
updated_at: 2007-08-24 23:46:14.484813 +09:00
|
|
144
116
|
item_identifier: '00015'
|
|
145
|
-
circulation_status_id: 10
|
|
146
|
-
checkout_type_id: 3
|
|
147
117
|
shelf_id: 1
|
|
148
118
|
call_number:
|
|
149
119
|
id: 15
|
|
@@ -152,8 +122,6 @@ item_00015:
|
|
|
152
122
|
item_00016:
|
|
153
123
|
updated_at: 2007-08-24 23:46:15.484813 +09:00
|
|
154
124
|
item_identifier: '00016'
|
|
155
|
-
circulation_status_id: 10
|
|
156
|
-
checkout_type_id: 2
|
|
157
125
|
shelf_id: 1
|
|
158
126
|
call_number:
|
|
159
127
|
id: 16
|
|
@@ -162,8 +130,6 @@ item_00016:
|
|
|
162
130
|
item_00017:
|
|
163
131
|
updated_at: 2007-08-24 23:46:16.484813 +09:00
|
|
164
132
|
item_identifier: '00017'
|
|
165
|
-
circulation_status_id: 10
|
|
166
|
-
checkout_type_id: 3
|
|
167
133
|
shelf_id: 1
|
|
168
134
|
call_number:
|
|
169
135
|
id: 17
|
|
@@ -172,8 +138,6 @@ item_00017:
|
|
|
172
138
|
item_00018:
|
|
173
139
|
updated_at: 2007-08-24 23:46:17.484813 +09:00
|
|
174
140
|
item_identifier: '00018'
|
|
175
|
-
circulation_status_id: 10
|
|
176
|
-
checkout_type_id: 3
|
|
177
141
|
shelf_id: 1
|
|
178
142
|
call_number:
|
|
179
143
|
id: 18
|
|
@@ -182,8 +146,6 @@ item_00018:
|
|
|
182
146
|
item_00019:
|
|
183
147
|
updated_at: 2007-08-24 23:46:18.484813 +09:00
|
|
184
148
|
item_identifier: '00019'
|
|
185
|
-
circulation_status_id: 2
|
|
186
|
-
checkout_type_id: 3
|
|
187
149
|
shelf_id: 1
|
|
188
150
|
call_number:
|
|
189
151
|
id: 19
|
|
@@ -192,8 +154,6 @@ item_00019:
|
|
|
192
154
|
item_00020:
|
|
193
155
|
updated_at: 2007-08-24 23:46:19.484813 +09:00
|
|
194
156
|
item_identifier: '00020'
|
|
195
|
-
circulation_status_id: 13
|
|
196
|
-
checkout_type_id: 3
|
|
197
157
|
shelf_id: 1
|
|
198
158
|
call_number:
|
|
199
159
|
id: 20
|
|
@@ -202,8 +162,6 @@ item_00020:
|
|
|
202
162
|
item_00021:
|
|
203
163
|
updated_at: 2007-08-24 23:46:20.484813 +09:00
|
|
204
164
|
item_identifier: '00021'
|
|
205
|
-
circulation_status_id: 2
|
|
206
|
-
checkout_type_id: 3
|
|
207
165
|
shelf_id: 1
|
|
208
166
|
call_number:
|
|
209
167
|
id: 21
|
|
@@ -211,10 +169,6 @@ item_00021:
|
|
|
211
169
|
created_at: 2007-08-24 23:46:20.484813 +09:00
|
|
212
170
|
|
|
213
171
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
172
|
# == Schema Information
|
|
219
173
|
#
|
|
220
174
|
# Table name: items
|
|
@@ -222,14 +176,11 @@ item_00021:
|
|
|
222
176
|
# id :integer not null, primary key
|
|
223
177
|
# call_number :string(255)
|
|
224
178
|
# item_identifier :string(255)
|
|
225
|
-
# circulation_status_id :integer default(5), not null
|
|
226
|
-
# checkout_type_id :integer default(1), not null
|
|
227
179
|
# created_at :datetime
|
|
228
180
|
# updated_at :datetime
|
|
229
181
|
# deleted_at :datetime
|
|
230
182
|
# shelf_id :integer default(1), not null
|
|
231
183
|
# include_supplements :boolean default(FALSE), not null
|
|
232
|
-
# checkouts_count :integer default(0), not null
|
|
233
184
|
# owns_count :integer default(0), not null
|
|
234
185
|
# note :text
|
|
235
186
|
# url :string(255)
|
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.pre11
|
|
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-04-
|
|
11
|
+
date: 2013-04-17 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.pre31
|
|
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.pre31
|
|
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.pre21
|
|
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.pre21
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: sunspot_solr
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -216,7 +216,6 @@ files:
|
|
|
216
216
|
- lib/enju_bookmark.rb
|
|
217
217
|
- lib/generators/enju_bookmark/setup/setup_generator.rb
|
|
218
218
|
- lib/generators/enju_bookmark/setup/USAGE
|
|
219
|
-
- lib/generators/enju_bookmark/views_generator.rb
|
|
220
219
|
- lib/tasks/enju_bookmark_tasks.rake
|
|
221
220
|
- MIT-LICENSE
|
|
222
221
|
- Rakefile
|
|
@@ -407,7 +406,7 @@ files:
|
|
|
407
406
|
- spec/dummy/solr/conf/stopwords.txt
|
|
408
407
|
- spec/dummy/solr/conf/synonyms.txt
|
|
409
408
|
- spec/dummy/solr/data/test/index/segments.gen
|
|
410
|
-
- spec/dummy/solr/data/test/index/
|
|
409
|
+
- spec/dummy/solr/data/test/index/segments_eq
|
|
411
410
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
|
412
411
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
|
413
412
|
- spec/factories/bookmark.rb
|
|
@@ -652,7 +651,7 @@ test_files:
|
|
|
652
651
|
- spec/dummy/solr/conf/stopwords.txt
|
|
653
652
|
- spec/dummy/solr/conf/synonyms.txt
|
|
654
653
|
- spec/dummy/solr/data/test/index/segments.gen
|
|
655
|
-
- spec/dummy/solr/data/test/index/
|
|
654
|
+
- spec/dummy/solr/data/test/index/segments_eq
|
|
656
655
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
|
657
656
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
|
658
657
|
- spec/factories/bookmark.rb
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
module EnjuBookmark
|
|
2
|
-
module Generators
|
|
3
|
-
class ViewsGenerator < Rails::Generators::Base
|
|
4
|
-
source_root File.expand_path('../../../../app/views', __FILE__)
|
|
5
|
-
|
|
6
|
-
def copy_files
|
|
7
|
-
directories = %w(
|
|
8
|
-
bookmark_stat_has_manifestations
|
|
9
|
-
bookmark_stats
|
|
10
|
-
bookmarks
|
|
11
|
-
manifestations
|
|
12
|
-
tags
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
directories.each do |dir|
|
|
16
|
-
directory dir, "app/views/#{dir}"
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
Binary file
|