-
Notifications
You must be signed in to change notification settings - Fork 0
/
gemfile_lock_to_gemfile.gemspec
29 lines (23 loc) · 1.38 KB
/
gemfile_lock_to_gemfile.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true
Gem::Specification.new do |s|
s.name = "gemfile_lock_to_gemfile"
s.version = "0.1.2"
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "A tool for reversing `Gemfile.lock` -> `Gemfile`"
s.homepage = "https://github.com/agate/gemfile_lock_to_gemfile"
s.email = "[email protected]"
s.authors = [ "agate" ]
s.has_rdoc = false
s.files = %w( README.md Rakefile LICENSE gemfile_lock_to_gemfile.gemspec )
s.files += Dir.glob("lib/**/*")
s.files += Dir.glob("bin/**/*")
s.files += Dir.glob("man/**/*")
s.files += Dir.glob("test/**/*")
s.executables = %w( gemfile_lock_to_gemfile )
s.description = <<END
## Why I have to develop this tool
One of my ruby project is using bundler to manage gem dependencies. But the `Gemfile` is very complicate. It requires external `Gemfile` by using ruby `eval`. Because I have lots of similar projects that will use same piece of gems. So I decide to abstract these gems into a standalone `Gemfile`. And let those projects’ `Gemfile` loads it.
The problem I met is when I building my docker image. I hope that image can pre-install all the ruby gems in that `Gemfile.lock`. Unluckily, `bundle install` require you must have the `Gemfile`. So I have to find out a way to revert `Gemfile.lock` to a usable `Gemfile`.
So here we are!
END
end