geminabox-release 0.0.7 → 0.1.0
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 +4 -4
- data/README.md +19 -13
- data/lib/geminabox-release/version.rb +1 -1
- data/lib/geminabox-release.rb +4 -2
- 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: 49a38023186c0f40e979fcdc0a0496431f0339fb
|
4
|
+
data.tar.gz: 55c54dd29e6c0cc095c61da3a07176c41a26d103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a13290b134aa629ea3996cbb3a9f71b456c1175b04398aa0c4217072c0149913056e348cd989a232bef34fd53fa2c5eed628d0be4e9e96ed5c71a8ece04cd288
|
7
|
+
data.tar.gz: b5e53b03d8ec5190e21968f5298b31dafc80e239e37e0f4e6db7e68b56bed4bae72eab3830711e4f4dbd60eda094dd0bceba2f9222e66767eafd8a97d15c9c8b
|
data/README.md
CHANGED
@@ -1,28 +1,31 @@
|
|
1
1
|
geminabox-release
|
2
2
|
=================
|
3
|
+
[](http://badge.fury.io/rb/geminabox-release)
|
3
4
|
|
4
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
|
5
6
|
your geminabox server.
|
7
|
+
|
8
|
+
|
9
|
+
You no longer need to require "bundler/gem_tasks". The gem does it for you. Make sure you do not require bundler/gem_tasks
|
10
|
+
anywhere before geminabox-release gets required.
|
6
11
|
|
7
12
|
## How to use
|
8
13
|
|
9
|
-
Simply load this gem and patch with your geminabox URL
|
14
|
+
Simply load this gem and patch with your geminabox URL in your Rakefile.
|
10
15
|
|
11
16
|
E.g.
|
12
17
|
|
13
|
-
```
|
18
|
+
```ruby
|
14
19
|
require 'geminabox-release'
|
15
20
|
GeminaboxRelease.patch(:host => "http://localhost:4000")
|
16
|
-
require 'bundler/gem_tasks'
|
17
21
|
|
18
22
|
```
|
19
23
|
|
20
24
|
or use your geminabox config file (YAML file with key :host and host url as value in ~/.gem/geminabox)
|
21
25
|
|
22
|
-
```
|
26
|
+
```ruby
|
23
27
|
require 'geminabox-release'
|
24
28
|
GeminaboxRelease.patch(:use_config => true)
|
25
|
-
require 'bundler/gem_tasks'
|
26
29
|
|
27
30
|
```
|
28
31
|
|
@@ -31,17 +34,16 @@ Then you will get an rake inabox:release task.
|
|
31
34
|
The gem (theoretically) supports basic auth like geminabox in the host address. e.g. http://username:password@localhost:4000
|
32
35
|
It's untested as we didn't need it. Feel free to try it.
|
33
36
|
|
34
|
-
The gem additionally provides only build & push tasks:
|
35
37
|
|
36
|
-
|
37
|
-
$ rake inabox:push # just builds gem and pushes to geminabox server
|
38
|
-
$ rake inabox:forcepush # builds gem and pushes to geminabox server overwriting existing same version
|
38
|
+
### Additional tasks
|
39
39
|
|
40
|
-
|
40
|
+
The gem additionally provides tasks for build & push without all the overhead release produces (like git tag and git push):
|
41
41
|
|
42
|
-
|
42
|
+
```Shell
|
43
|
+
$> rake inabox:push # just builds gem and pushes to geminabox server
|
44
|
+
$> rake inabox:forcepush # builds gem and pushes to geminabox server overwriting existing same version
|
43
45
|
|
44
|
-
|
46
|
+
```
|
45
47
|
|
46
48
|
## Safety
|
47
49
|
|
@@ -51,9 +53,13 @@ To ensure you are not accidently pushing your gem to rubygems there are two dist
|
|
51
53
|
|
52
54
|
2) The gem is pushed via the HTTP POST file request geminabox expects and not via the gem push interface.
|
53
55
|
|
56
|
+
### Troubleshooting
|
57
|
+
|
58
|
+
If the rake tasks do not show check if you required "bundler/gem_tasks" anywhere before requiring geminabox-release.
|
59
|
+
|
54
60
|
# LICENSE
|
55
61
|
|
56
62
|
Copyright (c) 2014 Dennis-Florian Herr @ Experteer GmbH
|
57
63
|
|
58
|
-
see
|
64
|
+
see [LICENSE](LICENSE)
|
59
65
|
|
data/lib/geminabox-release.rb
CHANGED
@@ -22,7 +22,6 @@ module GeminaboxRelease
|
|
22
22
|
raise "Please provide a host to upload to."
|
23
23
|
end
|
24
24
|
|
25
|
-
|
26
25
|
Bundler::GemHelper.class_eval do
|
27
26
|
|
28
27
|
alias_method :bundler_install, :install
|
@@ -108,7 +107,10 @@ module GeminaboxRelease
|
|
108
107
|
end
|
109
108
|
end
|
110
109
|
|
111
|
-
end
|
110
|
+
end # end of class_eval
|
111
|
+
|
112
|
+
# initialize patched gem tasks
|
113
|
+
require 'bundler/gem_tasks'
|
112
114
|
|
113
115
|
end
|
114
116
|
end
|