Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
746ebe7b
Commit
746ebe7b
authored
7 years ago
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add autoload to shotengai.rb
parent
fbaf667c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
22 deletions
+30
-22
.rspec_status
.rspec_status
+16
-16
shotengai.rb
lib/shotengai.rb
+10
-2
shotengai.gemspec
shotengai.gemspec
+3
-3
models_spec.rb
spec/shotengai/models_spec.rb
+1
-1
No files found.
.rspec_status
View file @
746ebe7b
example_id | status | run_time |
------------------------------------------ | ------ | --------------- |
./spec/shotengai/models_spec.rb[1:1:1:1] |
passed | 0.36006
seconds |
./spec/shotengai/models_spec.rb[1:1:1:2] |
passed | 0.19221
seconds |
./spec/shotengai/models_spec.rb[1:1:2:1] |
passed | 0.19696
seconds |
./spec/shotengai/models_spec.rb[1:1:2:2] |
passed | 0.17745 seconds
|
./spec/shotengai/models_spec.rb[1:1:2:3] |
passed | 0.17437
seconds |
./spec/shotengai/models_spec.rb[1:1:3:1] |
passed | 0.1932
2 seconds |
./spec/shotengai/models_spec.rb[1:1:3:2] |
passed | 0.1998 seconds
|
./spec/shotengai/models_spec.rb[1:1:3:3] |
passed | 0.2012 seconds
|
./spec/shotengai/models_spec.rb[1:1:4:1] |
passed | 0.22549 seconds
|
./spec/shotengai/models_spec.rb[1:1:5:1] |
passed | 0.1951
4 seconds |
./spec/shotengai/models_spec.rb[1:1:5:2:1] |
passed | 0.25054
seconds |
./spec/shotengai/models_spec.rb[1:1:5:2:2] |
passed | 0.22609
seconds |
./spec/shotengai/models_spec.rb[1:2:1:1] |
passed | 0.22996
seconds |
./spec/shotengai/models_spec.rb[1:2:1:2] |
passed | 0.2075 seconds
|
./spec/shotengai/models_spec.rb[1:2:2:1] | passed | 0.
46901
seconds |
./spec/shotengai/models_spec.rb[1:2:2:2] |
passed | 0.29917
seconds |
./spec/shotengai/models_spec.rb[1:1:1:1] |
failed | 0.20529
seconds |
./spec/shotengai/models_spec.rb[1:1:1:2] |
failed | 0.16928
seconds |
./spec/shotengai/models_spec.rb[1:1:2:1] |
failed | 0.16917
seconds |
./spec/shotengai/models_spec.rb[1:1:2:2] |
failed | 0.1559 seconds
|
./spec/shotengai/models_spec.rb[1:1:2:3] |
failed | 0.16818
seconds |
./spec/shotengai/models_spec.rb[1:1:3:1] |
failed | 0.1707
2 seconds |
./spec/shotengai/models_spec.rb[1:1:3:2] |
failed | 0.17477 seconds
|
./spec/shotengai/models_spec.rb[1:1:3:3] |
failed | 0.16544 seconds
|
./spec/shotengai/models_spec.rb[1:1:4:1] |
failed | 0.1618 seconds
|
./spec/shotengai/models_spec.rb[1:1:5:1] |
failed | 0.1556
4 seconds |
./spec/shotengai/models_spec.rb[1:1:5:2:1] |
failed | 0.15182
seconds |
./spec/shotengai/models_spec.rb[1:1:5:2:2] |
failed | 0.16236
seconds |
./spec/shotengai/models_spec.rb[1:2:1:1] |
failed | 0.17459
seconds |
./spec/shotengai/models_spec.rb[1:2:1:2] |
failed | 0.18331 seconds
|
./spec/shotengai/models_spec.rb[1:2:2:1] | passed | 0.
61428
seconds |
./spec/shotengai/models_spec.rb[1:2:2:2] |
failed | 0.15561
seconds |
This diff is collapsed.
Click to expand it.
lib/shotengai.rb
View file @
746ebe7b
require
"shotengai/version"
require
'rails'
require
'active_record'
Dir
[
'./lib/shotengai/*.rb'
].
each
{
|
f
|
require
f
}
# require 'active_record'
module
Shotengai
# Your code goes here...
autoload
:Product
,
'shotengai/product'
autoload
:Series
,
'shotengai/series'
autoload
:Snapshot
,
'shotengai/snapshot'
autoload
:Order
,
'shotengai/order'
autoload
:Cart
,
'shotengai/cart'
autoload
:Buyer
,
'shotengai/buyer'
autoload
:Catalog
,
'shotengai/catalog'
autoload
:AASM_DLC
,
'shotengai/aasm_dlc'
autoload
:WebError
,
'shotengai/web_error'
end
This diff is collapsed.
Click to expand it.
shotengai.gemspec
View file @
746ebe7b
...
...
@@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
'public gem pushes.'
end
spec
.
files
=
'git ls-files -z'
.
split
(
'\x0'
).
reject
do
|
f
|
f
.
match
(
%r{^(test|spec|features)/}
)
end
# spec.files = `git ls-files -z`
.split('\x0').reject do |f|
#
f.match(%r{^(test|spec|features)/})
#
end
spec
.
bindir
=
'exe'
spec
.
executables
=
spec
.
files
.
grep
(
%r{^exe/}
)
{
|
f
|
File
.
basename
(
f
)
}
spec
.
require_paths
=
[
'lib'
]
...
...
This diff is collapsed.
Click to expand it.
spec/shotengai/models_spec.rb
View file @
746ebe7b
...
...
@@ -270,7 +270,7 @@ RSpec.describe 'Shotengai Models' do
after
do
ActiveRecord
::
Migration
[
5.1
].
subclasses
.
each
do
|
migrate
|
migrate
.
migrate
(
:down
)
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment