enju_circulation 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36c7b0cdffa83e769e73f3b1beb9e6705af07044
4
- data.tar.gz: 1e0eddb8648a35597e0def7945cdd37e30a565fb
3
+ metadata.gz: 8fe700770c6a3e4efe23389b798124a3dceb6360
4
+ data.tar.gz: 4fe217962653f3d68d007b28d03a156fe7293ce1
5
5
  SHA512:
6
- metadata.gz: 7a321cce817645bf567a8e903a3ea217e1a89d0eecaac34c046d85c10698377b9699fb0762b7988e95a3188f473dca5abdab38375571be287063a8ac73c2e5df
7
- data.tar.gz: ba2501c18c23e0fd614afc0a8336d742cf054ce59a05d34f369664da871d575afd8959ad021e5df0dc45d595e0b9415ae6e26abebf1148a890570d48e9fd94cc
6
+ metadata.gz: 8ba1551d6af8e6c29644ba63c110d5965ef408eabd0353044cf87553382122651fb2a766e8d4eed1d333fe9718f50cdef7dfb9785775321fb0deb141649281d1
7
+ data.tar.gz: 182984aa80180b7e56802ed79f43cd29d9c7b19f1de5780826157d1b46f966d8a94da26e4644cf8152ef63cc67cdfa269ed846ea34e3629e17baac5996ec6cf9
data/README.rdoc CHANGED
@@ -1,5 +1,5 @@
1
1
  = EnjuCirculation
