update_plist_build_version 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 8f5d399c1846c9d2ce7a9a9609a7d80ece2d86a7
4
- data.tar.gz: a0331b1af35ab8ad54ef532511fee51742eb4c4e
3
+ metadata.gz: 6a5b34e343b7304f731519641ece1cef2987f90a
4
+ data.tar.gz: 7bd1f637b0cee1d114dd4dbe6ae33dad0b10c884
5
5
  SHA512:
6
- metadata.gz: 2e0f66649549dc8b242bdf32037e0bb3e4e466ee194ffc162c143c0e203a8c31015e5cd8fb04ef0a76b8a8721e1a89643dd188d9eff5a5588015e8ba05699f63
7
- data.tar.gz: 631811034f38f58142d45aa4d778d7a3c7280232ad3ab330f5d4d570528ae3e736d79383a2b260e469228cb70f572b0da803e5a6a20201778caa9cfefa0dcda3
6
+ metadata.gz: 9fea9e96afb91e74887f7ea21a77e9f088429004fc42a663eaa074c07990bb1f030ff5cc9df68345adc2c760ed5a30b6f13e165e652f4aa73159663f1531e564
7
+ data.tar.gz: 3e10dd7b09b69bcedf7c3338bce68673ac540fb9e2c4b73e2d853ba8da7d84b45f330481fa758015c92a4fc0f80dcc073b7e60afeeb42688d8554c0d1938073e
data/README.md CHANGED
@@ -4,10 +4,7 @@ XCodeプロジェクトに含まれる`info.plist`中のバージョン番号を
4
4
 
5
5
  ## Installation
6
6
 
7
- $ cd /path/to/update_plist_build_version
8
- $ bundle install (or $ bundle install --path=.bundle)
9
- $ bundle exec rake build
10
- $ sudo gem install pkg/update_plist_build_version-0.0.1.gem
7
+ $ gem install update_plist_build_version
11
8
 
12
9
  ## Usage
13
10
 
@@ -72,3 +69,20 @@ require "update_plist_build_version"
72
69
  updater = UpdatePlistBuildVersion::Runner.new(src_file:ENV["INFO_PLIST_PATH"])
73
70
  updater.run
74
71
  ```
72
+
73
+ ## Fastlaneと一緒に使う
74
+
75
+ ```ruby
76
+ platform :ios do
77
+
78
+ lane :adhoc do
79
+ UpdatePlistBuildVersion::Runner.new(src_file: "../YourProject/Info.plist").run
80
+ sigh(adhoc: true)
81
+
82
+ gym()
83
+ deploygate()
84
+ crashlytics()
85
+ end
86
+
87
+ end
88
+ ```
@@ -26,7 +26,7 @@ module UpdatePlistBuildVersion
26
26
  else
27
27
  "#{today_str}.0"
28
28
  end
29
-
29
+
30
30
  @xml.elements["plist/dict/string[#{pos}]"].text = next_version
31
31
  write(@xml)
32
32
  return next_version, @xml
@@ -42,8 +42,8 @@ module UpdatePlistBuildVersion
42
42
 
43
43
  xml.elements["plist/dict"].each do |dict|
44
44
  if dict.class == REXML::Element and dict.name == "key"
45
- pos += 1
46
45
  return pos if dict.text == "CFBundleVersion"
46
+ pos += 1
47
47
  end
48
48
  end
49
49
 
@@ -1,3 +1,3 @@
1
1
  module UpdatePlistBuildVersion
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: update_plist_build_version
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shin Hiroe