motion-flow 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flow/digest/cocoa/libdigest.a +0 -0
- data/flow/net/response.rb +1 -1
- data/flow/net/session.rb +1 -1
- data/flow/ui/android/armeabi-v7a/libcss_node.a +0 -0
- data/flow/ui/android/armeabi/libcss_node.a +0 -0
- data/flow/ui/android/x86/libcss_node.a +0 -0
- data/flow/ui/cocoa/libcss_node.a +0 -0
- data/flow/ui/css_node.rb +1 -1
- data/lib/android.rb +1 -1
- metadata +4 -17
- data/flow/base64/base64.rb +0 -27
- data/flow/digest/digest.rb +0 -51
- data/flow/json/json.rb +0 -14
- data/flow/store/store.rb +0 -24
- data/flow/ui/activity_indicator.rb +0 -17
- data/flow/ui/application.rb +0 -10
- data/flow/ui/button.rb +0 -9
- data/flow/ui/image.rb +0 -9
- data/flow/ui/label.rb +0 -8
- data/flow/ui/navigation.rb +0 -39
- data/flow/ui/screen.rb +0 -18
- data/flow/ui/text_input.rb +0 -15
- data/flow/ui/ui.rb +0 -5
- data/flow/ui/view.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c87f44dd413c2d2b444b620297a965ba6124667c
|
4
|
+
data.tar.gz: 963623dabde69589a82a47f9e54881161060bccc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1f661e5d67a7084eb7a974d032beacb7ea95ff6bcd14c12a226e542404fa8cb9b3ca609a66c3933ff57e05158f182004e595c05e6d4d2e4a3af1a22995f6eed
|
7
|
+
data.tar.gz: 278637f26c0fb584dcf7bb25fc1ee32a79d6e51ea7c53a27cd7cf9aac3bf7206501c4efbd44487465efd46bfe2db09fab5e550cbf660670853216bf700ab0c7c
|
Binary file
|
data/flow/net/response.rb
CHANGED
data/flow/net/session.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/flow/ui/cocoa/libcss_node.a
CHANGED
Binary file
|
data/flow/ui/css_node.rb
CHANGED
data/lib/android.rb
CHANGED
@@ -14,7 +14,7 @@ Motion::Project::App.setup do |app|
|
|
14
14
|
app.files.concat(Dir.glob(File.join(libdir, '*.rb')))
|
15
15
|
app.files.concat(Dir.glob(File.join(libdir, 'android/*.rb')))
|
16
16
|
|
17
|
-
abis = %w{armeabi x86}
|
17
|
+
abis = %w{armeabi-v7a x86}
|
18
18
|
if abis.all? { |x| File.exist?(File.join(libdir, 'android', x)) }
|
19
19
|
abis.each do |abi|
|
20
20
|
app.libs[abi] += Dir.glob(File.join(libdir, 'android', abi, "*.a"))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HipByte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
motion-flow allows you to write cross-platform
|
@@ -19,15 +19,12 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- flow/base64/android/base64.rb
|
22
|
-
- flow/base64/base64.rb
|
23
22
|
- flow/base64/cocoa/base64.rb
|
24
23
|
- flow/digest/android/digest.rb
|
25
24
|
- flow/digest/cocoa/digest.rb
|
26
25
|
- flow/digest/cocoa/libdigest.a
|
27
|
-
- flow/digest/digest.rb
|
28
26
|
- flow/json/android/json.rb
|
29
27
|
- flow/json/cocoa/json.rb
|
30
|
-
- flow/json/json.rb
|
31
28
|
- flow/location/android/location_services.rb
|
32
29
|
- flow/location/cocoa/location_services.rb
|
33
30
|
- flow/location/location.rb
|
@@ -48,15 +45,14 @@ files:
|
|
48
45
|
- flow/net/stubbable.rb
|
49
46
|
- flow/store/android/store.rb
|
50
47
|
- flow/store/cocoa/store.rb
|
51
|
-
- flow/store/store.rb
|
52
48
|
- flow/task/android/task.rb
|
53
49
|
- flow/task/cocoa/task.rb
|
54
50
|
- flow/task/task.rb
|
55
|
-
- flow/ui/activity_indicator.rb
|
56
51
|
- flow/ui/alert.rb
|
57
52
|
- flow/ui/android/activity_indicator.rb
|
58
53
|
- flow/ui/android/alert.rb
|
59
54
|
- flow/ui/android/application.rb
|
55
|
+
- flow/ui/android/armeabi-v7a/libcss_node.a
|
60
56
|
- flow/ui/android/armeabi/libcss_node.a
|
61
57
|
- flow/ui/android/button.rb
|
62
58
|
- flow/ui/android/camera.rb
|
@@ -74,8 +70,6 @@ files:
|
|
74
70
|
- flow/ui/android/view.rb
|
75
71
|
- flow/ui/android/web.rb
|
76
72
|
- flow/ui/android/x86/libcss_node.a
|
77
|
-
- flow/ui/application.rb
|
78
|
-
- flow/ui/button.rb
|
79
73
|
- flow/ui/cocoa/activity_indicator.rb
|
80
74
|
- flow/ui/cocoa/alert.rb
|
81
75
|
- flow/ui/cocoa/application.rb
|
@@ -98,14 +92,7 @@ files:
|
|
98
92
|
- flow/ui/css_node.rb
|
99
93
|
- flow/ui/eventable.rb
|
100
94
|
- flow/ui/font.rb
|
101
|
-
- flow/ui/image.rb
|
102
|
-
- flow/ui/label.rb
|
103
95
|
- flow/ui/list_row.rb
|
104
|
-
- flow/ui/navigation.rb
|
105
|
-
- flow/ui/screen.rb
|
106
|
-
- flow/ui/text_input.rb
|
107
|
-
- flow/ui/ui.rb
|
108
|
-
- flow/ui/view.rb
|
109
96
|
- lib/android.rb
|
110
97
|
- lib/cocoa.rb
|
111
98
|
- lib/common.rb
|
@@ -1136,7 +1123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1136
1123
|
version: '0'
|
1137
1124
|
requirements: []
|
1138
1125
|
rubyforge_project:
|
1139
|
-
rubygems_version: 2.4
|
1126
|
+
rubygems_version: 2.6.4
|
1140
1127
|
signing_key:
|
1141
1128
|
specification_version: 4
|
1142
1129
|
summary: Cross-platform app framework for RubyMotion
|
data/flow/base64/base64.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
class Base64
|
2
|
-
# Converts a string into its base64 equivalent string
|
3
|
-
#
|
4
|
-
# @param [String] string
|
5
|
-
# The original string to be converted
|
6
|
-
#
|
7
|
-
# @return [String]
|
8
|
-
# The base64 encoded string
|
9
|
-
#
|
10
|
-
# @example
|
11
|
-
# Base64.encode('xx')
|
12
|
-
# #=> eHg=
|
13
|
-
# @!method self.encode(string)
|
14
|
-
|
15
|
-
# Decodes a base64 string
|
16
|
-
#
|
17
|
-
# @param [String] string
|
18
|
-
# The base64 encoded string
|
19
|
-
#
|
20
|
-
# @return [String]
|
21
|
-
# The decoded string
|
22
|
-
#
|
23
|
-
# @example
|
24
|
-
# Base64.decode('eHg=')
|
25
|
-
# #=> xx
|
26
|
-
#@!method self.decode(string)
|
27
|
-
end
|
data/flow/digest/digest.rb
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
# See {Digest::Base Digest::Base} to see the methods implemented in subclasses:
|
2
|
-
# - {Digest::MD5 Digest::MD5}
|
3
|
-
# - {Digest::SHA1 Digest::SHA1}
|
4
|
-
# - {Digest::SHA224 Digest::SHA224}
|
5
|
-
# - {Digest::SHA256 Digest::SHA256}
|
6
|
-
# - {Digest::SHA384 Digest::SHA384}
|
7
|
-
# - {Digest::SHA512 Digest::SHA512}
|
8
|
-
module Digest
|
9
|
-
class Base
|
10
|
-
# @example
|
11
|
-
# digest = Digest::MD5.new
|
12
|
-
def initialize(algo)
|
13
|
-
@digest = Java::Security::MessageDigest.getInstance(algo)
|
14
|
-
end
|
15
|
-
|
16
|
-
# @example
|
17
|
-
# digest.update('hello')
|
18
|
-
def update(str)
|
19
|
-
@digest.update(str.chars.map { |x| x.ord })
|
20
|
-
self
|
21
|
-
end
|
22
|
-
|
23
|
-
# @example
|
24
|
-
# digest.reset
|
25
|
-
def reset
|
26
|
-
@digest.reset
|
27
|
-
self
|
28
|
-
end
|
29
|
-
|
30
|
-
# @example
|
31
|
-
# digest.digest
|
32
|
-
# #=> '5d41402abc4b2a76b9719d911017c592'
|
33
|
-
def digest
|
34
|
-
@digest.digest.map { |x| String.format('%02x', x) }.join
|
35
|
-
end
|
36
|
-
|
37
|
-
# @example
|
38
|
-
# Digest::MD5.digest('hello')
|
39
|
-
# #=> '5d41402abc4b2a76b9719d911017c592'
|
40
|
-
def self.digest(str)
|
41
|
-
self.new.update(str).digest
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
class MD5 < Base; def initialize; super('MD5'); end; end
|
46
|
-
class SHA1 < Base; def initialize; super('SHA1'); end; end
|
47
|
-
class SHA224 < Base; def initialize; super('SHA224'); end; end
|
48
|
-
class SHA256 < Base; def initialize; super('SHA256'); end; end
|
49
|
-
class SHA384 < Base; def initialize; super('SHA384'); end; end
|
50
|
-
class SHA512 < Base; def initialize; super('SHA512'); end; end
|
51
|
-
end
|
data/flow/json/json.rb
DELETED
data/flow/store/store.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
class Store
|
2
|
-
# Returns the value of a key
|
3
|
-
# @example
|
4
|
-
# Store['foo']
|
5
|
-
# #=> 42
|
6
|
-
# @!method self.[](key)
|
7
|
-
|
8
|
-
# Sets a value for a key
|
9
|
-
# @example
|
10
|
-
# Store['foo'] = 42
|
11
|
-
# @!method self.[]=(key, value)
|
12
|
-
|
13
|
-
# Deletes a key from storage.
|
14
|
-
# @example
|
15
|
-
# Store.delete('foo')
|
16
|
-
# @!method self.delete(key)
|
17
|
-
|
18
|
-
# Returns a hash containing all the keys and values
|
19
|
-
# @return [Hash]
|
20
|
-
# @example
|
21
|
-
# Store.all
|
22
|
-
# #=> { 'foo' => 42 }
|
23
|
-
# @!method self.all
|
24
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module UI
|
2
|
-
class ActivityIndicator < View
|
3
|
-
# Start animating the view
|
4
|
-
# @!method start
|
5
|
-
|
6
|
-
# Stop animating the view
|
7
|
-
# @!method stop
|
8
|
-
|
9
|
-
# Returns wether the indicator is currently animating
|
10
|
-
# @!method animating?
|
11
|
-
# @return [Boolean]
|
12
|
-
|
13
|
-
# Set the color of the activity indicator
|
14
|
-
# @!method color=(color)
|
15
|
-
# @param [Color] color
|
16
|
-
end
|
17
|
-
end
|
data/flow/ui/application.rb
DELETED
data/flow/ui/button.rb
DELETED
data/flow/ui/image.rb
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
module UI
|
2
|
-
# @attr [String] source The name of the file of hte image to use
|
3
|
-
# @attr resize_mode See {RESIZE_MODES RESIZE_MODES} for possible values
|
4
|
-
class Image < View
|
5
|
-
# @!parse
|
6
|
-
# # Posible values for the <code>resize_mode</code> atttribute. Hash keys: :cover, :contain, :stretch
|
7
|
-
# RESIZE_MODES = {}
|
8
|
-
end
|
9
|
-
end
|
data/flow/ui/label.rb
DELETED
data/flow/ui/navigation.rb
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
module UI
|
2
|
-
# @attr [Screen] root_screen
|
3
|
-
class Navigation
|
4
|
-
# @!method initialize(root_screen)
|
5
|
-
# @param [Screen] root_screen The initial screen
|
6
|
-
|
7
|
-
# Returns the current screen being shown
|
8
|
-
# @!method screen
|
9
|
-
# @return [Screen]
|
10
|
-
|
11
|
-
# Shows the navigation bar
|
12
|
-
# @!method show_bar
|
13
|
-
|
14
|
-
# Hides the navigation bar
|
15
|
-
# @!method hide_bar
|
16
|
-
|
17
|
-
# Returns wether the navigation bar is hidden
|
18
|
-
# @!method bar_hidden?
|
19
|
-
|
20
|
-
# Sets the title shown in the navigation bar
|
21
|
-
# @!method title=(title)
|
22
|
-
# @param [String] title
|
23
|
-
|
24
|
-
# Sets the color of the navigation bar
|
25
|
-
# @!method bar_color=(color)
|
26
|
-
# @param [Color] color
|
27
|
-
|
28
|
-
# Pushes a screen onto the navigation stack, optionally animating the
|
29
|
-
# transition
|
30
|
-
# @!method push(screen, animated=true)
|
31
|
-
# @param [Screen] screen
|
32
|
-
# @param [Boolean] animated
|
33
|
-
|
34
|
-
# Pushes a screen from the navigation stack, optionally animating the
|
35
|
-
# transition
|
36
|
-
# @!method pop(animated=true)
|
37
|
-
# @param [Boolean] animated
|
38
|
-
end
|
39
|
-
end
|
data/flow/ui/screen.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
module UI
|
2
|
-
# @attr [Navigation] navigation Returns the navigation object associated to
|
3
|
-
# this screen
|
4
|
-
class Screen
|
5
|
-
# Called after the screen has been loaded
|
6
|
-
# @!method on_load
|
7
|
-
|
8
|
-
# Called after the screen is hown
|
9
|
-
# @!method on_show
|
10
|
-
|
11
|
-
# Returns the root view of this screen
|
12
|
-
# @!method view
|
13
|
-
# @return [View]
|
14
|
-
|
15
|
-
# Returns the patform-specific object
|
16
|
-
# @!method proxy
|
17
|
-
end
|
18
|
-
end
|
data/flow/ui/text_input.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
module UI
|
2
|
-
# @attr text_alignment
|
3
|
-
# @attr [Color] color
|
4
|
-
# @attr secure
|
5
|
-
# @attr [String] text
|
6
|
-
# @attr [String] placeholder
|
7
|
-
# @attr [Font] font
|
8
|
-
class TextInput < Control
|
9
|
-
include Eventable
|
10
|
-
|
11
|
-
# Execute a block when a certain event happens. Possible event values:
|
12
|
-
# :on_change, :on_focus, :on_blur
|
13
|
-
# @!method on(event, &block)
|
14
|
-
end
|
15
|
-
end
|
data/flow/ui/ui.rb
DELETED
data/flow/ui/view.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
module UI
|
2
|
-
# @attr border_width
|
3
|
-
# @attr [Color] border_color
|
4
|
-
# @attr [Fixnum] border_radius
|
5
|
-
# @attr [Color] background_color
|
6
|
-
# @attr [Float] alpha
|
7
|
-
class View < CSSNode
|
8
|
-
# Returns wether the view is hidden
|
9
|
-
# @!method hidden?
|
10
|
-
# @return [Boolean]
|
11
|
-
|
12
|
-
# Sets the hidden state of the view
|
13
|
-
# @!method hidden=(hidden)
|
14
|
-
# @param [Boolean] hidden
|
15
|
-
|
16
|
-
# Update the position of the view and all its children
|
17
|
-
# @!method update_layout
|
18
|
-
|
19
|
-
# Returns the platform-spegific object
|
20
|
-
# @!method proxy
|
21
|
-
end
|
22
|
-
end
|