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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8392284c1b29c23af2b8d6d5d9438afe6c0c7ee
4
- data.tar.gz: 4f5c215bd533659209b1f91841953c0fad15c4c3
3
+ metadata.gz: 0fe3f3fa0c4de4001f14909dc1bdf2a0b342a8a6
4
+ data.tar.gz: c7e46abf98fb70885f861c3689c7cd965b5be2ea
5
5
  SHA512:
6
- metadata.gz: f58e78373d9f384b5ac5294fbc5768acd32b6dc334f67a54521248b927103923f08cef820cbce39571bffcd214814f0cbe2a0c756a39184df9b5f923451bbb18
7
- data.tar.gz: 4b310a8b9e9587c45b94c3d19b573c63320d7426b6a86d9a28f3311cfb90fd3746db69b4a12012238eadcb60d69834221df7825d9e3e0268786a01556a5db4fb
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
- # It's a file, we just send it
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
@@ -1,3 +1,3 @@
1
1
  module Glynn
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
data/lib/glynn.rb CHANGED
@@ -2,5 +2,4 @@ $:.unshift File.dirname(__FILE__) # For use/testing when no gem is installed
2
2
  require 'rubygems'
3
3
 
4
4
  require 'glynn/jekyll'
5
- require 'glynn/file'
6
- require 'glynn/ftp'
5
+ require 'glynn/ftp'
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.0
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-05-12 00:00:00.000000000 Z
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