1BUNDLE-INJECT(1) BUNDLE-INJECT(1)
2
3
4
6 bundle-inject - Add named gem(s) with version requirements to Gemfile
7
9 bundle inject [GEM] [VERSION]
10
12 Adds the named gem(s) with their version requirements to the resolved
13 [Gemfile(5)][Gemfile(5)].
14
15 This command will add the gem to both your [Gemfile(5)][Gemfile(5)] and
16 Gemfile.lock if it isn´t listed yet.
17
18 Example:
19
20
21
22 bundle install
23 bundle inject ´rack´ ´> 0´
24
25
26
27 This will inject the ´rack´ gem with a version greater than 0 in your
28 [Gemfile(5)][Gemfile(5)] and Gemfile.lock
29
30
31
32 January 2020 BUNDLE-INJECT(1)