Commit 50b8c088 authored by Fabio Pelosin's avatar Fabio Pelosin

[Lockfile] Remove `---' from YAML.

parent 34a68534
...@@ -74,7 +74,7 @@ module Pod ...@@ -74,7 +74,7 @@ module Pod
# serialization. # serialization.
# #
def to_yaml def to_yaml
to_dict.to_yaml to_dict.to_yaml.gsub(/^--- ?\n/,"")
end end
# @return [Dictionary] The Dictionary representation of the Lockfile. # @return [Dictionary] The Dictionary representation of the Lockfile.
......
...@@ -5,7 +5,6 @@ describe "Pod::Lockfile" do ...@@ -5,7 +5,6 @@ describe "Pod::Lockfile" do
def sample def sample
text = <<-LOCKFILE.strip_heredoc text = <<-LOCKFILE.strip_heredoc
---
PODS: PODS:
- BananaLib (1.0): - BananaLib (1.0):
- monkey (< 1.0.9, ~> 1.0.1) - monkey (< 1.0.9, ~> 1.0.1)
...@@ -13,7 +12,7 @@ describe "Pod::Lockfile" do ...@@ -13,7 +12,7 @@ describe "Pod::Lockfile" do
DEPENDENCIES: DEPENDENCIES:
- BananaLib (~> 1.0) - BananaLib (~> 1.0)
COCOAPODS: #{Pod::VERSION} COCOAPODS: #{Pod::VERSION}
LOCKFILE LOCKFILE
end end
def podfile def podfile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment