dustcart 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56a519e271c581bc5611287d4cd8f9005f295ae1
4
- data.tar.gz: 7bee7c8fe6fca08a01bc7d28ad4eafabb35c7daa
3
+ metadata.gz: 4d97b71787f1d65b045c0a12aa49bbfb3c188574
4
+ data.tar.gz: 6e9eec49566a1d84ba6aa59f41ab1d2e7a4f7263
5
5
  SHA512:
6
- metadata.gz: aa24717a0ae6b4686ffa005fad63f0c9148bbab6da9e9d2db67fdd12f439c64a528539bed6a7ef097d689e619a2235fe4f2d2317bf59bcdec1dfb09dacbd6f83
7
- data.tar.gz: 883e8dbfe5d7ad4fa2ecf233466532cc5bdfbf220fc3e79949daba64f0cbe2ecbc04c0907d51381b40625f4a92a33d912c761a16542adcdf1b562ab98374e854
6
+ metadata.gz: 972e8c1b5db68163ed5f751260e2b0dd49fe8c9b53cc8a5c5baa9a610f370ffad6933c92ca30a3b648d17af53703118ab292c2122f9e159bb27c60132b13bfe3
7
+ data.tar.gz: 80d23388d7cfb4ba87fb0d21df73144e1db4506496d87983ea0c0939d8f66530a545e27114f519eb4c7acd825c6cd82e88c6cdd76e1610bad4c2545b61ceea3b
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Dustcart
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/dustcart.svg)](https://badge.fury.io/rb/dustcart)
3
4
  [![CircleCI](https://circleci.com/gh/tamano/dustcart.svg?style=svg)](https://circleci.com/gh/tamano/dustcart)
4
5
  [![Code Climate](https://codeclimate.com/github/tamano/dustcart/badges/gpa.svg)](https://codeclimate.com/github/tamano/dustcart)
5
6
  [![Test Coverage](https://codeclimate.com/github/tamano/dustcart/badges/coverage.svg)](https://codeclimate.com/github/tamano/dustcart/coverage)
@@ -19,18 +19,17 @@ module Dustcart
19
19
  def dump_site(path)
20
20
  raise 'dump_site has already set.' if @_temp_dir
21
21
 
22
- path.chomp!('/')
22
+ @dump_base = path.chomp('/')
23
23
  time_str = Time.now.strftime('%Y%m%d%H%M%S')
24
- @_temp_dir = "#{path}/#{time_str}"
25
- @dump_base = path
24
+ @_temp_dir = "#{@dump_base}/#{time_str}"
26
25
  end
27
26
 
28
27
  def temp_dir
29
28
  return @_temp_dir if @_temp_dir
30
29
 
30
+ @dump_base = '/tmp/dustcart'
31
31
  time_str = Time.now.strftime('%Y%m%d%H%M%S')
32
- @_temp_dir = "/tmp/#{time_str}"
33
- @dump_base = '/tmp'
32
+ @_temp_dir = "#{@dump_base}/#{time_str}"
34
33
  end
35
34
 
36
35
  def group(*args, &block)
@@ -1,3 +1,3 @@
1
1
  module Dustcart
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dustcart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya TAMANO