enju_library 0.1.0.pre39 → 0.1.0.pre40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/accepts_controller.rb +8 -3
- data/app/controllers/baskets_controller.rb +8 -3
- data/app/controllers/bookstores_controller.rb +12 -4
- data/app/controllers/budget_types_controller.rb +11 -4
- data/app/controllers/libraries_controller.rb +12 -4
- data/app/controllers/library_groups_controller.rb +14 -2
- data/app/controllers/request_status_types_controller.rb +9 -4
- data/app/controllers/request_types_controller.rb +9 -4
- data/app/controllers/search_engines_controller.rb +12 -4
- data/app/controllers/shelves_controller.rb +11 -4
- data/app/controllers/subscribes_controller.rb +11 -4
- data/app/controllers/subscriptions_controller.rb +11 -4
- data/app/models/accept.rb +0 -3
- data/app/models/basket.rb +0 -1
- data/app/models/bookstore.rb +0 -2
- data/app/models/budget_type.rb +0 -1
- data/app/models/color.rb +1 -1
- data/app/models/library.rb +0 -5
- data/app/models/library_group.rb +0 -7
- data/app/models/request_status_type.rb +0 -1
- data/app/models/request_type.rb +0 -1
- data/app/models/search_engine.rb +0 -2
- data/app/models/shelf.rb +8 -7
- data/app/models/subscribe.rb +0 -1
- data/app/models/subscription.rb +0 -1
- data/lib/enju_library/engine.rb +0 -2
- data/lib/enju_library/version.rb +1 -1
- data/spec/controllers/baskets_controller_spec.rb +6 -6
- data/spec/controllers/budget_types_controller_spec.rb +6 -6
- data/spec/dummy/app/models/user.rb +0 -1
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +1 -2
- data/spec/dummy/config/environments/test.rb +1 -1
- data/spec/dummy/db/schema.rb +3 -1
- data/spec/fixtures/events.yml +13 -39
- metadata +25 -47
- data/spec/dummy/script/rails +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43ae415d2c7916d8d10576cb4e6f6e6ca35c4efc
|
4
|
+
data.tar.gz: 2c2cd4dcfc3dd1715278b4b441bb73d7422dc7d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8e071bad6eb78a01366fcaffd2c653185773b2d04b1e6b5d8b9c3fad6e12c9167dad62184fa1cdee1ecbf6c894f4d8a7421df2e1e8dfd5f7149581c574a3c0b
|
7
|
+
data.tar.gz: a105c67e432856dcb48cde413e792064f7b4623e11c22e5651d7b7c7ff4efe58dc8671d1502336d00993a23f87e94ae0d8fbce635e69f87b3c59ff23fcfc6a88
|
@@ -81,7 +81,7 @@ class AcceptsController < ApplicationController
|
|
81
81
|
|
82
82
|
respond_to do |format|
|
83
83
|
if @accept.save
|
84
|
-
flash[:message] << t('accept.successfully_accepted', model:
|
84
|
+
flash[:message] << t('accept.successfully_accepted', model: t('activerecord.models.accept'))
|
85
85
|
format.html { redirect_to accepts_url(basket_id: @basket.id) }
|
86
86
|
format.json { render json: @accept, status: :created, location: @accept }
|
87
87
|
format.js { redirect_to accepts_url(basket_id: @basket.id, format: :js) }
|
@@ -98,8 +98,8 @@ class AcceptsController < ApplicationController
|
|
98
98
|
# PUT /accepts/1.json
|
99
99
|
def update
|
100
100
|
respond_to do |format|
|
101
|
-
if @accept.update_attributes(
|
102
|
-
format.html { redirect_to @accept, notice:
|
101
|
+
if @accept.update_attributes(accept_params)
|
102
|
+
format.html { redirect_to @accept, notice: t('controller.successfully_updated', model: t('activerecord.models.accept')) }
|
103
103
|
format.json { head :no_content }
|
104
104
|
else
|
105
105
|
format.html { render action: "edit" }
|
@@ -118,4 +118,9 @@ class AcceptsController < ApplicationController
|
|
118
118
|
format.json { head :no_content }
|
119
119
|
end
|
120
120
|
end
|
121
|
+
|
122
|
+
private
|
123
|
+
def accept_params
|
124
|
+
params.require(:accept).permit(:item_identifier, :librarian_id, :item_id)
|
125
|
+
end
|
121
126
|
end
|
@@ -45,7 +45,7 @@ class BasketsController < ApplicationController
|
|
45
45
|
# POST /baskets
|
46
46
|
# POST /baskets.json
|
47
47
|
def create
|
48
|
-
@basket = Basket.new(
|
48
|
+
@basket = Basket.new(basket_params)
|
49
49
|
@user = Profile.where(user_number: @basket.user_number).first.try(:user) if @basket.user_number.present?
|
50
50
|
if @user
|
51
51
|
@basket.user = @user
|
@@ -53,7 +53,7 @@ class BasketsController < ApplicationController
|
|
53
53
|
|
54
54
|
respond_to do |format|
|
55
55
|
if @basket.save
|
56
|
-
format.html { redirect_to new_checked_item_url(basket_id: @basket.id), notice:
|
56
|
+
format.html { redirect_to new_checked_item_url(basket_id: @basket.id), notice: t('controller.successfully_created', model: t('activerecord.models.basket')) }
|
57
57
|
format.json { render json: @basket, status: :created, location: @basket }
|
58
58
|
else
|
59
59
|
format.html { render action: "new" }
|
@@ -82,7 +82,7 @@ class BasketsController < ApplicationController
|
|
82
82
|
#if @basket.update_attributes({})
|
83
83
|
if @basket.save(:validate => false)
|
84
84
|
# 貸出完了時
|
85
|
-
format.html { redirect_to checkouts_url(user_id: @basket.user.username), notice:
|
85
|
+
format.html { redirect_to checkouts_url(user_id: @basket.user.username), notice: t('basket.checkout_completed') }
|
86
86
|
format.json { head :no_content }
|
87
87
|
else
|
88
88
|
format.html { redirect_to checked_items_url(basket_id: @basket.id) }
|
@@ -102,4 +102,9 @@ class BasketsController < ApplicationController
|
|
102
102
|
format.json { head :no_content }
|
103
103
|
end
|
104
104
|
end
|
105
|
+
|
106
|
+
private
|
107
|
+
def basket_params
|
108
|
+
params.require(:basket).permit(:note, :user_number)
|
109
|
+
end
|
105
110
|
end
|
@@ -38,11 +38,11 @@ class BookstoresController < ApplicationController
|
|
38
38
|
# POST /bookstores
|
39
39
|
# POST /bookstores.json
|
40
40
|
def create
|
41
|
-
@bookstore = Bookstore.new(
|
41
|
+
@bookstore = Bookstore.new(bookstore_params)
|
42
42
|
|
43
43
|
respond_to do |format|
|
44
44
|
if @bookstore.save
|
45
|
-
format.html { redirect_to @bookstore, notice:
|
45
|
+
format.html { redirect_to @bookstore, notice: t('controller.successfully_created', model: t('activerecord.models.bookstore')) }
|
46
46
|
format.json { render json: @bookstore, status: :created, location: @bookstore }
|
47
47
|
else
|
48
48
|
format.html { render action: "new" }
|
@@ -60,8 +60,8 @@ class BookstoresController < ApplicationController
|
|
60
60
|
end
|
61
61
|
|
62
62
|
respond_to do |format|
|
63
|
-
if @bookstore.update_attributes(
|
64
|
-
format.html { redirect_to @bookstore, notice:
|
63
|
+
if @bookstore.update_attributes(bookstore_params)
|
64
|
+
format.html { redirect_to @bookstore, notice: t('controller.successfully_updated', model: t('activerecord.models.bookstore')) }
|
65
65
|
format.json { head :no_content }
|
66
66
|
else
|
67
67
|
format.html { render action: "edit" }
|
@@ -80,4 +80,12 @@ class BookstoresController < ApplicationController
|
|
80
80
|
format.json { head :no_content }
|
81
81
|
end
|
82
82
|
end
|
83
|
+
|
84
|
+
private
|
85
|
+
def bookstore_params
|
86
|
+
params.require(:bookstore).permit(
|
87
|
+
:name, :zip_code, :address, :note, :telephone_number,
|
88
|
+
:fax_number, :url
|
89
|
+
)
|
90
|
+
end
|
83
91
|
end
|
@@ -38,11 +38,11 @@ class BudgetTypesController < ApplicationController
|
|
38
38
|
# POST /budget_types
|
39
39
|
# POST /budget_types.json
|
40
40
|
def create
|
41
|
-
@budget_type = BudgetType.new(
|
41
|
+
@budget_type = BudgetType.new(budget_type_params)
|
42
42
|
|
43
43
|
respond_to do |format|
|
44
44
|
if @budget_type.save
|
45
|
-
format.html { redirect_to @budget_type, notice:
|
45
|
+
format.html { redirect_to @budget_type, notice: t('controller.successfully_created', model: t('activerecord.models.budget_type')) }
|
46
46
|
format.json { render json: @budget_type, status: :created, location: @budget_type }
|
47
47
|
else
|
48
48
|
format.html { render action: "new" }
|
@@ -60,8 +60,8 @@ class BudgetTypesController < ApplicationController
|
|
60
60
|
end
|
61
61
|
|
62
62
|
respond_to do |format|
|
63
|
-
if @budget_type.update_attributes(
|
64
|
-
format.html { redirect_to @budget_type, notice:
|
63
|
+
if @budget_type.update_attributes(budget_type_params)
|
64
|
+
format.html { redirect_to @budget_type, notice: t('controller.successfully_updated', model: t('activerecord.models.budget_type')) }
|
65
65
|
format.json { head :no_content }
|
66
66
|
else
|
67
67
|
format.html { render action: "edit" }
|
@@ -80,4 +80,11 @@ class BudgetTypesController < ApplicationController
|
|
80
80
|
format.json { head :no_content }
|
81
81
|
end
|
82
82
|
end
|
83
|
+
|
84
|
+
private
|
85
|
+
def budget_type_params
|
86
|
+
params.require(:budget_type).permit(
|
87
|
+
:name, :display_name, :note, :position
|
88
|
+
)
|
89
|
+
end
|
83
90
|
end
|
@@ -70,11 +70,11 @@ class LibrariesController < ApplicationController
|
|
70
70
|
# POST /libraries
|
71
71
|
# POST /libraries.json
|
72
72
|
def create
|
73
|
-
@library = Library.new(
|
73
|
+
@library = Library.new(library_params)
|
74
74
|
|
75
75
|
respond_to do |format|
|
76
76
|
if @library.save
|
77
|
-
format.html { redirect_to @library, notice:
|
77
|
+
format.html { redirect_to @library, notice: t('controller.successfully_created', model: t('activerecord.models.library')) }
|
78
78
|
format.json { render json: @library, status: :created }
|
79
79
|
else
|
80
80
|
prepare_options
|
@@ -93,8 +93,8 @@ class LibrariesController < ApplicationController
|
|
93
93
|
end
|
94
94
|
|
95
95
|
respond_to do |format|
|
96
|
-
if @library.update_attributes(
|
97
|
-
format.html { redirect_to @library, notice:
|
96
|
+
if @library.update_attributes(library_params)
|
97
|
+
format.html { redirect_to @library, notice: t('controller.successfully_updated', model: t('activerecord.models.library')) }
|
98
98
|
format.json { head :no_content }
|
99
99
|
else
|
100
100
|
@library.name = @library.name_was
|
@@ -117,6 +117,14 @@ class LibrariesController < ApplicationController
|
|
117
117
|
end
|
118
118
|
|
119
119
|
private
|
120
|
+
def library_params
|
121
|
+
params.require(:library).permit(
|
122
|
+
:name, :display_name, :short_display_name, :zip_code, :street,
|
123
|
+
:locality, :region, :telephone_number_1, :telephone_number_2, :fax_number,
|
124
|
+
:note, :call_number_rows, :call_number_delimiter, :library_group_id,
|
125
|
+
:country_id, :opening_hour, :isil, :position
|
126
|
+
)
|
127
|
+
end
|
120
128
|
|
121
129
|
def prepare_options
|
122
130
|
@library_groups = LibraryGroup.all
|
@@ -31,8 +31,8 @@ class LibraryGroupsController < ApplicationController
|
|
31
31
|
# PUT /library_groups/1.json
|
32
32
|
def update
|
33
33
|
respond_to do |format|
|
34
|
-
if @library_group.update_attributes(
|
35
|
-
format.html { redirect_to @library_group, notice:
|
34
|
+
if @library_group.update_attributes(library_group_params)
|
35
|
+
format.html { redirect_to @library_group, notice: t('controller.successfully_updated', model: t('activerecord.models.library_group')) }
|
36
36
|
format.json { head :no_content }
|
37
37
|
else
|
38
38
|
@countries = Country.all
|
@@ -41,4 +41,16 @@ class LibraryGroupsController < ApplicationController
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
44
|
+
|
45
|
+
private
|
46
|
+
def library_group_params
|
47
|
+
params.require(:library_group).permit(
|
48
|
+
:name, :display_name, :short_name, :my_networks,
|
49
|
+
:login_banner, :note, :country_id, :admin_networks, :url,
|
50
|
+
:allow_bookmark_external_url, # EnjuBookmark
|
51
|
+
{
|
52
|
+
:colors_attributes => [:id, :property, :code]
|
53
|
+
}
|
54
|
+
)
|
55
|
+
end
|
44
56
|
end
|
@@ -38,11 +38,11 @@ class RequestStatusTypesController < ApplicationController
|
|
38
38
|
# POST /request_status_types
|
39
39
|
# POST /request_status_types.json
|
40
40
|
def create
|
41
|
-
@request_status_type = RequestStatusType.new(
|
41
|
+
@request_status_type = RequestStatusType.new(request_status_type_params)
|
42
42
|
|
43
43
|
respond_to do |format|
|
44
44
|
if @request_status_type.save
|
45
|
-
format.html { redirect_to @request_status_type, notice:
|
45
|
+
format.html { redirect_to @request_status_type, notice: t('controller.successfully_created', model: t('activerecord.models.request_status_type')) }
|
46
46
|
format.json { render json: @request_status_type, status: :created, location: @request_status_type }
|
47
47
|
else
|
48
48
|
format.html { render action: "new" }
|
@@ -60,8 +60,8 @@ class RequestStatusTypesController < ApplicationController
|
|
60
60
|
end
|
61
61
|
|
62
62
|
respond_to do |format|
|
63
|
-
if @request_status_type.update_attributes(
|
64
|
-
format.html { redirect_to @request_status_type, notice:
|
63
|
+
if @request_status_type.update_attributes(request_status_type_params)
|
64
|
+
format.html { redirect_to @request_status_type, notice: t('controller.successfully_updated', model: t('activerecord.models.request_status_type')) }
|
65
65
|
format.json { head :no_content }
|
66
66
|
else
|
67
67
|
format.html { render action: "edit" }
|
@@ -80,4 +80,9 @@ class RequestStatusTypesController < ApplicationController
|
|
80
80
|
format.json { head :no_content }
|
81
81
|
end
|
82
82
|
end
|
83
|
+
|
84
|
+
private
|
85
|
+
def request_status_type_params
|
86
|
+
params.require(:request_status_type).permit(:name, :display_name, :note)
|
87
|
+
end
|
83
88
|
end
|
@@ -38,11 +38,11 @@ class RequestTypesController < ApplicationController
|
|
38
38
|
# POST /request_types
|
39
39
|
# POST /request_types.json
|
40
40
|
def create
|
41
|
-
@request_type = RequestType.new(
|
41
|
+
@request_type = RequestType.new(request_type_params)
|
42
42
|
|
43
43
|
respond_to do |format|
|
44
44
|
if @request_type.save
|
45
|
-
format.html { redirect_to @request_type, notice:
|
45
|
+
format.html { redirect_to @request_type, notice: t('controller.successfully_created', model: t('activerecord.models.request_type')) }
|
46
46
|
format.json { render json: @request_type, status: :created, location: @request_type }
|
47
47
|
else
|
48
48
|
format.html { render action: "new" }
|
@@ -60,8 +60,8 @@ class RequestTypesController < ApplicationController
|
|
60
60
|
end
|
61
61
|
|
62
62
|
respond_to do |format|
|
63
|
-
if @request_type.update_attributes(
|
64
|
-
format.html { redirect_to @request_type, notice:
|
63
|
+
if @request_type.update_attributes(request_type_params)
|
64
|
+
format.html { redirect_to @request_type, notice: t('controller.successfully_updated', model: t('activerecord.models.request_type')) }
|
65
65
|
format.json { head :no_content }
|
66
66
|
else
|
67
67
|
format.html { render action: "edit" }
|
@@ -80,4 +80,9 @@ class RequestTypesController < ApplicationController
|
|
80
80
|
format.json { head :no_content }
|
81
81
|
end
|
82
82
|
end
|
83
|
+
|
84
|
+
private
|
85
|
+
def request_type_params
|
86
|
+
params.require(:request_type).permit(:name, :display_name, :note)
|
87
|
+
end
|
83
88
|
end
|
@@ -38,11 +38,11 @@ class SearchEnginesController < ApplicationController
|
|
38
38
|
# POST /search_engines
|
39
39
|
# POST /search_engines.json
|
40
40
|
def create
|
41
|
-
@search_engine = SearchEngine.new(
|
41
|
+
@search_engine = SearchEngine.new(search_engine_params)
|
42
42
|
|
43
43
|
respond_to do |format|
|
44
44
|
if @search_engine.save
|
45
|
-
format.html { redirect_to @search_engine, notice:
|
45
|
+
format.html { redirect_to @search_engine, notice: t('controller.successfully_created', model: t('activerecord.models.search_engine')) }
|
46
46
|
format.json { render json: @search_engine, status: :created, location: @search_engine }
|
47
47
|
else
|
48
48
|
format.html { render action: "new" }
|
@@ -60,8 +60,8 @@ class SearchEnginesController < ApplicationController
|
|
60
60
|
end
|
61
61
|
|
62
62
|
respond_to do |format|
|
63
|
-
if @search_engine.update_attributes(
|
64
|
-
format.html { redirect_to @search_engine, notice:
|
63
|
+
if @search_engine.update_attributes(search_engine_params)
|
64
|
+
format.html { redirect_to @search_engine, notice: t('controller.successfully_updated', model: t('activerecord.models.search_engine')) }
|
65
65
|
format.json { head :no_content }
|
66
66
|
else
|
67
67
|
format.html { render action: "edit" }
|
@@ -80,4 +80,12 @@ class SearchEnginesController < ApplicationController
|
|
80
80
|
format.json { head :no_content }
|
81
81
|
end
|
82
82
|
end
|
83
|
+
|
84
|
+
private
|
85
|
+
def search_engine_params
|
86
|
+
params.require(:search_engine).permit(
|
87
|
+
:name, :display_name, :url, :base_url, :http_method,
|
88
|
+
:query_param, :additional_param, :note
|
89
|
+
)
|
90
|
+
end
|
83
91
|
end
|
@@ -81,7 +81,7 @@ class ShelvesController < ApplicationController
|
|
81
81
|
# POST /shelves
|
82
82
|
# POST /shelves.json
|
83
83
|
def create
|
84
|
-
@shelf = Shelf.new(
|
84
|
+
@shelf = Shelf.new(shelf_params)
|
85
85
|
if @library
|
86
86
|
@shelf.library = @library
|
87
87
|
else
|
@@ -90,7 +90,7 @@ class ShelvesController < ApplicationController
|
|
90
90
|
|
91
91
|
respond_to do |format|
|
92
92
|
if @shelf.save
|
93
|
-
format.html { redirect_to @shelf, notice:
|
93
|
+
format.html { redirect_to @shelf, notice: t('controller.successfully_created', model: t('activerecord.models.shelf')) }
|
94
94
|
format.json { render json: @shelf, status: :created, location: @shelf }
|
95
95
|
else
|
96
96
|
@library = Library.first if @shelf.library.nil?
|
@@ -112,8 +112,8 @@ class ShelvesController < ApplicationController
|
|
112
112
|
end
|
113
113
|
|
114
114
|
respond_to do |format|
|
115
|
-
if @shelf.update_attributes(
|
116
|
-
format.html { redirect_to @shelf, notice:
|
115
|
+
if @shelf.update_attributes(shelf_params)
|
116
|
+
format.html { redirect_to @shelf, notice: t('controller.successfully_updated', model: t('activerecord.models.shelf')) }
|
117
117
|
format.json { head :no_content }
|
118
118
|
else
|
119
119
|
@library = Library.first if @library.nil?
|
@@ -133,4 +133,11 @@ class ShelvesController < ApplicationController
|
|
133
133
|
format.json { head :no_content }
|
134
134
|
end
|
135
135
|
end
|
136
|
+
|
137
|
+
private
|
138
|
+
def shelf_params
|
139
|
+
params.require(:shelf).permit(
|
140
|
+
:name, :display_name, :note, :library_id, :closed
|
141
|
+
)
|
142
|
+
end
|
136
143
|
end
|
@@ -42,11 +42,11 @@ class SubscribesController < ApplicationController
|
|
42
42
|
# POST /subscribes
|
43
43
|
# POST /subscribes.json
|
44
44
|
def create
|
45
|
-
@subscribe = Subscribe.new(
|
45
|
+
@subscribe = Subscribe.new(subscribe_params)
|
46
46
|
|
47
47
|
respond_to do |format|
|
48
48
|
if @subscribe.save
|
49
|
-
format.html { redirect_to @subscribe, notice:
|
49
|
+
format.html { redirect_to @subscribe, notice: t('controller.successfully_created', model: t('activerecord.models.subscribe')) }
|
50
50
|
format.json { render json: @subscribe, status: :created, location: @subscribe }
|
51
51
|
else
|
52
52
|
format.html { render action: "new" }
|
@@ -59,8 +59,8 @@ class SubscribesController < ApplicationController
|
|
59
59
|
# PUT /subscribes/1.json
|
60
60
|
def update
|
61
61
|
respond_to do |format|
|
62
|
-
if @subscribe.update_attributes(
|
63
|
-
format.html { redirect_to @subscribe, notice:
|
62
|
+
if @subscribe.update_attributes(subscribe_params)
|
63
|
+
format.html { redirect_to @subscribe, notice: t('controller.successfully_updated', model: t('activerecord.models.subscribe')) }
|
64
64
|
format.json { head :no_content }
|
65
65
|
else
|
66
66
|
format.html { render action: "edit" }
|
@@ -79,4 +79,11 @@ class SubscribesController < ApplicationController
|
|
79
79
|
format.json { head :no_content }
|
80
80
|
end
|
81
81
|
end
|
82
|
+
|
83
|
+
private
|
84
|
+
def subscribe_params
|
85
|
+
params.require(:subscribe).permit(
|
86
|
+
:subscription_id, :work_id, :start_at, :end_at
|
87
|
+
)
|
88
|
+
end
|
82
89
|
end
|
@@ -45,12 +45,12 @@ class SubscriptionsController < ApplicationController
|
|
45
45
|
# POST /subscriptions
|
46
46
|
# POST /subscriptions.json
|
47
47
|
def create
|
48
|
-
@subscription = Subscription.new(
|
48
|
+
@subscription = Subscription.new(subscription_params)
|
49
49
|
@subscription.user = current_user
|
50
50
|
|
51
51
|
respond_to do |format|
|
52
52
|
if @subscription.save
|
53
|
-
format.html { redirect_to @subscription, notice:
|
53
|
+
format.html { redirect_to @subscription, notice: t('controller.successfully_created', model: t('activerecord.models.subscription')) }
|
54
54
|
format.json { render json: @subscription, status: :created, location: @subscription }
|
55
55
|
else
|
56
56
|
format.html { render action: "new" }
|
@@ -62,10 +62,10 @@ class SubscriptionsController < ApplicationController
|
|
62
62
|
# PUT /subscriptions/1
|
63
63
|
# PUT /subscriptions/1.json
|
64
64
|
def update
|
65
|
-
@subscription.assign_attributes(
|
65
|
+
@subscription.assign_attributes(subscription_params)
|
66
66
|
respond_to do |format|
|
67
67
|
if @subscription.save
|
68
|
-
format.html { redirect_to @subscription, notice:
|
68
|
+
format.html { redirect_to @subscription, notice: t('controller.successfully_updated', model: t('activerecord.models.subscription')) }
|
69
69
|
format.json { head :no_content }
|
70
70
|
else
|
71
71
|
format.html { render action: "edit" }
|
@@ -84,4 +84,11 @@ class SubscriptionsController < ApplicationController
|
|
84
84
|
format.json { head :no_content }
|
85
85
|
end
|
86
86
|
end
|
87
|
+
|
88
|
+
private
|
89
|
+
def subscription_params
|
90
|
+
params.require(:subscription).permit(
|
91
|
+
:title, :note, :order_list_id, :user_id
|
92
|
+
)
|
93
|
+
end
|
87
94
|
end
|
data/app/models/accept.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
class Accept < ActiveRecord::Base
|
2
|
-
attr_accessible :item_identifier, :librarian_id, :item_id
|
3
2
|
default_scope { order('accepts.id DESC') }
|
4
3
|
belongs_to :basket
|
5
4
|
belongs_to :item, touch: true
|
@@ -11,8 +10,6 @@ class Accept < ActiveRecord::Base
|
|
11
10
|
validates_presence_of :item_id, message: I18n.t('accept.item_not_found')
|
12
11
|
validates_presence_of :basket_id
|
13
12
|
|
14
|
-
before_save :accept!, on: :create
|
15
|
-
|
16
13
|
attr_accessor :item_identifier
|
17
14
|
|
18
15
|
paginates_per 10
|
data/app/models/basket.rb
CHANGED
data/app/models/bookstore.rb
CHANGED
data/app/models/budget_type.rb
CHANGED
data/app/models/color.rb
CHANGED
data/app/models/library.rb
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
class Library < ActiveRecord::Base
|
3
|
-
attr_accessible :name, :display_name, :short_display_name, :zip_code, :street,
|
4
|
-
:locality, :region, :telephone_number_1, :telephone_number_2, :fax_number,
|
5
|
-
:note, :call_number_rows, :call_number_delimiter, :library_group_id,
|
6
|
-
:country_id, :opening_hour, :isil, :position
|
7
|
-
|
8
3
|
include MasterModel
|
9
4
|
default_scope { order('libraries.position') }
|
10
5
|
scope :real, -> { where('id != 1') }
|
data/app/models/library_group.rb
CHANGED
@@ -1,12 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
class LibraryGroup < ActiveRecord::Base
|
3
|
-
attr_accessible :name, :display_name, :short_name, :my_networks,
|
4
|
-
:login_banner, :note, :country_id, :admin_networks, :url,
|
5
|
-
:colors_attributes
|
6
|
-
if defined?(EnjuBookmark)
|
7
|
-
attr_accessible :allow_bookmark_external_url
|
8
|
-
end
|
9
|
-
|
10
3
|
#include Singleton
|
11
4
|
include MasterModel
|
12
5
|
|
data/app/models/request_type.rb
CHANGED
data/app/models/search_engine.rb
CHANGED
data/app/models/shelf.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
class Shelf < ActiveRecord::Base
|
2
|
-
attr_accessible :name, :display_name, :note, :library_id, :closed
|
3
2
|
include MasterModel
|
4
3
|
scope :real, -> { where('library_id != 1') }
|
5
4
|
belongs_to :library, validate: true
|
@@ -10,6 +9,7 @@ class Shelf < ActiveRecord::Base
|
|
10
9
|
validates :library, presence: true
|
11
10
|
validates_uniqueness_of :display_name, scope: :library_id
|
12
11
|
validates :name, format: { with: /\A[a-z][0-9a-z\-_]{1,253}[0-9a-z]\Z/ }
|
12
|
+
before_update :reset_position
|
13
13
|
|
14
14
|
acts_as_list scope: :library
|
15
15
|
|
@@ -35,15 +35,16 @@ class Shelf < ActiveRecord::Base
|
|
35
35
|
Shelf.find(1)
|
36
36
|
end
|
37
37
|
|
38
|
-
def first?
|
39
|
-
# 必ずposition順に並んでいる
|
40
|
-
return true if library.shelves.first.position == position
|
41
|
-
false
|
42
|
-
end
|
43
|
-
|
44
38
|
def localized_display_name
|
45
39
|
display_name.localize
|
46
40
|
end
|
41
|
+
|
42
|
+
# http://stackoverflow.com/a/12437606
|
43
|
+
def reset_position
|
44
|
+
if library_id_changed?
|
45
|
+
self.position = library.shelves.count > 0 ? library.shelves.last.position + 1 : 1
|
46
|
+
end
|
47
|
+
end
|
47
48
|
end
|
48
49
|
|
49
50
|
# == Schema Information
|
data/app/models/subscribe.rb
CHANGED
data/app/models/subscription.rb
CHANGED
data/lib/enju_library/engine.rb
CHANGED
data/lib/enju_library/version.rb
CHANGED
@@ -193,7 +193,7 @@ describe BasketsController do
|
|
193
193
|
|
194
194
|
describe "with blank params" do
|
195
195
|
it "assigns a newly created basket as @basket" do
|
196
|
-
post :create, :basket => { }
|
196
|
+
post :create, :basket => { note: 'test' }
|
197
197
|
assigns(:basket).should_not be_valid
|
198
198
|
end
|
199
199
|
end
|
@@ -218,7 +218,7 @@ describe BasketsController do
|
|
218
218
|
|
219
219
|
describe "with blank params" do
|
220
220
|
it "assigns a newly created basket as @basket" do
|
221
|
-
post :create, :basket => { }
|
221
|
+
post :create, :basket => { note: 'test' }
|
222
222
|
assigns(:basket).should_not be_valid
|
223
223
|
end
|
224
224
|
end
|
@@ -245,7 +245,7 @@ describe BasketsController do
|
|
245
245
|
end
|
246
246
|
|
247
247
|
it "should not create basket without user_number" do
|
248
|
-
post :create, :basket => { }
|
248
|
+
post :create, :basket => { note: 'test' }
|
249
249
|
assigns(:basket).should_not be_valid
|
250
250
|
response.should be_success
|
251
251
|
end
|
@@ -257,7 +257,7 @@ describe BasketsController do
|
|
257
257
|
end
|
258
258
|
|
259
259
|
it "should not create basket without user_number" do
|
260
|
-
post :create, :basket => { }
|
260
|
+
post :create, :basket => { note: 'test' }
|
261
261
|
assigns(:basket).should_not be_valid
|
262
262
|
response.should be_success
|
263
263
|
end
|
@@ -287,12 +287,12 @@ describe BasketsController do
|
|
287
287
|
describe "When not logged in" do
|
288
288
|
describe "with blank params" do
|
289
289
|
it "assigns a newly created basket as @basket" do
|
290
|
-
post :create, :basket => { }
|
290
|
+
post :create, :basket => { note: 'test' }
|
291
291
|
assigns(:basket).should_not be_valid
|
292
292
|
end
|
293
293
|
|
294
294
|
it "should be redirected to new_user_session_url" do
|
295
|
-
post :create, :basket => { }
|
295
|
+
post :create, :basket => { note: 'test' }
|
296
296
|
assigns(:basket).should_not be_valid
|
297
297
|
assert_response :redirect
|
298
298
|
response.should redirect_to new_user_session_url
|
@@ -84,14 +84,14 @@ describe BudgetTypesController do
|
|
84
84
|
it "assigns a newly created but unsaved budget_type as @budget_type" do
|
85
85
|
# Trigger the behavior that occurs when invalid params are submitted
|
86
86
|
BudgetType.any_instance.stub(:save).and_return(false)
|
87
|
-
post :create, :budget_type => {}
|
87
|
+
post :create, :budget_type => { note: 'test' }
|
88
88
|
assigns(:budget_type).should be_a_new(BudgetType)
|
89
89
|
end
|
90
90
|
|
91
91
|
it "re-renders the 'new' template" do
|
92
92
|
# Trigger the behavior that occurs when invalid params are submitted
|
93
93
|
BudgetType.any_instance.stub(:save).and_return(false)
|
94
|
-
post :create, :budget_type => {}
|
94
|
+
post :create, :budget_type => { note: 'test' }
|
95
95
|
#response.should render_template("new")
|
96
96
|
end
|
97
97
|
end
|
@@ -105,8 +105,8 @@ describe BudgetTypesController do
|
|
105
105
|
# specifies that the BudgetType created on the previous line
|
106
106
|
# receives the :update_attributes message with whatever params are
|
107
107
|
# submitted in the request.
|
108
|
-
BudgetType.any_instance.should_receive(:update_attributes).with({'
|
109
|
-
put :update, :id => budget_type.id, :budget_type => {
|
108
|
+
BudgetType.any_instance.should_receive(:update_attributes).with({'note' => 'test'})
|
109
|
+
put :update, :id => budget_type.id, :budget_type => { note: 'test'}
|
110
110
|
end
|
111
111
|
|
112
112
|
it "assigns the requested budget_type as @budget_type" do
|
@@ -135,7 +135,7 @@ describe BudgetTypesController do
|
|
135
135
|
budget_type = BudgetType.create! valid_attributes
|
136
136
|
# Trigger the behavior that occurs when invalid params are submitted
|
137
137
|
BudgetType.any_instance.stub(:save).and_return(false)
|
138
|
-
put :update, :id => budget_type.id, :budget_type => {}
|
138
|
+
put :update, :id => budget_type.id, :budget_type => { note: 'test' }
|
139
139
|
assigns(:budget_type).should eq(budget_type)
|
140
140
|
end
|
141
141
|
|
@@ -143,7 +143,7 @@ describe BudgetTypesController do
|
|
143
143
|
budget_type = BudgetType.create! valid_attributes
|
144
144
|
# Trigger the behavior that occurs when invalid params are submitted
|
145
145
|
BudgetType.any_instance.stub(:save).and_return(false)
|
146
|
-
put :update, :id => budget_type.id, :budget_type => {}
|
146
|
+
put :update, :id => budget_type.id, :budget_type => { note: 'test' }
|
147
147
|
#response.should render_template("edit")
|
148
148
|
end
|
149
149
|
end
|
data/spec/dummy/bin/rake
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
# path to your application root.
|
5
|
+
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
|
+
|
7
|
+
Dir.chdir APP_ROOT do
|
8
|
+
# This script is a starting point to setup your application.
|
9
|
+
# Add necessary setup steps to this file:
|
10
|
+
|
11
|
+
puts "== Installing dependencies =="
|
12
|
+
system "gem install bundler --conservative"
|
13
|
+
system "bundle check || bundle install"
|
14
|
+
|
15
|
+
# puts "\n== Copying sample files =="
|
16
|
+
# unless File.exist?("config/database.yml")
|
17
|
+
# system "cp config/database.yml.sample config/database.yml"
|
18
|
+
# end
|
19
|
+
|
20
|
+
puts "\n== Preparing database =="
|
21
|
+
system "bin/rake db:setup"
|
22
|
+
|
23
|
+
puts "\n== Removing old logs and tempfiles =="
|
24
|
+
system "rm -f log/*"
|
25
|
+
system "rm -rf tmp/cache"
|
26
|
+
|
27
|
+
puts "\n== Restarting application server =="
|
28
|
+
system "touch tmp/restart.txt"
|
29
|
+
end
|
@@ -44,7 +44,7 @@ module Dummy
|
|
44
44
|
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
45
45
|
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
46
46
|
# parameters by using an attr_accessible or attr_protected declaration.
|
47
|
-
config.active_record.whitelist_attributes = true
|
47
|
+
#config.active_record.whitelist_attributes = true
|
48
48
|
|
49
49
|
# Enable the asset pipeline
|
50
50
|
config.assets.enabled = true
|
@@ -55,7 +55,6 @@ module Dummy
|
|
55
55
|
end
|
56
56
|
|
57
57
|
require 'enju_leaf'
|
58
|
-
require 'enju_biblio'
|
59
58
|
require 'enju_circulation'
|
60
59
|
require "enju_event"
|
61
60
|
require "enju_inter_library_loan"
|
@@ -30,7 +30,7 @@ Dummy::Application.configure do
|
|
30
30
|
config.action_mailer.delivery_method = :test
|
31
31
|
|
32
32
|
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
33
|
+
#config.active_record.mass_assignment_sanitizer = :strict
|
34
34
|
|
35
35
|
# Print deprecation notices to the stderr
|
36
36
|
config.active_support.deprecation = :stderr
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20141020120523) do
|
15
15
|
|
16
16
|
create_table "accepts", force: true do |t|
|
17
17
|
t.integer "basket_id"
|
@@ -290,6 +290,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
290
290
|
t.datetime "created_at"
|
291
291
|
t.datetime "updated_at"
|
292
292
|
t.integer "shelf_id"
|
293
|
+
t.integer "library_id"
|
293
294
|
end
|
294
295
|
|
295
296
|
add_index "checkouts", ["basket_id"], name: "index_checkouts_on_basket_id"
|
@@ -297,6 +298,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
297
298
|
add_index "checkouts", ["item_id", "basket_id"], name: "index_checkouts_on_item_id_and_basket_id", unique: true
|
298
299
|
add_index "checkouts", ["item_id"], name: "index_checkouts_on_item_id"
|
299
300
|
add_index "checkouts", ["librarian_id"], name: "index_checkouts_on_librarian_id"
|
301
|
+
add_index "checkouts", ["library_id"], name: "index_checkouts_on_library_id"
|
300
302
|
add_index "checkouts", ["shelf_id"], name: "index_checkouts_on_shelf_id"
|
301
303
|
add_index "checkouts", ["user_id"], name: "index_checkouts_on_user_id"
|
302
304
|
|
data/spec/fixtures/events.yml
CHANGED
@@ -3,48 +3,32 @@ event_00001:
|
|
3
3
|
updated_at: 2008-01-13 02:54:43.764011 +09:00
|
4
4
|
event_category_id: 1
|
5
5
|
end_at: 2008-01-14 02:54:00 +09:00
|
6
|
-
name:
|
7
|
-
|
8
|
-
|
9
|
-
display_name: !binary |
|
10
|
-
5LuV5LqL5aeL44KB
|
11
|
-
|
6
|
+
name: 仕事始め
|
7
|
+
display_name: 仕事始め
|
12
8
|
deleted_at:
|
13
9
|
start_at: 2008-01-13 02:54:00 +09:00
|
14
10
|
id: 1
|
15
|
-
note:
|
16
|
-
44Gq44KT44Go44GL44GL44KT44Go44GL
|
17
|
-
|
11
|
+
note: なんとかかんとか
|
18
12
|
library_id: 2
|
19
13
|
created_at: 2008-01-01 16:20:54.372729 +09:00
|
20
14
|
event_00002:
|
21
15
|
updated_at: 2008-01-13 02:54:21.134175 +09:00
|
22
16
|
event_category_id: 2
|
23
17
|
end_at: 2008-01-14 02:54:00 +09:00
|
24
|
-
name:
|
25
|
-
|
26
|
-
|
27
|
-
display_name: !binary |
|
28
|
-
44OG44K544OI
|
29
|
-
|
18
|
+
name: テスト
|
19
|
+
display_name: テスト
|
30
20
|
deleted_at:
|
31
21
|
start_at: 2008-01-13 02:54:00 +09:00
|
32
22
|
id: 2
|
33
|
-
note:
|
34
|
-
44OG44K544OI55So44Gu44Kk44OZ44Oz44OI44Gn44GZ44CC
|
35
|
-
|
23
|
+
note: テスト用のイベントです。
|
36
24
|
library_id: 2
|
37
25
|
created_at: 2008-01-01 20:54:25.803201 +09:00
|
38
26
|
event_00003:
|
39
27
|
updated_at: 2008-02-05 20:00:35.319131 +09:00
|
40
28
|
event_category_id: 1
|
41
29
|
end_at: 2008-02-05 00:00:00 +09:00
|
42
|
-
name:
|
43
|
-
|
44
|
-
|
45
|
-
display_name: !binary |
|
46
|
-
44Of44O844OG44Kj44Oz44Kw
|
47
|
-
|
30
|
+
name: ミーティング
|
31
|
+
display_name: ミーティング
|
48
32
|
deleted_at:
|
49
33
|
start_at: 2008-01-13 00:00:00 +09:00
|
50
34
|
id: 3
|
@@ -55,18 +39,12 @@ event_00004:
|
|
55
39
|
updated_at: 2008-02-05 15:43:42.617670 +09:00
|
56
40
|
event_category_id: 4
|
57
41
|
end_at: 2008-02-06 00:00:00 +09:00
|
58
|
-
name:
|
59
|
-
|
60
|
-
|
61
|
-
display_name: !binary |
|
62
|
-
44OG44K544OI
|
63
|
-
|
42
|
+
name: テスト
|
43
|
+
display_name: テスト
|
64
44
|
deleted_at:
|
65
45
|
start_at: 2008-02-05 00:00:00 +09:00
|
66
46
|
id: 4
|
67
|
-
note:
|
68
|
-
44Gq44KT44Go44GL44GL44KT44Go44GL
|
69
|
-
|
47
|
+
note: なんとかかんとか
|
70
48
|
library_id: 3
|
71
49
|
created_at: 2008-02-05 15:43:42.617670 +09:00
|
72
50
|
event_00005:
|
@@ -85,12 +63,8 @@ event_00006:
|
|
85
63
|
updated_at: 2008-02-05 23:52:06.315285 +09:00
|
86
64
|
event_category_id: 2
|
87
65
|
end_at: 2008-02-08 00:00:00 +09:00
|
88
|
-
name:
|
89
|
-
|
90
|
-
|
91
|
-
display_name: !binary |
|
92
|
-
44Gq44KT44Go44GL44GL44KT44Go44GL
|
93
|
-
|
66
|
+
name: なんとかかんとか
|
67
|
+
display_name: なんとかかんとか
|
94
68
|
deleted_at:
|
95
69
|
start_at: 2008-02-05 00:00:00 +09:00
|
96
70
|
id: 6
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_library
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: enju_seed
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.1.pre11
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.1.pre11
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: geocoder
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +72,14 @@ dependencies:
|
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
75
|
+
version: '3.2'
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: '3.
|
82
|
+
version: '3.2'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: vcr
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,98 +142,84 @@ dependencies:
|
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.1.0.
|
145
|
+
version: 1.1.0.rc17
|
160
146
|
type: :development
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.1.0.
|
152
|
+
version: 1.1.0.rc17
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: enju_ndl
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
170
156
|
requirements:
|
171
157
|
- - "~>"
|
172
158
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.1.0.
|
159
|
+
version: 0.1.0.pre35
|
174
160
|
type: :development
|
175
161
|
prerelease: false
|
176
162
|
version_requirements: !ruby/object:Gem::Requirement
|
177
163
|
requirements:
|
178
164
|
- - "~>"
|
179
165
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.1.0.
|
166
|
+
version: 0.1.0.pre35
|
181
167
|
- !ruby/object:Gem::Dependency
|
182
168
|
name: enju_manifestation_viewer
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
184
170
|
requirements:
|
185
171
|
- - "~>"
|
186
172
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0.1.0.
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: 0.1.0.pre16
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: enju_biblio
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - "~>"
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: 0.1.0.pre63
|
173
|
+
version: 0.1.0.pre17
|
202
174
|
type: :development
|
203
175
|
prerelease: false
|
204
176
|
version_requirements: !ruby/object:Gem::Requirement
|
205
177
|
requirements:
|
206
178
|
- - "~>"
|
207
179
|
- !ruby/object:Gem::Version
|
208
|
-
version: 0.1.0.
|
180
|
+
version: 0.1.0.pre17
|
209
181
|
- !ruby/object:Gem::Dependency
|
210
182
|
name: enju_event
|
211
183
|
requirement: !ruby/object:Gem::Requirement
|
212
184
|
requirements:
|
213
185
|
- - "~>"
|
214
186
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.1.17.
|
187
|
+
version: 0.1.17.pre24
|
216
188
|
type: :development
|
217
189
|
prerelease: false
|
218
190
|
version_requirements: !ruby/object:Gem::Requirement
|
219
191
|
requirements:
|
220
192
|
- - "~>"
|
221
193
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.1.17.
|
194
|
+
version: 0.1.17.pre24
|
223
195
|
- !ruby/object:Gem::Dependency
|
224
196
|
name: enju_circulation
|
225
197
|
requirement: !ruby/object:Gem::Requirement
|
226
198
|
requirements:
|
227
199
|
- - "~>"
|
228
200
|
- !ruby/object:Gem::Version
|
229
|
-
version: 0.1.0.
|
201
|
+
version: 0.1.0.pre42
|
230
202
|
type: :development
|
231
203
|
prerelease: false
|
232
204
|
version_requirements: !ruby/object:Gem::Requirement
|
233
205
|
requirements:
|
234
206
|
- - "~>"
|
235
207
|
- !ruby/object:Gem::Version
|
236
|
-
version: 0.1.0.
|
208
|
+
version: 0.1.0.pre42
|
237
209
|
- !ruby/object:Gem::Dependency
|
238
210
|
name: enju_inter_library_loan
|
239
211
|
requirement: !ruby/object:Gem::Requirement
|
240
212
|
requirements:
|
241
213
|
- - "~>"
|
242
214
|
- !ruby/object:Gem::Version
|
243
|
-
version: 0.1.0.
|
215
|
+
version: 0.1.0.pre11
|
244
216
|
type: :development
|
245
217
|
prerelease: false
|
246
218
|
version_requirements: !ruby/object:Gem::Requirement
|
247
219
|
requirements:
|
248
220
|
- - "~>"
|
249
221
|
- !ruby/object:Gem::Version
|
250
|
-
version: 0.1.0.
|
222
|
+
version: 0.1.0.pre11
|
251
223
|
- !ruby/object:Gem::Dependency
|
252
224
|
name: sunspot_solr
|
253
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -497,6 +469,10 @@ files:
|
|
497
469
|
- spec/dummy/app/models/setting.rb
|
498
470
|
- spec/dummy/app/models/user.rb
|
499
471
|
- spec/dummy/app/views/layouts/application.html.erb
|
472
|
+
- spec/dummy/bin/bundle
|
473
|
+
- spec/dummy/bin/rails
|
474
|
+
- spec/dummy/bin/rake
|
475
|
+
- spec/dummy/bin/setup
|
500
476
|
- spec/dummy/config.ru
|
501
477
|
- spec/dummy/config/application.rb
|
502
478
|
- spec/dummy/config/application.yml
|
@@ -695,7 +671,6 @@ files:
|
|
695
671
|
- spec/dummy/public/422.html
|
696
672
|
- spec/dummy/public/500.html
|
697
673
|
- spec/dummy/public/favicon.ico
|
698
|
-
- spec/dummy/script/rails
|
699
674
|
- spec/dummy/tmp/cache/4AD/470/country_all
|
700
675
|
- spec/factories/accepts.rb
|
701
676
|
- spec/factories/basket.rb
|
@@ -810,7 +785,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
810
785
|
version: 1.3.1
|
811
786
|
requirements: []
|
812
787
|
rubyforge_project:
|
813
|
-
rubygems_version: 2.
|
788
|
+
rubygems_version: 2.4.5
|
814
789
|
signing_key:
|
815
790
|
specification_version: 4
|
816
791
|
summary: enju_library plugin
|
@@ -835,6 +810,10 @@ test_files:
|
|
835
810
|
- spec/dummy/app/models/setting.rb
|
836
811
|
- spec/dummy/app/models/user.rb
|
837
812
|
- spec/dummy/app/views/layouts/application.html.erb
|
813
|
+
- spec/dummy/bin/bundle
|
814
|
+
- spec/dummy/bin/rails
|
815
|
+
- spec/dummy/bin/rake
|
816
|
+
- spec/dummy/bin/setup
|
838
817
|
- spec/dummy/config/application.rb
|
839
818
|
- spec/dummy/config/application.yml
|
840
819
|
- spec/dummy/config/boot.rb
|
@@ -1035,7 +1014,6 @@ test_files:
|
|
1035
1014
|
- spec/dummy/public/favicon.ico
|
1036
1015
|
- spec/dummy/Rakefile
|
1037
1016
|
- spec/dummy/README.rdoc
|
1038
|
-
- spec/dummy/script/rails
|
1039
1017
|
- spec/dummy/tmp/cache/4AD/470/country_all
|
1040
1018
|
- spec/factories/accepts.rb
|
1041
1019
|
- spec/factories/basket.rb
|
data/spec/dummy/script/rails
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
-
|
4
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
-
require File.expand_path('../../config/boot', __FILE__)
|
6
|
-
require 'rails/commands'
|