gsrd 0.1.3 → 0.1.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gsrd.rb +4 -1
  3. data/lib/gsrd/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6bac5a2de7447010adf2c2463aeff83122ede09
4
- data.tar.gz: 13e09309b3a791566443fbc286ca6397a966168b
3
+ metadata.gz: 88ad3eb5d59e445530c2669f79553cb75355bf83
4
+ data.tar.gz: 5cc395ee1d8ce608d070aa2007324919fbb4a432
5
5
  SHA512:
6
- metadata.gz: 0774557a02200bf07bd31286ae01c17b0bd2d57995d82ba435734ac4e6df17b999a5b89639ad4952a6e6c1f15b7e471948622e21af4428b79165e9bec567b47f
7
- data.tar.gz: cd70c67e0c4cce07b11d4672d4eaadcfd2c710d73c70d68daf4efc8947f633adcdec3bbce5d96e8224f413cfc3542add20cc2d2b8703a0023f5cca91f5774e18
6
+ metadata.gz: 3696da3fa5f0691fb751a1ba1934143b6d378448500a63fd16e8b470430ea30cfd3a7475247d4b05575694139d77ebaf5eb5106dd9eb359aceffd9e494db6799
7
+ data.tar.gz: ab7eea98fa0e4b5192fcaf8e20cab426e7cb27ef27fc84349d2d919db9642e8ac50fc32633a3d053df8ea7b4379c2571f8ef54a982bc8e891772589c717fa7d8
@@ -28,7 +28,10 @@ module Gsrd
28
28
 
29
29
  def go()
30
30
 
31
- @directory_name = Dir.pwd + "/gsrd-downloads"
31
+ @time = Time.new
32
+ @month = @time.month.to_s.rjust(2, "0")
33
+ @day = @time.day.to_s.rjust(2, "0")
34
+ @directory_name = Dir.pwd + "/gsrd-downloads-#{@time.year}-#{@month}-#{@day}"
32
35
  Dir.mkdir(@directory_name) unless File.exists?(@directory_name)
33
36
 
34
37
  @pagination = 1
@@ -1,3 +1,3 @@
1
1
  module Gsrd
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gsrd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Cardoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-15 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty