enju_inventory 0.3.0.beta.1 → 0.3.0

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
  SHA1:
3
- metadata.gz: 852e91e67559741b963632202379bb61356be037
4
- data.tar.gz: 0f95edd4e3d9eaa23d37237b3a2a9cfceed7ce86
3
+ metadata.gz: c4d50b7e15533f78ab52f9721131bfe8e2d0e6b8
4
+ data.tar.gz: 977c970e7f16fbf01ecd99d5f0408dda975e4bc2
5
5
  SHA512:
6
- metadata.gz: 5969ca26ddcb6fd252a3401e115e659080fc746f1bffafa4aaa57af33366a4cb2ffb243d237ce91e5f20b0c95d7f023f1511e23ce2b8e84939570373adb03a09
7
- data.tar.gz: 255b316453e7383b1e895b212f59ba68a18c9ee7192eb9b4830df931a8613de34bee14b6210f3bba11a8704dd24cb173645f3983e4ce2d21ea0a99f697b5740c
6
+ metadata.gz: f4b3690aff8c0c36c109e39b2773c2cc84c1a6ff0b7615cdc79955e1611026277c3fcc9f51f0f2aa2cf62ba4d12310918adafd9666e4224cb69c4d39d03c9809
7
+ data.tar.gz: 7d1da914990a234ab0137652557c2bebc3d3a4d0c88b169f36cbdf65cc5993216e197c12b707f375ae2c2200f449f0847077476e4d9a724ff474d502cdd7d28e
@@ -7,4 +7,4 @@ This project rocks and uses MIT-LICENSE.
7
7
 
8
8
  == 製作者・貢献者 (Authors and contributors)
9
9
  * {TANABE, Kosuke}[https://github.com/nabeta] ({@nabeta}[https://twitter.com/nabeta])
10
- * {Project Next-L}[http://www.next-l.jp] ({@ProjectNextL}[https://twitter.com/ProjectNextL])
10
+ * {Project Next-L}[https://www.next-l.jp] ({@ProjectNextL}[https://twitter.com/ProjectNextL])
@@ -1,3 +1,3 @@
1
1
  module EnjuInventory
2
- VERSION = "0.3.0.beta.1"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -2,34 +2,40 @@ FactoryBot.define do
2
2
  factory :admin, class: User do |f|
3
3
  f.sequence(:username){|n| "admin_#{n}"}
4
4
  f.sequence(:email){|n| "admin_#{n}@example.jp"}
5
- f.role {Role.find_by_name('Administrator')}
6
- f.password 'adminpassword'
7
- f.password_confirmation 'adminpassword'
8
- f.user_group {UserGroup.first}
9
- f.required_role {Role.find_by_name('User')}
10
- f.sequence(:user_number){|n| "user_number_#{n}"}
5
+ f.password { 'adminpassword' }
6
+ f.password_confirmation { 'adminpassword' }
7
+ f.after(:create) do |user|
8
+ user_has_role = UserHasRole.new
9
+ user_has_role.assign_attributes({user_id: user.id, role_id: Role.find_by(name: 'Administrator').id})
10
+ user_has_role.save
11
+ user.reload
12
+ end
11
13
  end
12
14
 
13
15
  factory :librarian, class: User do |f|
14
16
  f.sequence(:username){|n| "librarian_#{n}"}
15
17
  f.sequence(:email){|n| "librarian_#{n}@example.jp"}
16
- f.role {Role.find_by_name('Librarian')}
17
- f.password 'librarianpassword'
18
- f.password_confirmation 'librarianpassword'
19
- f.user_group {UserGroup.first}
20
- f.required_role {Role.find_by_name('User')}
21
- f.sequence(:user_number){|n| "user_number_#{n}"}
18
+ f.password { 'librarianpassword' }
19
+ f.password_confirmation { 'librarianpassword' }
20
+ f.after(:create) do |user|
21
+ user_has_role = UserHasRole.new
22
+ user_has_role.assign_attributes({user_id: user.id, role_id: Role.find_by(name: 'Librarian').id})
23
+ user_has_role.save
24
+ user.reload
25
+ end
22
26
  end
23
27
 
24
28
  factory :user, class: User do |f|
25
29
  f.sequence(:username){|n| "user_#{n}"}
26
30
  f.sequence(:email){|n| "user_#{n}@example.jp"}
27
- f.role {Role.find_by_name('User')}
28
- f.password 'userpassword'
29
- f.password_confirmation 'userpassword'
30
- f.user_group {UserGroup.first}
31
- f.required_role {Role.find_by_name('User')}
32
- f.sequence(:user_number){|n| "user_number_#{n}"}
31
+ f.password { 'userpassword' }
32
+ f.password_confirmation { 'userpassword' }
33
+ f.after(:create) do |user|
34
+ user_has_role = UserHasRole.new
35
+ user_has_role.assign_attributes({user_id: user.id, role_id: Role.find_by(name: 'User').id})
36
+ user_has_role.save
37
+ user.reload
38
+ end
33
39
  end
34
40
 
35
41
  factory :invalid_user, class: User do |f|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.beta.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-23 00:00:00.000000000 Z
11
+ date: 2018-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_biblio
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.0.beta.2
19
+ version: 0.3.0
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.0.beta.2
26
+ version: 0.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: enju_leaf
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.0.beta.2
33
+ version: 1.3.0
34
34
  type: :development
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: 1.3.0.beta.2
40
+ version: 1.3.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -435,12 +435,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
435
435
  version: '0'
436
436
  required_rubygems_version: !ruby/object:Gem::Requirement
437
437
  requirements:
438
- - - ">"
438
+ - - ">="
439
439
  - !ruby/object:Gem::Version
440
- version: 1.3.1
440
+ version: '0'
441
441
  requirements: []
442
442
  rubyforge_project:
443
- rubygems_version: 2.6.14.1
443
+ rubygems_version: 2.6.14.3
444
444
  signing_key:
445
445
  specification_version: 4
446
446
  summary: enju_inventory plugin