1 |
require 'gem/release/context/gemspec'
|
1✔ |
2 |
|
|
3 |
module Gem |
1✔ |
4 |
module Release |
1✔ |
5 |
class Context |
1✔ |
6 |
class Gem |
1✔ |
7 |
attr_reader :name, :spec |
1✔ |
8 |
|
|
9 |
def initialize(name) |
1✔ |
10 |
@spec = Gemspec.new(name) |
× |
11 |
@name = name
|
× |
12 |
end
|
|
13 |
|
|
14 |
def version |
1✔ |
15 |
spec.version.to_s if spec
|
× |
16 |
end
|
|
17 |
|
|
18 |
def filename |
1✔ |
19 |
spec.gem_filename if spec
|
× |
20 |
end
|
|
21 |
|
|
22 |
def spec_filename |
1✔ |
23 |
spec.filename if name
|
× |
24 |
end
|
|
25 |
end
|
|
26 |
end
|
|
27 |
end
|
|
28 |
end
|