enju_question 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/enju_question/version.rb +1 -1
- data/spec/dummy/db/schema.rb +1 -1
- data/spec/factories/user.rb +13 -28
- data/spec/rails_helper.rb +1 -0
- metadata +15 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 033a763f7dc9343c5002e4941528421c4654bae5d9430adc08c6222367873611
|
4
|
+
data.tar.gz: eae0376c57975ee1ebef9bd895ea2942ad5fcd70c713998f4dec62a44006e9b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72c1152b9b6689a8f0bca4d99a4aa5c2235c730f5b18b513e683c9925f72e93e70f2ffe723646d141066e0a5271334323d19a61843e5998ad5cfbf134ed5a405
|
7
|
+
data.tar.gz: 8dc736e60d6a7bcf7b22a78e8f83345b1374e90383be99d38809f1efe4230bab17b966f6594b11514ed9cbf11bf4ee0c0f0634e1c1afd96458f72d7ca8e7dffd
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2018_07_09_023040) do
|
14
14
|
|
15
15
|
create_table "accepts", force: :cascade do |t|
|
16
16
|
t.integer "basket_id"
|
data/spec/factories/user.rb
CHANGED
@@ -1,43 +1,28 @@
|
|
1
1
|
FactoryBot.define do
|
2
|
-
factory :admin, :
|
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
|
-
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
|
5
|
+
f.role {Role.find_by_name('Administrator')}
|
6
|
+
f.password { 'adminpassword' }
|
7
|
+
f.password_confirmation { 'adminpassword' }
|
13
8
|
end
|
14
9
|
|
15
|
-
factory :librarian, :
|
10
|
+
factory :librarian, class: User do |f|
|
16
11
|
f.sequence(:username){|n| "librarian_#{n}"}
|
17
12
|
f.sequence(:email){|n| "librarian_#{n}@example.jp"}
|
18
|
-
f.
|
19
|
-
f.
|
20
|
-
f.
|
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
|
13
|
+
f.role {Role.find_by_name('Librarian')}
|
14
|
+
f.password { 'librarianpassword' }
|
15
|
+
f.password_confirmation { 'librarianpassword' }
|
26
16
|
end
|
27
17
|
|
28
|
-
factory :user, :
|
18
|
+
factory :user, class: User do |f|
|
29
19
|
f.sequence(:username){|n| "user_#{n}"}
|
30
20
|
f.sequence(:email){|n| "user_#{n}@example.jp"}
|
31
|
-
f.
|
32
|
-
f.
|
33
|
-
f.
|
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
|
21
|
+
f.role {Role.find_by_name('User')}
|
22
|
+
f.password { 'userpassword' }
|
23
|
+
f.password_confirmation { 'userpassword' }
|
39
24
|
end
|
40
25
|
|
41
|
-
factory :invalid_user, :
|
26
|
+
factory :invalid_user, class: User do |f|
|
42
27
|
end
|
43
28
|
end
|
data/spec/rails_helper.rb
CHANGED
@@ -35,6 +35,7 @@ RSpec.configure do |config|
|
|
35
35
|
config.extend ControllerMacros, :type => :controller
|
36
36
|
|
37
37
|
config.infer_spec_type_from_file_location!
|
38
|
+
Sunspot.session = Sunspot::SessionProxy::Retry5xxSessionProxy.new(Sunspot.session)
|
38
39
|
end
|
39
40
|
|
40
41
|
FactoryBot.definition_file_paths << "#{::Rails.root}/../../spec/factories"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_question
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.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:
|
11
|
+
date: 2019-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enju_bookmark
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.3.
|
19
|
+
version: 0.3.1
|
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.
|
26
|
+
version: 0.3.1
|
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.
|
33
|
+
version: 1.3.2
|
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.
|
40
|
+
version: 1.3.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: enju_ndl
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.3.
|
47
|
+
version: 0.3.1
|
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.3.
|
54
|
+
version: 0.3.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '3.
|
103
|
+
version: '3.8'
|
104
104
|
type: :development
|
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: '3.
|
110
|
+
version: '3.8'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: factory_bot_rails
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '4.11'
|
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: '
|
124
|
+
version: '4.11'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: vcr
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -515,8 +515,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
515
515
|
- !ruby/object:Gem::Version
|
516
516
|
version: '0'
|
517
517
|
requirements: []
|
518
|
-
|
519
|
-
rubygems_version: 2.6.14.3
|
518
|
+
rubygems_version: 3.0.3
|
520
519
|
signing_key:
|
521
520
|
specification_version: 4
|
522
521
|
summary: enju_queestion plugin
|