orientepodspecpush 0.0.4 → 0.0.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: 959c00006cbec372f3568df7b0a4d8c01dd5ed433f4c68cb9ac490858def6c93
4
- data.tar.gz: 2801e97d25db3cbdd74fa8199bbc96e984d5fd5b4cd8773c2125ed72b864bf53
3
+ metadata.gz: 49f215ab6185ba7407b060d7020d05105ce6564c52ac20f4af3f32c6ea3cdfcc
4
+ data.tar.gz: 35ed5d6d828855665c4b3cc6172c2ea95a7aa376346bf565d8098ff617187677
5
5
  SHA512:
6
- metadata.gz: 498e6ab12855c810f7cb5fa371a753c17e9c42328947cd6fe10da4fd788c4febc7179b4952d5f99c888331a55336f0d2885515068e8726cdb6faf14a4fecfd93
7
- data.tar.gz: 7a7ac7e050dbcd66ff34dcdb1fec56f6f26e4d3f54f0c0a2ec127e799d72ab0b2f6a0bf6d19949f8079ddb61294b1feb421de97add8024dbfa05617bf2e2db5b
6
+ metadata.gz: bf59d2a6c1fdee76284558fa8eaee92df70bfa635e6a40e27b2e9d184b5ea90714520f4da67c3674562eac1a9ee2b33ad5f19ae815e67683bedc1cc076458b9a
7
+ data.tar.gz: 5d8cf77d75f1bdac6126c6bf0bc88ba43604255973156603bb3314056df24d584fbec5cd77e3d441e5d26dd70ddc6c45485c4ae07dc384f54a491fb018e19f67
@@ -1,3 +1,3 @@
1
1
  module Orientepodspecpush
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -27,6 +27,14 @@ module Orientepodspecpush
27
27
 
28
28
  system cmd.join(' ')
29
29
  end
30
+
31
+ def packageCodePush
32
+ cmd = []
33
+ cmd << ['bundle exec'] if shouldUseBundleExec
34
+ cmd << ["pod package #{specfile} --force"]
35
+
36
+ system cmd.join(' ')
37
+ end
30
38
 
31
39
  def ensureGitClean
32
40
  if `git status --porcelain`.length != 0
@@ -74,12 +82,20 @@ module Orientepodspecpush
74
82
  puts "Please enter new a brief message to put in the git tag describing what's changed".blue
75
83
  @podVersionMessage = gets.chomp.downcase
76
84
 
77
- system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
78
- system "git push --tags"
85
+ # system "git add ."
86
+ # system "git commit -m 'upload framework'"
87
+ #
88
+ # system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
89
+ # system "git push --tags"
79
90
 
80
91
  contents = File.read(specfile)
81
92
  oldVersion = Regexp.new('[0-9.]{2,6}').match(Regexp.new('(s.version)\s*=.*\n').match(contents).to_s).to_s
82
93
  File.write(specfile, contents.sub!(oldVersion, @podVersion))
94
+ system "git add ."
95
+ system "git commit -m 'upload framework'"
96
+
97
+ system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
98
+ system "git push --tags"
83
99
  end
84
100
 
85
101
  def rollbackTag
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orientepodspecpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John wang