jmpod 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 28e43467d71d8a9aa317131bd1f8c22ed8d739e4bca2b009f2a10cb05cd9db66
4
+ data.tar.gz: 12342ccf2a21fe84e1ff125e0b43598f4d139e5079852a6bf026367b09f7a770
5
+ SHA512:
6
+ metadata.gz: 9f3fba8f1bc0a718296187f1054bfcc08fcb10d48abec6e00ff7a111dfa18c3e1b27dcd79b7c9710179df2d8d1c6762a36e866b9d72542a9374540e6f42621b3
7
+ data.tar.gz: 063e0252d75f8c5a06c1a06c2fba0a1c0e8093fa3ca8fefc5967f6c3d4b6e0cf9cb85cb36dd630e06cf5272fe3be3c3a4424a8ceaa69c84673db9f056981979a
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at 307113345@qq.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in jmpod.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,95 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ jmpod (0.1.0)
5
+ claide (>= 1.0.2, < 2.0)
6
+ cocoapods (>= 1.8.4)
7
+ colored2 (~> 3.1)
8
+ molinillo (~> 0.6.6)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ CFPropertyList (3.0.2)
14
+ activesupport (4.2.11.1)
15
+ i18n (~> 0.7)
16
+ minitest (~> 5.1)
17
+ thread_safe (~> 0.3, >= 0.3.4)
18
+ tzinfo (~> 1.1)
19
+ algoliasearch (1.27.1)
20
+ httpclient (~> 2.8, >= 2.8.3)
21
+ json (>= 1.5.1)
22
+ atomos (0.1.3)
23
+ claide (1.0.2)
24
+ cocoapods (1.8.4)
25
+ activesupport (>= 4.0.2, < 5)
26
+ claide (>= 1.0.2, < 2.0)
27
+ cocoapods-core (= 1.8.4)
28
+ cocoapods-deintegrate (>= 1.0.3, < 2.0)
29
+ cocoapods-downloader (>= 1.2.2, < 2.0)
30
+ cocoapods-plugins (>= 1.0.0, < 2.0)
31
+ cocoapods-search (>= 1.0.0, < 2.0)
32
+ cocoapods-stats (>= 1.0.0, < 2.0)
33
+ cocoapods-trunk (>= 1.4.0, < 2.0)
34
+ cocoapods-try (>= 1.1.0, < 2.0)
35
+ colored2 (~> 3.1)
36
+ escape (~> 0.0.4)
37
+ fourflusher (>= 2.3.0, < 3.0)
38
+ gh_inspector (~> 1.0)
39
+ molinillo (~> 0.6.6)
40
+ nap (~> 1.0)
41
+ ruby-macho (~> 1.4)
42
+ xcodeproj (>= 1.11.1, < 2.0)
43
+ cocoapods-core (1.8.4)
44
+ activesupport (>= 4.0.2, < 6)
45
+ algoliasearch (~> 1.0)
46
+ concurrent-ruby (~> 1.1)
47
+ fuzzy_match (~> 2.0.4)
48
+ nap (~> 1.0)
49
+ cocoapods-deintegrate (1.0.4)
50
+ cocoapods-downloader (1.2.2)
51
+ cocoapods-plugins (1.0.0)
52
+ nap
53
+ cocoapods-search (1.0.0)
54
+ cocoapods-stats (1.1.0)
55
+ cocoapods-trunk (1.4.1)
56
+ nap (>= 0.8, < 2.0)
57
+ netrc (~> 0.11)
58
+ cocoapods-try (1.1.0)
59
+ colored2 (3.1.2)
60
+ concurrent-ruby (1.1.6)
61
+ escape (0.0.4)
62
+ fourflusher (2.3.1)
63
+ fuzzy_match (2.0.4)
64
+ gh_inspector (1.1.3)
65
+ httpclient (2.8.3)
66
+ i18n (0.9.5)
67
+ concurrent-ruby (~> 1.0)
68
+ json (2.1.0)
69
+ minitest (5.12.0)
70
+ molinillo (0.6.6)
71
+ nanaimo (0.2.6)
72
+ nap (1.1.0)
73
+ netrc (0.11.0)
74
+ rake (10.5.0)
75
+ ruby-macho (1.4.0)
76
+ thread_safe (0.3.6)
77
+ tzinfo (1.2.6)
78
+ thread_safe (~> 0.1)
79
+ xcodeproj (1.13.0)
80
+ CFPropertyList (>= 2.3.3, < 4.0)
81
+ atomos (~> 0.1.3)
82
+ claide (>= 1.0.2, < 2.0)
83
+ colored2 (~> 3.1)
84
+ nanaimo (~> 0.2.6)
85
+
86
+ PLATFORMS
87
+ ruby
88
+
89
+ DEPENDENCIES
90
+ bundler (~> 1.17)
91
+ jmpod!
92
+ rake (~> 10.0)
93
+
94
+ BUNDLED WITH
95
+ 1.17.2
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Jmpod
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jmpod`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'jmpod'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install jmpod
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jmpod. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the Jmpod project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jmpod/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/jmpod ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "jmpod"
5
+ require "cocoapods"
6
+
7
+
8
+ # You can add fixtures and/or initialization code here to make experimenting
9
+ # with your gem easier. You can also use a different console, if you like.
10
+
11
+ # (If you use this, don't forget to add pry to your Gemfile!)
12
+ # require "pry"
13
+ # Pry.start
14
+
15
+ Jmpod::Command.run(ARGV)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/jmpod.gemspec ADDED
@@ -0,0 +1,41 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "jmpod/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jmpod"
8
+ spec.version = Jmpod::VERSION
9
+ spec.authors = ["jieming"]
10
+ spec.email = ["307113345@qq.com"]
11
+
12
+ spec.summary = %q{"test"}
13
+ spec.description = %q{"test"}
14
+ spec.homepage = "http://34.80.176.10:8080/iOS-third/jmpod"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+
19
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
20
+
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
23
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
24
+
25
+
26
+ # Specify which files should be added to the gem when it is released.
27
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
29
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
+ end
31
+ spec.bindir = "exe"
32
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ["lib"]
34
+
35
+ spec.add_development_dependency "bundler", "~> 1.17"
36
+ spec.add_development_dependency "rake", "~> 10.0"
37
+ spec.add_runtime_dependency "claide", ">= 1.0.2", "< 2.0"
38
+ spec.add_runtime_dependency "molinillo", "~> 0.6.6"
39
+ spec.add_runtime_dependency "colored2", "~> 3.1"
40
+ spec.add_runtime_dependency "cocoapods", ">= 1.8.4"
41
+ end
@@ -0,0 +1,39 @@
1
+ module Jmpod
2
+ class Command
3
+ class Create < Command
4
+ class Oc < Create
5
+
6
+
7
+
8
+ self.summary = '创建一个oc库'
9
+ self.description = <<-DESC
10
+ 创建一个oc pod 库.
11
+ DESC
12
+
13
+ self.arguments = [
14
+ CLAide::Argument.new('NAME', true),
15
+ ]
16
+
17
+ def initialize(argv)
18
+ @name = argv.shift_argument
19
+ super
20
+ @additional_args = argv.remainder!
21
+ end
22
+
23
+ def validate!
24
+ super
25
+ help! 'A name for the Pod is required.' unless @name
26
+ help! 'The Pod name cannot contain spaces.' if @name =~ /\s/
27
+ help! 'The Pod name cannot contain plusses.' if @name =~ /\+/
28
+ help! "The Pod name cannot begin with a '.'" if @name[0, 1] == '.'
29
+ end
30
+
31
+ def run
32
+ puts "od lib create #{@name} --template-url=http://34.80.176.10:8080/iOS-third/pod-template"
33
+ system "pod lib create #{@name} --template-url=http://34.80.176.10:8080/iOS-third/pod-template"
34
+ # puts "create a new oc pod done!"
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
File without changes
File without changes
@@ -0,0 +1,15 @@
1
+ require 'jmpod/command/create/oc'
2
+ require 'jmpod/command/create/swift'
3
+ require 'jmpod/command/create/third'
4
+
5
+ module Jmpod
6
+ class Command
7
+ class Create < Command
8
+ self.abstract_command = true
9
+ self.summary = '创建pod库'
10
+ self.description = <<-DESC
11
+ 在当前文件夹下创建pod库,并且上传到gitlab上
12
+ DESC
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,46 @@
1
+ require 'colored2'
2
+ require 'claide'
3
+ require 'molinillo/errors'
4
+
5
+ module Molinillo
6
+ class ResolverError
7
+ include CLAide::InformativeError
8
+ end
9
+ end
10
+
11
+ module Jmpod
12
+ class PlainInformative
13
+ include CLAide::InformativeError
14
+ end
15
+
16
+ class Command < CLAide::Command
17
+ require 'jmpod/command/create'
18
+
19
+ self.abstract_command = true
20
+ self.command = 'jmpod'
21
+ self.version = VERSION
22
+ self.description = 'Jmpod, test gem pod'
23
+ self.plugin_prefixes = %w(claide jmpod)
24
+
25
+ def self.options
26
+ [
27
+ ['--silent', 'Show nothing'],
28
+ ].concat(super)
29
+ end
30
+
31
+ def self.run(argv)
32
+ help! 'You cannot run CocoaPods as root.' if Process.uid == 0 && !Gem.win_platform?
33
+
34
+ super(argv)
35
+ end
36
+
37
+ def initialize(argv)
38
+ super
39
+
40
+ unless self.ansi_output?
41
+ Colored2.disable!
42
+ String.send(:define_method, :colorize) { |string, _| string }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,6 @@
1
+ module Jmpod
2
+ # freeze 冻结对象,将对象变成一个常量
3
+ # unless 右边的代码块成立,才会运行左边的代码块
4
+ # defined? 是用来判断本地变量是否存在,也可用来判断是否存在方法
5
+ VERSION = "0.1.0".freeze unless defined? Jmpod::VERSION
6
+ end
data/lib/jmpod.rb ADDED
@@ -0,0 +1,7 @@
1
+
2
+ module Jmpod
3
+ require "jmpod/version"
4
+
5
+ autoload :Command, 'jmpod/command'
6
+
7
+ end
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jmpod
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - jieming
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-04-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: claide
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.2
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '2.0'
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 1.0.2
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: molinillo
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 0.6.6
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.6.6
75
+ - !ruby/object:Gem::Dependency
76
+ name: colored2
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.1'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.1'
89
+ - !ruby/object:Gem::Dependency
90
+ name: cocoapods
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: 1.8.4
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 1.8.4
103
+ description: '"test"'
104
+ email:
105
+ - 307113345@qq.com
106
+ executables: []
107
+ extensions: []
108
+ extra_rdoc_files: []
109
+ files:
110
+ - ".gitignore"
111
+ - CODE_OF_CONDUCT.md
112
+ - Gemfile
113
+ - Gemfile.lock
114
+ - README.md
115
+ - Rakefile
116
+ - bin/jmpod
117
+ - bin/setup
118
+ - jmpod.gemspec
119
+ - lib/jmpod.rb
120
+ - lib/jmpod/command.rb
121
+ - lib/jmpod/command/create.rb
122
+ - lib/jmpod/command/create/oc.rb
123
+ - lib/jmpod/command/create/swift.rb
124
+ - lib/jmpod/command/create/third.rb
125
+ - lib/jmpod/version.rb
126
+ homepage: http://34.80.176.10:8080/iOS-third/jmpod
127
+ licenses: []
128
+ metadata:
129
+ homepage_uri: http://34.80.176.10:8080/iOS-third/jmpod
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubygems_version: 3.0.3
146
+ signing_key:
147
+ specification_version: 4
148
+ summary: '"test"'
149
+ test_files: []