selly 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 231d308af9ae1960f66c512426dea854dcb9d975
4
- data.tar.gz: bb97594ca94e71a2d4bb1413b6439bbf601d7c12
3
+ metadata.gz: c51f43c019444bb4d8b167d9af035b74d726dbb2
4
+ data.tar.gz: 7b740767fe10ed1a1961f43ba900d1eafcc82b69
5
5
  SHA512:
6
- metadata.gz: b55c6f694bb5cbe8c56adf5ccca61bf26cc333bfdbd71de621f612193ec03af056426b05c3798941c59dbeb2a018fc48c13c152c74c89f022c0693e09159f495
7
- data.tar.gz: 145d13778d8965aea2cd7cdcb89a39408f000b46072f7ac59f814675b141d099d060b7358f4734dc47c67179a218d1536d53ea0ef45424ba0d6e90b263e5139d
6
+ metadata.gz: 11e856b15e6bdf6244fd8c85c926d82e75632a4c0b0bcea9349fc7f9b3641aadcff23b0b504d315c3dc9cdaa84d951fc7aca3d21d64b2409334278c59b99b1c4
7
+ data.tar.gz: d73375f631e3db6585005b4dbc1095f4a3abaafb3953b8ee1324c83fca557d4bdb9fe664453b85056b86a84bf09ba2db3ed32411e8c23506d9f4cd2e511cb51f
data/bin/setup CHANGED
@@ -1,8 +1,38 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+ require 'fileutils'
4
+ include FileUtils
5
5
 
6
- bundle install
6
+ # path to your application root.
7
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
7
8
 
8
- # Do any other automated setup that you need to do here
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ chdir APP_ROOT do
14
+ # This script is a starting point to setup your application.
15
+ # Add necessary setup steps to this file.
16
+
17
+ puts '== Installing dependencies =='
18
+ system! 'gem install bundler --conservative'
19
+ system('bundle check') || system!('bundle install')
20
+
21
+ # Install JavaScript dependencies if using Yarn
22
+ # system('bin/yarn')
23
+
24
+
25
+ # puts "\n== Copying sample files =="
26
+ # unless File.exist?('config/database.yml')
27
+ # cp 'config/database.yml.sample', 'config/database.yml'
28
+ # end
29
+
30
+ puts "\n== Preparing database =="
31
+ system! 'bin/rails db:setup'
32
+
33
+ puts "\n== Removing old logs and tempfiles =="
34
+ system! 'bin/rails log:clear tmp:clear'
35
+
36
+ puts "\n== Restarting application server =="
37
+ system! 'bin/rails restart'
38
+ end
@@ -11,7 +11,6 @@ require 'selly/orders'
11
11
  require 'selly/pay'
12
12
  require 'selly/products'
13
13
  require 'selly/product_groups'
14
- require 'selly/statistics'
15
14
  require 'base64'
16
15
 
17
16
  module Selly
@@ -1,3 +1,3 @@
1
1
  module Selly
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Selly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-06 00:00:00.000000000 Z
11
+ date: 2018-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http