├── .rspec ├── .rubocop.yml ├── .travis.yml ├── Gemfile ├── Gemfile.lock ├── README.md ├── VERSION ├── app.rb ├── config.ru ├── lib ├── entities.rb ├── environment.rb ├── mailer.rb ├── order │ ├── builder.rb │ ├── totaller.rb │ └── validator.rb ├── payment.rb ├── processor.rb ├── resources.rb ├── templates.rb └── templates │ ├── confirm.html.erb │ ├── error.txt.erb │ ├── layout.html.erb │ └── record.txt.erb ├── public └── robots.txt └── spec ├── environment_spec.rb ├── fixtures.rb ├── order ├── builder_spec.rb ├── totaller_spec.rb └── validator_spec.rb ├── processor_spec.rb └── resources_spec.rb /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- 1 | Metrics/LineLength: 2 | Max: 100 3 | Documentation: 4 | Enabled: false -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/README.md -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 0.0.2 -------------------------------------------------------------------------------- /app.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/app.rb -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- 1 | require './app' 2 | 3 | run Sinatra::Application -------------------------------------------------------------------------------- /lib/entities.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/entities.rb -------------------------------------------------------------------------------- /lib/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/environment.rb -------------------------------------------------------------------------------- /lib/mailer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/mailer.rb -------------------------------------------------------------------------------- /lib/order/builder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/order/builder.rb -------------------------------------------------------------------------------- /lib/order/totaller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/order/totaller.rb -------------------------------------------------------------------------------- /lib/order/validator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/order/validator.rb -------------------------------------------------------------------------------- /lib/payment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/payment.rb -------------------------------------------------------------------------------- /lib/processor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/processor.rb -------------------------------------------------------------------------------- /lib/resources.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/resources.rb -------------------------------------------------------------------------------- /lib/templates.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/templates.rb -------------------------------------------------------------------------------- /lib/templates/confirm.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/templates/confirm.html.erb -------------------------------------------------------------------------------- /lib/templates/error.txt.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/templates/error.txt.erb -------------------------------------------------------------------------------- /lib/templates/layout.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/templates/layout.html.erb -------------------------------------------------------------------------------- /lib/templates/record.txt.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/lib/templates/record.txt.erb -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / 3 | -------------------------------------------------------------------------------- /spec/environment_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/spec/environment_spec.rb -------------------------------------------------------------------------------- /spec/fixtures.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/spec/fixtures.rb -------------------------------------------------------------------------------- /spec/order/builder_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/spec/order/builder_spec.rb -------------------------------------------------------------------------------- /spec/order/totaller_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/spec/order/totaller_spec.rb -------------------------------------------------------------------------------- /spec/order/validator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/spec/order/validator_spec.rb -------------------------------------------------------------------------------- /spec/processor_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/spec/processor_spec.rb -------------------------------------------------------------------------------- /spec/resources_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jekyll-store/microservice/HEAD/spec/resources_spec.rb --------------------------------------------------------------------------------