Rakefile in cocoapods-embed-flutter-0.5.2 vs Rakefile in cocoapods-embed-flutter-0.5.3
- old
+ new
@@ -10,18 +10,28 @@
end
desc 'Setup example project'
task :demo do
system('bundle install', exception: true)
- Bundler.with_clean_env do
+ Bundler.with_unbundled_env do
Dir.chdir('example/ios_app') do |path|
system('bundle install', exception: true)
system('bundle exec pod install', exception: true)
end
end
end
+desc 'Update lock files'
+task :update do
+ system('bundle install', exception: true)
+ Bundler.with_unbundled_env do
+ Dir.chdir('example/ios_app') do |path|
+ system('bundle install', exception: true)
+ end
+ end
+end
+
desc 'Publish to cocoapods plugins if not present'
task :publish do
require 'rubygems'
gem = Gem::Specification::load(Dir['*.gemspec'].first)
@@ -29,10 +39,12 @@
require 'pod/command/plugins_helper'
known_plugins = Pod::Command::PluginsHelper.known_plugins
return if known_plugins.one? { |plugin| plugin['gem'] == gem.name }
require 'github_api'
- return if Github.search.issues(q: "#{gem.name} user:CocoaPods repo:CocoaPods/cocoapods-plugins in:title").items.count > 0
+ return if Github.search.issues(
+ q: "#{gem.name} user:CocoaPods repo:CocoaPods/cocoapods-plugins in:title"
+ ).items.count > 0
system('pod plugins publish', exception: true)
end
task :default => :specs