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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/lib/motion-paddle/paddle.rb +2 -2
- data/lib/motion-paddle/paddle_setup.rb +1 -1
- data/lib/motion-paddle/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6dc06659fdac757df692ab98ec4937fa5f2c262
|
4
|
+
data.tar.gz: bdbfe880402eec9c24aa9fbde4ddb88e73c800a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65ee15b6499eea75a52d8eec440808f19a28dd07ee77f02e277a1aa146d0ed7beb5c0202f0507db9a3bcf2be8aec1f7c56f8bddc3bbdb2365e89ce39f8237246
|
7
|
+
data.tar.gz: 6999276640864dcf25ad516598dbc0a41219474352063106fd57bcf566d12f07b90ce8f89d421b921d4248019cc6e0fc4e7c5ed9591d84df762addfe10f86830
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,9 @@
|
|
3
3
|
|
4
4
|
Paddle for vendors: <https://vendors.paddle.com>
|
5
5
|
|
6
|
-
|
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
|
|
data/lib/motion-paddle/paddle.rb
CHANGED
@@ -10,8 +10,8 @@ class PaddleConfig
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def set(var, val)
|
13
|
-
@config.info_plist[
|
14
|
-
@config.info_plist[
|
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('
|
184
|
+
(@plist = NSBundle.mainBundle.objectForInfoDictionaryKey("MotionPaddle_#{NSBundle.mainBundle.infoDictionary['CFBundleShortVersionString']}")) && (@plist = @plist.first) unless @plist
|
185
185
|
@plist
|
186
186
|
end
|
187
187
|
|
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.
|
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-
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: motion-cocoapods
|