shipd_style 0.2.1 → 0.2.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/shipd_style/copy_directory.rb +2 -6
- data/lib/shipd_style/copy_stylesheets.rb +2 -2
- data/lib/shipd_style/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 245b9e6e3c11bd847fd81df65b5a08d8fb9805dd
|
|
4
|
+
data.tar.gz: 68d7e22d6f450447b7b11ad9dac7b029639f5d48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 275f2c4062961755f0975f25a35b1ad0a713cccbec022f6e7430edeba98678aa5b359b7939d0ef0188190af8200c1481151a6becf46a00e35d013d3a74ce0007
|
|
7
|
+
data.tar.gz: 7e756a5a92a4f70bc1e936b34d54a68593396594bee7d62c23cdf7067f41412737645242e76229b2266810e0cdf490ec186a94a9cdc76c54bc7d946c3d62a20b
|
data/Gemfile.lock
CHANGED
|
@@ -3,15 +3,11 @@ module ShipdStyle
|
|
|
3
3
|
def perform
|
|
4
4
|
make_directory
|
|
5
5
|
# still using tick marks because of the * at the end of the path
|
|
6
|
-
`cp -r #{source_directory} #{
|
|
6
|
+
`cp -r #{source_directory} #{path}`
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def make_directory
|
|
10
|
-
FileUtils.mkdir_p(
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def destination_directory
|
|
14
|
-
"#{path}/#{directory_name}"
|
|
10
|
+
FileUtils.mkdir_p(path) unless File.exist?(path)
|
|
15
11
|
end
|
|
16
12
|
|
|
17
13
|
def source_directory
|
|
@@ -5,7 +5,7 @@ module ShipdStyle
|
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def remove_namespace
|
|
8
|
-
destination_directory =
|
|
8
|
+
destination_directory = "#{path}/sass"
|
|
9
9
|
FileUtils.mv(destination_directory + "/shipd-mobile.scss", destination_directory + "/mobile.scss")
|
|
10
10
|
FileUtils.mv(destination_directory + "/shipd-tablet.scss", destination_directory + "/tablet.scss")
|
|
11
11
|
FileUtils.mv(destination_directory + "/shipd-desktop.scss", destination_directory + "/desktop.scss")
|
|
@@ -19,7 +19,7 @@ module ShipdStyle
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def copier
|
|
22
|
-
@copier ||= ShipdStyle::CopyDirectory.new(path, "sass")
|
|
22
|
+
@copier ||= ShipdStyle::CopyDirectory.new(path + "/sass", "sass")
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
end
|
data/lib/shipd_style/version.rb
CHANGED