cany 0.2.1 → 0.3.0

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
  SHA1:
3
- metadata.gz: c5cd56e2d3d004cd60f48bb00df3c821841a30a5
4
- data.tar.gz: ca3a17c8b8ad5432697badd3e34b335dcad8c728
3
+ metadata.gz: 798f70bef2ee1f34af927e2f60caf453255de41e
4
+ data.tar.gz: 1ba69954be13b1ad01b82d809149626c0c21b36c
5
5
  SHA512:
6
- metadata.gz: c6937b0446e948b0142d7d00a7b98efbeb86341aa3d059895ca9cbada45eabc4a0b74572a9707f638859416fb38e9adc1a5dc47768369711d64c3a7397a245b0
7
- data.tar.gz: 9aaf0771ff6971fbebb0df811cab89798e384698705c2ed1ae2e747c34d065e4651e4972ea6f390a8f2843c6d6a4c82b875fb8ad82cf2d576cee7f9cc3e63077
6
+ metadata.gz: 3962a3cc73b61ab855b92f10a9b92df8e5daa799b988b55ee5ba006eb0de239853d5e043fff0951b7fcd6a208ccb9d9eefd02a7f73bbbac886e1280d24ee151e
7
+ data.tar.gz: 3e66e8fe935e4dbd709f1b77057edb11ac5bdc93d90c010d12cb5993898cd2cac290f80479a738fc2bfaf3bb9e49fae6dd32763fe0f23e2292ff609bfc4d0f17
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ 0.3.0 / 2013-10-23
2
+ ==================
3
+
4
+ Feature:
5
+
6
+ * rails: Option to specify rails env for assets precompiling
7
+
8
+
1
9
  0.2.1 / 2013-10-23
2
10
  ==================
3
11
 
@@ -5,13 +5,14 @@ module Cany
5
5
  hook :env
6
6
 
7
7
  class DSL < Recipe::DSL
8
- delegate :compile_assets
8
+ delegate :compile_assets, :assets_env
9
9
  end
10
10
 
11
- attr_accessor :compile_assets
11
+ attr_accessor :compile_assets, :assets_env
12
12
 
13
13
  def initialize(*args)
14
14
  @compile_assets = true
15
+ @assets_env = 'production'
15
16
  super
16
17
  end
17
18
 
@@ -26,8 +27,11 @@ module Cany
26
27
 
27
28
  def build
28
29
  run_hook :env, :before
30
+ if compile_assets
31
+ ENV['RAILS_ENV'] = assets_env
32
+ ruby_bin 'bundle', 'exec', 'rake', 'assets:precompile'
33
+ end
29
34
  ENV['RAILS_ENV'] = 'production'
30
- ruby_bin 'bundle', 'exec', 'rake', 'assets:precompile' if compile_assets
31
35
  inner.build
32
36
  end
33
37
 
data/lib/cany/version.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  module Cany
2
2
  module VERSION
3
3
  MAJOR = 0
4
- MINOR = 2
5
- PATCH = 1
4
+ MINOR = 3
5
+ PATCH = 0
6
6
  STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
8
8
  def self.to_s; STRING end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cany
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Malte Swart