motion-paddle 1.1.3 → 1.1.4

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: 1aa0e577bcfe6c37273c74b9d2ec33476b23406a
4
- data.tar.gz: bdc929c90e71902c179fabe5a8c12fbd42ac3bbe
3
+ metadata.gz: b6dc06659fdac757df692ab98ec4937fa5f2c262
4
+ data.tar.gz: bdbfe880402eec9c24aa9fbde4ddb88e73c800a5
5
5
  SHA512:
6
- metadata.gz: 2d71869fb65a10bc73a4667c70c7c1d859122fa4b083990e2104e0e049dbdec325844745e8c07667d00c4f58cad796e4da4f13e5244f6a1dfe73d435af959fdf
7
- data.tar.gz: 982aebdf02b3f7f5d2fe5386ede4d3018337b6be427796c7cb6afad685be3cf15a3b904e7e011891e416c4d577504c75b596a57600dee500306349f2302fbac8
6
+ metadata.gz: 65ee15b6499eea75a52d8eec440808f19a28dd07ee77f02e277a1aa146d0ed7beb5c0202f0507db9a3bcf2be8aec1f7c56f8bddc3bbdb2365e89ce39f8237246
7
+ data.tar.gz: 6999276640864dcf25ad516598dbc0a41219474352063106fd57bcf566d12f07b90ce8f89d421b921d4248019cc6e0fc4e7c5ed9591d84df762addfe10f86830
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- motion-paddle (1.1.2)
4
+ motion-paddle (1.1.4)
5
5
  motion-cocoapods (~> 1.7)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -3,7 +3,9 @@
3
3
 
4
4
  Paddle for vendors: <https://vendors.paddle.com>
5
5
 
6
- You will have to vendor the Paddle framework yourself because I can't get the gem to bundle it properly.
6
+ As of version 1.1.3, the Paddle framework is automatically included as a CocoaPod.
7
+
8
+ In version 1.1.4, a workaround was added for an issue related to existing installations of an app using `motion-paddle` not getting updated values when something was changed in the Rakefile. Now, the short version string is used in the section name of the `motion-paddle` part of the Info.plist. **You will need to set `app.short_version` before calling `app.paddle`.**
7
9
 
8
10
  You can see the gem in use in my MemoryTamer app <https://github.com/henderea/MemoryTamer>.
9
11
 
@@ -42,8 +44,6 @@ Motion::Project::App.setup do |app|
42
44
  set :product_image, 'product_image'
43
45
  set :time_trial, true
44
46
  end
45
- # you have to vendor Paddle.framework yourself
46
- app.embedded_frameworks << 'vendor/Paddle.framework'
47
47
  end
48
48
  ```
49
49
 
@@ -10,8 +10,8 @@ class PaddleConfig
10
10
  end
11
11
 
12
12
  def set(var, val)
13
- @config.info_plist['MotionPaddle'] ||= [{}]
14
- @config.info_plist['MotionPaddle'].first[var.to_s] = val
13
+ @config.info_plist["MotionPaddle_#{@config.short_version}"] ||= [{}]
14
+ @config.info_plist["MotionPaddle_#{@config.short_version}"].first[var.to_s] = val
15
15
  send("#{var}=", val)
16
16
  end
17
17
 
@@ -181,7 +181,7 @@ class MotionPaddle
181
181
 
182
182
  #internal
183
183
  def plist
184
- (@plist = NSBundle.mainBundle.objectForInfoDictionaryKey('MotionPaddle')) && (@plist = @plist.first) unless @plist
184
+ (@plist = NSBundle.mainBundle.objectForInfoDictionaryKey("MotionPaddle_#{NSBundle.mainBundle.infoDictionary['CFBundleShortVersionString']}")) && (@plist = @plist.first) unless @plist
185
185
  @plist
186
186
  end
187
187
 
@@ -1,3 +1,3 @@
1
1
  module MotionPaddle
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-paddle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Henderson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-26 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-cocoapods