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 +4 -4
- data/README.rdoc +1 -1
- data/lib/enju_inventory/version.rb +1 -1
- data/spec/factories/user.rb +24 -18
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4d50b7e15533f78ab52f9721131bfe8e2d0e6b8
|
4
|
+
data.tar.gz: 977c970e7f16fbf01ecd99d5f0408dda975e4bc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4b3690aff8c0c36c109e39b2773c2cc84c1a6ff0b7615cdc79955e1611026277c3fcc9f51f0f2aa2cf62ba4d12310918adafd9666e4224cb69c4d39d03c9809
|
7
|
+
data.tar.gz: 7d1da914990a234ab0137652557c2bebc3d3a4d0c88b169f36cbdf65cc5993216e197c12b707f375ae2c2200f449f0847077476e4d9a724ff474d502cdd7d28e
|
data/README.rdoc
CHANGED
@@ -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}[
|
10
|
+
* {Project Next-L}[https://www.next-l.jp] ({@ProjectNextL}[https://twitter.com/ProjectNextL])
|
data/spec/factories/user.rb
CHANGED
@@ -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.
|
6
|
-
f.
|
7
|
-
f.
|
8
|
-
|
9
|
-
|
10
|
-
|
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.
|
17
|
-
f.
|
18
|
-
f.
|
19
|
-
|
20
|
-
|
21
|
-
|
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.
|
28
|
-
f.
|
29
|
-
f.
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|
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-
|
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
|
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
|
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
|
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
|
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:
|
440
|
+
version: '0'
|
441
441
|
requirements: []
|
442
442
|
rubyforge_project:
|
443
|
-
rubygems_version: 2.6.14.
|
443
|
+
rubygems_version: 2.6.14.3
|
444
444
|
signing_key:
|
445
445
|
specification_version: 4
|
446
446
|
summary: enju_inventory plugin
|