gonative-cli 0.7.1 → 0.7.5

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: 4af471ce3d35ecf2570f943a4dfd18d26c531349cdef2ee760582df701847ccd
4
- data.tar.gz: f288b0f03241d7e9be4868a94a3cffee602e9e98ecbbf0c578ed82013152e448
3
+ metadata.gz: 07fce249ff2c7f1d1d8a34db1c5858b164908a949f51a908a8b81ac0c4a5b065
4
+ data.tar.gz: 6e1b143097f94766176dcdd172e6d177477582c7851d494e9f04b98ce38d551e
5
5
  SHA512:
6
- metadata.gz: c9b45097ffb8e46cc425e8e4f85c69da22d03bf0b7fa657fd9b3ad83d1de1083dc9d4f20c0e2a1751526385bde7dfb3103c7355db7908cd034b0701e3a537ffe
7
- data.tar.gz: eeca631c90a9d0d2a81d35a892a26c4a6b8b70a758f570f2a1f4a684bde4ed0a743360d67e3b3cd50f85d581b4406a9b32fef50625bc7aa5d122a378f43a1005
6
+ metadata.gz: 7201d0187e77dd9b775e5d1e7855e1d6713bb0792919e2e6df76de96ca685345948eb3c361fb09718f840d6e84e60bfbae29d3cfc623871ae320964d94bb1b68
7
+ data.tar.gz: 6c4d8c01f46feb0438cc9326d2b8260ef12b4e7239a533f2aa61aa4f1a6b5b25f7c0a6f292a280e9585e4b671003545c8d7a3f3e42ad276e8f048a7e1815e811
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.7.0)
4
+ gonative-cli (0.7.4)
5
5
  activesupport (~> 6.0)
6
6
  cocoapods (~> 1.10)
7
7
  colorize (~> 0.8.0)
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'cocoapods'
4
4
  require 'xcodeproj'
5
+ require 'active_support/core_ext/string/inflections'
5
6
 
6
7
  module GoNative
7
8
  module Plugins
@@ -16,7 +17,7 @@ module GoNative
16
17
  attr_reader :plugin_name
17
18
 
18
19
  def initialize
19
- @plugin_name = Utils::SanitizePluginName.call(FileUtils.pwd.split('/').last, 'ios') + 'Plugin'
20
+ @plugin_name = Utils::SanitizePluginName.call(FileUtils.pwd.split('/').last, 'ios').capitalize + 'Plugin'
20
21
  end
21
22
 
22
23
  def call
@@ -74,7 +75,7 @@ module GoNative
74
75
  end
75
76
 
76
77
  def move_framework_file
77
- FileUtils.mv("XCFramework/#{plugin_name}.xcframework", '..')
78
+ FileUtils.mv("XCFramework", '..', force: true)
78
79
  end
79
80
  end
80
81
  end
@@ -6,6 +6,8 @@ module GoNative
6
6
  module Plugins
7
7
  module IOS
8
8
  class Create
9
+ autoload :FileUtils, 'fileutils'
10
+
9
11
  extend DSL::Serviceable
10
12
 
11
13
  TEMPLATE_DIRECTORY_PATH = File.expand_path(File.join(__dir__, '../../../..', 'templates', 'plugins', 'ios'))
@@ -24,8 +26,7 @@ module GoNative
24
26
  assert_not_exists!
25
27
  set_working_dir!
26
28
  cp_template_files!
27
- Utils::TemplateInflator.new(plugin_name: plugin_name).call
28
- chmod_frameworks_script!
29
+ Utils::TemplateInflator.new(plugin_name: plugin_name, repo_name: repo_name).call
29
30
  end
30
31
 
31
32
  def assert_not_exists!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.1"
4
+ VERSION = "0.7.5"
5
5
  end
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.7.1
4
+ version: 0.7.5
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-12-07 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli