ensure gemspec works
This commit is contained in:
parent
66d8886205
commit
7f2e0d6301
@ -1,10 +1,13 @@
|
|||||||
@fakefs
|
@fakefs
|
||||||
Feature: Gemfiles
|
Feature: Gemfiles
|
||||||
|
@wip
|
||||||
Scenario: Process a pure Ruby gemfile
|
Scenario: Process a pure Ruby gemfile
|
||||||
Given I have the file "Gemfile.penchant" with the content:
|
Given I have the file "Gemfile.penchant" with the content:
|
||||||
"""
|
"""
|
||||||
source :rubygems
|
source :rubygems
|
||||||
|
|
||||||
|
gemspec
|
||||||
|
|
||||||
group :cats, :dogs do
|
group :cats, :dogs do
|
||||||
case environment
|
case environment
|
||||||
when :local
|
when :local
|
||||||
@ -19,6 +22,7 @@ Feature: Gemfiles
|
|||||||
"""
|
"""
|
||||||
# generated by penchant, environment: local
|
# generated by penchant, environment: local
|
||||||
source :rubygems
|
source :rubygems
|
||||||
|
gemspec
|
||||||
|
|
||||||
group :cats, :dogs do
|
group :cats, :dogs do
|
||||||
gem "test", {:path=>"../test"}
|
gem "test", {:path=>"../test"}
|
||||||
@ -29,6 +33,7 @@ Feature: Gemfiles
|
|||||||
"""
|
"""
|
||||||
# generated by penchant, environment: remote
|
# generated by penchant, environment: remote
|
||||||
source :rubygems
|
source :rubygems
|
||||||
|
gemspec
|
||||||
|
|
||||||
group :cats, :dogs do
|
group :cats, :dogs do
|
||||||
gem "test", {:git=>"git://github.com/johnbintz/test.git"}
|
gem "test", {:git=>"git://github.com/johnbintz/test.git"}
|
||||||
@ -129,7 +134,7 @@ Feature: Gemfiles
|
|||||||
gem "one", {:path=>"../one"}
|
gem "one", {:path=>"../one"}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@wip @mocha
|
@mocha
|
||||||
Scenario: OS-specific blocks
|
Scenario: OS-specific blocks
|
||||||
Given I have the file "Gemfile.penchant" with the content:
|
Given I have the file "Gemfile.penchant" with the content:
|
||||||
"""
|
"""
|
||||||
|
@ -223,6 +223,10 @@ module Penchant
|
|||||||
@output << %{gem #{args_to_string(args)}}
|
@output << %{gem #{args_to_string(args)}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def gemspec
|
||||||
|
@output << %{gemspec}
|
||||||
|
end
|
||||||
|
|
||||||
def gems(*args)
|
def gems(*args)
|
||||||
gems, template = split_args(args)
|
gems, template = split_args(args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user