Class: Arel::PgJson::BuildInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/arel/pg_json/build_info.rb

Instance Method Summary collapse

Constructor Details

#initializeBuildInfo

Returns a new instance of BuildInfo.



4
5
6
# File 'lib/arel/pg_json/build_info.rb', line 4

def initialize
  @files = `git ls-files -z`.split("\x0")
end

Instance Method Details

#add_to_gemspec(spec) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/arel/pg_json/build_info.rb', line 8

def add_to_gemspec(spec)
  spec.version       = version
  spec.authors       = authors
  spec.email         = emails
  spec.summary       = summary
  spec.description   = description

  spec.files         = files
  spec.executables   = executables
  spec.test_files    = test_files
  spec.license       = license

  self
end