icomoon_as_well 1.2.2 → 1.3.0

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: fe5928df8ff13a2a63a514714de73674c8bfe1c1
4
- data.tar.gz: b1499598088324da895a265cd6fd7de8c4d757b0
3
+ metadata.gz: ecbdff4dc88f5b93bb705c27beb3169300ff4ab1
4
+ data.tar.gz: 7c3d316abca829f6fc8f6a19771745a61424a802
5
5
  SHA512:
6
- metadata.gz: 8df213566d42d74f168ae30d61007dc1ea2f231970d443df91cbc8671c0b15b3d0a1cac5e3f1fba59df8d8bec6c11f5deeaba25e01122ce544a7fd918f74daa1
7
- data.tar.gz: 4609343f031f6042bcc0d1c5d03a47e09f279cc59e1ed2bb646cbe6c49ee79a3e73d5b2d6647572258e83b69ea3b4d0c6eb6d6bcec5d230f2746d9af84af1955
6
+ metadata.gz: 18d7a2b1dbe5c695a9a25ac4547e585c8502b74738b0f87db01bc287c507bb4f293361c7c4d14cc63c53b81596a7ed9195f2d1056c9aab6b5e172a9110a7e398
7
+ data.tar.gz: 306d2b39f0456c48878edd667d5db85e1f59ca593fb6ef2f889b79e45876b371ca5c47ebd3cc782dedb3dd596ff3f34419326dda4367aa7a652c7eeb73048ba3
data/bin/icomoon_as_well CHANGED
@@ -7,6 +7,6 @@ if File.exist?(ARGV[0].to_s) && ARGV[0].to_s =~ /^.+\.zip$/ && Dir.exist?(ARGV[1
7
7
  if ARGV[2] == "--rails"
8
8
  target << "app" << "assets"
9
9
  end
10
- icomoon = IcomoonAsWell::Icomoon.new(ARGV[0], File.join(target), ARGV[2].to_s == "--rails")
10
+ IcomoonAsWell::Icomoon.new(ARGV[0], File.join(target), ARGV[2].to_s == "--rails")
11
11
  end
12
12
 
@@ -18,6 +18,8 @@ module IcomoonAsWell
18
18
  if is_rails && target_dir =~ /^(.+)\/app\/assets.*$/
19
19
  app_dir = $1
20
20
  put_files(@archive.files, ["selection.json"], File.join(app_dir, "doc"))
21
+ else
22
+ put_files(@archive.files, ["selection.json"], target_dir)
21
23
  end
22
24
  end
23
25
  end
@@ -31,10 +31,10 @@ module IcomoonAsWell
31
31
  end
32
32
 
33
33
  def icomoon_dir(target_dir)
34
- unless Dir.exists?("#{target_dir}/stylesheets")
34
+ unless Dir.exist?("#{target_dir}/stylesheets")
35
35
  FileUtils.mkpath(File.join(target_dir, "stylesheets"))
36
36
  end
37
- unless Dir.exists?("#{target_dir}/stylesheets/icomoon")
37
+ unless Dir.exist?("#{target_dir}/stylesheets/icomoon")
38
38
  FileUtils.mkpath(File.join(target_dir, "stylesheets", "icomoon"))
39
39
  end
40
40
  "#{target_dir}/stylesheets/icomoon"
@@ -1,3 +1,3 @@
1
1
  module IcomoonAsWell
2
- VERSION = "1.2.2"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icomoon_as_well
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-08 00:00:00.000000000 Z
11
+ date: 2017-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -90,8 +90,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 2.4.5.1
93
+ rubygems_version: 2.5.1
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Icomoon unpacker
97
97
  test_files: []
98
+ has_rdoc: