sugarcube 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ios/sugarcube-to_s/uiview.rb +4 -5
- data/lib/sugarcube-repl.rb +15 -12
- data/lib/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: 0998b17cc00973f2b813e5a237ec3adeafdc2926
|
4
|
+
data.tar.gz: 2c04df069ea1298315348dfba6fa4349e24c4fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11f9fb7662253eececf0b2a2d693a7f40a67d8fbe4a881eda795601c1eb1dc70b136d3c372abb89d1b57edc1e6f8007836f0ce1a9422c5d1e3680f339c556871
|
7
|
+
data.tar.gz: 1b9470e157c9db2f4b81b21d0f99c7115acae867cea699beeb5bf68083f78a1176270f2af324e83647af1f9d1b219bc47b10605d743023cb05dd3a67886cc553
|
@@ -1,11 +1,10 @@
|
|
1
1
|
class UIView
|
2
2
|
|
3
3
|
def sugarcube_to_s(options={})
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
end
|
4
|
+
suffix = ''
|
5
|
+
suffix += " stylename: #{self.stylename.inspect}" if self.respond_to?(:stylename) && self.stylename
|
6
|
+
suffix += " motion_kit_id: #{self.motion_kit_id.inspect}" if self.respond_to?(:motion_kit_id) && self.motion_kit_id
|
7
|
+
|
9
8
|
if options[:inner].is_a? Hash
|
10
9
|
inner = ''
|
11
10
|
options[:inner].each do |key, value|
|
data/lib/sugarcube-repl.rb
CHANGED
@@ -6,18 +6,21 @@ end
|
|
6
6
|
require 'sugarcube'
|
7
7
|
|
8
8
|
Motion::Project::App.setup do |app|
|
9
|
-
#
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
# This package is only available in development
|
10
|
+
app.development do
|
11
|
+
# scans app.files until it finds app/ (the default)
|
12
|
+
# if found, it inserts just before those files, otherwise it will insert to
|
13
|
+
# the end of the list
|
14
|
+
insert_point = app.files.find_index { |file| file =~ /^(?:\.\/)?app\// } || 0
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
Dir.glob(File.join(File.dirname(__FILE__), SugarCube.platform, 'sugarcube-repl/**/*.rb')).reverse.each do |file|
|
17
|
+
app.files.insert(insert_point, file)
|
18
|
+
end
|
19
|
+
Dir.glob(File.join(File.dirname(__FILE__), 'cocoa/sugarcube-repl/**/*.rb')).reverse.each do |file|
|
20
|
+
app.files.insert(insert_point, file)
|
21
|
+
end
|
22
|
+
Dir.glob(File.join(File.dirname(__FILE__), 'all/sugarcube-repl/**/*.rb')).reverse.each do |file|
|
23
|
+
app.files.insert(insert_point, file)
|
24
|
+
end
|
22
25
|
end
|
23
26
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugarcube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin T.A. Gray
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-09-
|
14
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: |
|
17
17
|
== Description
|