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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31a55f421d86435e6abcf0cab465ec9415c02c3b
4
- data.tar.gz: e89a7b022205a789d549cd2ec0a76676476bb689
3
+ metadata.gz: 7f7462081bc47bf751a7883b6ef74228e1ddcb8c
4
+ data.tar.gz: 600496087fde7dcf873e3649c74ebd17f5650501
5
5
  SHA512:
6
- metadata.gz: 56ff100575c15513a35d11ca0c8660cc281e71b6f14e60c524d947d074bd6f2a5f9d760de19d126190d9a9776e9695ed6114eaa9cbbb0ef2112dfc345918f8d5
7
- data.tar.gz: 8497e8275dcbc4fa098f59c2eebd36dd4577dc9ded7824893bd060610318a88fcbaf1a176645af8a43981c2611221630aa4525cf0914d075878abebf7632960b
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/[my-github-username]/srbc/fork )
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`)
@@ -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 ', ''
@@ -73,7 +73,7 @@ module SrbcCommand
73
73
  end
74
74
 
75
75
  def run_file(name, args="")
76
- #puts "RUNN: ruby #{name} #{args}"
76
+ puts "RUNN: #{@exexutor} #{name} #{args}"
77
77
  system "#{@executor} #{name} #{args}"
78
78
  end
79
79
  end
@@ -1,3 +1,3 @@
1
1
  module SrbcVersion
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
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.10
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-08-07 00:00:00.000000000 Z
11
+ date: 2014-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler