cyborg 0.1.0 → 0.1.1

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: 23a5939aaf1016d48d5ac825c571505364784030
4
- data.tar.gz: b9cfd458100f2a917f20de79a72071efbae59a57
3
+ metadata.gz: 07f10e98822a1c85fef58e64172d84c27f5c6411
4
+ data.tar.gz: 3a672afc95f926981c9960c653878856a5954efc
5
5
  SHA512:
6
- metadata.gz: 524dc65ec162fed441ce0b0394673bcc403296ccf95317c11c32ceacbc9b8cf7bb6deca01470ac433acacca49c11e3eff6f640836cb4c0521af2f1cf9b8fb160
7
- data.tar.gz: c584f04f4038aa2b2796a3c93c7d3262585245308ff6cb7cea155cf4b73c9b2e3127d2cc85aef06423fa0799571332890ca752432b773bef18e42cc41106f4c7
6
+ metadata.gz: 4e28ba651014ba3e67018cda38c4bca465e92f88ecddbb4de00546b1e6975a5d950ad18de5d545dcb48c4cc13a297cf1e0e3d16716222f51ca695a697f4f637b
7
+ data.tar.gz: c601e198c70fc951f4e74e82fb51dfcf2e17fb3c9e3fda2f220a933e628401171e09a8fc97793f5d193307a65f2dc8e6c83519d0c1d9f2b99105d0cd9f2113d6
@@ -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 { gem_build }
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, production: true)
35
+ dispatch(:build)
36
36
  system "bundle exec rake build"
37
37
  end
38
38
 
39
39
  def gem_install
40
- dispatch(:build, production: true)
40
+ dispatch(:build)
41
41
  system "bundle exec rake install"
42
42
  end
43
43
 
44
44
  def gem_release
45
- dispatch(:build, production: true)
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' : 'false'
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
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyborg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis