ion_in_motion 0.1.1 → 0.1.2
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 +4 -4
- data/Gemfile +0 -39
- data/ion_in_motion.gemspec +1 -1
- data/lib/ion_in_motion.rb +9 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97323b5b8d737885b506faa5d7b727be3effec55
|
4
|
+
data.tar.gz: a82b74f0ec1db08c50a4d5765f0f5fbe4cb187e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c25a52b8bc7771a1497722f535ff341d56d6750807c5294ed2353dd4c5c0d3547299bb7817ff80ad28123e759eab77e62f1c0fccddd7f26f4602cf0a2c3103b3
|
7
|
+
data.tar.gz: b82a96e8f10bfc3046d7e2b612321692b3c9a80f1f2d8b3e839035dd33d2ed69bd7f770c8ceb99053bee439ee968694c5e7bb365828b65701fd9ca3bdefb5266
|
data/Gemfile
CHANGED
@@ -1,43 +1,4 @@
|
|
1
|
-
describe ProMotion::Menu::Transition do
|
2
1
|
|
3
|
-
before do
|
4
|
-
@object = Object.new
|
5
|
-
@object.extend(ProMotion::Menu::Transition)
|
6
|
-
|
7
|
-
@delegate = UIApplication.sharedApplication.delegate
|
8
|
-
@left = LeftNavScreen.new
|
9
|
-
@right = RightNavScreen.new
|
10
|
-
@content = BlankScreen.new
|
11
|
-
end
|
12
|
-
|
13
|
-
|
14
|
-
describe "#visualStates" do
|
15
|
-
|
16
|
-
it "returns a visualStateBlock for slideAndScale" do
|
17
|
-
@object.mask_for_transition(:slide_and_scale).is_a?(Proc).should == true
|
18
|
-
end
|
19
|
-
|
20
|
-
it "returns a visualStateBlock for slide" do
|
21
|
-
@object.mask_for_transition(:slide).is_a?(Proc).should == true
|
22
|
-
end
|
23
|
-
|
24
|
-
it "returns a visualStateBlock for swingingDoor" do
|
25
|
-
@object.mask_for_transition(:slide_and_scale).is_a?(Proc).should == true
|
26
|
-
end
|
27
|
-
|
28
|
-
it "returns a visualStateBlock for parallax, when passing in a factor" do
|
29
|
-
@object.mask_for_transition(:parallax_5).is_a?(Proc).should == true
|
30
|
-
end
|
31
|
-
|
32
|
-
it "returns a visualStateBlock for parallax, default factor" do
|
33
|
-
@object.mask_for_transition(:parallax).is_a?(Proc).should == true
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
41
2
|
source 'https://rubygems.org'
|
42
3
|
|
43
4
|
gem 'rake'
|
data/ion_in_motion.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "ion_in_motion"
|
4
|
-
gem.version = '0.1.
|
4
|
+
gem.version = '0.1.2'
|
5
5
|
gem.summary = "Easy use of IonIcons in RubyMotion projects"
|
6
6
|
gem.description = "Easily create UILabels, UIImages and UIButtons containing IonIcons in RubyMotion projects."
|
7
7
|
gem.files = `git ls-files`.split("\n")
|
data/lib/ion_in_motion.rb
CHANGED
@@ -10,9 +10,16 @@ load 'setup/setup.rb'
|
|
10
10
|
|
11
11
|
Motion::Project::App.setup do |app|
|
12
12
|
|
13
|
+
|
14
|
+
app.pods do
|
15
|
+
pod "ionicons"
|
16
|
+
end
|
17
|
+
|
13
18
|
if Dir.exists?("vendor/Pods/ionicons")
|
14
19
|
unless File.exists?("vendor/Pods/ionicons/ionicons/README.md")
|
15
|
-
|
20
|
+
readme_text = Object.const_defined?('SetupIon') ? SetupIon.readme_text : "readme"
|
21
|
+
File.open("vendor/Pods/ionicons/ionicons/README.md", 'w') {|f| f.write(readme_text)}
|
22
|
+
# File.open("vendor/Pods/ionicons/ionicons/README.md", 'w') {|f| f.write(SetupIon.readme_text)}
|
16
23
|
end
|
17
24
|
end
|
18
25
|
|
@@ -25,8 +32,6 @@ Motion::Project::App.setup do |app|
|
|
25
32
|
app.resources_dirs << File.join(File.dirname(__FILE__), 'resources')
|
26
33
|
|
27
34
|
|
28
|
-
|
29
|
-
pod "ionicons"
|
30
|
-
end
|
35
|
+
|
31
36
|
|
32
37
|
end
|