enju_library 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f73f570298f3055fc4b010ba70ad06a2cf71b61b98fc9b6d84dafb987adc16f7
4
- data.tar.gz: 5f6ce82139389bcdf8214aa4ba0fde1df9034535c64f0244060244313d1bc8b2
3
+ metadata.gz: 3aa2686a924375d40650871c69a6d89f1269334caef6ef04476eaa73b93add23
4
+ data.tar.gz: 6dbc03b0ffd6697b52196c58daee56e178f4034179b7092a092137188bac0d07
5
5
  SHA512:
6
- metadata.gz: 9739fda0742893a1f3269eda71bc8b895abfd4dcb243fc0f1afc11cd08488ba9884d425add78da0b53ff99cc97d1ac12158a2f88829b49edee409594dd728c22
7
- data.tar.gz: c0d96d2400ff582b768415a6ed9c6bf22546b1b665b19c4390cc5e2a53e3c81a656090c5ed3b35425c6c214deda8629409db457975f31e08dea4ad56ffb75215
6
+ metadata.gz: 9042b6c104de5a3f040154ab3864cce26b0454f5707e84d55cfe4bc6234d393f95bdb42e261fbb722886701ccc47cfd249804e4c76fa3a94a725afe6a424a056
7
+ data.tar.gz: 8558eeb02d05296d28f2362c638709e1857eeffbe6d6fc82c8b0a072d2f188092edc8ff0ed0ed85f85ebc2fd2c7775c774b788ded2e605d47eafc59a331bedf0
@@ -6,7 +6,7 @@ class AcceptsController < ApplicationController
6
6
  # GET /accepts
7
7
  # GET /accepts.json
8
8
  def index
9
- if params[:format] == 'txt'
9
+ if params[:format] == 'text'
10
10
  @accepts = Accept.order('accepts.created_at DESC').page(params[:page]).per(65534)
11
11
  else
12
12
  if params[:accept]
@@ -29,7 +29,7 @@ class AcceptsController < ApplicationController
29
29
  format.html # index.html.erb
30
30
  format.json { render json: @accepts }
31
31
  format.js { @accept = Accept.new }
32
- format.txt
32
+ format.text
33
33
  end
34
34
  end
35
35
 
@@ -15,7 +15,7 @@ class UserImportResultsController < ApplicationController
15
15
  respond_to do |format|
16
16
  format.html # index.html.erb
17
17
  format.json { render json: @user_import_results }
18
- format.txt
18
+ format.text
19
19
  end
20
20
  end
21
21
 
@@ -6,7 +6,7 @@ class WithdrawsController < ApplicationController
6
6
  # GET /withdraws
7
7
  # GET /withdraws.json
8
8
  def index
9
- if params[:format] == 'txt'
9
+ if params[:format] == 'text'
10
10
  @withdraws = Withdraw.order('withdraws.created_at DESC').page(params[:page]).per(65534)
11
11
  else
12
12
  if params[:withdraw]
@@ -29,7 +29,7 @@ class WithdrawsController < ApplicationController
29
29
  format.html # index.html.erb
30
30
  format.json { render json: @withdraws }
31
31
  format.js { @withdraw = Withdraw.new }
32
- format.txt
32
+ format.text
33
33
  end
34
34
  end
35
35
 
@@ -30,7 +30,7 @@ class UserExportFile < ApplicationRecord
30
30
  def export!
31
31
  transition_to!(:started)
32
32
  tempfile = Tempfile.new(['user_export_file_', '.txt'])
33
- file = User.export(format: :txt)
33
+ file = User.export(format: :text)
34
34
  tempfile.puts(file)
35
35
  tempfile.close
36
36
  self.user_export = File.new(tempfile.path, 'r')
File without changes
@@ -35,7 +35,7 @@
35
35
 
36
36
  <div id="submenu" class="ui-corner-all ui-widget-content">
37
37
  <ul>
38
- <% policy(RequestStatusType).create? %>
38
+ <% if policy(RequestStatusType).create? %>
39
39
  <li><%= link_to t('page.new', model: t('activerecord.models.request_type')), new_request_type_path -%></li>
40
40
  <% end %>
41
41
  </ul>
@@ -1,7 +1,7 @@
1
1
  <h2><%= t('activerecord.models.user_import_result') %></h2>
2
2
  <p>
