enju_inventory 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +5 -0
- data/lib/enju_inventory/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +14 -13
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/private/system/inventory_files/inventories/000/000/004/original/inventory_file_sample.tsv +7 -0
- data/spec/support/controller_macros.rb +3 -3
- metadata +35 -28
File without changes
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,14 +11,14 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20120413100431) do
|
15
15
|
|
16
16
|
create_table "inventories", :force => true do |t|
|
17
17
|
t.integer "item_id"
|
18
18
|
t.integer "inventory_file_id"
|
19
19
|
t.text "note"
|
20
|
-
t.datetime "created_at"
|
21
|
-
t.datetime "updated_at"
|
20
|
+
t.datetime "created_at", :null => false
|
21
|
+
t.datetime "updated_at", :null => false
|
22
22
|
end
|
23
23
|
|
24
24
|
add_index "inventories", ["inventory_file_id"], :name => "index_inventories_on_inventory_file_id"
|
@@ -31,12 +31,13 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
31
31
|
t.string "file_hash"
|
32
32
|
t.integer "user_id"
|
33
33
|
t.text "note"
|
34
|
-
t.datetime "created_at"
|
35
|
-
t.datetime "updated_at"
|
34
|
+
t.datetime "created_at", :null => false
|
35
|
+
t.datetime "updated_at", :null => false
|
36
36
|
t.string "inventory_file_name"
|
37
37
|
t.string "inventory_content_type"
|
38
38
|
t.integer "inventory_file_size"
|
39
39
|
t.datetime "inventory_updated_at"
|
40
|
+
t.string "fingerprint"
|
40
41
|
end
|
41
42
|
|
42
43
|
add_index "inventory_files", ["file_hash"], :name => "index_inventory_files_on_file_hash"
|
@@ -47,8 +48,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
47
48
|
t.string "item_identifier"
|
48
49
|
t.integer "circulation_status_id", :default => 5, :null => false
|
49
50
|
t.integer "checkout_type_id", :default => 1, :null => false
|
50
|
-
t.datetime "created_at"
|
51
|
-
t.datetime "updated_at"
|
51
|
+
t.datetime "created_at", :null => false
|
52
|
+
t.datetime "updated_at", :null => false
|
52
53
|
t.datetime "deleted_at"
|
53
54
|
t.integer "shelf_id", :default => 1, :null => false
|
54
55
|
t.integer "basket_id"
|
@@ -76,15 +77,15 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
76
77
|
t.text "display_name"
|
77
78
|
t.text "note"
|
78
79
|
t.integer "position"
|
79
|
-
t.datetime "created_at"
|
80
|
-
t.datetime "updated_at"
|
80
|
+
t.datetime "created_at", :null => false
|
81
|
+
t.datetime "updated_at", :null => false
|
81
82
|
end
|
82
83
|
|
83
84
|
create_table "user_has_roles", :force => true do |t|
|
84
85
|
t.integer "user_id"
|
85
86
|
t.integer "role_id"
|
86
|
-
t.datetime "created_at"
|
87
|
-
t.datetime "updated_at"
|
87
|
+
t.datetime "created_at", :null => false
|
88
|
+
t.datetime "updated_at", :null => false
|
88
89
|
end
|
89
90
|
|
90
91
|
create_table "users", :force => true do |t|
|
@@ -93,8 +94,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
93
94
|
t.string "username"
|
94
95
|
t.text "note"
|
95
96
|
t.string "locale"
|
96
|
-
t.datetime "created_at"
|
97
|
-
t.datetime "updated_at"
|
97
|
+
t.datetime "created_at", :null => false
|
98
|
+
t.datetime "updated_at", :null => false
|
98
99
|
t.string "email", :default => "", :null => false
|
99
100
|
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
100
101
|
t.string "reset_password_token"
|
Binary file
|
@@ -2,14 +2,14 @@ module ControllerMacros
|
|
2
2
|
def login_admin
|
3
3
|
before(:each) do
|
4
4
|
@request.env["devise.mapping"] = Devise.mappings[:admin]
|
5
|
-
sign_in
|
5
|
+
sign_in FactoryGirl.create(:admin)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
9
|
def login_librarian
|
10
10
|
before(:each) do
|
11
11
|
@request.env["devise.mapping"] = Devise.mappings[:user]
|
12
|
-
user =
|
12
|
+
user = FactoryGirl.create(:librarian)
|
13
13
|
sign_in user
|
14
14
|
end
|
15
15
|
end
|
@@ -17,7 +17,7 @@ module ControllerMacros
|
|
17
17
|
def login_user
|
18
18
|
before(:each) do
|
19
19
|
@request.env["devise.mapping"] = Devise.mappings[:user]
|
20
|
-
user =
|
20
|
+
user = FactoryGirl.create(:user)
|
21
21
|
sign_in user
|
22
22
|
end
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_inventory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70160727261820 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3.
|
21
|
+
version: '3.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70160727261820
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: devise
|
27
|
-
requirement: &
|
27
|
+
requirement: &70160727276880 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70160727276880
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: cancan
|
38
|
-
requirement: &
|
38
|
+
requirement: &70160727275440 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,21 +43,21 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70160727275440
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: paperclip
|
49
|
-
requirement: &
|
49
|
+
requirement: &70160727274000 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.7'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70160727274000
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: inherited_resources
|
60
|
-
requirement: &
|
60
|
+
requirement: &70160727272660 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70160727272660
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: will_paginate
|
71
|
-
requirement: &
|
71
|
+
requirement: &70160727271120 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70160727271120
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: sunspot_rails
|
82
|
-
requirement: &
|
82
|
+
requirement: &70160727285720 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70160727285720
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: sunspot_solr
|
93
|
-
requirement: &
|
93
|
+
requirement: &70160727283280 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70160727283280
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: sqlite3
|
104
|
-
requirement: &
|
104
|
+
requirement: &70160727282640 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70160727282640
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: rspec-rails
|
115
|
-
requirement: &
|
115
|
+
requirement: &70160727282140 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,18 +120,18 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70160727282140
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: factory_girl_rails
|
126
|
-
requirement: &
|
126
|
+
requirement: &70160727281260 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '3.0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *70160727281260
|
135
135
|
description: Inventory management for Next-L Enju
|
136
136
|
email:
|
137
137
|
- tanabe@mwr.mediacom.keio.ac.jp
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- db/migrate/20081117143156_create_inventory_files.rb
|
158
158
|
- db/migrate/20081117143455_create_inventories.rb
|
159
159
|
- db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
|
160
|
+
- db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb
|
160
161
|
- lib/enju_inventory/engine.rb
|
161
162
|
- lib/enju_inventory/version.rb
|
162
163
|
- lib/enju_inventory.rb
|
@@ -199,13 +200,16 @@ files:
|
|
199
200
|
- spec/dummy/config/locales/en.yml
|
200
201
|
- spec/dummy/config/routes.rb
|
201
202
|
- spec/dummy/config.ru
|
203
|
+
- spec/dummy/db/development.sqlite3
|
202
204
|
- spec/dummy/db/migrate/006_create_items.rb
|
203
205
|
- spec/dummy/db/migrate/20111201121844_create_roles.rb
|
204
206
|
- spec/dummy/db/migrate/20111201155456_create_users.rb
|
205
207
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|
206
208
|
- spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
|
207
209
|
- spec/dummy/db/schema.rb
|
210
|
+
- spec/dummy/db/test.sqlite3
|
208
211
|
- spec/dummy/private/system/inventories/4/original/inventory_file_sample.tsv
|
212
|
+
- spec/dummy/private/system/inventory_files/inventories/000/000/004/original/inventory_file_sample.tsv
|
209
213
|
- spec/dummy/public/404.html
|
210
214
|
- spec/dummy/public/422.html
|
211
215
|
- spec/dummy/public/500.html
|
@@ -283,13 +287,16 @@ test_files:
|
|
283
287
|
- spec/dummy/config/locales/en.yml
|
284
288
|
- spec/dummy/config/routes.rb
|
285
289
|
- spec/dummy/config.ru
|
290
|
+
- spec/dummy/db/development.sqlite3
|
286
291
|
- spec/dummy/db/migrate/006_create_items.rb
|
287
292
|
- spec/dummy/db/migrate/20111201121844_create_roles.rb
|
288
293
|
- spec/dummy/db/migrate/20111201155456_create_users.rb
|
289
294
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|
290
295
|
- spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
|
291
296
|
- spec/dummy/db/schema.rb
|
297
|
+
- spec/dummy/db/test.sqlite3
|
292
298
|
- spec/dummy/private/system/inventories/4/original/inventory_file_sample.tsv
|
299
|
+
- spec/dummy/private/system/inventory_files/inventories/000/000/004/original/inventory_file_sample.tsv
|
293
300
|
- spec/dummy/public/404.html
|
294
301
|
- spec/dummy/public/422.html
|
295
302
|
- spec/dummy/public/500.html
|