bundler-pgs 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2M1ODU4ZWViNmYwODBhODUwNGE0YThiZmRhMDI0OWUyMzBjMzVjYg==
4
+ NjliZGNhZjU0NWMwZGQ3ZGE3ZDA4ZmY3ZDkzYWI3NTdjNjhhYmZiOQ==
5
5
  data.tar.gz: !binary |-
6
- Yjk1ODYxNmIyOTY5Mjc2M2IzOWE4ZDBiZmRiODViZGJlNjdmYjMyMw==
6
+ M2M2ODA4ZWQ5NDJlNzNiMGRkOTZmYjEwODhkM2IyODM4ZWRmYThmZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTU4M2Q1MTA4NDU1ZTM5ZTNlYzFkYTg5YTg0OTlmZWI4MGNlNjRhNjZlNWYy
10
- MTE4Mjk4ODcxMTkzNDdkODQ5YjYwNDQ5MDFmMWZjZDg5NjY5YThkNjc0ZDZj
11
- YjZlMDhiYzI1YzZhMGNjNTA4NjMwOGQwODI5MDkyMDM5NzBmM2I=
9
+ MzE3N2FiMGU3ZjI2OTRmMTMwMTFmYjU1N2UzN2JhMmZmN2M0MWJhNDhlMjEx
10
+ ZTk0YWEzYjQ4ZTdlZmRiZDgxZjdiOGQ1ZTQ2ODFhNzVlZDYxZTIzZDM4ZmJm
11
+ Njk1MmQ4ZmJiNDg2YWY4ZWQwODdiM2Q1YTgzYTRlOGYwMzI2NGI=
12
12
  data.tar.gz: !binary |-
13
- YmZjMzgxYTEzNmViYTA0ZTA3ZmQwNmM5YjkzZjZhODQzMjcxNzg3MTgyMGQ2
14
- OWE0ZWQ3ZjFmZjRhYTA5Y2RmOTY0NmFiMzU5MzNmYWQzOTZhZjlmMDYwOWEw
15
- YzFlMTZmZDM0ZjQ4OGNhNGNkN2Q0ODlkOTcyNjhmOWQ5N2NiZWE=
13
+ OTg1MWYxYThjYTA4NWVjOWM4M2I2NWNkNmE3ZjdiYzFkMTJhY2Y1NTQzODc5
14
+ MzFkNDdhMDFhZTk1NmE0ZDM3MmY3OGFiMDg2NGI1MzRiNDk4ZGE3YWM0YmJj
15
+ MDljNGM1OGUwYTA4N2ViNGRiNThmYzc4YmU3OTAxYTYyNDk3NzY=
data/README.md CHANGED
@@ -1,6 +1,4 @@
1
- # Bundler Private Gem Server Patch
2
-
3
- **This stuff is currently experimental!**
1
+ # Bundler Private Gem Server
4
2
 
5
3
  Patch for bundler to support credentials for sources that are not stored in Gemfile.lock.
6
4
  Useful when running an additional private gem server besides rubygems.org.
@@ -8,6 +6,7 @@ Useful when running an additional private gem server besides rubygems.org.
8
6
  Example:
9
7
 
10
8
  # Gemfile
9
+ source https://rubygems.org/
11
10
  source "http://_:_@gems.mycompany.com"
12
11
 
13
12
  # Gemfile.lock
@@ -23,24 +22,45 @@ To prevent bundler from storing a source url to your private gem server with cre
23
22
  See `lib/bundler-pgs/bundler_patch.rb` for details.
24
23
 
25
24
  As long as the internal implementation of fetching a gem from an url does not change everything is fine.
26
- In case a newer version of bundler change this code part the url might be stored in Gemfile.lock
25
+ In case a newer version of bundler change this code part the url might be stored in `Gemfile.lock`
27
26
  with the credentials again.
28
27
 
29
- Currently bundler version 1.3.5 is supported.
28
+ Currently working bundler version are:
29
+
30
+ * 1.5.3
31
+ * 1.5.2
30
32
 
31
33
  ## Usage
32
34
 
33
35
  Install the gem on **every** server using bundler, e.g. ci, staging and production:
34
36
 
35
- $ gem install bundler-pgs # pgs = private gem server :)
37
+ $ gem install bundler-pgs
38
+
39
+ Exclude script `bundle-pgs` from `NOEXEC`:
40
+
41
+ $ export NOEXEC_EXCLUDE="bundle-pgs"
42
+
43
+ Or better:
44
+
45
+ # .bashrc
46
+ export NOEXEC_EXCLUDE="bundle-pgs"
47
+ ...
48
+
49
+ Otherwise you will get strange errors when running `bundle-pgs`, for example:
50
+
51
+ $ bundle-pgs
52
+ ...
53
+ Resolving dependencies...
54
+ Could not find gem 'foo (>= 0) ruby' in the gems available on this machine.
36
55
 
37
56
  Add your private gem server url with `_` (underscore) as placeholder for the credentials:
38
57
 
39
58
  # Gemfile
40
- source "http://rubygems.org"
59
+ source "https://rubygems.org"
41
60
  source "http://_:_@gems.mycompany.com"
42
61
 
43
- Add your credentials to `~/.gem/gemserver_credential` on **every** server using bundler, e.g. ci, staging and production:
62
+ Add your credentials to `~/.gem/gemserver_credential` on **every** server using bundler,
63
+ e.g. ci, staging and production:
44
64
 
45
65
  # ~/.gem/gemserver_credential
46
66
  ---
@@ -57,19 +77,15 @@ Use the bundler patch by running `bundle-pgs` instead of `bundle`, e.g.:
57
77
 
58
78
  $ bundle-pgs install
59
79
 
60
- This will load the patch and runs bundler as usual.
80
+ This loads bundler as usual and applies the patch.
61
81
 
62
- You will also need to change the bundle command for capistrano:
82
+ You will also need to change the bundle command for Capistrano:
63
83
 
64
84
  # config/deploy.rb
65
85
  ...
66
86
  require "bundler/capistrano"
67
87
  set :bundle_cmd, "bundle-pgs"
68
88
 
69
- ## Caveats
70
-
71
- * Does not work with [rubygems-bundler](https://github.com/mpapis/rubygems-bundler) and [bundler-unload](https://github.com/mpapis/bundler-unload) yet.
72
-
73
89
  ## Contact
74
90
 
75
91
  For comments and question feel free to contact me: business@thomasbaustert.de
data/lib/bundler-pgs.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'bundler/version'
2
2
 
3
- if Bundler::VERSION > "1.5.2"
3
+ if Bundler::VERSION > "1.5.3"
4
4
  puts "\nWarning: You are using bundler #{Bundler::VERSION} and bundler-pgs patch might not work for this version."
5
5
  puts "Make sure your Gemfile.lock does not contain your credentials after running pundle!"
6
6
  puts ""
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Pgs
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-pgs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Baustert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-23 00:00:00.000000000 Z
11
+ date: 2014-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler