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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5999d01121c8aaaabe95786c5e68ad8d33565f6e
4
- data.tar.gz: 008d532db6b77a23564b29ef71ae33845a88b8ee
3
+ metadata.gz: c87f44dd413c2d2b444b620297a965ba6124667c
4
+ data.tar.gz: 963623dabde69589a82a47f9e54881161060bccc
5
5
  SHA512:
6
- metadata.gz: 3068d9652bda709550f21bf3c752b852c101a0bad38f0ef0c7051f90d0152caf0d16d817b16520a1d6b7dc44baee20cb3ff4515652331543f8c959a02c63c9a2
7
- data.tar.gz: efbc5dfaa1129c0a28d10a1cddea7719a819382ef4cf7925614e4de86e70ce5e8b6d5599b60b9f5c97c06d7fce77366bbdb71d3cb89ff198d4478a59c8fc506e
6
+ metadata.gz: d1f661e5d67a7084eb7a974d032beacb7ea95ff6bcd14c12a226e542404fa8cb9b3ca609a66c3933ff57e05158f182004e595c05e6d4d2e4a3af1a22995f6eed
7
+ data.tar.gz: 278637f26c0fb584dcf7bb25fc1ee32a79d6e51ea7c53a27cd7cf9aac3bf7206501c4efbd44487465efd46bfe2db09fab5e550cbf660670853216bf700ab0c7c
@@ -50,7 +50,7 @@ module Net
50
50
  # @return [Hash]
51
51
  # @example
52
52
  # response.headers
53
- # #=> { 'Content-Type' => 'application/josn' }
53
+ # #=> { 'Content-Type' => 'application/json' }
54
54
  def headers
55
55
  @headers
56
56
  end
@@ -34,7 +34,7 @@ module Net
34
34
  # @return [Hash]
35
35
  # @example
36
36
  # response.headers
37
- # #=> { 'Content-Type' => 'application/josn' }
37
+ # #=> { 'Content-Type' => 'application/json' }
38
38
  def headers
39
39
  hash = {}
40
40
  @headers.map {|header| hash[header.field] = header.value}
Binary file
@@ -37,7 +37,7 @@
37
37
  # @attr align_self
38
38
  # @attr flex
39
39
  # @attr flex_wrap
40
- # @attr position
40
+ # @attr position_type
41
41
  class CSSNode
42
42
  # @!method self.set_scale(scale)
43
43
 
@@ -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: '0.1'
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-14 00:00:00.000000000 Z
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.5.1
1126
+ rubygems_version: 2.6.4
1140
1127
  signing_key:
1141
1128
  specification_version: 4
1142
1129
  summary: Cross-platform app framework for RubyMotion
@@ -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
@@ -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
@@ -1,14 +0,0 @@
1
- class JSON
2
- # @example
3
- # JSON.load('{"foo":"bar"}')
4
- # #=> {"foo" => "bar"}
5
- # @!method self.load(str)
6
- end
7
-
8
- class Object
9
- # @!method to_json
10
- # @return [Hash]
11
- # @example
12
- # {"foo" => "bar"}.to_json
13
- # #=> '{"foo":"bar"}'
14
- end
@@ -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
@@ -1,10 +0,0 @@
1
- module UI
2
- class Application
3
- # Returns the singleton Application object
4
- # @!method instance
5
- # @return [Application]
6
-
7
- # Starts the application
8
- # @!method start
9
- end
10
- end
@@ -1,9 +0,0 @@
1
- module UI
2
- # @attr [Color] color
3
- # @attr [String] title
4
- # @attr [Image] image
5
- # @attr [Font] font
6
- class Button < Control
7
- include Eventable
8
- end
9
- end
@@ -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
@@ -1,8 +0,0 @@
1
- module UI
2
- # @attr text_alignment
3
- # @attr [Color] color
4
- # @attr [String] text
5
- # @attr [Font] font
6
- class Label < View
7
- end
8
- end
@@ -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
@@ -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
@@ -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
@@ -1,5 +0,0 @@
1
- module UI
2
- # @!parse
3
- # # Hash keys: :left, :center, :right, :justify
4
- # TEXT_ALIGNMENT = {}
5
- end
@@ -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