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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dev_commands.rb +1 -1
  3. data/lib/publish.rb +15 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c65576b891487e94fd509679324a83f188924446
4
- data.tar.gz: cae0ee6ea4302305b2b2a18d7cabb28bc09bad12
3
+ metadata.gz: 768a3c2a4e1962a8129ba0d67b460ea9d0455bd2
4
+ data.tar.gz: a2cb8bde29d9cbe08248c22fdbb365b5cf4b62c5
5
5
  SHA512:
6
- metadata.gz: e4d7f33bcb2c5f2054fe5ce45bb31e73bf6909695d9dee155b8ea3532b4ada139c3998232943d6dd78fba4e240aa222691ef4b4aba9f746d18364689efa3f1bb
7
- data.tar.gz: 03c70e823cb346facb0fcbacbb395f6623caa150c9c4eccfef85e9c9dc863674cd17115ad27efa85a4a6cccec096b625c16aa24c68580ba9e83bda3a9fe29ec7
6
+ metadata.gz: 27127bf6a95ea1db173fa1e0a812fca5cf36c95b856464424880e3d93b543c083d515952800a37639627dc894c326f518df54483e3dfe36da813bec5d08bd585
7
+ data.tar.gz: 443b9cca6ad396d1fc904493718f27372e1b4517b490404cf59c6b6cb43eaa4fd0ef7f80ff805e5d33ad8b7c9aeaf5c669e531aa84f5cc540a4f4f440dca4801
@@ -12,7 +12,7 @@ SOURCE.include('**/*.{cs}')
12
12
  SOURCE.include('**/*.{c,h}')
13
13
  SOURCE.include('**/*.{cpp,hpp}')
14
14
 
15
-
15
+ require_relative('array.rb')
16
16
  require_relative('command.rb')
17
17
  require_relative('commands.rb')
18
18
  require_relative('text.rb')
@@ -1,10 +1,21 @@
1
1
  require_relative('internet.rb')
2
2
  class Publish < Array
3
3
  def update
4
- if(Internet.available? && `git branch`.include?('* master'))
5
- Dir.glob('*.gemspec').each{|gemspec_file|
6
- add "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35
4
+ version: 0.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow