File tree Expand file tree Collapse file tree 5 files changed +73
-1
lines changed
lib/cocoapods-embed-flutter Expand file tree Collapse file tree 5 files changed +73
-1
lines changed Original file line number Diff line number Diff line change 9999 # with:
100100 # ruby-version: ${{ env.RUBY_VER }}
101101
102+ # - name: Install dependencies
103+ # run: |
104+ # bundle config deployment true
105+ # bundle install
106+
102107 # - name: Build gem
103108 # if: steps.conventional_changelog.outputs.skipped == 'false'
104109 # run: gem build *.gemspec
@@ -134,3 +139,7 @@ jobs:
134139 # tag: ${{ steps.conventional_changelog.outputs.tag }}
135140 # body: ${{ steps.conventional_changelog.outputs.changelog }}
136141 # artifacts: '*.gem'
142+
143+ # - name: Publish to cocoapods plugins
144+ # if: steps.conventional_changelog.outputs.skipped == 'false'
145+ # run: bundle exec rake publish
Original file line number Diff line number Diff line change 55
66group :development do
77 gem 'cocoapods'
8+ gem 'cocoapods-plugins'
89
910 gem 'mocha'
1011 gem 'bacon'
1112 gem 'mocha-on-bacon'
1213 gem 'prettybacon'
14+ gem 'github_api'
1315end
Original file line number Diff line number Diff line change 6464 cocoapods-try (1.2.0 )
6565 colored2 (3.1.2 )
6666 concurrent-ruby (1.1.9 )
67+ descendants_tracker (0.0.4 )
68+ thread_safe (~> 0.3 , >= 0.3.1 )
6769 escape (0.0.4 )
6870 ethon (0.15.0 )
6971 ffi (>= 1.15.0 )
72+ faraday (1.10.0 )
73+ faraday-em_http (~> 1.0 )
74+ faraday-em_synchrony (~> 1.0 )
75+ faraday-excon (~> 1.1 )
76+ faraday-httpclient (~> 1.0 )
77+ faraday-multipart (~> 1.0 )
78+ faraday-net_http (~> 1.0 )
79+ faraday-net_http_persistent (~> 1.0 )
80+ faraday-patron (~> 1.0 )
81+ faraday-rack (~> 1.0 )
82+ faraday-retry (~> 1.0 )
83+ ruby2_keywords (>= 0.0.4 )
84+ faraday-em_http (1.0.0 )
85+ faraday-em_synchrony (1.0.0 )
86+ faraday-excon (1.1.0 )
87+ faraday-httpclient (1.0.1 )
88+ faraday-multipart (1.0.3 )
89+ multipart-post (>= 1.2 , < 3 )
90+ faraday-net_http (1.0.1 )
91+ faraday-net_http_persistent (1.2.0 )
92+ faraday-patron (1.0.0 )
93+ faraday-rack (1.0.0 )
94+ faraday-retry (1.0.3 )
7095 ffi (1.15.5 )
7196 fileutils (1.6.0 )
7297 fourflusher (2.3.1 )
7398 fuzzy_match (2.0.4 )
7499 gh_inspector (1.1.3 )
100+ github_api (0.19.0 )
101+ addressable (~> 2.4 )
102+ descendants_tracker (~> 0.0.4 )
103+ faraday (>= 0.8 , < 2 )
104+ hashie (~> 3.5 , >= 3.5.2 )
105+ oauth2 (~> 1.0 )
106+ hashie (3.6.0 )
75107 httpclient (2.8.3 )
76108 i18n (1.10.0 )
77109 concurrent-ruby (~> 1.0 )
78110 json (2.6.1 )
111+ jwt (2.3.0 )
79112 minitest (5.15.0 )
80113 mocha (1.13.0 )
81114 mocha-on-bacon (0.2.3 )
82115 mocha (>= 0.13.0 )
83116 molinillo (0.8.0 )
117+ multi_json (1.15.0 )
118+ multi_xml (0.6.0 )
119+ multipart-post (2.1.1 )
84120 nanaimo (0.3.0 )
85121 nap (1.1.0 )
86122 netrc (0.11.0 )
123+ oauth2 (1.4.9 )
124+ faraday (>= 0.17.3 , < 3.0 )
125+ jwt (>= 1.0 , < 3.0 )
126+ multi_json (~> 1.3 )
127+ multi_xml (~> 0.5 )
128+ rack (>= 1.2 , < 3 )
87129 prettybacon (0.0.2 )
88130 bacon (~> 1.2 )
89131 public_suffix (4.0.6 )
132+ rack (2.2.3 )
90133 rake (13.0.6 )
91134 rexml (3.2.5 )
92135 ruby-macho (2.5.1 )
136+ ruby2_keywords (0.0.5 )
137+ thread_safe (0.3.6 )
93138 typhoeus (1.4.0 )
94139 ethon (>= 0.9.0 )
95140 tzinfo (2.0.4 )
@@ -114,6 +159,8 @@ DEPENDENCIES
114159 bundler
115160 cocoapods
116161 cocoapods-embed-flutter !
162+ cocoapods-plugins
163+ github_api
117164 mocha
118165 mocha-on-bacon
119166 prettybacon
Original file line number Diff line number Diff line change @@ -20,5 +20,20 @@ task :demo do
2020 end
2121end
2222
23+ desc 'Publish to cocoapods plugins if not present'
24+ task :publish do
25+ require 'rubygems'
26+ gem = Gem ::Specification ::load ( Dir [ '*.gemspec' ] . first )
27+
28+ require 'cocoapods'
29+ require 'pod/command/plugins_helper'
30+ known_plugins = Pod ::Command ::PluginsHelper . known_plugins
31+ return if known_plugins . one? { |plugin | plugin [ 'gem' ] == gem . name }
32+
33+ require 'github_api'
34+ return if Github . search . issues ( q : "#{ gem . name } user:CocoaPods repo:CocoaPods/cocoapods-plugins in:title" ) . items . count > 0
35+ system ( 'pod plugins publish' , exception : true )
36+ end
37+
2338task :default => :specs
2439
Original file line number Diff line number Diff line change 11module CocoapodsEmbedFlutter
22 VERSION = '0.5.0' . freeze
3- NAME = 'cocoapods-embed-flutter'
43end
You can’t perform that action at this time.
0 commit comments