alterpath 0.1.1 → 0.2.0
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/.gitignore +17 -17
- data/Gemfile +4 -4
- data/LICENSE.txt +22 -22
- data/README.md +39 -39
- data/Rakefile +1 -1
- data/alterpath.gemspec +26 -26
- data/lib/alterpath.rb +1 -1
- data/lib/alterpath/cli.rb +3 -0
- data/lib/alterpath/version.rb +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 60dcbd18fb906223f29c39da48e22e2104679f1d
|
|
4
|
+
data.tar.gz: b6f2a3e4636f220711f2fbb1afa034e8bd66584d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe5c56e32b40aeeb4dfba531cb983d99524478f6d0d83e8dda0d964bbb0cd7910a33eeb329c56ab3e5c6d7d55250528fb95e8334f1dac5783fab49ddb902bd69
|
|
7
|
+
data.tar.gz: 2f5dea6fe4859808d79ed5bc441e3fb29d7ac733c5826cbd4b8e5ccafac431abb029a76a9f676c406f67ae824e822f2ebe9aefa656bedbc786b3c84ebcdfbff8
|
data/.gitignore
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
*.gem
|
|
2
|
-
*.rbc
|
|
3
|
-
.bundle
|
|
4
|
-
.config
|
|
5
|
-
.yardoc
|
|
6
|
-
Gemfile.lock
|
|
7
|
-
InstalledFiles
|
|
8
|
-
_yardoc
|
|
9
|
-
coverage
|
|
10
|
-
doc/
|
|
11
|
-
lib/bundler/man
|
|
12
|
-
pkg
|
|
13
|
-
rdoc
|
|
14
|
-
spec/reports
|
|
15
|
-
test/tmp
|
|
16
|
-
test/version_tmp
|
|
17
|
-
tmp
|
|
1
|
+
*.gem
|
|
2
|
+
*.rbc
|
|
3
|
+
.bundle
|
|
4
|
+
.config
|
|
5
|
+
.yardoc
|
|
6
|
+
Gemfile.lock
|
|
7
|
+
InstalledFiles
|
|
8
|
+
_yardoc
|
|
9
|
+
coverage
|
|
10
|
+
doc/
|
|
11
|
+
lib/bundler/man
|
|
12
|
+
pkg
|
|
13
|
+
rdoc
|
|
14
|
+
spec/reports
|
|
15
|
+
test/tmp
|
|
16
|
+
test/version_tmp
|
|
17
|
+
tmp
|
data/Gemfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
|
|
3
|
-
# Specify your gem's dependencies in alterpath.gemspec
|
|
4
|
-
gemspec
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
|
|
3
|
+
# Specify your gem's dependencies in alterpath.gemspec
|
|
4
|
+
gemspec
|
data/LICENSE.txt
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
Copyright (c) 2013 MOZGIII
|
|
2
|
-
|
|
3
|
-
MIT License
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
Copyright (c) 2013 MOZGIII
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
# Alterpath
|
|
2
|
-
|
|
3
|
-
Alterpath allows you to manipulate the system `PATH` (environment variable) on Windows in a flexible manner.
|
|
4
|
-
|
|
5
|
-
## Requirements
|
|
6
|
-
|
|
7
|
-
- Windows
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
$ gem install alterpath
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
$ alterpath -h
|
|
16
|
-
Read the usage instructions shown.
|
|
17
|
-
|
|
18
|
-
$ alterpath prepend "C:\test"
|
|
19
|
-
Prepending PATH with "C:\test"!
|
|
20
|
-
|
|
21
|
-
$ alterpath list
|
|
22
|
-
C:\test
|
|
23
|
-
...
|
|
24
|
-
|
|
25
|
-
$ alterpath remove "C:\test"
|
|
26
|
-
Removing "C:\test" from PATH!
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## Notes
|
|
30
|
-
|
|
31
|
-
If the item you're adding is already in `PATH`, it will not be added again by default, but you can use `-f` to force add it.
|
|
32
|
-
|
|
33
|
-
## Contributing
|
|
34
|
-
|
|
35
|
-
1. Fork it
|
|
36
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
37
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
38
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
|
39
|
-
5. Create new Pull Request
|
|
1
|
+
# Alterpath
|
|
2
|
+
|
|
3
|
+
Alterpath allows you to manipulate the system `PATH` (environment variable) on Windows in a flexible manner.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- Windows
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
$ gem install alterpath
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
$ alterpath -h
|
|
16
|
+
Read the usage instructions shown.
|
|
17
|
+
|
|
18
|
+
$ alterpath prepend "C:\test"
|
|
19
|
+
Prepending PATH with "C:\test"!
|
|
20
|
+
|
|
21
|
+
$ alterpath list
|
|
22
|
+
C:\test
|
|
23
|
+
...
|
|
24
|
+
|
|
25
|
+
$ alterpath remove "C:\test"
|
|
26
|
+
Removing "C:\test" from PATH!
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## Notes
|
|
30
|
+
|
|
31
|
+
If the item you're adding is already in `PATH`, it will not be added again by default, but you can use `-f` to force add it.
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
1. Fork it
|
|
36
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
37
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
38
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
39
|
+
5. Create new Pull Request
|
data/Rakefile
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require "bundler/gem_tasks"
|
|
1
|
+
require "bundler/gem_tasks"
|
data/alterpath.gemspec
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
-
require 'alterpath/version'
|
|
5
|
-
|
|
6
|
-
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name = "alterpath"
|
|
8
|
-
spec.version = Alterpath::VERSION
|
|
9
|
-
spec.authors = ["MOZGIII"]
|
|
10
|
-
spec.email = ["mike-n@narod.ru"]
|
|
11
|
-
spec.description = %q{Alterpath allows you to alter the system PATH on Windows in a flexible manner}
|
|
12
|
-
spec.summary = %q{Alterpath allows you to alter the system PATH on Windows in a flexible manner}
|
|
13
|
-
spec.homepage = "https://github.com/MOZGIII/alterpath"
|
|
14
|
-
spec.license = "MIT"
|
|
15
|
-
|
|
16
|
-
spec.files = `git ls-files`.split($/)
|
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
-
spec.require_paths = ["lib"]
|
|
20
|
-
|
|
21
|
-
spec.add_dependency "slop", ">= 3.4.7"
|
|
22
|
-
spec.add_dependency "win-path-utils", ">= 0.0
|
|
23
|
-
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
|
25
|
-
spec.add_development_dependency "rake"
|
|
26
|
-
end
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'alterpath/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "alterpath"
|
|
8
|
+
spec.version = Alterpath::VERSION
|
|
9
|
+
spec.authors = ["MOZGIII"]
|
|
10
|
+
spec.email = ["mike-n@narod.ru"]
|
|
11
|
+
spec.description = %q{Alterpath allows you to alter the system PATH on Windows in a flexible manner}
|
|
12
|
+
spec.summary = %q{Alterpath allows you to alter the system PATH on Windows in a flexible manner}
|
|
13
|
+
spec.homepage = "https://github.com/MOZGIII/alterpath"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_dependency "slop", ">= 3.4.7"
|
|
22
|
+
spec.add_dependency "win-path-utils", ">= 0.2.0"
|
|
23
|
+
|
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
|
25
|
+
spec.add_development_dependency "rake"
|
|
26
|
+
end
|
data/lib/alterpath.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require "alterpath/version"
|
|
1
|
+
require "alterpath/version"
|
data/lib/alterpath/cli.rb
CHANGED
|
@@ -67,6 +67,7 @@ module Alterpath
|
|
|
67
67
|
args.each do |arg|
|
|
68
68
|
puts "Appending \"#{arg}\" to PATH!"
|
|
69
69
|
path.append(arg, get_addition_options(opts))
|
|
70
|
+
path.commit!
|
|
70
71
|
exit
|
|
71
72
|
end
|
|
72
73
|
end
|
|
@@ -75,6 +76,7 @@ module Alterpath
|
|
|
75
76
|
args.each do |arg|
|
|
76
77
|
puts "Prepending PATH with \"#{arg}\"!"
|
|
77
78
|
path.prepend(arg, get_addition_options(opts))
|
|
79
|
+
path.commit!
|
|
78
80
|
exit
|
|
79
81
|
end
|
|
80
82
|
end
|
|
@@ -83,6 +85,7 @@ module Alterpath
|
|
|
83
85
|
args.each do |arg|
|
|
84
86
|
puts "Removing \"#{arg}\" from PATH!"
|
|
85
87
|
path.remove(arg)
|
|
88
|
+
path.commit!
|
|
86
89
|
exit
|
|
87
90
|
end
|
|
88
91
|
end
|
data/lib/alterpath/version.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module Alterpath
|
|
2
|
-
VERSION = "0.
|
|
3
|
-
end
|
|
1
|
+
module Alterpath
|
|
2
|
+
VERSION = "0.2.0"
|
|
3
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alterpath
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MOZGIII
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-01-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: slop
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.0
|
|
33
|
+
version: 0.2.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '>='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.0
|
|
40
|
+
version: 0.2.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: bundler
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
105
105
|
version: '0'
|
|
106
106
|
requirements: []
|
|
107
107
|
rubyforge_project:
|
|
108
|
-
rubygems_version: 2.
|
|
108
|
+
rubygems_version: 2.0.3
|
|
109
109
|
signing_key:
|
|
110
110
|
specification_version: 4
|
|
111
111
|
summary: Alterpath allows you to alter the system PATH on Windows in a flexible manner
|