motion-flow 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/flow/digest/cocoa/libdigest.a +0 -0
- data/flow/digest/digest.rb +51 -0
- data/flow/ui/android/armeabi-v7a/libcss_node.a +0 -0
- data/flow/ui/android/x86/libcss_node.a +0 -0
- data/flow/ui/cocoa/libcss_node.a +0 -0
- metadata +3 -3
- data/flow/ui/css_node.rb +0 -63
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a68248896b4d964406c7baf1afe2aac5f0319ac
|
4
|
+
data.tar.gz: 75c2c915a81908523cf70f4ae3e5c950f2d4bdcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86c17fa8ef46467090982c2bf52fda7217bdd3aadf8d0596bd749077b9e05fee04619295c14184251d9deae277e96a18b767f9e5e943bc329aa488e987681955
|
7
|
+
data.tar.gz: a8a98edb7e23791759f42e0804a77d1a821a26ddf8774b1e76322ff06ec59a0643ccf57eed75d4897f6ac8b8c122114346d84a9dd5e2a50e4080bbe388b41ffe
|
Binary file
|
@@ -0,0 +1,51 @@
|
|
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
|
Binary file
|
Binary file
|
data/flow/ui/cocoa/libcss_node.a
CHANGED
Binary file
|
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: 0.1.
|
4
|
+
version: 0.1.2
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
motion-flow allows you to write cross-platform
|
@@ -23,6 +23,7 @@ files:
|
|
23
23
|
- flow/digest/android/digest.rb
|
24
24
|
- flow/digest/cocoa/digest.rb
|
25
25
|
- flow/digest/cocoa/libdigest.a
|
26
|
+
- flow/digest/digest.rb
|
26
27
|
- flow/json/android/json.rb
|
27
28
|
- flow/json/cocoa/json.rb
|
28
29
|
- flow/location/android/location_services.rb
|
@@ -89,7 +90,6 @@ files:
|
|
89
90
|
- flow/ui/cocoa/view.rb
|
90
91
|
- flow/ui/cocoa/web.rb
|
91
92
|
- flow/ui/color.rb
|
92
|
-
- flow/ui/css_node.rb
|
93
93
|
- flow/ui/eventable.rb
|
94
94
|
- flow/ui/font.rb
|
95
95
|
- flow/ui/list_row.rb
|
data/flow/ui/css_node.rb
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
# @attr flex
|
2
|
-
# @attr width
|
3
|
-
# @attr height
|
4
|
-
# @attr min_width
|
5
|
-
# @attr min_height
|
6
|
-
# @attr max_width
|
7
|
-
# @attr max_height
|
8
|
-
# @attr left
|
9
|
-
# @attr right
|
10
|
-
# @attr top
|
11
|
-
# @attr bottom
|
12
|
-
# @attr padding
|
13
|
-
# @attr margin
|
14
|
-
# @attr border_width
|
15
|
-
# @attr padding_top
|
16
|
-
# @attr padding_right
|
17
|
-
# @attr padding_bottom
|
18
|
-
# @attr padding_left
|
19
|
-
# @attr padding_start
|
20
|
-
# @attr padding_end
|
21
|
-
# @attr margin_top
|
22
|
-
# @attr margin_right
|
23
|
-
# @attr margin_bottom
|
24
|
-
# @attr margin_left
|
25
|
-
# @attr margin_start
|
26
|
-
# @attr margin_end
|
27
|
-
# @attr border_top_width
|
28
|
-
# @attr border_right_width
|
29
|
-
# @attr border_bottom_width
|
30
|
-
# @attr border_left_width
|
31
|
-
# @attr border_start
|
32
|
-
# @attr border_end
|
33
|
-
# @attr name
|
34
|
-
# @attr flex_direction
|
35
|
-
# @attr justify_content
|
36
|
-
# @attr align_items
|
37
|
-
# @attr align_self
|
38
|
-
# @attr flex
|
39
|
-
# @attr flex_wrap
|
40
|
-
# @attr position_type
|
41
|
-
class CSSNode
|
42
|
-
# @!method self.set_scale(scale)
|
43
|
-
|
44
|
-
# Adds a new child node
|
45
|
-
# @!method add_child(child)
|
46
|
-
# @param [CSSNode] child
|
47
|
-
|
48
|
-
# Deletes a child node
|
49
|
-
# @!method delete_child(child)
|
50
|
-
# @param [CSSNode] child
|
51
|
-
|
52
|
-
# Returns an array containing the child nodes
|
53
|
-
# @!method children
|
54
|
-
# @return [Array<CSSNore>]
|
55
|
-
|
56
|
-
# Returns the parent node
|
57
|
-
# @!method parent
|
58
|
-
# @return [CSSNode]
|
59
|
-
|
60
|
-
# Returns the root node
|
61
|
-
# @!method root
|
62
|
-
# @return [CSSNode]
|
63
|
-
end
|