cocoapods-rn-toolkit 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5c839a1f83e88667ce8701be344622063877252d960927cb28de3b82f967a25
4
- data.tar.gz: 2827da1a511e97a5012f5ea048db6d6b38aa30e3c8e1d9fb65cdfa5115e542bf
3
+ metadata.gz: 3924c5a6b7a63652bcdda3a2ffdc1efff3354a5b6fb87a21f672827a8fec1512
4
+ data.tar.gz: dcfe4d5ae51907e45d16c04a69c0451a4b22c9196325d41843f4b6fc8fe40501
5
5
  SHA512:
6
- metadata.gz: 6d5aeaa144526e6a59f06f9e3465bd79ea4b2285578186bc5fb21c8d43bf209d1d469734f9ae3649c425e941c8066db528ff4af63a2a8251e9e81ecf1a6a5c93
7
- data.tar.gz: 9e67dbfe260a3d33dcb75cc737d35b722fc3ec199801bdfa57e22ddc325713a3e4dfa1ba767f178679389e8cceb5f7a0a30a086c2bdf459eacda3aed980fb5c3
6
+ metadata.gz: 5613cada4bd19361bef9f79925d5175c276e5039c7bbb2149f265eabe03c57744a10819cb0f30bf939e2e576d3e237956711918d128cc26ef59d66d8cbe57487
7
+ data.tar.gz: 65bcf586ab6f455c5e55cbd440254aa10b41e4112234225ce19d3c36c30c93b5248232bb2cc84065171ac14bc4d8a7d3220f207811e556571671de0b6101b260
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cocoapods-rn-toolkit.gemspec
4
+ gemspec
5
+
6
+ group :development do
7
+ gem 'cocoapods'
8
+
9
+ gem 'mocha'
10
+ gem 'bacon'
11
+ gem 'mocha-on-bacon'
12
+ gem 'prettybacon'
13
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2024 Nx <chenyg32@gmail.com>
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ def specs(dir)
4
+ FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
5
+ end
6
+
7
+ desc 'Runs all the specs'
8
+ task :specs do
9
+ sh "bundle exec bacon #{specs('**')}"
10
+ end
11
+
12
+ task :default => :specs
13
+
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cocoapods-rn-toolkit/gem_version.rb'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cocoapods-rn-toolkit'
8
+ spec.version = CocoapodsRnToolkit::VERSION
9
+ spec.authors = ['Nx']
10
+ spec.email = ['chenyg32@gmail.com']
11
+ spec.description = %q{A short description of cocoapods-rn-toolkit.}
12
+ spec.summary = %q{A longer description of cocoapods-rn-toolkit.}
13
+ spec.homepage = 'https://github.com/EXAMPLE/cocoapods-rn-toolkit'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_development_dependency 'bundler', '~> 1.3'
22
+ spec.add_development_dependency 'rake'
23
+ end
@@ -0,0 +1,44 @@
1
+ module Pod
2
+ class Command
3
+ # This is an example of a cocoapods plugin adding a top-level subcommand
4
+ # to the 'pod' command.
5
+ #
6
+ # You can also create subcommands of existing or new commands. Say you
7
+ # wanted to add a subcommand to `list` to show newly deprecated pods,
8
+ # (e.g. `pod list deprecated`), there are a few things that would need
9
+ # to change.
10
+ #
11
+ # - move this file to `lib/pod/command/list/deprecated.rb` and update
12
+ # the class to exist in the the Pod::Command::List namespace
13
+ # - change this class to extend from `List` instead of `Command`. This
14
+ # tells the plugin system that it is a subcommand of `list`.
15
+ # - edit `lib/cocoapods_plugins.rb` to require this file
16
+ #
17
+ # @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
18
+ # in the `plugins.json` file, once your plugin is released.
19
+ #
20
+ class Toolkit < Command
21
+ self.summary = 'Short description of cocoapods-rn-toolkit.'
22
+
23
+ self.description = <<-DESC
24
+ Longer description of cocoapods-rn-toolkit.
25
+ DESC
26
+
27
+ self.arguments = 'NAME'
28
+
29
+ def initialize(argv)
30
+ @name = argv.shift_argument
31
+ super
32
+ end
33
+
34
+ def validate!
35
+ super
36
+ help! 'A Pod name is required.' unless @name
37
+ end
38
+
39
+ def run
40
+ UI.puts "Add your implementation for the cocoapods-rn-toolkit plugin in #{__FILE__}"
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-rn-toolkit/command/toolkit'
@@ -1,3 +1,3 @@
1
1
  module CocoapodsRnToolkit
2
- VERSION = "0.0.1"
3
- end
2
+ VERSION = "0.0.3"
3
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-rn-toolkit/gem_version'
@@ -0,0 +1 @@
1
+ require 'cocoapods-rn-toolkit/command'
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+
3
+ module Pod
4
+ describe Command::Toolkit do
5
+ describe 'CLAide' do
6
+ it 'registers it self' do
7
+ Command.parse(%w{ toolkit }).should.be.instance_of Command::Toolkit
8
+ end
9
+ end
10
+ end
11
+ end
12
+
@@ -0,0 +1,50 @@
1
+ require 'pathname'
2
+ ROOT = Pathname.new(File.expand_path('../../', __FILE__))
3
+ $:.unshift((ROOT + 'lib').to_s)
4
+ $:.unshift((ROOT + 'spec').to_s)
5
+
6
+ require 'bundler/setup'
7
+ require 'bacon'
8
+ require 'mocha-on-bacon'
9
+ require 'pretty_bacon'
10
+ require 'pathname'
11
+ require 'cocoapods'
12
+
13
+ Mocha::Configuration.prevent(:stubbing_non_existent_method)
14
+
15
+ require 'cocoapods_plugin'
16
+
17
+ #-----------------------------------------------------------------------------#
18
+
19
+ module Pod
20
+
21
+ # Disable the wrapping so the output is deterministic in the tests.
22
+ #
23
+ UI.disable_wrap = true
24
+
25
+ # Redirects the messages to an internal store.
26
+ #
27
+ module UI
28
+ @output = ''
29
+ @warnings = ''
30
+
31
+ class << self
32
+ attr_accessor :output
33
+ attr_accessor :warnings
34
+
35
+ def puts(message = '')
36
+ @output << "#{message}\n"
37
+ end
38
+
39
+ def warn(message = '', actions = [])
40
+ @warnings << "#{message}\n"
41
+ end
42
+
43
+ def print(message)
44
+ @output << message
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ #-----------------------------------------------------------------------------#
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-rn-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-06 00:00:00.000000000 Z
11
+ date: 2024-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,38 +16,47 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '13.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '13.0'
41
- description: This CocoaPods plugin provides a toolkit for React Native development,
42
- offering various utilities and helpers to streamline the development process.
40
+ version: '0'
41
+ description: A short description of cocoapods-rn-toolkit.
43
42
  email:
44
43
  - chenyg32@gmail.com
45
44
  executables: []
46
45
  extensions: []
47
46
  extra_rdoc_files: []
48
47
  files:
48
+ - Gemfile
49
+ - LICENSE.txt
49
50
  - README.md
51
+ - Rakefile
52
+ - cocoapods-rn-toolkit.gemspec
53
+ - lib/cocoapods-rn-toolkit.rb
54
+ - lib/cocoapods-rn-toolkit/command.rb
55
+ - lib/cocoapods-rn-toolkit/command/toolkit.rb
50
56
  - lib/cocoapods-rn-toolkit/gem_version.rb
57
+ - lib/cocoapods_plugin.rb
58
+ - spec/command/toolkit_spec.rb
59
+ - spec/spec_helper.rb
51
60
  homepage: https://github.com/EXAMPLE/cocoapods-rn-toolkit
52
61
  licenses:
53
62
  - MIT
@@ -70,5 +79,7 @@ requirements: []
70
79
  rubygems_version: 3.1.2
71
80
  signing_key:
72
81
  specification_version: 4
73
- summary: A CocoaPods plugin for React Native development
74
- test_files: []
82
+ summary: A longer description of cocoapods-rn-toolkit.
83
+ test_files:
84
+ - spec/command/toolkit_spec.rb
85
+ - spec/spec_helper.rb