geminabox-release 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -3
- data/lib/geminabox-release.rb +10 -0
- data/lib/geminabox-release/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a57230ee0c5023bd018db491b7dad0daf148fd82
|
4
|
+
data.tar.gz: 33f3ed571aa75cca3c2c723cd9146477b75f2411
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
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
|
|
data/lib/geminabox-release.rb
CHANGED
@@ -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"
|
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.
|
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:
|
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:
|