gonative-cli 0.4.0 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 409f92d9c03c97da1340ab786447a40e3af3a51676a11e2f1005c3552bdad1c1
4
- data.tar.gz: e42bd2f0bf847b47ca705096d571fefc16541e511b9fe7663423b601037e660a
3
+ metadata.gz: 50a3f67b63e9189478cf5bd99333dabcab2270becfa5c2b2c050f5438bb578ec
4
+ data.tar.gz: 5ab36119c477700139465acf59921e7e02dcd76d666519cdf0cd497a6bc6d986
5
5
  SHA512:
6
- metadata.gz: a068137b15c168995c30c26bb59853c1032e162da06c5d7c804dfde181621e76c88d11ed91d285037202b4935c264f1e6feffdfd7bda0e886add8c0c1667e7e3
7
- data.tar.gz: a35cd033721b764e4883089db018ab6b4e61bb8cda0bec8d757fff3e17723d1c7b3262ed494247080ca6c8e18f0d481457cea7c6a684b8f1829fb4cdfbf304d7
6
+ metadata.gz: 5a47ee13b9b0a57f794ad4d173b7807b8122b203d4e69acc032ec88d3167fb37736b7f3f5a37b6610c1e71f0cdd9553d86a3a24b8af0ceff0956a2f2647f091f
7
+ data.tar.gz: 8dd92365b9d69285846ab9ecb28bbbb14b7c2a37c3ef8e2ca9c36db10314994d4a0183dc00f75bcc56be2025d18dce41c2df27b505f23e0facb58ade50430364
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.3.1)
4
+ gonative-cli (0.4.3)
5
5
  cocoapods (~> 1.10)
6
- colorize
6
+ colorize (~> 0.8.0)
7
7
  dry-cli (~> 0.7)
8
8
  xcodeproj (~> 1.20)
9
9
  zeitwerk (~> 2.4)
data/gonative-cli.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency 'zeitwerk', '~> 2.4'
32
32
  spec.add_dependency 'cocoapods', '~> 1.10'
33
33
  spec.add_dependency 'xcodeproj', '~> 1.20'
34
- spec.add_dependency 'colorize'
34
+ spec.add_dependency 'colorize', '~> 0.8.0'
35
35
 
36
36
  spec.add_development_dependency 'rspec', '~> 3.10'
37
37
  spec.add_development_dependency 'pry-byebug', '~> 3.9'
@@ -14,7 +14,6 @@ module GoNative
14
14
  assert_spec_exists!
15
15
  sources_manager.update(GONATIVE_SOURCE_NAME)
16
16
  assert_not_pushed!
17
- verify_lib!
18
17
  create_and_push_tag!
19
18
  push_to_pod_repo!
20
19
  end
@@ -31,17 +30,14 @@ module GoNative
31
30
  version = spec.version
32
31
  name = spec.name
33
32
 
34
- pushed_versions = source.versions(name).collect(&:to_s)
33
+ pushed_versions = source.versions(name)&.collect(&:to_s)
35
34
 
36
- raise Error, "#{name} (#{version}) has already been pushed to #{source.name}" if pushed_versions.include? version.to_s
37
- end
38
-
39
- def verify_lib!
40
- raise Error, "pod lib lint failed" unless system("pod lib lint #{spec_name} --private")
35
+ raise Error, "#{name} (#{version}) has already been pushed to #{source.name}" if pushed_versions&.include? version.to_s
41
36
  end
42
37
 
43
38
  def create_and_push_tag!
44
39
  unless system("git tag | grep #{spec.version} > /dev/null")
40
+ system "git add -A && git commit -m \"Releases #{spec.version}.\""
45
41
  system "git tag #{spec.version}"
46
42
  system "git push && git push --tags"
47
43
  end
@@ -9,6 +9,7 @@ module GoNative
9
9
 
10
10
  def call
11
11
  assert_valid_plugin!
12
+ assert_staging_clear!
12
13
  build_framework!
13
14
  release_pod!
14
15
  end
@@ -19,6 +20,12 @@ module GoNative
19
20
  raise Error, "File 'create-framework.sh' does not exist. Please make sure this is a valid GoNative plugin directory"
20
21
  end
21
22
 
23
+ def assert_staging_clear!
24
+ return if `git status --porcelain`.empty?
25
+
26
+ raise Error, "There are uncommitted changes in the repository"
27
+ end
28
+
22
29
  def build_framework!
23
30
  Utils::UI.info 'Building framework'
24
31
  return if system('sh create-framework.sh >/dev/null 2>/dev/null')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.4"
5
5
  end
@@ -10,7 +10,7 @@ TODO: Add long description of the pod here.
10
10
  s.homepage = 'https://github.com/gonativeio/{{PLUGIN_NAME}}'
11
11
  s.license = { :type => 'MIT', :file => 'LICENSE' }
12
12
  s.author = { 'hhunaid' => 'hhunaid@gmail.com' }
13
- s.source = { :git => 'https://github.com/gonativeio/{{PLUGIN_NAME}}.git', :tag => s.version.to_s }
13
+ s.source = { :git => 'git@github.com:gonativeio/{{PLUGIN_NAME}}.git', :tag => s.version.to_s }
14
14
 
15
15
  s.ios.deployment_target = '10.0'
16
16
  s.swift_versions = '5.0'
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonative-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: colorize
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 0.8.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 0.8.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +162,6 @@ files:
162
162
  - ".rspec"
163
163
  - ".rubocop.yml"
164
164
  - CODE_OF_CONDUCT.md
165
- - FacebookPlugin.podspec
166
165
  - Gemfile
167
166
  - Gemfile.lock
168
167
  - LICENSE.txt
@@ -195,6 +194,7 @@ files:
195
194
  - templates/plugins/ios/PLUGIN_NAME/Info.plist
196
195
  - templates/plugins/ios/Podfile.tpl
197
196
  - templates/plugins/ios/create-framework.sh.tpl
197
+ - templates/plugins/ios/js/polyfill.js.tpl
198
198
  homepage: https://www.github.com/gonativeio/gonative-cli
199
199
  licenses:
200
200
  - MIT
@@ -1,29 +0,0 @@
1
- Pod::Spec.new do |s|
2
- s.name = 'FacebookPlugin'
3
- s.version = '1.0.0'
4
- s.summary = 'Facebook plugin for GoNative.'
5
-
6
- s.description = <<-DESC
7
- TODO: Add long description of the pod here.
8
- DESC
9
-
10
- s.homepage = 'https://github.com/gonativeio/FacebookPlugin'
11
- s.license = { :type => 'MIT', :file => 'LICENSE' }
12
- s.author = { 'hhunaid' => 'hhunaid@gmail.com' }
13
- s.source = { :git => 'https://github.com/gonativeio/FacebookPlugin.git', :tag => s.version.to_s }
14
-
15
- s.ios.deployment_target = '10.0'
16
- s.swift_versions = '5.0'
17
-
18
- s.subspec 'Source' do |cs|
19
- cs.source_files = 'FacebookPlugin/Classes/**/*'
20
- end
21
-
22
- s.subspec 'Binary' do |cs|
23
- cs.ios.vendored_frameworks = 'XCFramework/FacebookPlugin.xcframework'
24
- end
25
-
26
- s.default_subspec = 'Source'
27
- s.dependency 'FBSDKCoreKit', '~> 9.1.0'
28
- s.dependency 'GoNativeCore'
29
- end