sugarcube 2.1.1 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c75ac16d41d7e5691ef2a40da7a61177cf75a455
4
- data.tar.gz: fed09b3470adcfb9181b15aa1489b0dc7341d697
3
+ metadata.gz: 0998b17cc00973f2b813e5a237ec3adeafdc2926
4
+ data.tar.gz: 2c04df069ea1298315348dfba6fa4349e24c4fe7
5
5
  SHA512:
6
- metadata.gz: 0da49deca893aa7900505eadfb67bde0d39da3a8906a310020c57171a8d651957871ec7ec778e9a227a295158d93338633cef0484f494326591eec7ae86bd0a0
7
- data.tar.gz: 0b676f6966874fa4d6e7e0ad48a38b8eb026a317813baa6d7890537322d892d99cb2bd69acf8c8fcdddea2882deca780cea58f1b1bf650154d01418a262d8552
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
- if self.respond_to? :stylename and self.stylename
5
- suffix = ' stylename: ' + self.stylename.inspect
6
- else
7
- suffix = ''
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|
@@ -6,18 +6,21 @@ end
6
6
  require 'sugarcube'
7
7
 
8
8
  Motion::Project::App.setup do |app|
9
- # scans app.files until it finds app/ (the default)
10
- # if found, it inserts just before those files, otherwise it will insert to
11
- # the end of the list
12
- insert_point = app.files.find_index { |file| file =~ /^(?:\.\/)?app\// } || 0
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
- Dir.glob(File.join(File.dirname(__FILE__), SugarCube.platform, 'sugarcube-repl/**/*.rb')).reverse.each do |file|
15
- app.files.insert(insert_point, file)
16
- end
17
- Dir.glob(File.join(File.dirname(__FILE__), 'cocoa/sugarcube-repl/**/*.rb')).reverse.each do |file|
18
- app.files.insert(insert_point, file)
19
- end
20
- Dir.glob(File.join(File.dirname(__FILE__), 'all/sugarcube-repl/**/*.rb')).reverse.each do |file|
21
- app.files.insert(insert_point, file)
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
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '2.1.1'
2
+ Version = '2.1.2'
3
3
  end
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.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-06 00:00:00.000000000 Z
14
+ date: 2014-09-08 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: |
17
17
  == Description