tty-command 0.3.1 → 0.3.2
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 +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/tty/command/execute.rb +2 -2
- data/lib/tty/command/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94f05c48b5dc4ffb259eed2cca53727acfa59f45
|
|
4
|
+
data.tar.gz: 5dcbf108c255ba4e743e2a12df20c81d98813c83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb756ff22fcb8d4cc721b86f01955cbd880f69ec0780a43a3eeab3c46341f23d8e38fb911a42d5a98825e6144c55e69fbf734637db2545de15d088ffc59fbb7c
|
|
7
|
+
data.tar.gz: d812bd31345c16df4226f17d7edb0e7ff56dc5b5d7e3f706222e458c2b22ce66b255bafe33ce399065e7557a77ba4048d873138e46c44962171429bb60bde7b3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# Change log
|
|
2
2
|
|
|
3
|
+
## [v0.3.2] - 2017-02-06
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
* Fix File namespacing
|
|
7
|
+
|
|
3
8
|
## [v0.3.1] - 2017-01-22
|
|
4
9
|
|
|
5
|
-
###
|
|
10
|
+
### Fixed
|
|
6
11
|
* Fix top level File constant
|
|
7
12
|
|
|
8
13
|
## [v0.3.0] - 2017-01-13
|
|
@@ -28,6 +33,8 @@
|
|
|
28
33
|
|
|
29
34
|
* Initial implementation and release
|
|
30
35
|
|
|
36
|
+
[v0.3.2]: https://github.com/piotrmurach/tty-command/compare/v0.3.1...v0.3.2
|
|
37
|
+
[v0.3.1]: https://github.com/piotrmurach/tty-command/compare/v0.3.0...v0.3.1
|
|
31
38
|
[v0.3.0]: https://github.com/piotrmurach/tty-command/compare/v0.2.0...v0.3.0
|
|
32
39
|
[v0.2.0]: https://github.com/piotrmurach/tty-command/compare/v0.1.0...v0.2.0
|
|
33
40
|
[v0.1.0]: https://github.com/piotrmurach/tty-command/compare/v0.1.0
|
data/lib/tty/command/execute.rb
CHANGED
|
@@ -99,11 +99,11 @@ module TTY
|
|
|
99
99
|
def convert_to_fd(object)
|
|
100
100
|
return object if fd?(object)
|
|
101
101
|
|
|
102
|
-
if object.is_a?(::String) && File.exists?(object)
|
|
102
|
+
if object.is_a?(::String) && ::File.exists?(object)
|
|
103
103
|
return object
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
tmp = Tempfile.new(SecureRandom.uuid.split('-')[0])
|
|
106
|
+
tmp = ::Tempfile.new(::SecureRandom.uuid.split('-')[0])
|
|
107
107
|
|
|
108
108
|
content = try_reading(object)
|
|
109
109
|
tmp.write(content)
|
data/lib/tty/command/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tty-command
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piotr Murach
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pastel
|