hoe-manns 1.3.0 → 1.4.0

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: 0e65501c922a5e0965c58d54b968c356bc9d2687
4
- data.tar.gz: afbfc07668771fe2d2943a57a801d83ae73e1f7d
3
+ metadata.gz: 4d67669c8d0e1b2747188a19facfc57bcb10b5b0
4
+ data.tar.gz: b1448fb1910462f7b1a0230590a970f9ffb014cd
5
5
  SHA512:
6
- metadata.gz: e28edb4d3e379bf929ecc8d8c1ea6a055e025bccdcbf92a3feca99fd510f5f1368175046cfacaa9401582fd0ac45b3d7d07d8d7e135c07758ce2cf8301d92ef3
7
- data.tar.gz: f0570c8beb3b15f9995a8096cbd7e1904d3ba9e7ddeae9c09a864dcf16b2d40e6cd103bde5f3e5394b2d77fd9ae67d570acd4dc241d5fbe93c486052aba7ae38
6
+ metadata.gz: 5718e83b23eb4ee3fe7638287eaf2b8716d54f8542aadb51ef2a027d880b4aaec93d2b59df3f52b704fecd9d3de4a9f38022a650e7b7020a449a8b8f65ffb569
7
+ data.tar.gz: ee8baa594f49b981405f507a103c858a43e3581b9766105e67b42f6fca2bff8d21faa90d7017d2fe0fcecd453bb16cc5bb37a552b217ac09163273e9bab466d7
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.4.0 / 2015-10-19
2
+
3
+ * 1 minor enhancement
4
+
5
+ * Added a copy_master method
6
+
1
7
  === 1.3.0 / 2015-10-19
2
8
 
3
9
  * 1 minor enhancement
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.4.0
data/lib/hoe/manns.rb CHANGED
@@ -11,11 +11,12 @@
11
11
  # Main module for hoe-manns
12
12
  module Hoe::Manns
13
13
  # Version constant for HOE::Manns
14
- VERSION = '1.3.0'
14
+ VERSION = '1.4.0'
15
15
 
16
16
  attr_accessor :remove_pre_gemspec
17
17
  attr_accessor :update_index
18
18
  attr_accessor :copy_manuals
19
+ attr_accessor :copy_master
19
20
  attr_accessor :copy_mirror
20
21
  attr_accessor :copy_wiki
21
22
  attr_accessor :run_before_release
@@ -78,10 +79,16 @@ module Hoe::Manns
78
79
  Hoe::Manns.copy_mirror_method
79
80
  end
80
81
 
82
+ # Rake Task for git tag
83
+ desc 'Copy master'
84
+ task :copy_master do
85
+ Hoe::Manns.copy_master
86
+ end
87
+
81
88
  # Rake Task for running needed Rake Tasks before running rake release
82
89
  desc 'Run all tasks before rake release'
83
90
  task :run_before_release => %w(git:manifest bundler:gemfile bundler:gemfile_lock update_index gem:spec_remove
84
- update_workspace bundle_audit:run copy_mirror) do
91
+ update_workspace bundle_audit:run copy_mirror copy_master) do
85
92
  puts 'Ready to run rake release VERSION=x.y.z'.colour(:green)
86
93
  end
87
94
 
@@ -216,6 +223,19 @@ README.rdoc VERSION).each do |i|
216
223
  puts 'Copied wiki content'.colour(:green)
217
224
  end
218
225
 
226
+ # Method for git tag
227
+ def self.copy_master
228
+ puts 'Checking out master'.colour(:yellow)
229
+ system('git checkout master')
230
+ puts 'Merging master with develop'.colour(:yellow)
231
+ system('git merge develop')
232
+ puts 'Pushing master to origin'.colour(:yellow)
233
+ system('git push')
234
+ puts 'Checking out develop again'.colour(:yellow)
235
+ system('git checkout develop')
236
+ puts 'Done'.colour(:green)
237
+ end
238
+
219
239
  # Method for getting the project name
220
240
  def self.get_projectname
221
241
  pnameraw = File.open(*Dir.glob('README.*')) { |f| f.readline }
data/recipes/recipe.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # Recipe class
2
2
  class HoeMannsRubyGem < FPM::Cookery::RubyGemRecipe
3
3
  name 'hoe-manns'
4
- version '1.3.1'
4
+ version '1.4.0'
5
5
  maintainer 'Sascha Manns <samannsml@directbox.com>'
6
6
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-manns
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Manns
metadata.gz.sig CHANGED
Binary file