pave 0.12.0 → 0.13.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: d2d5fe7f671471fe1459f0e2c0f6271b049cd05f
4
- data.tar.gz: a4fc1c031ed597d9a0bffbdfedf87e58926f7103
3
+ metadata.gz: 9aa6d9f3f5753a826b0fd82bf27a385bf9c4ca9a
4
+ data.tar.gz: 9ea1ce191daf766aabc27136ed78c61c4669a031
5
5
  SHA512:
6
- metadata.gz: 67b610b8f2502646e66d0fc9d771fd234590121e5b6c2499e2c27a5d9f443d879bd5e39c056b58c01dc27d101fecd5f3a61b130de146f20642fdeb6a50d7f297
7
- data.tar.gz: 530dac82d7450405d707204e574387dba9b6a468b9aeb4a98a7655258c41a7d3f1cc54be82ff355bad9fcb92905cb742ba7f63de53a6adf892dbaf069fa3d507
6
+ metadata.gz: d575b3350c7758339e8ac7dad825d6125ab03a48b32436f08d61570e9040f29cf2627f83721df1a21d61aed8ec84484583a051486a98136b8190fd1b25b50680
7
+ data.tar.gz: 0ee8107ee3a592f105d1001d7dd7c21540337d1f6ee37949ddeaf3e36742cbf73cd7fc9c681e575e22bf43a1c69343538f7fe235b982e8db9eec611c61c63847
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.0.0
1
+ ruby-2.1.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pave (0.11.24)
4
+ pave (0.12.1)
5
5
  commander (~> 4.1)
6
6
 
7
7
  GEM
data/bin/pave CHANGED
@@ -255,7 +255,8 @@ command :watch do |c|
255
255
  c.description = "Watch for sass changes."
256
256
  c.action do |args|
257
257
  browser = args.first || "chrome"
258
- Pave::Theme.watch(browser)
258
+ name = args.last || "#{File.basename(Dir.pwd)}"
259
+ Pave::Theme.new(name).watch(browser)
259
260
  end
260
261
  end
261
262
 
data/lib/pave/theme.rb CHANGED
@@ -8,9 +8,10 @@ module Pave
8
8
  new(name).setup
9
9
  end
10
10
 
11
- def self.watch(browser)
12
- system("pave livereload #{browser} &")
13
- system("sass --watch ./themes/ --style compressed")
11
+ def watch(browser)
12
+ system "pave livereload #{browser} &"
13
+ system "sass --watch ./themes/ --style compressed &"
14
+ system "coffee -wcj ./themes/#{name}/js/app.js ./themes/#{name}/js/"
14
15
  end
15
16
 
16
17
  def initialize(name)
@@ -47,7 +48,7 @@ module Pave
47
48
  def create_project_css_folders
48
49
  sh "cd themes/#{self.name}/css/ && mkdir -p #{self.name}/{components,layouts}"
49
50
  sh "cd themes/#{self.name}/css/#{self.name} && touch ./components/_components.scss && touch ./layouts/_layouts.scss"
50
- sh "cd themes/#{self.name}/css/ && echo \"@import 'components/components';\" >> ./styles.scss && echo \"@import 'layouts/layouts';\" >> ./styles.scss"
51
+ sh "cd themes/#{self.name}/css/ && echo \"@import '#{self.name}/components/components';\" >> ./styles.scss && echo \"@import '#{self.name}/layouts/layouts';\" >> ./styles.scss"
51
52
  end
52
53
 
53
54
  def setup
data/lib/pave/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pave
2
- VERSION = "0.12.0"
2
+ VERSION = "0.13.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamon Holmgren
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-21 00:00:00.000000000 Z
12
+ date: 2014-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -90,8 +90,6 @@ executables:
90
90
  extensions: []
91
91
  extra_rdoc_files: []
92
92
  files:
93
- - ".floo"
94
- - ".flooignore"
95
93
  - ".gitignore"
96
94
  - ".ruby-gemset"
97
95
  - ".ruby-version"
data/.floo DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "url": "https://floobits.com/jamonholmgren/pave/"
3
- }
data/.flooignore DELETED
@@ -1,4 +0,0 @@
1
- extern
2
- node_modules
3
- tmp
4
- vendor