dev_commands 0.0.37 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc9ee903676fce8db6ecd57b42ba263200eaa4a3
4
- data.tar.gz: 5ae3fa49f3b67e4d86903764720bd03bd338ca71
3
+ metadata.gz: ee6609a2668a49ad907533a4b1798373f216628f
4
+ data.tar.gz: 38827b7705161ae96bfa17e2c75c6dc7cca95a7b
5
5
  SHA512:
6
- metadata.gz: 2eae32655392a9e6e0b170755c554023d09295576d621fce5b068bdc29d83214e41f14610c6849454eef5bf5055f9ed679dfb652f9796b425bcbb15543dc5e8f
7
- data.tar.gz: bf9530dae4bb702f2427ef3b893e53f1db0981037f4eafc0a0e1025c9ebdd9f4b02df32d2f4a7bb162abebfec83c66276ef9149f2ac149ecc0614de528fe1dbf
6
+ metadata.gz: 463b15a0bbe02aa586816a7e33c52ec454b47926dd3ddd07839bcba6c3f02735e3561f5a444fffaa5cc8a30256281daa3c3a1c9e448d44bea7201759957177ad
7
+ data.tar.gz: ec7ec0b2896dc8471f9f2d4c5c336b5c38a1bc6fa2ba1a612abf885de54baa54259ce546b51050f8b7c770403a4af30cf5cf643970fd4f6e6681475a48c911ff
data/lib/clean.rb CHANGED
@@ -4,7 +4,7 @@ class Clean < Array
4
4
  CLEAN.include(dir) if File.exists?(dir)
5
5
  }
6
6
 
7
- CLEAN.include('**/*.{suo,sdf}')
7
+ CLEAN.include('*.{suo,sdf}')
8
8
 
9
9
  #add '<%Rake::Task[:clean].reenable%>'
10
10
  add '<%Rake::Task[:clean].invoke%>'
data/lib/dev_commands.rb CHANGED
@@ -2,15 +2,15 @@ require 'json'
2
2
  require 'rake/clean'
3
3
 
4
4
  CLEAN.include('obj','tmp')
5
- CLEAN.include('**/*.{sdf,sud,ncb,cache,user}')
5
+ CLEAN.include('*.{sdf,sud,ncb,cache,user}')
6
6
  CLOBBER.include('bin','doc','*.gem','tmp')
7
- CLOBBER.include('**/*.{dll,pdb}')
7
+ CLOBBER.include('*.{dll,pdb}')
8
8
 
9
9
  SOURCE=FileList.new('LICENSE','README','README.md',"Gemfile")
10
- SOURCE.include('**/*.{gitignore,yml,gemspec,rb}')
11
- SOURCE.include('**/*.{cs}')
12
- SOURCE.include('**/*.{c,h}')
13
- SOURCE.include('**/*.{cpp,hpp}')
10
+ SOURCE.include('*.{gitignore,yml,gemspec,rb}')
11
+ SOURCE.include('*.{cs}')
12
+ SOURCE.include('*.{c,h}')
13
+ SOURCE.include('*.{cpp,hpp}')
14
14
 
15
15
  require_relative('info.rb')
16
16
  require_relative('array.rb')
data/lib/git.rb CHANGED
@@ -6,4 +6,17 @@ class Git
6
6
  ''
7
7
  end
8
8
  end
9
+
10
+ def self.remote_origin directory=''
11
+ url=''
12
+ directory=Dir.pwd if directory.length == 0
13
+ Dir.chdir(directory) do
14
+ begin
15
+ url=`git remote show origin`.scan(/Fetch URL: ([\.\-:\/\w\d]+)/)[0]
16
+ rescue
17
+ url=''
18
+ end
19
+ end
20
+ url
21
+ end
9
22
  end
data/lib/info.rb CHANGED
@@ -1,2 +1,3 @@
1
- INFO=[]
1
+ require_relative 'array.rb'
2
+ INFO=Array.new
2
3
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-15 00:00:00.000000000 Z
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.0.3
186
+ rubygems_version: 2.0.14
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: gem to execute system commands