pod_updater 0.2.2 → 0.3.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 +4 -4
- data/Gemfile +1 -1
- data/README.md +5 -5
- data/bin/console +1 -1
- data/bin/pod_updater +24 -0
- data/lib/.DS_Store +0 -0
- data/lib/pod_updater.rb +34 -0
- data/lib/{podUpdater → pod_updater}/git_tag_flow.rb +0 -0
- data/lib/{podUpdater → pod_updater}/modify_podspec.rb +0 -0
- data/lib/{podUpdater → pod_updater}/pod_push.rb +0 -7
- data/lib/{podUpdater → pod_updater}/version.rb +1 -1
- data/{podUpdater.gemspec → pod_updater.gemspec} +5 -5
- metadata +13 -14
- data/bin/podUpdater +0 -7
- data/lib/podUpdater.rb +0 -19
- data/lib/podUpdater/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e41e8cde4245989fa28fcd2f8f90ccfa055c69b
|
4
|
+
data.tar.gz: 1de918fcba88a5c433b36fca206d22d55dcfb13d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae755113e1423803bd57333647609c42f7afd12ce9cf9665fda0352c82cef1b5c3ea20f74dd833af7478bffd6eca243e6c32d3227b57c547a039b53586b8e610
|
7
|
+
data.tar.gz: c622c3a3e330fc0e7ac7b24a1d90681e2f91a363b63da74ed304525cbf9e6f9eeeaa22040a4b39e006866bbdb1a9de196c224d9e5069038abbf38648bb14f80f
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# PodUpdater
|
2
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/
|
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/pod_updater`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
4
|
|
5
5
|
TODO: Delete this and the text above, and describe your gem
|
6
6
|
|
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem '
|
12
|
+
gem 'pod_updater'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -18,7 +18,7 @@ And then execute:
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
$ gem install
|
21
|
+
$ gem install pod_updater
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
32
|
|
33
33
|
## Contributing
|
34
34
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pod_updater. 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
36
|
|
37
37
|
## License
|
38
38
|
|
@@ -40,4 +40,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
40
40
|
|
41
41
|
## Code of Conduct
|
42
42
|
|
43
|
-
Everyone interacting in the PodUpdater project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/
|
43
|
+
Everyone interacting in the PodUpdater project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/pod_updater/blob/master/CODE_OF_CONDUCT.md).
|
data/bin/console
CHANGED
data/bin/pod_updater
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'podUpdater.rb'
|
4
|
+
require 'optparse'
|
5
|
+
|
6
|
+
options = {}
|
7
|
+
option_parser = OptionParser.new do |opts|
|
8
|
+
|
9
|
+
opts.banner = 'here is help messages of the command line tool'
|
10
|
+
|
11
|
+
options[:version] = nil
|
12
|
+
opts.on('-v', '--version [version]', String, 'the podspec\'s version') do |version|
|
13
|
+
options[:version] = version
|
14
|
+
end
|
15
|
+
|
16
|
+
end.parse!
|
17
|
+
|
18
|
+
unless options[:version]
|
19
|
+
|
20
|
+
abort("ABORTED! You forgot pass a version value with command \'-v [version]\'")
|
21
|
+
exit
|
22
|
+
end
|
23
|
+
|
24
|
+
PodUpdater.run(options[:version])
|
data/lib/.DS_Store
CHANGED
Binary file
|
data/lib/pod_updater.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require "podUpdater/version"
|
2
|
+
require "podUpdater/pod_push"
|
3
|
+
|
4
|
+
|
5
|
+
module PodUpdater
|
6
|
+
|
7
|
+
def self.run(version)
|
8
|
+
path = File.expand_path(Dir.pwd)
|
9
|
+
pushPodToSevice(path,version)
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
require 'optparse'
|
15
|
+
|
16
|
+
options = {}
|
17
|
+
option_parser = OptionParser.new do |opts|
|
18
|
+
|
19
|
+
opts.banner = 'here is help messages of the command line tool'
|
20
|
+
|
21
|
+
options[:version] = nil
|
22
|
+
opts.on('-v', '--version [version]', String, 'the podspec\'s version') do |version|
|
23
|
+
options[:version] = version
|
24
|
+
end
|
25
|
+
|
26
|
+
end.parse!
|
27
|
+
|
28
|
+
unless options[:version]
|
29
|
+
|
30
|
+
abort("ABORTED! You forgot pass a version value with command \'-v [version]\'")
|
31
|
+
exit
|
32
|
+
end
|
33
|
+
puts "哈哈哈开始"
|
34
|
+
PodUpdater.run(options[:version])
|
File without changes
|
File without changes
|
@@ -1,15 +1,8 @@
|
|
1
|
-
|
2
|
-
# require "/Users/qwkj/Documents/WZ_GitHub/podUpdater/podUpdater/lib/podUpdater/git_tag_flow.rb"
|
3
|
-
# require "/Users/qwkj/Documents/WZ_GitHub/podUpdater/podUpdater/lib/podUpdater/modify_podspec.rb"
|
4
1
|
require "podUpdater/git_tag_flow"
|
5
2
|
require "podUpdater/modify_podspec"
|
6
3
|
|
7
4
|
module PodUpdater
|
8
5
|
|
9
|
-
def sayHi
|
10
|
-
puts "heiehieheihehie"
|
11
|
-
aPath = File.expand_path('./');puts "哈哈哈#{aPath}"
|
12
|
-
end
|
13
6
|
# 给定pod库项目的路径,以及新版pod库的版本,将自己的pod提交到git,然后打上tag,再push trunk到pod服务器去
|
14
7
|
def pushPodToSevice(path,version)
|
15
8
|
# FOR_DEBUG:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
lib = File.expand_path("../lib", __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "
|
4
|
+
require "pod_updater/version"
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "pod_updater"
|
@@ -9,9 +9,9 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["hwzss"]
|
10
10
|
spec.email = ["1833361588@qq.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.description = %q{
|
14
|
-
spec.homepage = "https://github.com/hwzss/
|
12
|
+
spec.summary = %q{just for test}
|
13
|
+
spec.description = %q{just for test}
|
14
|
+
spec.homepage = "https://github.com/hwzss/pod_updater"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
end
|
29
29
|
spec.bindir = "bin"
|
30
30
|
# spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
-
spec.executables =
|
31
|
+
spec.executables = ['pod_updater']
|
32
32
|
spec.require_paths = ["lib"]
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", "~> 1.16"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pod_updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hwzss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,11 +38,11 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description:
|
41
|
+
description: just for test
|
42
42
|
email:
|
43
43
|
- 1833361588@qq.com
|
44
44
|
executables:
|
45
|
-
-
|
45
|
+
- pod_updater
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
@@ -55,17 +55,16 @@ files:
|
|
55
55
|
- Rakefile
|
56
56
|
- bin/.DS_Store
|
57
57
|
- bin/console
|
58
|
-
- bin/
|
58
|
+
- bin/pod_updater
|
59
59
|
- bin/setup
|
60
60
|
- lib/.DS_Store
|
61
|
-
- lib/
|
62
|
-
- lib/
|
63
|
-
- lib/
|
64
|
-
- lib/
|
65
|
-
- lib/
|
66
|
-
-
|
67
|
-
|
68
|
-
homepage: https://github.com/hwzss/podUpdater
|
61
|
+
- lib/pod_updater.rb
|
62
|
+
- lib/pod_updater/git_tag_flow.rb
|
63
|
+
- lib/pod_updater/modify_podspec.rb
|
64
|
+
- lib/pod_updater/pod_push.rb
|
65
|
+
- lib/pod_updater/version.rb
|
66
|
+
- pod_updater.gemspec
|
67
|
+
homepage: https://github.com/hwzss/pod_updater
|
69
68
|
licenses:
|
70
69
|
- MIT
|
71
70
|
metadata:
|
@@ -89,5 +88,5 @@ rubyforge_project:
|
|
89
88
|
rubygems_version: 2.0.14.1
|
90
89
|
signing_key:
|
91
90
|
specification_version: 4
|
92
|
-
summary:
|
91
|
+
summary: just for test
|
93
92
|
test_files: []
|
data/bin/podUpdater
DELETED
data/lib/podUpdater.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
|
2
|
-
# lib = File.expand_path('../', __FILE__)
|
3
|
-
# $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
|
5
|
-
require "podUpdater/version"
|
6
|
-
require "podUpdater/pod_push"
|
7
|
-
|
8
|
-
|
9
|
-
module PodUpdater
|
10
|
-
|
11
|
-
def self.run(version)
|
12
|
-
path = File.expand_path(Dir.pwd)
|
13
|
-
pushPodToSevice(path,version)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
|
19
|
-
|
data/lib/podUpdater/.DS_Store
DELETED
Binary file
|