ruby-anything 0.0.2 → 0.0.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 +7 -0
- data/lib/ruby-anything/version.rb +1 -1
- data/lib/ruby-anything.rb +12 -0
- metadata +14 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2f91218523e649abb9017e748299d868ad5e833f
|
4
|
+
data.tar.gz: c0c8b9882a64aeca3e762b469626f824387e2a9c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 884d5ea53e184a7d76a1bb002eb57a191922a6992354a48536dddc9f97b1474205105649c67a3a163f70be0e60d47bf91c12882cf7ef160852e7863139aea69c
|
7
|
+
data.tar.gz: c4aca462bd34cf78f3b1cc0d8b01a3e14ef1f8774ec26e1933199e04b6ae662f1cdb319c4fc5b3523788a7fc3436c2ebcc8e07ccf2972c973bdf80ef1ab63592
|
data/lib/ruby-anything.rb
CHANGED
@@ -14,6 +14,18 @@ module RubyAnything
|
|
14
14
|
raise ArgumentError, "Invalid argument `#{ary}` for RubyAnything.execute. This argument's element must have `to_s` method"
|
15
15
|
end
|
16
16
|
|
17
|
+
isatty = STDOUT.isatty
|
18
|
+
|
19
|
+
unless isatty
|
20
|
+
stdout_old = STDOUT.dup
|
21
|
+
STDOUT.reopen('/dev/tty')
|
22
|
+
end
|
23
|
+
|
17
24
|
Windows.anything ary.map(&:to_s)
|
25
|
+
ensure
|
26
|
+
unless isatty
|
27
|
+
STDOUT.flush
|
28
|
+
STDOUT.reopen stdout_old
|
29
|
+
end
|
18
30
|
end
|
19
31
|
end
|
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-anything
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.2
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Takatoshi Matsumoto
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
16
|
-
|
17
|
-
version_requirements: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
19
16
|
requirements:
|
20
|
-
- -
|
17
|
+
- - '>='
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: '0'
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
description: Anything interface for ruby
|
@@ -56,27 +53,26 @@ files:
|
|
56
53
|
- spec/spec_helper.rb
|
57
54
|
homepage: http://github.com/ToQoz/ruby-anything
|
58
55
|
licenses: []
|
56
|
+
metadata: {}
|
59
57
|
post_install_message:
|
60
58
|
rdoc_options: []
|
61
59
|
require_paths:
|
62
60
|
- lib
|
63
61
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
62
|
requirements:
|
66
|
-
- -
|
63
|
+
- - '>='
|
67
64
|
- !ruby/object:Gem::Version
|
68
65
|
version: '0'
|
69
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
67
|
requirements:
|
72
|
-
- -
|
68
|
+
- - '>='
|
73
69
|
- !ruby/object:Gem::Version
|
74
70
|
version: '0'
|
75
71
|
requirements: []
|
76
72
|
rubyforge_project:
|
77
|
-
rubygems_version:
|
73
|
+
rubygems_version: 2.0.2
|
78
74
|
signing_key:
|
79
|
-
specification_version:
|
75
|
+
specification_version: 4
|
80
76
|
summary: Provide anything interface for ruby. Adds method 'anything' to Kernel.
|
81
77
|
test_files:
|
82
78
|
- spec/ruby-anything/filterable_spec.rb
|