enju_library 0.1.0.pre43 → 0.1.0.pre44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/accepts_controller.rb +2 -2
  3. data/app/controllers/withdraws_controller.rb +126 -0
  4. data/app/models/accept.rb +2 -3
  5. data/app/models/basket.rb +3 -3
  6. data/app/models/bookstore.rb +6 -7
  7. data/app/models/budget_type.rb +3 -4
  8. data/app/models/color.rb +4 -4
  9. data/app/models/enju_library/ability.rb +4 -2
  10. data/app/models/library.rb +11 -12
  11. data/app/models/library_group.rb +6 -5
  12. data/app/models/request_status_type.rb +3 -4
  13. data/app/models/request_type.rb +3 -4
  14. data/app/models/search_engine.rb +4 -5
  15. data/app/models/shelf.rb +3 -4
  16. data/app/models/subscribe.rb +2 -3
  17. data/app/models/subscription.rb +2 -3
  18. data/app/models/withdraw.rb +27 -0
  19. data/app/views/accepts/new.html.erb +1 -1
  20. data/app/views/libraries/show.html.erb +21 -17
  21. data/app/views/library_groups/_form.html.erb +5 -0
  22. data/app/views/library_groups/show.html.erb +9 -4
  23. data/app/views/withdraws/_form.html.erb +11 -0
  24. data/app/views/withdraws/_list.html.erb +31 -0
  25. data/app/views/withdraws/edit.html.erb +13 -0
  26. data/app/views/withdraws/index.html.erb +50 -0
  27. data/app/views/withdraws/index.js.erb +1 -0
  28. data/app/views/withdraws/index.txt.csv +4 -0
  29. data/app/views/withdraws/new.html.erb +15 -0
  30. data/app/views/withdraws/show.html.erb +31 -0
  31. data/config/locales/translation_en.yml +11 -0
  32. data/config/locales/translation_ja.yml +11 -0
  33. data/config/routes.rb +3 -2
  34. data/db/migrate/20150924115059_create_withdraws.rb +13 -0
  35. data/lib/enju_library/version.rb +1 -1
  36. data/spec/controllers/accepts_controller_spec.rb +3 -3
  37. data/spec/controllers/withdraws_controller_spec.rb +132 -0
  38. data/spec/dummy/app/assets/javascripts/application.js +4 -6
  39. data/spec/dummy/db/schema.rb +12 -1
  40. data/spec/factories/accepts.rb +2 -2
  41. data/spec/factories/budget_types.rb +3 -3
  42. data/spec/factories/withdraw.rb +21 -0
  43. data/spec/fixtures/baskets.yml +2 -3
  44. data/spec/fixtures/bookstores.yml +6 -7
  45. data/spec/fixtures/budget_types.yml +3 -4
  46. data/spec/fixtures/colors.yml +4 -4
  47. data/spec/fixtures/libraries.yml +10 -10
  48. data/spec/fixtures/library_groups.yml +7 -5
  49. data/spec/fixtures/request_status_types.yml +3 -3
  50. data/spec/fixtures/request_types.yml +3 -3
  51. data/spec/fixtures/search_engines.yml +4 -5
  52. data/spec/fixtures/shelves.yml +3 -3
  53. data/spec/fixtures/subscribes.yml +2 -3
  54. data/spec/fixtures/subscriptions.yml +2 -3
  55. data/spec/fixtures/withdraws.yml +20 -0
  56. data/spec/models/accept_spec.rb +2 -3
  57. data/spec/models/basket_spec.rb +2 -3
  58. data/spec/models/bookstore_spec.rb +6 -7
  59. data/spec/models/budget_type_spec.rb +3 -4
  60. data/spec/models/library_group_spec.rb +6 -5
  61. data/spec/models/library_spec.rb +10 -11
  62. data/spec/models/request_status_type_spec.rb +3 -4
  63. data/spec/models/request_type_spec.rb +3 -4
  64. data/spec/models/search_engine_spec.rb +4 -5
  65. data/spec/models/shelf_spec.rb +3 -4
  66. data/spec/models/subscribe_spec.rb +2 -3
  67. data/spec/models/subscription_spec.rb +2 -3
  68. data/spec/models/withdraw_spec.rb +21 -0
  69. data/spec/rails_helper.rb +79 -0
  70. data/spec/routing/withdraws_routing_spec.rb +27 -0
  71. data/spec/spec_helper.rb +82 -51
  72. data/spec/views/libraries/show.html.erb_spec.rb +14 -0
  73. data/spec/views/withdraws/edit.html.erb_spec.rb +14 -0
  74. data/spec/views/withdraws/index.html.erb_spec.rb +26 -0
  75. data/spec/views/withdraws/new.html.erb_spec.rb +31 -0
  76. data/spec/views/withdraws/show.html.erb_spec.rb +11 -0
  77. metadata +43 -26
  78. data/spec/support/vcr.rb +0 -9
