radikocopy 0.4.0 → 0.5.0

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
  SHA256:
3
- metadata.gz: c312d6b5fc43fceefd5f1972b590f9da863d9583df7beaf92a1ce3bced8ab57d
4
- data.tar.gz: 4fec3d797dc813a65551c51eb0d2005b7d468d7f69eeb9045443b7b6a9d62893
3
+ metadata.gz: ab31d9abc45b279b466628b595e33f9a00923d6665adb207ae8549922bd0e06f
4
+ data.tar.gz: bb8a493b860d926c988f238a617f126cd4b48005b6c14ba7cd8d4b0aa5d75eac
5
5
  SHA512:
6
- metadata.gz: 1abddd0691c300d07bf553b0efabd0804ede4fe371cd600359eaec52fcbeb875653c9ad33b9988895f1a164f11d73b73068d2e295ba5e1f8e6274cfdf34175a5
7
- data.tar.gz: bd9bca469e2e32745ba4b5a1625b9fa9e5b49f1a74cb944f52feb7ff10c87aef184bd9aeef2a9b6252fa8810a3bf80599b630156dc4e6e6c675f477acbd090a0
6
+ metadata.gz: 72570d400326da2cdcc8e6feedbae6ce186079827238dbc582900a9c6f93b84fece355a3268d25f117999b59b63c0f042ba06eaefd9c3062037618bba41809e6
7
+ data.tar.gz: c32388b6ab86bf4c9373f0909f00f78d117bd0c9e9439f19ef8ce4f3aa45aaaf90e545011507da7cd8d2cc227e03bddfe9fb68d157418e8932d6a07c55eb6453
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.6.3
@@ -1,3 +1,3 @@
1
1
  module Radikocopy
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
data/lib/radikocopy.rb CHANGED
@@ -115,12 +115,14 @@ module Radikocopy
115
115
  def copy_file(filename)
116
116
  basename = File.basename(filename)
117
117
  local_file = File.join(@config.local_dir, basename)
118
+ # puts "##### local_file #{local_file} #####"
118
119
  if FileTest.file?(local_file)
119
120
  # TODO -v option
120
121
  # puts "exists local_file #{local_file}"
121
122
  return false
122
123
  end
123
- copy_command = "scp #{@config.remote_host}:\"'#{filename}'\" \"#{@config.local_dir}\""
124
+ # puts "not exists"
125
+ copy_command = "scp -p #{@config.remote_host}:\"'#{filename}'\" \"#{@config.local_dir}\""
124
126
  runcmd_and_exit(copy_command)
125
127
  true
126
128
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radikocopy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - src
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-29 00:00:00.000000000 Z
11
+ date: 2019-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -97,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubyforge_project:
101
- rubygems_version: 2.7.6
100
+ rubygems_version: 3.0.3
102
101
  signing_key:
103
102
  specification_version: 4
104
103
  summary: Radiko copy tool