update_plist_build_version 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a5b34e343b7304f731519641ece1cef2987f90a
4
- data.tar.gz: 7bd1f637b0cee1d114dd4dbe6ae33dad0b10c884
3
+ metadata.gz: 12095f2daad69a53d61cb62a1e0efeaf57e1c75a
4
+ data.tar.gz: 130d43d823f87143b62edae7fe5bc5f3f6814a24
5
5
  SHA512:
6
- metadata.gz: 9fea9e96afb91e74887f7ea21a77e9f088429004fc42a663eaa074c07990bb1f030ff5cc9df68345adc2c760ed5a30b6f13e165e652f4aa73159663f1531e564
7
- data.tar.gz: 3e10dd7b09b69bcedf7c3338bce68673ac540fb9e2c4b73e2d853ba8da7d84b45f330481fa758015c92a4fc0f80dcc073b7e60afeeb42688d8554c0d1938073e
6
+ metadata.gz: c2f42f2dc9521a9af6801c14738ed77b587ee854319e2cd65dd58a41cffba58934685d3735097bf1a042cdb844779a55bf73f4b4a97aa2ab70b73be905be4224
7
+ data.tar.gz: a946a46dcc315590a7ce0787a336c220217ca8d74143a9bf46cc707188201678a5f9e53bb14e97a967bb1ce1134c438990150fbddf90c47d1b4b82b3df381bc6
@@ -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
- return pos if dict.text == "CFBundleVersion"
46
45
  pos += 1
46
+ return pos if dict.text == "CFBundleVersion"
47
47
  end
48
48
  end
49
49
 
@@ -1,3 +1,3 @@
1
1
  module UpdatePlistBuildVersion
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: update_plist_build_version
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shin Hiroe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-12 00:00:00.000000000 Z
11
+ date: 2016-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler