glynn 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/glynn/ftp.rb +1 -6
- data/lib/glynn/version.rb +1 -1
- data/lib/glynn.rb +1 -2
- metadata +3 -4
- data/lib/glynn/file.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fe3f3fa0c4de4001f14909dc1bdf2a0b342a8a6
|
4
|
+
data.tar.gz: c7e46abf98fb70885f861c3689c7cd965b5be2ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10c3b169b3852b37c81614848c768e3ab81dba823491e52c8dc6b0451f4677c76e4471a93ef5b89f99a7146943f1f7470cafb561769d2edddce916f876a79222
|
7
|
+
data.tar.gz: 77d4304c5fa8dce3d039395a7a4403039d25e8ae876b55e59ffb680f4c216c9911d3f37cb1edee06f047d7b040bbca83f83c0e75bead1d93872f7f8c37d76c24
|
data/lib/glynn/ftp.rb
CHANGED
@@ -58,12 +58,7 @@ module Glynn
|
|
58
58
|
end
|
59
59
|
send_dir(ftp, local + "/" + file_name, distant + "/" + file_name)
|
60
60
|
else
|
61
|
-
|
62
|
-
if Glynn::File.is_bin?(local + "/" + file_name)
|
63
|
-
ftp.putbinaryfile(local + "/" + file_name, distant + "/" + file_name)
|
64
|
-
else
|
65
|
-
ftp.puttextfile(local + "/" + file_name, distant + "/" + file_name)
|
66
|
-
end
|
61
|
+
ftp.putbinaryfile(local + "/" + file_name, distant + "/" + file_name)
|
67
62
|
end
|
68
63
|
end
|
69
64
|
end
|
data/lib/glynn/version.rb
CHANGED
data/lib/glynn.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glynn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damien MATHIEU
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -75,7 +75,6 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- bin/glynn
|
77
77
|
- lib/glynn.rb
|
78
|
-
- lib/glynn/file.rb
|
79
78
|
- lib/glynn/ftp.rb
|
80
79
|
- lib/glynn/jekyll.rb
|
81
80
|
- lib/glynn/version.rb
|
@@ -99,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
98
|
version: '0'
|
100
99
|
requirements: []
|
101
100
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.4.5
|
101
|
+
rubygems_version: 2.4.5.1
|
103
102
|
signing_key:
|
104
103
|
specification_version: 4
|
105
104
|
summary: Deploy a jekyll weblog through ftp
|
data/lib/glynn/file.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
module Glynn
|
2
|
-
class File
|
3
|
-
|
4
|
-
def self.is_bin?(f)
|
5
|
-
file_test = %x(file #{f})
|
6
|
-
|
7
|
-
# http://stackoverflow.com/a/8873922
|
8
|
-
file_test = file_test.encode('UTF-16', 'UTF-8', :invalid => :replace, :replace => '').encode('UTF-8', 'UTF-16')
|
9
|
-
|
10
|
-
file_test !~ /text/
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|