geminabox-release 0.0.7 → 0.1.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: d07f964974d21c05047af2015c3013eb3f5fe36b
4
- data.tar.gz: f082bca01644b271f66946a18ef5342a5994475e
3
+ metadata.gz: 49a38023186c0f40e979fcdc0a0496431f0339fb
4
+ data.tar.gz: 55c54dd29e6c0cc095c61da3a07176c41a26d103
5
5
  SHA512:
6
- metadata.gz: 6a2503033505d4e87d0207f9618ec08c34a3b17150af5460f30990ab2df4cdcd0842aeb88094f884999f5879ed1c8f185c768bbfcea77abd96bf2a497a8f7382
7
- data.tar.gz: b57e1be61346bd9bfbb4a07ee377046e3094ef490b79e89526fdcbcea14004627c740ba009f30115f8be435879e7605f6c3fbfa0ed9dec5c25fc6fbc3a608ec3
6
+ metadata.gz: a13290b134aa629ea3996cbb3a9f71b456c1175b04398aa0c4217072c0149913056e348cd989a232bef34fd53fa2c5eed628d0be4e9e96ed5c71a8ece04cd288
7
+ data.tar.gz: b5e53b03d8ec5190e21968f5298b31dafc80e239e37e0f4e6db7e68b56bed4bae72eab3830711e4f4dbd60eda094dd0bceba2f9222e66767eafd8a97d15c9c8b
data/README.md CHANGED
@@ -1,28 +1,31 @@
1
1
  geminabox-release
2
2
  =================
3
+ [![Gem Version](https://badge.fury.io/rb/geminabox-release.png)](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 before requiring bundler/gem_tasks in your Rakefile.
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
- ### Order
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
- The order is important as requiring bunlder/gem_tasks creates the rake tasks and this gem does not modify them after that.
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 {LICENSE}
64
+ see [LICENSE](LICENSE)
59
65
 
@@ -1,4 +1,4 @@
1
1
  module GeminaboxRelease
2
- VERSION = "0.0.7"
2
+ VERSION = "0.1.0"
3
3
  end
4
4
 
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminabox-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis-Florian Herr