gas 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +5 -1
  2. data/bin/gas +1 -1
  3. data/lib/gas/version.rb +1 -1
  4. metadata +3 -3
data/README.md CHANGED
@@ -72,10 +72,14 @@ View the help using
72
72
  <a name="extend_it"></a>
73
73
  ## Extend it
74
74
 
75
- Gas is built to be extendable, it uses the same way git does. Any executable in your PATH named gas_yourplugin is useable with gas.
75
+ Gas is built to be extendable, it uses the same way git does. Any executable in your PATH named gas-yourplugin is useable with gas.
76
76
  This means you can write extensions for gas in any language you want, the only thing you need to do is make it accessable by putting it in PATH.
77
77
 
78
+ To extend already existing commands make an executable with the name gas-yourplugin-existingcommand eg. gas-stats-use to do something when the original use command is executed.
79
+ This makes it possible to extend plugins too eg. gas-myplugin-stats will extend the stats command, if installed.
80
+
78
81
  An example plugin exists at https://github.com/walle/gas_stats it's written in ruby, and distributed with rubygems. But this is not a requirement.
82
+ It extends gas both with adding functionality to built-in commands(counting statistics) and adding own functionality(gas-stats).
79
83
 
80
84
  <a name="plugins"></a>
81
85
  ## Plugins
data/bin/gas CHANGED
@@ -57,7 +57,7 @@ def plugins
57
57
  plugins << cmd.split('/').last.scan(/gas-([^-]+).*/).flatten.first
58
58
  end
59
59
  end
60
- return plugins
60
+ return plugins.uniq
61
61
  end
62
62
 
63
63
  arguments = ARGV
data/lib/gas/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Gas
2
2
 
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gas
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  segments:
129
129
  - 0
130
- hash: -3985602024100747462
130
+ hash: 2171514938214725266
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements:
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  segments:
138
138
  - 0
139
- hash: -3985602024100747462
139
+ hash: 2171514938214725266
140
140
  requirements: []
141
141
  rubyforge_project: gas
142
142
  rubygems_version: 1.8.24