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.
@@ -0,0 +1,5 @@
1
+ class AddFingerprintToInventoryFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :inventory_files, :fingerprint, :string
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuInventory
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
File without changes
@@ -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 => 20111201163718) do
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 Factory.create(:admin)
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 = Factory.create(:librarian)
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 = Factory.create(: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
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-02-25 00:00:00.000000000 Z
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: &70251689628600 !ruby/object:Gem::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.1'
21
+ version: '3.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70251689628600
24
+ version_requirements: *70160727261820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: devise
27
- requirement: &70251689628180 !ruby/object:Gem::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: *70251689628180
35
+ version_requirements: *70160727276880
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: cancan
38
- requirement: &70251689627720 !ruby/object:Gem::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: *70251689627720
46
+ version_requirements: *70160727275440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: paperclip
49
- requirement: &70251689627300 !ruby/object:Gem::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: '0'
54
+ version: '2.7'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70251689627300
57
+ version_requirements: *70160727274000
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: inherited_resources
60
- requirement: &70251689626880 !ruby/object:Gem::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: *70251689626880
68
+ version_requirements: *70160727272660
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: will_paginate
71
- requirement: &70251689626460 !ruby/object:Gem::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: *70251689626460
79
+ version_requirements: *70160727271120
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: sunspot_rails
82
- requirement: &70251689626040 !ruby/object:Gem::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: *70251689626040
90
+ version_requirements: *70160727285720
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: sunspot_solr
93
- requirement: &70251689625620 !ruby/object:Gem::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: *70251689625620
101
+ version_requirements: *70160727283280
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: sqlite3
104
- requirement: &70251689625200 !ruby/object:Gem::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: *70251689625200
112
+ version_requirements: *70160727282640
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rspec-rails
115
- requirement: &70251689624780 !ruby/object:Gem::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: *70251689624780
123
+ version_requirements: *70160727282140
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: factory_girl_rails
126
- requirement: &70251689624280 !ruby/object:Gem::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: '1.7'
131
+ version: '3.0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70251689624280
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