2
- {<img src="https://secure.travis-ci.org/next-l/enju_circulation.png?branch=1.1" alt="Build Status" />}[http://travis-ci.org/next-l/enju_circulation]
2
+ {<img src="https://travis-ci.org/next-l/enju_circulation.png?branch=1.1" alt="Build Status" />}[https://travis-ci.org/next-l/enju_circulation]
3
3
  {<img src="https://coveralls.io/repos/next-l/enju_circulation/badge.png?branch=1.1" alt="Coverage Status" />}[https://coveralls.io/r/next-l/enju_circulation?branch=1.1]
4
4
  {<img src="https://hakiri.io/github/next-l/enju_circulation/1.1.svg" alt="security" />}[https://hakiri.io/github/next-l/enju_circulation/1.1]
5
5
 
@@ -35,7 +35,6 @@ class CheckoutsController < ApplicationController
35
35
  if current_user.try(:has_role?, 'Librarian')
36
36
  search.build do
37
37
  with(:username).equal_to user.username
38
- with(:checked_in_at).equal_to nil unless user.profile.save_checkout_history
39
38
  end
40
39
  else
41
40
  if current_user == user
@@ -50,12 +49,9 @@ class CheckoutsController < ApplicationController
50
49
  unless current_user.try(:has_role?, 'Librarian')
51
50
  search.build do
52
51
  with(:username).equal_to current_user.username
53
- end
54
- end
55
-
56
- unless current_user.profile.save_checkout_history?
57
- search.build do
58
- with(:checked_in_at).equal_to nil
52
+ unless current_user.profile.save_checkout_history?
53
+ with(:checked_in_at).equal_to nil
54
+ end
59
55
  end
60
56
  end
61
57
  end
@@ -60,8 +60,8 @@
60
60
  (<%= link_to reserve.item.item_identifier, reserve.item %>)
61
61
  <% end %>
62
62
  </td>
63
- <%- if can? :delete, reserve -%>
64
- <td>
63
+ <td>
64
+ <%- if can? :delete, reserve -%>
65
65
  <%= link_to t('page.edit'), edit_reserve_path(reserve) -%>
66
66
  <%- if reserve.user.reserves.waiting.include?(reserve) -%>
67
67
  <br />
@@ -70,8 +70,8 @@
70
70
  <br />
71
71
  <%= link_to t('page.destroy'), reserve, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
72
72
  <%- end -%>
73
- </td>
74
- <%- end -%>
73
+ <%- end -%>
74
+ </td>
75
75
  </tr>
76
76
  <%- end -%>
77
77
  </table>
@@ -1,5 +1,5 @@
1
1
  class ManifestationCheckoutStatQueue
2
- @queue = :manifestation_checkout_stat
2
+ @queue = :enju_leaf
3
3
 
4
4
  def self.perform(manifestation_checkout_stat_id)
5
5
  ManifestationCheckoutStat.find(manifestation_checkout_stat_id).transition_to!(:started)
@@ -1,5 +1,5 @@
1
1
  class ManifestationReserveStatQueue
2
- @queue = :manifestation_reserve_stat
2
+ @queue = :enju_leaf
3
3
 
4
4
  def self.perform(manifestation_reserve_stat_id)
5
5
  ManifestationReserveStat.find(manifestation_reserve_stat_id).transition_to!(:started)
@@ -1,5 +1,5 @@
1
1
  class UserCheckoutStatQueue
2
- @queue = :user_checkout_stat
2
+ @queue = :enju_leaf
3
3
 
4
4
  def self.perform(user_checkout_stat_id)
5
5
  UserCheckoutStat.find(user_checkout_stat_id).transition_to!(:started)
@@ -1,5 +1,5 @@
1
1
  class UserReserveStatQueue
2
- @queue = :user_reserve_stat
2
+ @queue = :enju_leaf
3
3
 
4
4
  def self.perform(user_reserve_stat_id)
5
5
  UserReserveStat.find(user_reserve_stat_id).transition_to!(:started)
@@ -1,3 +1,3 @@
1
1
  module EnjuCirculation
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -18,6 +18,7 @@ describe CheckoutsController do
18
18
  it "assigns all checkouts as @checkouts" do
19
19
  get :index
20
20
  assigns(:checkouts).should eq Checkout.order('checkouts.created_at DESC').page(1)
21
+ assigns(:checkouts).total_entries.should eq Checkout.count
21
22
  end
22
23
 
23
24
  it "should get other user's index" do
@@ -82,6 +83,7 @@ describe CheckoutsController do
82
83
  it "assigns all checkouts as @checkouts" do
83
84
  get :index
84
85
  assigns(:checkouts).should eq(users(:user1).checkouts.order('checkouts.created_at DESC').page(1))
86
+ assigns(:checkouts).total_entries.should eq users(:user1).checkouts.count
85
87
  response.should be_success
86
88
  end
87
89
 
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
12
+ Rails.application.config.assets.precompile += %w( *.png icons/*.png )
@@ -384,7 +384,7 @@ manifestation_00114:
384
384
  price:
385
385
  manifestation_identifier:
386
386
  depth:
387
- date_of_publication: 2001-03-20
387
+ pub_date: 2001-03-20
388
388
  access_address:
389
389
  id: 114
390
390
  height:
@@ -412,7 +412,7 @@ manifestation_00116:
412
412
  price:
413
413
  manifestation_identifier:
414
414
  depth:
415
- date_of_publication: 1991-12-24
415
+ pub_date: 1991-12-24
416
416
  access_address:
417
417
  id: 116
418
418
  height:
@@ -468,7 +468,7 @@ manifestation_00120:
468
468
  price:
469
469
  manifestation_identifier:
470
470
  depth:
471
- date_of_publication: 2000-10-01
471
+ pub_date: 2000-10-01
472
472
  access_address:
473
473
  id: 120
474
474
  height:
@@ -1476,7 +1476,7 @@ manifestation_00192:
1476
1476
  price:
1477
1477
  manifestation_identifier:
1478
1478
  depth:
1479
- date_of_publication: 2007-04-27
1479
+ pub_date: 2007-04-27
1480
1480
  access_address:
1481
1481
  id: 192
1482
1482
  height:
@@ -1490,7 +1490,7 @@ manifestation_00193:
1490
1490
  price:
1491
1491
  manifestation_identifier:
1492
1492
  depth:
1493
- date_of_publication: 2007-02-01
1493
+ pub_date: 2007-02-01
1494
1494
  access_address:
1495
1495
  id: 193
1496
1496
  height:
@@ -1532,7 +1532,7 @@ manifestation_00196:
1532
1532
  price:
1533
1533
  manifestation_identifier:
1534
1534
  depth:
1535
- date_of_publication: 2006-08-05
1535
+ pub_date: 2006-08-05
1536
1536
  access_address:
1537
1537
  id: 196
1538
1538
  height:
@@ -1570,7 +1570,7 @@ manifestation_00201:
1570
1570
  carrier_type_id: 1
1571
1571
  language_id: 1
1572
1572
  updated_at: 2010-03-01 16:14:18 +09:00
1573
- original_title: "テスト雑誌1月号"
1573
+ original_title: "テスト雑誌2005年1月号"
1574
1574
  price:
1575
1575
  manifestation_identifier:
1576
1576
  depth:
@@ -1581,6 +1581,7 @@ manifestation_00201:
1581
1581
  width:
1582
1582
  created_at: 2007-11-19 17:55:41 +9:00
1583
1583
  frequency_id: 3
1584
+ serial: true
1584
1585
  manifestation_00202:
1585
1586
  carrier_type_id: 1
1586
1587
  language_id: 1
@@ -1599,11 +1600,12 @@ manifestation_00202:
1599
1600
  serial_number: 2
1600
1601
  volume_number: 1
1601
1602
  issue_number: 2
1603
+ serial: true
1602
1604
  manifestation_00203:
1603
1605
  carrier_type_id: 1
1604
1606
  language_id: 1
1605
1607
  updated_at: 2010-03-01 16:14:18 +09:00
1606
- original_title: "テスト単行本記事"
1608
+ original_title: "テスト単行本記事2005"
1607
1609
  price:
1608
1610
  manifestation_identifier:
1609
1611
  depth:
@@ -1614,11 +1616,12 @@ manifestation_00203:
1614
1616
  width:
1615
1617
  created_at: 2010-03-03 17:00:00 +9:00
1616
1618
  frequency_id: 1
1619
+ serial: false
1617
1620
  manifestation_00204:
1618
1621
  carrier_type_id: 1
1619
1622
  language_id: 1
1620
1623
  updated_at: 2010-03-03 20:00:00 +09:00
1621
- original_title: "テスト雑誌1月号の記事1"
1624
+ original_title: "テスト雑誌1月号の記事1 2005"
1622
1625
  price:
1623
1626
  manifestation_identifier:
1624
1627
  depth:
@@ -1628,6 +1631,7 @@ manifestation_00204:
1628
1631
  height:
1629
1632
  width:
1630
1633
  created_at: 2010-03-03 20:00:00 +9:00
1634
+ serial: true
1631
1635
  manifestation_00205:
1632
1636
  carrier_type_id: 1
1633
1637
  language_id: 1
@@ -1636,7 +1640,7 @@ manifestation_00205:
1636
1640
  price:
1637
1641
  manifestation_identifier:
1638
1642
  depth:
1639
- date_of_publication:
1643
+ date_of_publication: 2000-01-01 00:00:00 +09:00
1640
1644
  access_address:
1641
1645
  id: 205
1642
1646
  height:
@@ -1650,7 +1654,7 @@ manifestation_00206:
1650
1654
  price:
1651
1655
  manifestation_identifier:
1652
1656
  depth:
1653
- date_of_publication:
1657
+ date_of_publication: 2010-01-01 00:00:00 +09:00
1654
1658
  access_address:
1655
1659
  id: 206
1656
1660
  height:
@@ -1811,35 +1815,39 @@ manifestation_00216:
1811
1815
  created_at: 2010-03-19 13:00:00 +9:00
1812
1816
  required_role_id: 1
1813
1817
  repository_content: false
1814
-
1818
+ manifestation_00217:
1819
+ carrier_type_id: 1
1820
+ language_id: 77
1821
+ updated_at: 2014-12-20 16:44:00 +09:00
1822
+ original_title: "VRML2.0 : 3Dサイバースペース構築言語"
1823
+ content_type_id: 1
1824
+ year_of_publication: 1996
1825
+ statement_of_responsibility: "三浦憲二郎著"
1826
+ id: 217
1815
1827
 
1816
1828
  # == Schema Information
1817
1829
  #
1818
1830
  # Table name: manifestations
1819
1831
  #
1820
- # id :integer not null, primary key
1821
- # original_title :text not null
1832
+ # id :integer not null, primary key
1833
+ # original_title :text not null
1822
1834
  # title_alternative :text
1823
1835
  # title_transcription :text
1824
1836
  # classification_number :string(255)
1825
1837
  # manifestation_identifier :string(255)
1826
1838
  # date_of_publication :datetime
1827
1839
  # date_copyrighted :datetime
1828
- # created_at :datetime not null
1829
- # updated_at :datetime not null
1840
+ # created_at :datetime
1841
+ # updated_at :datetime
1830
1842
  # deleted_at :datetime
1831
1843
  # access_address :string(255)
1832
- # language_id :integer default(1), not null
1833
- # carrier_type_id :integer default(1), not null
1834
- # extent_id :integer default(1), not null
1844
+ # language_id :integer default(1), not null
1845
+ # carrier_type_id :integer default(1), not null
1835
1846
  # start_page :integer
1836
1847
  # end_page :integer
1837
1848
  # height :integer
1838
1849
  # width :integer
1839
1850
  # depth :integer
1840
- # nbn :string(255)
1841
- # lccn :string(255)
1842
- # oclc_number :string(255)
1843
1851
  # price :integer
1844
1852
  # fulltext :text
1845
1853
  # volume_number_string :string(255)
@@ -1847,15 +1855,12 @@ manifestation_00216:
1847
1855
  # serial_number_string :string(255)
1848
1856
  # edition :integer
1849
1857
  # note :text
1850
- # repository_content :boolean default(FALSE), not null
1851
- # lock_version :integer default(0), not null
1852
- # required_role_id :integer default(1), not null
1853
- # state :string(255)
1854
- # required_score :integer default(0), not null
1855
- # frequency_id :integer default(1), not null
1856
- # subscription_master :boolean default(FALSE), not null
1857
- # ipaper_id :integer
1858
- # ipaper_access_key :string(255)
1858
+ # repository_content :boolean default(FALSE), not null
1859
+ # lock_version :integer default(0), not null
1860
+ # required_role_id :integer default(1), not null
1861
+ # required_score :integer default(0), not null
1862
+ # frequency_id :integer default(1), not null
1863
+ # subscription_master :boolean default(FALSE), not null
1859
1864
  # attachment_file_name :string(255)
1860
1865
  # attachment_content_type :string(255)
1861
1866
  # attachment_file_size :integer
@@ -1868,17 +1873,19 @@ manifestation_00216:
1868
1873
  # date_submitted :datetime
1869
1874
  # date_accepted :datetime
1870
1875
  # date_caputured :datetime
1871
- # ndl_bib_id :string(255)
1872
1876
  # pub_date :string(255)
1873
1877
  # edition_string :string(255)
1874
1878
  # volume_number :integer
1875
1879
  # issue_number :integer
1876
1880
  # serial_number :integer
1877
- # ndc :string(255)
1878
- # content_type_id :integer default(1)
1881
+ # content_type_id :integer default(1)
1879
1882
  # year_of_publication :integer
1880
- # attachment_fingerprint :string(255)
1881
1883
  # attachment_meta :text
1882
1884
  # month_of_publication :integer
1885
+ # fulltext_content :boolean
1886
+ # serial :boolean
1887
+ # statement_of_responsibility :text
1888
+ # publication_place :text
1889
+ # extent :text
1890
+ # dimensions :text
1883
1891
  #
1884
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_circulation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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-11-11 00:00:00.000000000 Z
11
+ date: 2015-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_leaf
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.0
19
+ version: 1.1.2
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: 1.1.0
26
+ version: 1.1.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: enju_event
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.17
33
+ version: 0.1.18
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.17
40
+ version: 0.1.18
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.3'
89
+ version: '3.4'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.3'
96
+ version: '3.4'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: factory_girl_rails
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: sunspot_solr
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: '2.2'
117
+ version: 2.2.0
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: '2.2'
124
+ version: 2.2.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -481,6 +481,7 @@ files:
481
481
  - spec/dummy/config/environments/development.rb
482
482
  - spec/dummy/config/environments/production.rb
483
483
  - spec/dummy/config/environments/test.rb
484
+ - spec/dummy/config/initializers/assets.rb
484
485
  - spec/dummy/config/initializers/backtrace_silencers.rb
485
486
  - spec/dummy/config/initializers/devise.rb
486
487
  - spec/dummy/config/initializers/friendly_id.rb
@@ -776,7 +777,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
776
777
  version: '0'
777
778
  requirements: []
778
779
  rubyforge_project:
779
- rubygems_version: 2.4.5.1
780
+ rubygems_version: 2.5.0
780
781
  signing_key:
781
782
  specification_version: 4
782
783
  summary: enju_circulation plugin
@@ -816,6 +817,7 @@ test_files:
816
817
  - spec/dummy/config/environments/development.rb
817
818
  - spec/dummy/config/environments/production.rb
818
819
  - spec/dummy/config/environments/test.rb
820
+ - spec/dummy/config/initializers/assets.rb
819
821
  - spec/dummy/config/initializers/backtrace_silencers.rb
820
822
  - spec/dummy/config/initializers/devise.rb
821
823
  - spec/dummy/config/initializers/friendly_id.rb