wordstress 0.10.2 → 0.10.3

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: 53329380be033a87fdbb96e60914d387682bdb4a
4
- data.tar.gz: 47ce0ec60ddfa8bb8f0063e0386b8566fb424caf
3
+ metadata.gz: 47711364bb49aa85f8a3e426d687bb3b628c69fa
4
+ data.tar.gz: 3c2d000a48d7a35bf7edfdbb6f0096dfa44aced1
5
5
  SHA512:
6
- metadata.gz: cbe5713a48f2818806a9da1a33bfd8161ddaf2e8ebe43d47bdbd4d54b3cd39f2629ab33079ae7ee3b66442fc4adbfd88e604b7afc4f0a289b7a36fe8b3b5b5be
7
- data.tar.gz: 3278b107018db5809de13f878a7ca4e325e5baecf36e4aa1274429813e5cebb3c3763ee3531e2e8d6a8357342ad69d69c35719449af2297a402aa8fb6e805acb
6
+ metadata.gz: 93e2d400927c84b8dc665e84a075f19616c7320a6e8fa4908c19942ca613cb08eec46e447dd0d8b0bc3679aa89f0c2d3935c78a7d4336b8e4662a142cb866f6f
7
+ data.tar.gz: 10d005cbc9ca7effc097869e19daa4f5d65bc54956320f18ba1125b650c40872d3824e4d3358e4a7f3de091f168e817acc8fc07cfee3b2b8d08b8d3733794a07
data/bin/wordstress CHANGED
@@ -9,7 +9,7 @@ require 'wordstress'
9
9
  APPNAME = File.basename($0)
10
10
 
11
11
  $logger = Codesake::Commons::Logging.instance
12
- @output_root = Dir.home + '/wordstress'
12
+ @output_root = File.join(Dir.home, '/wordstress')
13
13
 
14
14
  opts = GetoptLong.new(
15
15
  [ '--csv', '-C', GetoptLong::NO_ARGUMENT],
@@ -38,7 +38,7 @@ end
38
38
  target=ARGV.shift
39
39
  $logger.helo APPNAME, Wordstress::VERSION
40
40
  $logger.toggle_syslog
41
- @output_dir = @output_root + target_to_dirname(target)
41
+ @output_dir = File.join(@output_root, Wordstress::Utils.target_to_dirname(target))
42
42
 
43
43
  unless Dir.exists?(@output_root)
44
44
  $logger.ok "creating output dir #{@output_root}"
@@ -2,7 +2,7 @@ module Wordstress
2
2
  class Utils
3
3
 
4
4
  # Transform a given URL into a directory name to be used to store data
5
- def target_to_dirname(target)
5
+ def self.target_to_dirname(target)
6
6
  target.split("://")[1].gsub('.','_').gsub('/', '')
7
7
  end
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Wordstress
2
- VERSION = "0.10.2"
2
+ VERSION = "0.10.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordstress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paolo Perego