dev_commands 0.0.35 → 0.0.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dev_commands.rb +1 -1
- data/lib/publish.rb +15 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 768a3c2a4e1962a8129ba0d67b460ea9d0455bd2
|
4
|
+
data.tar.gz: a2cb8bde29d9cbe08248c22fdbb365b5cf4b62c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27127bf6a95ea1db173fa1e0a812fca5cf36c95b856464424880e3d93b543c083d515952800a37639627dc894c326f518df54483e3dfe36da813bec5d08bd585
|
7
|
+
data.tar.gz: 443b9cca6ad396d1fc904493718f27372e1b4517b490404cf59c6b6cb43eaa4fd0ef7f80ff805e5d33ad8b7c9aeaf5c669e531aa84f5cc540a4f4f440dca4801
|
data/lib/dev_commands.rb
CHANGED
data/lib/publish.rb
CHANGED
@@ -1,10 +1,21 @@
|
|
1
1
|
require_relative('internet.rb')
|
2
2
|
class Publish < Array
|
3
3
|
def update
|
4
|
-
if(Internet.available?
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
if(Internet.available?)
|
5
|
+
if(File.exists?('.git'))
|
6
|
+
if(`git branch`.include?('* master'))
|
7
|
+
Dir.glob('*.gemspec').each{|gemspec_file|
|
8
|
+
add "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file
|
9
|
+
}
|
10
|
+
end
|
11
|
+
end
|
12
|
+
if(File.exists?('.svn'))
|
13
|
+
if(`svn info`.include?('/trunk'))
|
14
|
+
Dir.glob('*.gemspec').each{|gemspec_file|
|
15
|
+
add "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file
|
16
|
+
}
|
17
|
+
end
|
18
|
+
end
|
8
19
|
end
|
9
20
|
end
|
10
21
|
end
|