-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
353 changed files
with
2,906 additions
and
2,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Ruby CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-ruby/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
# specify the version you desire here | ||
- image: circleci/ruby:2.5.3-node-browsers | ||
environment: | ||
PGHOST: 127.0.0.1 | ||
PGUSER: postgres | ||
|
||
# Specify service dependencies here if necessary | ||
# CircleCI maintains a library of pre-built images | ||
# documented at https://circleci.com/docs/2.0/circleci-images/ | ||
- image: circleci/postgres:10 | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_DB: enju_inventory_dummy_test | ||
|
||
working_directory: ~/repo | ||
|
||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "Gemfile.lock" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: | ||
name: install dependencies | ||
command: | | ||
bundle install --jobs=4 --retry=3 --path vendor/bundle | ||
- save_cache: | ||
paths: | ||
- ./vendor/bundle | ||
key: v1-dependencies-{{ checksum "Gemfile.lock" }} | ||
|
||
# Database setup | ||
- run: | ||
command: dockerize -wait tcp://localhost:5432 -timeout 1m | ||
- run: bundle exec rake db:create | ||
- run: bundle exec rake db:schema:load | ||
- run: bundle exec rake app:sunspot:solr:start RAILS_ENV=test | ||
|
||
# run tests! | ||
- run: | ||
name: run tests | ||
command: | | ||
mkdir /tmp/test-results | ||
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)" | ||
bundle exec rspec --format progress \ | ||
--format RspecJunitFormatter \ | ||
--out /tmp/test-results/rspec.xml \ | ||
--format progress \ | ||
$TEST_FILES | ||
# collect reports | ||
- store_test_results: | ||
path: /tmp/test-results | ||
- store_artifacts: | ||
path: /tmp/test-results | ||
destination: test-results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
= EnjuInventory | ||
{<img src="https://travis-ci.org/next-l/enju_inventory.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/next-l/enju_inventory] | ||
{<img src="https://codeclimate.com/github/next-l/enju_inventory/badges/coverage.svg" />}[https://codeclimate.com/github/next-l/enju_inventory/coverage] | ||
{<img src="https://coveralls.io/repos/next-l/enju_inventory/badge.svg?branch=master&service=github" alt="Coverage Status" />}[https://coveralls.io/github/next-l/enju_inventory?branch=master] | ||
{<img src="https://hakiri.io/github/next-l/enju_inventory/master.svg" alt="security" />}[https://hakiri.io/github/next-l/enju_inventory/master] | ||
|
||
This project rocks and uses MIT-LICENSE. | ||
|
||
== 製作者・貢献者 (Authors and contributors) | ||
* {TANABE, Kosuke}[https://github.com/nabeta] ({@nabeta}[https://twitter.com/nabeta]) | ||
* {Project Next-L}[http://www.next-l.jp] ({@ProjectNextL}[https://twitter.com/ProjectNextL]) | ||
* {Project Next-L}[https://www.next-l.jp] ({@ProjectNextL}[https://twitter.com/ProjectNextL]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div id="content_detail" class="ui-corner-all ui-widget-content"> | ||
<h1 class="title"><%= t('page.editing', :model => t('activerecord.models.inventory')) -%> </h1> | ||
<div id="content_list"> | ||
|
||
<%= form_for(@inventory) do |f| -%> | ||
<%= f.error_messages -%> | ||
|
||
<div class="field"> | ||
<%= f.label :item_id -%><br /> | ||
<%= f.text_field :item_id -%> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :inventory_file_id -%><br /> | ||
<%= f.text_field :inventory_file_id -%> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :note -%><br /> | ||
<%= f.text_area :note -%> | ||
</div> | ||
<div class="actions"> | ||
<%= f.submit %> | ||
</div> | ||
<%- end -%> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="submenu" class="ui-corner-all ui-widget-content"> | ||
<ul> | ||
<li><%= link_to t('page.show'), @inventory -%></li> | ||
<li><%= link_to t('page.back'), inventories_path -%></li> | ||
</ul> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div id="content_detail" class="ui-corner-all ui-widget-content"> | ||
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.inventory')) -%></h1> | ||
<div id="content_list"> | ||
|
||
<table class="table table-striped index"> | ||
<tr> | ||
<th><%= t('activerecord.models.inventory_file') -%> </th> | ||
<th><%= t('activerecord.models.item') -%> </th> | ||
<th></th> | ||
</tr> | ||
|
||
<%- @inventories.each do |inventory| -%> | ||
<tr class="line<%= cycle("0", "1") -%>"> | ||
<td><%= link_to inventory.inventory_file_id, inventory.inventory_file -%></td> | ||
<td><%= link_to inventory.item.item_identifier, inventory.item -%></td> | ||
<td> | ||
<%= link_to t('page.show'), inventory -%> | ||
<%= link_to t('page.edit'), edit_inventory_path(inventory) -%> | ||
<%= link_to t('page.destroy'), inventory, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%> | ||
</td> | ||
</tr> | ||
<%- end -%> | ||
</table> | ||
|
||
<%= paginate(@inventories) -%> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="submenu" class="ui-corner-all ui-widget-content"> | ||
<ul> | ||
<li><%= link_to t('page.new', :model => t('activerecord.models.inventory')), new_inventory_path -%></li> | ||
</ul> | ||
</div> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.