geminabox-release 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d37cb4f55660a786f8ca9d36046a4b4d820965ff
4
- data.tar.gz: 40e10d1433b881910fbc8195f66a13f0c50e7c19
3
+ metadata.gz: a57230ee0c5023bd018db491b7dad0daf148fd82
4
+ data.tar.gz: 33f3ed571aa75cca3c2c723cd9146477b75f2411
5
5
  SHA512:
6
- metadata.gz: f254ed4f049c95c5c6d747ddbd4de739da9dc26de9bb9e42e5400976323519794bdc68dbe0cf1a8787d0f24a3730dfff33bd658182e53f2cb0b700f31e577420
7
- data.tar.gz: 0f7a85365efad03c22a67ba2fc400abc21222e75c7eda7db1ca379691c56830e1dd0c8a844645965afc6f683944b939b07f1c79e93f1b054a28b509b8a4f9e69
6
+ metadata.gz: d048a1d52736e36485e9ce869cb15fe8caf13a07afc6c7c560d7604ca84d1f6b0fb4f33e9166a6ec595f2fead2243622f167398d96b1a788d623c09faa23eceb
7
+ data.tar.gz: fd6bccccd24ff232d0cde5ecfe27aa6081f82ad4d35e269d5924d4a185d63519cf8fe07ae07413030c1bd2573426c3552165ea3fff9714cc6857f2f040bc8b6e
data/README.md CHANGED
@@ -1,11 +1,15 @@
1
1
  geminabox-release
2
2
  =================
3
+
4
+ This is for all users of a geminabox-server who do use bundler and rake, but do not want to install geminabox and all it's
5
+ dependencies locally just to have a gem push command.
6
+
3
7
  [![Gem Version](https://badge.fury.io/rb/geminabox-release.png)](http://badge.fury.io/rb/geminabox-release)
4
8
 
5
- This gem is a dependency free option to add a rake inabox:release task to bundler gem_tasks for releasing a new gem to
9
+ The gem is a dependency free option to add a rake inabox:release task to bundler gem_tasks for releasing a new gem to
6
10
  your geminabox server.
7
11
 
8
- The gem only uses the ruby default libaries uri and net/http and expects you are using bundler.
12
+ It only uses the ruby default libaries uri and net/http and expects you are using bundler.
9
13
 
10
14
 
11
15
  You must no longer require "bundler/gem_tasks" as geminabox-release requires a modified version for you which supports all other functionality!
@@ -30,6 +34,13 @@ GeminaboxRelease.patch(:use_config => true)
30
34
 
31
35
  ```
32
36
 
37
+ If you wish to remove the bundler/gem_tasks rake release task you can by adding :remove_release to the patch options:
38
+
39
+ ```ruby
40
+ GeminaboxRelease.patch(:remove_release => true)
41
+
42
+ ```
43
+
33
44
  Then you will get a rake inabox:release task.
34
45
 
35
46
  **Ensure you do not _require "bundler/gem_tasks"_ in your rakefile anymore!**
@@ -58,7 +69,7 @@ To ensure you are not accidentally pushing your gem to rubygems there are two di
58
69
 
59
70
  ### Troubleshooting
60
71
 
61
- If the rake tasks do not show check if you required "bundler/gem_tasks" anywhere before requiring geminabox-release.
72
+ If the rake tasks do not show make sure you did not require "bundler/gem_tasks" anywhere (espacially before requiring geminabox-release).
62
73
 
63
74
  # LICENSE
64
75
 
@@ -144,7 +144,17 @@ module GeminaboxRelease
144
144
  # initialize patched gem tasks
145
145
  require 'bundler/gem_tasks'
146
146
 
147
+ # delete the rake release task if option is enabled
148
+ if options[:remove_release]
149
+ Rake::TaskManager.class_eval do
150
+ def remove_task(task_name)
151
+ @tasks.delete(task_name.to_s)
152
+ end
153
+ end
154
+ Rake.application.remove_task('release')
147
155
  end
156
+
157
+ end
148
158
  rescue GeminaboxRelease::Error => e
149
159
  # \033[31m RED, \033[1m BOLD, \033[22m BOLD OFF, \033[0m COLOR OFF
150
160
  STDERR.puts "\033[31mGeminaboxRelease Exception: \033[1m#{e.class.to_s}\033[22m\033[0m"
@@ -1,4 +1,4 @@
1
1
  module GeminaboxRelease
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminabox-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis-Florian Herr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-28 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Dependency free rake release task for geminabox
14
14
  email: