spaceship 0.34.0 → 0.34.1

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: 06ca13fa72a2d10088004dfe32ecfdd9a359f67c
4
- data.tar.gz: d993a2fb87cb6e9930b6a6732629a6a044752be1
3
+ metadata.gz: e7f1fcf2ab66f5960e4b0523fe392e0f91d7852d
4
+ data.tar.gz: 48dbf404d5472511c5361d0ef2d5982486fb8eb0
5
5
  SHA512:
6
- metadata.gz: 20ce3c092e68512a693c4c434742d4aff1e23acd9e0e4da6a9a1f56e469efeea543c2324a73b11feff5cc27c4709bdc61e2fd66deed5b884aea604a98dea26d4
7
- data.tar.gz: fb62f6f6849904d59a527213be6ce0fe758e7a2cdfbe004bbc6c2af21b293ef96db264a7e08537ede9447b151a344f7762b9662c41598fd216c49785167f730c
6
+ metadata.gz: 730daeac221131e108216f69b479ef3c551d7a166f5ea9d71efce1b7564306cf1138477c4a4bfd7535c2d0161e1fe053d677e5854548e73a3a7cb7e7d8e75e05
7
+ data.tar.gz: e9d52fdf855be23687adab33592d4860af1925306fa41e46493048ae15368702515e6d8298b7c47abed12bd0a8739578dcb91e4db9018b9a33cd441e19a7f123
@@ -84,32 +84,38 @@ module Spaceship
84
84
  # Custom Setters
85
85
  #
86
86
  def primary_category=(value)
87
- value = "MZGenre.#{value}" unless value.include? "MZGenre"
87
+ value = prefix_apps(value)
88
+ value = prefix_mzgenre(value)
88
89
  super(value)
89
90
  end
90
91
 
91
92
  def primary_first_sub_category=(value)
92
- value = "MZGenre.#{value}" unless value.include? "MZGenre"
93
+ value = prefix_apps(value)
94
+ value = prefix_mzgenre(value)
93
95
  super(value)
94
96
  end
95
97
 
96
98
  def primary_second_sub_category=(value)
97
- value = "MZGenre.#{value}" unless value.include? "MZGenre"
99
+ value = prefix_apps(value)
100
+ value = prefix_mzgenre(value)
98
101
  super(value)
99
102
  end
100
103
 
101
104
  def secondary_category=(value)
102
- value = "MZGenre.#{value}" unless value.include? "MZGenre"
105
+ value = prefix_apps(value)
106
+ value = prefix_mzgenre(value)
103
107
  super(value)
104
108
  end
105
109
 
106
110
  def secondary_first_sub_category=(value)
107
- value = "MZGenre.#{value}" unless value.include? "MZGenre"
111
+ value = prefix_apps(value)
112
+ value = prefix_mzgenre(value)
108
113
  super(value)
109
114
  end
110
115
 
111
116
  def secondary_second_sub_category=(value)
112
- value = "MZGenre.#{value}" unless value.include? "MZGenre"
117
+ value = prefix_apps(value)
118
+ value = prefix_mzgenre(value)
113
119
  super(value)
114
120
  end
115
121
 
@@ -118,6 +124,17 @@ module Spaceship
118
124
  #####################################################
119
125
  def setup
120
126
  end
127
+
128
+ private
129
+
130
+ def prefix_mzgenre(value)
131
+ (value.include? "MZGenre") ? value : "MZGenre.#{value}"
132
+ end
133
+
134
+ def prefix_apps(value)
135
+ return value unless value.include? "Stickers"
136
+ (value.include? "Apps") ? value : "Apps.#{value}"
137
+ end
121
138
  end
122
139
  end
123
140
  end
@@ -1,4 +1,4 @@
1
1
  module Spaceship
2
- VERSION = "0.34.0".freeze
2
+ VERSION = "0.34.1".freeze
3
3
  DESCRIPTION = "Ruby library to access the Apple Dev Center and iTunes Connect".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spaceship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.34.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -394,7 +394,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
394
394
  version: '0'
395
395
  requirements: []
396
396
  rubyforge_project:
397
- rubygems_version: 2.4.5.1
397
+ rubygems_version: 2.2.2
398
398
  signing_key:
399
399
  specification_version: 4
400
400
  summary: Ruby library to access the Apple Dev Center and iTunes Connect