enju_ndl 0.1.0.pre14 → 0.1.0.pre15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/enju_ndl/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
- metadata +8 -11
- data/lib/generators/enju_ndl/setup/USAGE +0 -8
- data/lib/generators/enju_ndl/setup/setup_generator.rb +0 -10
- data/lib/generators/enju_ndl/views_generator.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7724f941008ac6c3603488b766b17fb127ea9f36
|
4
|
+
data.tar.gz: 9e7be3c0896a08cb15e563c6705779608fb7392d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caaeb116d97aa59863e5e855045e706d45dc50e06d854ce1a06414f72b726eb7c4d50bf94cb5233cfd04a8cf72688dd947bdaf080bc3fdaffd567abf61a7fff1
|
7
|
+
data.tar.gz: 90133bc77a550346c3aeb574f60b91ab3612aa4fee8d016c8b2de62b1b9b89c9b4b21d076d4669f2c8bf119f464e8bcadc6206cc83b3cf4c633280e6c9e91e5d
|
data/lib/enju_ndl/version.rb
CHANGED
@@ -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
@@ -155,28 +155,24 @@ ActiveRecord::Schema.define(:version => 20121116033446) do
|
|
155
155
|
create_table "items", :force => true do |t|
|
156
156
|
t.string "call_number"
|
157
157
|
t.string "item_identifier"
|
158
|
-
t.
|
159
|
-
t.
|
160
|
-
t.datetime "created_at", :null => false
|
161
|
-
t.datetime "updated_at", :null => false
|
158
|
+
t.datetime "created_at", :null => false
|
159
|
+
t.datetime "updated_at", :null => false
|
162
160
|
t.datetime "deleted_at"
|
163
|
-
t.integer "shelf_id",
|
164
|
-
t.boolean "include_supplements",
|
161
|
+
t.integer "shelf_id", :default => 1, :null => false
|
162
|
+
t.boolean "include_supplements", :default => false, :null => false
|
165
163
|
t.text "note"
|
166
164
|
t.string "url"
|
167
165
|
t.integer "price"
|
168
|
-
t.integer "lock_version",
|
169
|
-
t.integer "required_role_id",
|
166
|
+
t.integer "lock_version", :default => 0, :null => false
|
167
|
+
t.integer "required_role_id", :default => 1, :null => false
|
170
168
|
t.string "state"
|
171
|
-
t.integer "required_score",
|
169
|
+
t.integer "required_score", :default => 0, :null => false
|
172
170
|
t.datetime "acquired_at"
|
173
171
|
t.integer "bookstore_id"
|
174
172
|
t.integer "budget_type_id"
|
175
173
|
end
|
176
174
|
|
177
175
|
add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
|
178
|
-
add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
|
179
|
-
add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
|
180
176
|
add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
|
181
177
|
add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
|
182
178
|
add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_ndl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre15
|
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
|
@@ -128,42 +128,42 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.1.0.
|
131
|
+
version: 0.1.0.pre31
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ~>
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.1.0.
|
138
|
+
version: 0.1.0.pre31
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: enju_subject
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.1.0.
|
145
|
+
version: 0.1.0.pre12
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.1.0.
|
152
|
+
version: 0.1.0.pre12
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: enju_question
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ~>
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.1.0.
|
159
|
+
version: 0.1.0.pre8
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - ~>
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.1.0.
|
166
|
+
version: 0.1.0.pre8
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: sunspot_solr
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,9 +212,6 @@ files:
|
|
212
212
|
- lib/enju_ndl/ndl_search.rb
|
213
213
|
- lib/enju_ndl/version.rb
|
214
214
|
- lib/enju_ndl.rb
|
215
|
-
- lib/generators/enju_ndl/setup/setup_generator.rb
|
216
|
-
- lib/generators/enju_ndl/setup/USAGE
|
217
|
-
- lib/generators/enju_ndl/views_generator.rb
|
218
215
|
- lib/tasks/enju_ndl_tasks.rake
|
219
216
|
- MIT-LICENSE
|
220
217
|
- Rakefile
|
@@ -1,10 +0,0 @@
|
|
1
|
-
class EnjuNdl::SetupGenerator < Rails::Generators::Base
|
2
|
-
source_root File.expand_path('../templates', __FILE__)
|
3
|
-
|
4
|
-
def setup
|
5
|
-
inject_into_class 'app/models/manifestation.rb', Manifestation,
|
6
|
-
" enju_ndl_ndl_search\n"
|
7
|
-
inject_into_class 'app/models/import_request.rb', ImportRequest,
|
8
|
-
" enju_ndl_ndl_search\n"
|
9
|
-
end
|
10
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module EnjuNdl
|
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
|
-
layouts
|
9
|
-
ndl_books
|
10
|
-
)
|
11
|
-
|
12
|
-
directories.each do |dir|
|
13
|
-
directory dir, "app/views/#{dir}"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|