@@ -744,7 +744,7 @@ func newMavenMetadata(env build.Environment) mavenMetadata {
744
744
continue
745
745
}
746
746
// Split the author and insert as a contributor
747
- re := regexp .MustCompile ("([^<]+) <(.+>) " )
747
+ re := regexp .MustCompile ("([^<]+) <(.+)> " )
748
748
parts := re .FindStringSubmatch (line )
749
749
if len (parts ) == 3 {
750
750
contribs = append (contribs , mavenContributor {Name : parts [1 ], Email : parts [2 ]})
@@ -796,7 +796,7 @@ func doXCodeFramework(cmdline []string) {
796
796
}
797
797
// Prepare and upload a PodSpec to CocoaPods
798
798
if * deploy != "" {
799
- meta := newPodMetadata (env )
799
+ meta := newPodMetadata (env , archive )
800
800
build .Render ("build/pod.podspec" , meta .Name + ".podspec" , 0755 , meta )
801
801
build .MustRunCommand ("pod" , * deploy , "push" , meta .Name + ".podspec" , "--allow-warnings" , "--verbose" )
802
802
}
@@ -806,6 +806,7 @@ type podMetadata struct {
806
806
Name string
807
807
Version string
808
808
Commit string
809
+ Archive string
809
810
Contributors []podContributor
810
811
}
811
812
@@ -814,7 +815,7 @@ type podContributor struct {
814
815
Email string
815
816
}
816
817
817
- func newPodMetadata (env build.Environment ) podMetadata {
818
+ func newPodMetadata (env build.Environment , archive string ) podMetadata {
818
819
// Collect the list of authors from the repo root
819
820
contribs := []podContributor {}
820
821
if authors , err := os .Open ("AUTHORS" ); err == nil {
@@ -828,7 +829,7 @@ func newPodMetadata(env build.Environment) podMetadata {
828
829
continue
829
830
}
830
831
// Split the author and insert as a contributor
831
- re := regexp .MustCompile ("([^<]+) <(.+>) " )
832
+ re := regexp .MustCompile ("([^<]+) <(.+)> " )
832
833
parts := re .FindStringSubmatch (line )
833
834
if len (parts ) == 3 {
834
835
contribs = append (contribs , podContributor {Name : parts [1 ], Email : parts [2 ]})
@@ -841,7 +842,8 @@ func newPodMetadata(env build.Environment) podMetadata {
841
842
}
842
843
return podMetadata {
843
844
Name : name ,
844
- Version : archiveVersion (env ),
845
+ Archive : archive ,
846
+ Version : build .VERSION () + "+" + env .Commit [:8 ],
845
847
Commit : env .Commit ,
846
848
Contributors : contribs ,
847
849
}
0 commit comments