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 +4 -4
- data/lib/clean.rb +1 -1
- data/lib/dev_commands.rb +6 -6
- data/lib/git.rb +13 -0
- data/lib/info.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee6609a2668a49ad907533a4b1798373f216628f
|
4
|
+
data.tar.gz: 38827b7705161ae96bfa17e2c75c6dc7cca95a7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 463b15a0bbe02aa586816a7e33c52ec454b47926dd3ddd07839bcba6c3f02735e3561f5a444fffaa5cc8a30256281daa3c3a1c9e448d44bea7201759957177ad
|
7
|
+
data.tar.gz: ec7ec0b2896dc8471f9f2d4c5c336b5c38a1bc6fa2ba1a612abf885de54baa54259ce546b51050f8b7c770403a4af30cf5cf643970fd4f6e6681475a48c911ff
|
data/lib/clean.rb
CHANGED
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('
|
5
|
+
CLEAN.include('*.{sdf,sud,ncb,cache,user}')
|
6
6
|
CLOBBER.include('bin','doc','*.gem','tmp')
|
7
|
-
CLOBBER.include('
|
7
|
+
CLOBBER.include('*.{dll,pdb}')
|
8
8
|
|
9
9
|
SOURCE=FileList.new('LICENSE','README','README.md',"Gemfile")
|
10
|
-
SOURCE.include('
|
11
|
-
SOURCE.include('
|
12
|
-
SOURCE.include('
|
13
|
-
SOURCE.include('
|
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
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.
|
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-
|
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.
|
186
|
+
rubygems_version: 2.0.14
|
187
187
|
signing_key:
|
188
188
|
specification_version: 4
|
189
189
|
summary: gem to execute system commands
|