lib/pod/command/plugins/create.rb in cocoapods-plugins-0.3.2 vs lib/pod/command/plugins/create.rb in cocoapods-plugins-0.4.0
- old
+ new
@@ -25,10 +25,10 @@
CLAide::Argument.new('TEMPLATE_URL', false),
]
def initialize(argv)
@name = argv.shift_argument
- unless @name.nil? || @name.empty? || @name.index(NAME_PREFIX) == 0
+ unless @name.nil? || @name.empty? || @name.start_with?(NAME_PREFIX)
@name = NAME_PREFIX + @name.dup
end
@template_url = argv.shift_argument
super
end