3
- <%= link_to((image_tag 'icons/page_white_excel.png', size: '16x16', class: 'enju_icon', alt: 'TSV'), user_import_results_path(user_import_file_id: @user_import_file.id, format: :txt, locale: @locale.to_s)) -%>
4
- (<%= link_to 'TSV', user_import_results_path(user_import_file_id: @user_import_file.id, format: :txt, locale: @locale.to_s) -%>)
3
+ <%= link_to((image_tag 'icons/page_white_excel.png', size: '16x16', class: 'enju_icon', alt: 'TSV'), user_import_results_path(user_import_file_id: @user_import_file.id, format: :text, locale: @locale.to_s)) -%>
4
+ (<%= link_to 'TSV', user_import_results_path(user_import_file_id: @user_import_file.id, format: :text, locale: @locale.to_s) -%>)
5
5
  </p>
6
6
 
7
7
  <table class="table table-striped index">
@@ -1,3 +1,3 @@
1
1
  module EnjuLibrary
2
- VERSION = "0.3.9".freeze
2
+ VERSION = "0.3.10".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-24 00:00:00.000000000 Z
11
+ date: 2022-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_seed
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.5
19
+ version: 0.3.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.5
26
+ version: 0.3.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: paper_trail
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,44 +98,44 @@ dependencies:
98
98
  name: globalize
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '5.3'
103
+ version: '0'
104
104
  type: :runtime
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: '5.3'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: enju_leaf
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.3.3
117
+ version: 1.3.5
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: 1.3.3
124
+ version: 1.3.5
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: enju_biblio
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.3.9
131
+ version: 0.3.14
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.3.9
138
+ version: 0.3.14
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: enju_ndl
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.3.3
159
+ version: 0.3.5
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.3.3
166
+ version: 0.3.5
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: enju_circulation
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -226,14 +226,14 @@ dependencies:
226
226
  requirements:
227
227
  - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: '4.0'
229
+ version: '5.0'
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
- version: '4.0'
236
+ version: '5.0'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: factory_bot_rails
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -488,7 +488,7 @@ files:
488
488
  - app/views/accepts/index.html.erb
489
489
  - app/views/accepts/index.js.erb
490
490
  - app/views/accepts/index.js.slim
491
- - app/views/accepts/index.txt.csv
491
+ - app/views/accepts/index.text.erb
492
492
  - app/views/accepts/new.html.erb
493
493
  - app/views/accepts/show.html.erb
494
494
  - app/views/baskets/edit.html.erb
@@ -586,14 +586,14 @@ files:
586
586
  - app/views/user_import_results/_list.html.erb
587
587
  - app/views/user_import_results/_list_lines.html.erb
588
588
  - app/views/user_import_results/index.html.erb
589
- - app/views/user_import_results/index.txt.erb
589
+ - app/views/user_import_results/index.text.erb
590
590
  - app/views/user_import_results/show.html.erb
591
591
  - app/views/withdraws/_form.html.erb
592
592
  - app/views/withdraws/_list.html.erb
593
593
  - app/views/withdraws/edit.html.erb
594
594
  - app/views/withdraws/index.html.erb
595
595
  - app/views/withdraws/index.js.erb
596
- - app/views/withdraws/index.txt.csv
596
+ - app/views/withdraws/index.text.erb
597
597
  - app/views/withdraws/new.html.erb
598
598
  - app/views/withdraws/show.html.erb
599
599
  - config/locales/translation_en.yml
@@ -953,7 +953,6 @@ files:
953
953
  - spec/dummy/public/422.html
954
954
  - spec/dummy/public/500.html
955
955
  - spec/dummy/public/favicon.ico
956
- - spec/dummy/yarn.lock
957
956
  - spec/factories/accepts.rb
958
957
  - spec/factories/basket.rb
959
958
  - spec/factories/bookstore.rb
@@ -1094,7 +1093,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1094
1093
  - !ruby/object:Gem::Version
1095
1094
  version: '0'
1096
1095
  requirements: []
1097
- rubygems_version: 3.1.4
1096
+ rubygems_version: 3.1.6
1098
1097
  signing_key:
1099
1098
  specification_version: 4
1100
1099
  summary: enju_library plugin
@@ -1105,7 +1104,6 @@ test_files:
1105
1104
  - spec/mailers/previews/user_export_preview.rb
1106
1105
  - spec/spec_helper.rb
1107
1106
  - spec/dummy/Rakefile
1108
- - spec/dummy/yarn.lock
1109
1107
  - spec/dummy/config/locales/en.yml
1110
1108
  - spec/dummy/config/secrets.yml
1111
1109
  - spec/dummy/config/sunspot.yml