DevHeads.net

Using a gem from git

Hello list,

because the upstream developer of youtube-dl.rb doesn't provide the
latest binaries, i'm using this one <a href="https://github.com/n1ckbren/youtube" title="https://github.com/n1ckbren/youtube">https://github.com/n1ckbren/youtube</a>
-dl.rb.

In my Gemfile i have added:
gem "youtube-dl.rb", "~>0.3.1.2017", :git => 'https://github.com/n1ckbr
en/youtube-dl.rb'.

After doing a bundle install i have in my Gemfile.lock:
GIT
  remote: <a href="https://github.com/n1ckbren/youtube-dl.rb" title="https://github.com/n1ckbren/youtube-dl.rb">https://github.com/n1ckbren/youtube-dl.rb</a>
  revision: b8423e3713f7f5f74a52fc987c324178315a8d78
  specs:
    youtube-dl.rb (0.3.1.2017.06.25)
      cocaine (>= 0.5.4)

GEM
[...]

DEPENDENCIES
[...]
youtube-dl.rb (~> 0.3.1.2017)!

Now i created a new gem, and tried to install it from the shell.

There i'm get:
$ gem install pkg/youtube_dlhelper-3.0.0.gem 
ERROR:  Could not find a valid gem 'youtube-dl.rb' (~> 0.3.1.2017) in
any repository
ERROR:  Possible alternatives: youtube-dl.rb

In general i have expected, that gem command installs the gem from git.

Maybe i have misunderstood anything? More information about my gem [1].

Greetings
Sascha

[1] <a href="https://github.com/saigkill/youtube_dlhelper" title="https://github.com/saigkill/youtube_dlhelper">https://github.com/saigkill/youtube_dlhelper</a>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>