bundler 1.6.6 → 1.6.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bea44bed0acb6398c570a3ff7e7aa290b3e52a50
4
- data.tar.gz: 121da52822f43b573e430a7df36670ee33dd3c9b
3
+ metadata.gz: 514d77e74e81418428edca7b774b56082fee292c
4
+ data.tar.gz: 694eb7f3cf2278bb50637d973dec8e02054c1fe3
5
5
  SHA512:
6
- metadata.gz: c2eac51c09a25749f854980cede45a0054c10b635384938fcf30e546bc28c4f79aaf8bbe79462b09211905289f22dbbbc4aa128af7fbb851b143dea04272ed75
7
- data.tar.gz: bba562fb670cecb13c93baed2f98c35be0c1949a5f8fc1503c59c0b9e964354e27c82cf7453aa570ca41332c3f3138b95584152b21738d00ca9a665c2c6db96d
6
+ metadata.gz: 77c8f5a792c4618a3f4da292c65f6bc4fea3780a2daccda92113e7afe614b944fdf8e07293df2caeb87a5a07bda8f722f21bfb76959a75bf0f9b6164943c5ce0
7
+ data.tar.gz: b879d8871d105907e90ddd6d1aa301d8fdeb250bb1f4d901f8cc2b2920f8873b84beca5812ee7410821480d3df0b176ae893254b4424a329189a6b8734849f1f
@@ -1,3 +1,13 @@
1
+ ## 1.6.7 (2014-10-19)
2
+
3
+ Features:
4
+
5
+ - warn to upgrade when using useless source blocks (@danfinnie)
6
+
7
+ Documentation:
8
+
9
+ - explain how to use gem server credentials via ENV (@hwartig)
10
+
1
11
  ## 1.6.6 (2014-08-23)
2
12
 
3
13
  Bugfixes:
@@ -125,6 +125,13 @@ module Bundler
125
125
  return
126
126
  when String
127
127
  rubygems_source.add_remote source
128
+
129
+ if block_given?
130
+ Bundler.ui.warn "A block was passed to `source`, but Bundler versions " \
131
+ "prior to 1.7 ignore the block. Please upgrade Bundler to 1.7 or " \
132
+ "specify your dependencies outside of the block passed to `source`."
133
+ end
134
+
128
135
  return
129
136
  else
130
137
  @source = source
@@ -2,5 +2,5 @@ module Bundler
2
2
  # We're doing this because we might write tests that deal
3
3
  # with other versions of bundler and we are unsure how to
4
4
  # handle this better.
5
- VERSION = "1.6.6" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.6.7" unless defined?(::Bundler::VERSION)
6
6
  end
@@ -145,11 +145,26 @@ Finally, Bundler also ensures that the current revision in the
145
145
  `Gemfile.lock` exists in the local git repository. By doing this, Bundler
146
146
  forces you to fetch the latest changes in the remotes.
147
147
 
148
- ## MIRRORS OF GEM REPOSITORIES
148
+ ## MIRRORS OF GEM SOURCES
149
149
 
150
150
  Bundler supports overriding gem sources with mirrors. This allows you to
151
151
  configure rubygems.org as the gem source in your Gemfile while still using your
152
152
  mirror to fetch gems.
153
153
 
154
+ bundle config mirror.SOURCE_URL MIRROR_URL
155
+
156
+ For example, to use a mirror of rubygems.org hosted at
157
+
154
158
  bundle config mirror.http://rubygems.org http://rubygems-mirror.org
155
159
 
160
+ ## CREDENTIALS FOR GEM SOURCES
161
+
162
+ Bundler allows you to configure credentials for any gem source, which allows
163
+ you to avoid putting secrets into your Gemfile.
164
+
165
+ bundle config SOURCE_URL USERNAME:PASSWORD
166
+
167
+ For example, to save the credentials of user `claudette` for the gem source at
168
+ `gems.longerous.com`, you would run:
169
+
170
+ bundle config https://gems.longerous.com/ claudette:s00pers3krit
@@ -26,6 +26,23 @@ might contain the gems listed in the `Gemfile`.
26
26
  Each of these _source_s `MUST` be a valid Rubygems repository. Sources are
27
27
  checked for gems following the heuristics described in [SOURCE PRIORITY][].
28
28
 
29
+ ### CREDENTIALS (#credentials)
30
+
31
+ Some gem sources require a username and password. Use `bundle config` to set
32
+ the username and password for any sources that need it. The command must be run
33
+ once on each computer that will install the Gemfile, but this keeps the
34
+ credentials from being stored in plain text in version control.
35
+
36
+ bundle config https://gems.example.com/ user:password
37
+
38
+ For some sources, like a company Gemfury account, it may be easier to simply
39
+ include the credentials in the Gemfile as part of the source URL.
40
+
41
+ source "https://user:password@gems.example.com"
42
+
43
+ Credentials in the source URL will take precedence over credentials set using
44
+ `config`.
45
+
29
46
  ## RUBY (#ruby)
30
47
 
31
48
  If your application requires a specific Ruby version or engine, specify your
@@ -41,4 +41,29 @@ describe "bundle install" do
41
41
  end
42
42
  end
43
43
 
44
+ context "with future features" do
45
+ context "when source is used with a block" do
46
+ it "reports that sources with a block is not supported" do
47
+ gemfile <<-G
48
+ source 'http://rubygems.example.org' do
49
+ gem 'rack'
50
+ end
51
+ G
52
+
53
+ bundle :install
54
+ expect(out).to match(/A block was passed to `source`/)
55
+ end
56
+ end
57
+
58
+ context "when source is used without a block" do
59
+ it "prints no warnings" do
60
+ gemfile <<-G
61
+ source 'http://rubygems.example.org'
62
+ G
63
+
64
+ bundle :install
65
+ expect(out).not_to match(/A block was passed to `source`/)
66
+ end
67
+ end
68
+ end
44
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-08-24 00:00:00.000000000 Z
14
+ date: 2014-10-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rdiscount