rubisc 0.2.5 → 0.2.6

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/pod-publish +5 -0
  3. data/bin/pod-publish.sh +23 -0
  4. metadata +6 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52293f2e34159cf44d2d405ae64004f29d365dac
4
- data.tar.gz: b91644b2600495c81596c29f48fa7d0c2eb5c17e
3
+ metadata.gz: a5a1448f5a4a18f66208caf617ade51265dc9987
4
+ data.tar.gz: 6094e1a5647720c76f928485f0a5b9382a5fafaf
5
5
  SHA512:
6
- metadata.gz: 39718951f6449924e5849a8567ea78c0ad50e5b46209fde9d57dfa9c471c3ee45b221350788cc65350e37ce0ff9ca09a01c58b06cbf4fd14c9fb4cea2372b10d
7
- data.tar.gz: e09db7455115e5278c7b4ba3fe36860263a14b3511ee41587b577fe3d27a8af366af8372a548a5f1278db902080e7b22aaa8513296cd86d698d9912bf8ba095f
6
+ metadata.gz: 60b2c08734dca31be74edfbac20701b728a86c42fc8cd2385b6190e85e1fdbdfccb322649b754535d5446e7907ef0b3b38f3a66a1b2defc26424441a6955c495
7
+ data.tar.gz: 3fd697c523fd80e39cb2a1207327ba15a3d60b1f38979ed369873d33cd0c46d24eb7e395e6ce6f9c3b8b40ac316c066c30223c4929f36fadd8c71c792265d4ca
data/bin/pod-publish ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/ruby
2
+
3
+ bin_dir = File.expand_path(File.dirname(__FILE__))
4
+ shell_script_path = File.join(bin_dir, 'pod-publish.sh')
5
+ puts `sh #{shell_script_path} #{ARGV[0]}`
@@ -0,0 +1,23 @@
1
+ #!/bin/bash
2
+
3
+ if [ ! -n "$1" ] ;then
4
+ echo "Usage: pod-publish <version>"
5
+ echo "Example: pod-publish 0.1.0"
6
+ exit
7
+ fi
8
+
9
+ path=$PWD
10
+ proj_name=${path##*/}
11
+ cd ~/.cocoapods/repos/$proj_name
12
+ git reset --hard head
13
+ cd $path
14
+ substitute $proj_name.podspec s.version.*=.* s.version="'$*'"
15
+ git add .
16
+ git commit -m $*
17
+ git tag $*
18
+ git push origin master --tags
19
+ pod repo push $proj_name $proj_name.podspec --verbose --allow-warnings --use-libraries
20
+ git pull origin master
21
+ versions_path=~/.cocoapods/repos/$proj_name/$proj_name
22
+ rm -rf $versions_path/Assets/
23
+ rm -rf $versions_path/Classes/
metadata CHANGED
@@ -1,27 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubisc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - luqyluqe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-20 00:00:00.000000000 Z
11
+ date: 2017-03-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Wicked cool ruby scripts
14
14
  email: luqy.luqe@gmail.com
15
15
  executables:
16
16
  - substitute
17
17
  - xcodeproj-scan
18
+ - pod-publish
18
19
  extensions: []
19
20
  extra_rdoc_files: []
20
21
  files:
21
22
  - rubisc.rb
22
23
  - bin/substitute
23
- - lib/fileutil.rb
24
24
  - bin/xcodeproj-scan
25
+ - bin/pod-publish
26
+ - bin/pod-publish.sh
27
+ - lib/fileutil.rb
25
28
  homepage: https://github.com/luqyluqe/Rubisc
26
29
  licenses:
27
30
  - MIT