srbc 0.0.10 → 0.0.11
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/README.md +1 -1
- data/lib/srbc/srbc_cli.rb +12 -2
- data/lib/srbc/srbc_command.rb +1 -1
- data/lib/srbc/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: 7f7462081bc47bf751a7883b6ef74228e1ddcb8c
|
|
4
|
+
data.tar.gz: 600496087fde7dcf873e3649c74ebd17f5650501
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3495d106ca8ca99c72cbf72596a16aa0127865100e160884553051d5cf57a6400bd4763e2b2b5aae8468f0807b1f865a35543e17e8a81b3c27d8422265254afc
|
|
7
|
+
data.tar.gz: 8e11d48b6d31471b3068abbc1bf37579361b3349c35037f36e952325158075866bc6e18630f33abf36727483e3dc245aba7afaab6aaa3d6543c9fb405c36128e
|
data/README.md
CHANGED
|
@@ -55,7 +55,7 @@ Arguments:
|
|
|
55
55
|
|
|
56
56
|
## Contributing
|
|
57
57
|
|
|
58
|
-
1. Fork it ( https://github.com/
|
|
58
|
+
1. Fork it ( https://github.com/sedx/srbc/fork )
|
|
59
59
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
60
60
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
61
61
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/srbc/srbc_cli.rb
CHANGED
|
@@ -37,8 +37,7 @@ module SRBC_cli
|
|
|
37
37
|
|
|
38
38
|
# command cd - SRBC change current work dir
|
|
39
39
|
when /cd/
|
|
40
|
-
|
|
41
|
-
if cmd =~ /\.\./ || cmd =~/^cd$/
|
|
40
|
+
if cmd =~ /\.\.$/ || cmd =~/^cd$/
|
|
42
41
|
temp_path = Dir.pwd.split '/'
|
|
43
42
|
if temp_path.length > 1
|
|
44
43
|
temp_path.delete_at temp_path.length-1
|
|
@@ -49,6 +48,17 @@ module SRBC_cli
|
|
|
49
48
|
Dir.chdir "#{temp_path[0]}\\"
|
|
50
49
|
end
|
|
51
50
|
end
|
|
51
|
+
elsif cmd =~ /\.\.\/.*|\.\.\\.*/
|
|
52
|
+
temp_path = Dir.pwd.split '/'
|
|
53
|
+
if temp_path.length > 1
|
|
54
|
+
temp_path.delete_at temp_path.length-1
|
|
55
|
+
if temp_path.length > 1
|
|
56
|
+
path = temp_path.join "\\"
|
|
57
|
+
Dir.chdir path+cmd.gsub('cd ..','')
|
|
58
|
+
else
|
|
59
|
+
Dir.chdir "#{temp_path[0]}\\"+cmd.gsub('cd ..','')
|
|
60
|
+
end
|
|
61
|
+
end
|
|
52
62
|
else
|
|
53
63
|
begin
|
|
54
64
|
Dir.chdir cmd.gsub 'cd ', ''
|
data/lib/srbc/srbc_command.rb
CHANGED
data/lib/srbc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: srbc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ilya Bondarenko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|