texture_packer 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: 34dcd25f73e3d69be8c8fab1b52c5797c9184ec5c67b635854a169a47a8a0c5e
4
- data.tar.gz: 0eb49cb9b875082b947048b933694991a368b9b2dfe132af429a2f46c20d5dda
3
+ metadata.gz: 182eddac5fdc4d392f7f281a18181dec92c274a6acb6a300bbcd83da4613dded
4
+ data.tar.gz: cfbd0051b402a0d214fd7fc6276856ef8e02a1cd4c6f1b6e0f9b7dd033ff2e3b
5
5
  SHA512:
6
- metadata.gz: 63ccaf74d26e848d8756e19944e4b72c327a2c6ced6e21213840adacbeae4e9c4f8f816c4f3256303a6a7b0ba2f11e8c4092d0a73926be7bd6a29f04d43fb392
7
- data.tar.gz: f4343866d5d7e411fa0b769918a6cc0c9411d8c81b7b5382a9210c0dfbe2e133c8936321f8eb6e738c4122198893f2301cc08042bcfc5966e30340c433b26476
6
+ metadata.gz: 6dd1cee6ec2aba542872d3b0b3322e9347a1ffb9f6704a14aaff17f0dfefe5bdcd2c6fab983dec24a76c5a2191df68f0932d80ed539fea7abd9aec617bf91e1f
7
+ data.tar.gz: dc87d8d596108a10b3968165de5e7707b186c67076264553b57db2d13da8bfd24890cbf3ddd12ca68ce4d3e8307e4940f4d4ed79a99e284be256fa1804ee3359
@@ -54,7 +54,7 @@ end
54
54
 
55
55
  data = {}
56
56
  content.gsub!(/-disabled \{/, ':disabled {') #-disabled => :disabled
57
- content.gsub!(/-([\w]+)([^\w][\w]+|) \{/, '[\1]\2 {')
57
+ loop{ break if content.gsub!(/-([\w]+)((?:[^\w][\w]+)*) \{/, '[\1]\2 {') == nil }
58
58
  output0 = content
59
59
  output0.sub!(/(\/\*(.|\n)*?\*\/)/, '') #去掉註解
60
60
  output0 = $1 + "\n"
@@ -71,7 +71,7 @@ loop do
71
71
  break if selector == nil
72
72
  next if selector == "sprite"
73
73
  prefixs = prefix.scan(/\[\w+\]|\:\w+/) #[m]:disabled => ['[m]', ':disabled']
74
- prefixs.map! do |prefix|
74
+ prefixs.map! do |prefix|
75
75
  case prefix
76
76
  when '[active]' ; ':active' # 因為 TexturePacker 會把 xxx-active-hover 轉成 xxx-active:hover 而不是 xxx:active:hover
77
77
  when '[hover]' ; ':hover'
@@ -155,7 +155,7 @@ if SETTING['project_dir']
155
155
  write_to_file(css_path.join('mixin.scss'), output1)
156
156
  write_to_file(css_path.join('ocean.scss'), "@import './mixin.scss';\n\n#{output2}")
157
157
  FileUtils.cp('packed-fs8.png', img_path.join(base_dir_name + '.png'))
158
- FileUtils.cp('packed_mobile-fs8.png', img_path.join(base_dir_name + '_m.png'))
158
+ FileUtils.cp('packed_mobile-fs8.png', img_path.join(base_dir_name + '_m.png')) if $has_mobile
159
159
  end
160
160
 
161
161
 
@@ -1,3 +1,3 @@
1
1
  module TexturePacker
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texture_packer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - khiav reoy
8
8
  autorequire:
9
9
  bindir: executables
10
10
  cert_chain: []
11
- date: 2018-03-05 00:00:00.000000000 Z
11
+ date: 2018-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler