cyborg 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cyborg/command.rb +5 -5
- data/lib/cyborg/command/scaffold.rb +1 -2
- data/lib/cyborg/plugin/assets/stylesheets.rb +1 -2
- data/lib/cyborg/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: 07f10e98822a1c85fef58e64172d84c27f5c6411
|
4
|
+
data.tar.gz: 3a672afc95f926981c9960c653878856a5954efc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e28ba651014ba3e67018cda38c4bca465e92f88ecddbb4de00546b1e6975a5d950ad18de5d545dcb48c4cc13a297cf1e0e3d16716222f51ca695a697f4f637b
|
7
|
+
data.tar.gz: c601e198c70fc951f4e74e82fb51dfcf2e17fb3c9e3fda2f220a933e628401171e09a8fc97793f5d193307a65f2dc8e6c83519d0c1d9f2b99105d0cd9f2113d6
|
data/lib/cyborg/command.rb
CHANGED
@@ -7,7 +7,7 @@ module Cyborg
|
|
7
7
|
extend self
|
8
8
|
|
9
9
|
def run(options)
|
10
|
-
@production = options[:production]
|
10
|
+
@production = options[:production] || !!options[:command].match(/gem/)
|
11
11
|
|
12
12
|
case options[:command]
|
13
13
|
when 'new', 'n'
|
@@ -21,7 +21,7 @@ module Cyborg
|
|
21
21
|
when 'gem:build'
|
22
22
|
from_root { gem_build }
|
23
23
|
when 'gem:install'
|
24
|
-
from_root {
|
24
|
+
from_root { gem_install }
|
25
25
|
else
|
26
26
|
puts "Command `#{options[:command]}` not recognized"
|
27
27
|
end
|
@@ -32,17 +32,17 @@ module Cyborg
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def gem_build
|
35
|
-
dispatch(:build
|
35
|
+
dispatch(:build)
|
36
36
|
system "bundle exec rake build"
|
37
37
|
end
|
38
38
|
|
39
39
|
def gem_install
|
40
|
-
dispatch(:build
|
40
|
+
dispatch(:build)
|
41
41
|
system "bundle exec rake install"
|
42
42
|
end
|
43
43
|
|
44
44
|
def gem_release
|
45
|
-
dispatch(:build
|
45
|
+
dispatch(:build)
|
46
46
|
system "bundle exec rake release"
|
47
47
|
end
|
48
48
|
|
@@ -268,8 +268,7 @@ Gem::Specification.new do |spec|
|
|
268
268
|
spec.description = "Description of your gem (usually longer)."
|
269
269
|
spec.license = "#{spec.license}"
|
270
270
|
|
271
|
-
spec.files = Dir["{app,lib}/**/*", "LICENSE.txt", "README.md"]
|
272
|
-
spec.files.concat Dir["public/**/*#\{#{@module_name}::VERSION\}*"]
|
271
|
+
spec.files = Dir["{app,lib,public}/**/*", "LICENSE.txt", "README.md"]
|
273
272
|
spec.require_paths = ["lib"]
|
274
273
|
|
275
274
|
spec.add_dependency "rails", "~> 4.2.6"
|
@@ -33,13 +33,12 @@ module Cyborg
|
|
33
33
|
|
34
34
|
def build_sass(file)
|
35
35
|
style = Cyborg.production? ? "compressed" : 'nested'
|
36
|
-
sourcemap = plugin.maps? ? 'auto' : '
|
36
|
+
sourcemap = plugin.maps? ? 'auto' : 'none'
|
37
37
|
|
38
38
|
dest = destination(file)
|
39
39
|
|
40
40
|
system "sass #{file}:#{dest} --style #{style} --sourcemap=#{sourcemap}"
|
41
41
|
|
42
|
-
dest = destination(file)
|
43
42
|
npm_command "postcss --use autoprefixer #{dest} -o #{dest}"
|
44
43
|
compress(dest)
|
45
44
|
end
|
data/lib/cyborg/version.rb
CHANGED