@@ -0,0 +1,11 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "withdraws/show", type: :view do
4
+ before(:each) do
5
+ @withdraw = assign(:withdraw, FactoryGirl.create(:withdraw))
6
+ end
7
+
8
+ it "renders attributes in <p>" do
9
+ render
10
+ end
11
+ 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.1.0.pre43
4
+ version: 0.1.0.pre44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-20 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: geocoder
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: mysql2
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.3.20
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.3.20
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pg
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.3'
83
- - !ruby/object:Gem::Dependency
84
- name: vcr
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: webmock
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +128,14 @@ dependencies:
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 1.1.0.rc19
131
+ version: 1.1.0.rc21
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: 1.1.0.rc19
138
+ version: 1.1.0.rc21
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: enju_ndl
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +184,14 @@ dependencies:
198
184
  requirements:
199
185
  - - "~>"
200
186
  - !ruby/object:Gem::Version
201
- version: 0.1.0.pre47
187
+ version: 0.1.0.pre48
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
192
  - - "~>"
207
193
  - !ruby/object:Gem::Version
208
- version: 0.1.0.pre47
194
+ version: 0.1.0.pre48
209
195
  - !ruby/object:Gem::Dependency
210
196
  name: enju_inter_library_loan
211
197
  requirement: !ruby/object:Gem::Requirement
@@ -340,6 +326,7 @@ files:
340
326
  - app/controllers/shelves_controller.rb
341
327
  - app/controllers/subscribes_controller.rb
342
328
  - app/controllers/subscriptions_controller.rb
329
+ - app/controllers/withdraws_controller.rb
343
330
  - app/helpers/shelves_helper.rb
344
331
  - app/models/accept.rb
345
332
  - app/models/basket.rb
@@ -355,6 +342,7 @@ files:
355
342
  - app/models/shelf.rb
356
343
  - app/models/subscribe.rb
357
344
  - app/models/subscription.rb
345
+ - app/models/withdraw.rb
358
346
  - app/views/accepts/_form.html.erb
359
347
  - app/views/accepts/_list.html.erb
360
348
  - app/views/accepts/edit.html.erb
@@ -424,6 +412,14 @@ files:
424
412
  - app/views/subscriptions/index.html.erb
425
413
  - app/views/subscriptions/new.html.erb
426
414
  - app/views/subscriptions/show.html.erb
415
+ - app/views/withdraws/_form.html.erb
416
+ - app/views/withdraws/_list.html.erb
417
+ - app/views/withdraws/edit.html.erb
418
+ - app/views/withdraws/index.html.erb
419
+ - app/views/withdraws/index.js.erb
420
+ - app/views/withdraws/index.txt.csv
421
+ - app/views/withdraws/new.html.erb
422
+ - app/views/withdraws/show.html.erb
427
423
  - config/locales/translation_en.yml
428
424
  - config/locales/translation_ja.yml
429
425
  - config/routes.rb
@@ -447,6 +443,7 @@ files:
447
443
  - db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb
448
444
  - db/migrate/20140821151023_create_colors.rb
449
445
  - db/migrate/20150221063719_add_settings_to_library_group.rb
446
+ - db/migrate/20150924115059_create_withdraws.rb
450
447
  - lib/enju_library.rb
451
448
  - lib/enju_library/engine.rb
452
449
  - lib/enju_library/item.rb
@@ -474,6 +471,7 @@ files:
474
471
  - spec/controllers/shelves_controller_spec.rb
475
472
  - spec/controllers/subscribes_controller_spec.rb
476
473
  - spec/controllers/subscriptions_controller_spec.rb
474
+ - spec/controllers/withdraws_controller_spec.rb
477
475
  - spec/dummy/README.rdoc
478
476
  - spec/dummy/Rakefile
479
477
  - spec/dummy/app/assets/javascripts/application.js
@@ -701,6 +699,7 @@ files:
701
699
  - spec/factories/subscribe.rb
702
700
  - spec/factories/subscription.rb
703
701
  - spec/factories/user.rb
702
+ - spec/factories/withdraw.rb
704
703
  - spec/fixtures/agent_types.yml
705
704
  - spec/fixtures/agents.yml
706
705
  - spec/fixtures/baskets.yml
@@ -749,6 +748,7 @@ files:
749
748
  - spec/fixtures/user_has_roles.yml
750
749
  - spec/fixtures/user_reserve_stats.yml
751
750
  - spec/fixtures/users.yml
751
+ - spec/fixtures/withdraws.yml
752
752
  - spec/models/accept_spec.rb
753
753
  - spec/models/basket_spec.rb
754
754
  - spec/models/bookstore_spec.rb
@@ -761,14 +761,16 @@ files:
761
761
  - spec/models/shelf_spec.rb
762
762
  - spec/models/subscribe_spec.rb
763
763
  - spec/models/subscription_spec.rb
764
+ - spec/models/withdraw_spec.rb
765
+ - spec/rails_helper.rb
764
766
  - spec/routing/accepts_routing_spec.rb
765
767
  - spec/routing/baskets_routing_spec.rb
766
768
  - spec/routing/budget_types_routing_spec.rb
767
769
  - spec/routing/libraries_routing_spec.rb
770
+ - spec/routing/withdraws_routing_spec.rb
768
771
  - spec/spec_helper.rb
769
772
  - spec/support/controller_macros.rb
770
773
  - spec/support/devise.rb
771
- - spec/support/vcr.rb
772
774
  - spec/views/accepts/edit.html.erb_spec.rb
773
775
  - spec/views/accepts/index.html.erb_spec.rb
774
776
  - spec/views/accepts/new.html.erb_spec.rb
@@ -777,8 +779,13 @@ files:
777
779
  - spec/views/budget_types/index.html.erb_spec.rb
778
780
  - spec/views/budget_types/new.html.erb_spec.rb
779
781
  - spec/views/budget_types/show.html.erb_spec.rb
782
+ - spec/views/libraries/show.html.erb_spec.rb
780
783
  - spec/views/library_groups/edit.html.erb_spec.rb
781
784
  - spec/views/library_groups/show.html.erb_spec.rb
785
+ - spec/views/withdraws/edit.html.erb_spec.rb
786
+ - spec/views/withdraws/index.html.erb_spec.rb
787
+ - spec/views/withdraws/new.html.erb_spec.rb
788
+ - spec/views/withdraws/show.html.erb_spec.rb
782
789
  homepage: https://github.com/next-l/enju_library
783
790
  licenses: []
784
791
  metadata: {}
@@ -815,6 +822,7 @@ test_files:
815
822
  - spec/controllers/shelves_controller_spec.rb
816
823
  - spec/controllers/subscribes_controller_spec.rb
817
824
  - spec/controllers/subscriptions_controller_spec.rb
825
+ - spec/controllers/withdraws_controller_spec.rb
818
826
  - spec/dummy/app/assets/javascripts/application.js
819
827
  - spec/dummy/app/assets/stylesheets/application.css
820
828
  - spec/dummy/app/controllers/application_controller.rb
@@ -1042,6 +1050,7 @@ test_files:
1042
1050
  - spec/factories/subscribe.rb
1043
1051
  - spec/factories/subscription.rb
1044
1052
  - spec/factories/user.rb
1053
+ - spec/factories/withdraw.rb
1045
1054
  - spec/fixtures/agent_types.yml
1046
1055
  - spec/fixtures/agents.yml
1047
1056
  - spec/fixtures/baskets.yml
@@ -1090,6 +1099,7 @@ test_files:
1090
1099
  - spec/fixtures/user_has_roles.yml
1091
1100
  - spec/fixtures/user_reserve_stats.yml
1092
1101
  - spec/fixtures/users.yml
1102
+ - spec/fixtures/withdraws.yml
1093
1103
  - spec/models/accept_spec.rb
1094
1104
  - spec/models/basket_spec.rb
1095
1105
  - spec/models/bookstore_spec.rb
@@ -1102,14 +1112,16 @@ test_files:
1102
1112
  - spec/models/shelf_spec.rb
1103
1113
  - spec/models/subscribe_spec.rb
1104
1114
  - spec/models/subscription_spec.rb
1115
+ - spec/models/withdraw_spec.rb
1116
+ - spec/rails_helper.rb
1105
1117
  - spec/routing/accepts_routing_spec.rb
1106
1118
  - spec/routing/baskets_routing_spec.rb
1107
1119
  - spec/routing/budget_types_routing_spec.rb
1108
1120
  - spec/routing/libraries_routing_spec.rb
1121
+ - spec/routing/withdraws_routing_spec.rb
1109
1122
  - spec/spec_helper.rb
1110
1123
  - spec/support/controller_macros.rb
1111
1124
  - spec/support/devise.rb
1112
- - spec/support/vcr.rb
1113
1125
  - spec/views/accepts/edit.html.erb_spec.rb
1114
1126
  - spec/views/accepts/index.html.erb_spec.rb
1115
1127
  - spec/views/accepts/new.html.erb_spec.rb
@@ -1118,5 +1130,10 @@ test_files:
1118
1130
  - spec/views/budget_types/index.html.erb_spec.rb
1119
1131
  - spec/views/budget_types/new.html.erb_spec.rb
1120
1132
  - spec/views/budget_types/show.html.erb_spec.rb
1133
+ - spec/views/libraries/show.html.erb_spec.rb
1121
1134
  - spec/views/library_groups/edit.html.erb_spec.rb
1122
1135
  - spec/views/library_groups/show.html.erb_spec.rb
1136
+ - spec/views/withdraws/edit.html.erb_spec.rb
1137
+ - spec/views/withdraws/index.html.erb_spec.rb
1138
+ - spec/views/withdraws/new.html.erb_spec.rb
1139
+ - spec/views/withdraws/show.html.erb_spec.rb
data/spec/support/vcr.rb DELETED
@@ -1,9 +0,0 @@
1
- VCR.configure do |c|
2
- c.cassette_library_dir = 'spec/cassette_library'
3
- c.hook_into :webmock
4
- c.ignore_localhost = true
5
- c.default_cassette_options = {
6
- record: :none,
7
- preserve_exact_body_bytes: true
8
- }
9
- end