ru2 2.1.4 → 2.1.5
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/gemfiles/activesupport_3.gemfile.lock +2 -2
- data/gemfiles/activesupport_4.gemfile.lock +3 -3
- data/gemfiles/activesupport_5.gemfile.lock +4 -4
- data/lib/ru/file.rb +12 -2
- data/lib/ru/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24b06ee55e0f75bacdc2cd2f24a26ef4b68639e0
|
|
4
|
+
data.tar.gz: fb590fdf5fab06a173cb904b461ff37143a18373
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5dae726d2b6e487e17a9eeba3e97bddad021061c2b01c30542a2db8f7eb0cea62b700427f292d729b2149f09d205f16a91aad355835b921cd19d98e263172f3
|
|
7
|
+
data.tar.gz: f3fc078d8b72c90ec463d9c0e90d09e96294bc655c5ee8a52b5fea7a87a3f3b11f9d475f8c0797b27766c00e93a2d02a127131eac98b84cb638277182ec16080
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../
|
|
3
3
|
specs:
|
|
4
|
-
ru2 (2.1.
|
|
4
|
+
ru2 (2.1.5)
|
|
5
5
|
activesupport (>= 3.2.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -14,7 +14,7 @@ GEM
|
|
|
14
14
|
bundler
|
|
15
15
|
rake
|
|
16
16
|
thor (>= 0.14.0)
|
|
17
|
-
diff-lcs (1.
|
|
17
|
+
diff-lcs (1.3)
|
|
18
18
|
i18n (0.7.0)
|
|
19
19
|
multi_json (1.12.1)
|
|
20
20
|
rake (12.0.0)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../
|
|
3
3
|
specs:
|
|
4
|
-
ru2 (2.1.
|
|
4
|
+
ru2 (2.1.5)
|
|
5
5
|
activesupport (>= 3.2.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -17,9 +17,9 @@ GEM
|
|
|
17
17
|
bundler
|
|
18
18
|
rake
|
|
19
19
|
thor (>= 0.14.0)
|
|
20
|
-
diff-lcs (1.
|
|
20
|
+
diff-lcs (1.3)
|
|
21
21
|
i18n (0.7.0)
|
|
22
|
-
json (1.8.
|
|
22
|
+
json (1.8.6)
|
|
23
23
|
minitest (5.10.1)
|
|
24
24
|
rake (12.0.0)
|
|
25
25
|
rspec (3.5.0)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../
|
|
3
3
|
specs:
|
|
4
|
-
ru2 (2.1.
|
|
4
|
+
ru2 (2.1.5)
|
|
5
5
|
activesupport (>= 3.2.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activesupport (5.0.
|
|
10
|
+
activesupport (5.0.1)
|
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
12
12
|
i18n (~> 0.7)
|
|
13
13
|
minitest (~> 5.1)
|
|
@@ -16,8 +16,8 @@ GEM
|
|
|
16
16
|
bundler
|
|
17
17
|
rake
|
|
18
18
|
thor (>= 0.14.0)
|
|
19
|
-
concurrent-ruby (1.0.
|
|
20
|
-
diff-lcs (1.
|
|
19
|
+
concurrent-ruby (1.0.4)
|
|
20
|
+
diff-lcs (1.3)
|
|
21
21
|
i18n (0.7.0)
|
|
22
22
|
minitest (5.10.1)
|
|
23
23
|
rake (12.0.0)
|
data/lib/ru/file.rb
CHANGED
|
@@ -38,7 +38,12 @@ module Ru
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
def group
|
|
41
|
-
Etc.getgrgid(gid)
|
|
41
|
+
grgid = Etc.getgrgid(gid)
|
|
42
|
+
if grgid.nil? # running on Windows
|
|
43
|
+
''
|
|
44
|
+
else
|
|
45
|
+
grgid.name
|
|
46
|
+
end
|
|
42
47
|
end
|
|
43
48
|
|
|
44
49
|
def mode
|
|
@@ -54,7 +59,12 @@ module Ru
|
|
|
54
59
|
end
|
|
55
60
|
|
|
56
61
|
def owner
|
|
57
|
-
Etc.getpwuid(uid)
|
|
62
|
+
pwuid = Etc.getpwuid(uid)
|
|
63
|
+
if pwuid.nil? # running on Windows
|
|
64
|
+
''
|
|
65
|
+
else
|
|
66
|
+
pwuid.name
|
|
67
|
+
end
|
|
58
68
|
end
|
|
59
69
|
|
|
60
70
|
def size
|
data/lib/ru/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ru2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Benner
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
120
120
|
version: '0'
|
|
121
121
|
requirements: []
|
|
122
122
|
rubyforge_project:
|
|
123
|
-
rubygems_version: 2.
|
|
123
|
+
rubygems_version: 2.6.8
|
|
124
124
|
signing_key:
|
|
125
125
|
specification_version: 4
|
|
126
126
|
summary: Ruby in your shell!
|