marv 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/Gemfile +20 -20
- data/Gemfile.lock +2 -2
- data/LICENSE +1 -1
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/layouts/bramble/stylesheets/{style.css.scss.erb → style.scss.erb} +0 -0
- data/layouts/default/stylesheets/{style.css.scss.erb → style.scss.erb} +0 -0
- data/lib/marv/builder.rb +6 -3
- data/lib/marv/config.rb +1 -1
- data/lib/marv/generator.rb +0 -1
- data/lib/marv/project.rb +1 -1
- data/lib/marv/version.rb +1 -1
- data/marv.gemspec +13 -15
- data/spec/lib/marv/config_spec.rb +5 -5
- metadata +14 -15
- data/.document +0 -5
- data/.gitmodules +0 -3
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
source
|
1
|
+
source 'http://rubygems.org'
|
2
2
|
# Add dependencies required to use your gem here.
|
3
3
|
# Example:
|
4
|
-
# gem
|
4
|
+
# gem 'activesupport', '>= 2.3.5'
|
5
5
|
|
6
|
-
gem
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem
|
12
|
-
gem
|
13
|
-
gem
|
14
|
-
gem
|
6
|
+
gem 'thor', '>= 0.18.1'
|
7
|
+
gem 'guard', '>= 2.2.1'
|
8
|
+
gem 'guard-livereload', '>= 2.0.0'
|
9
|
+
gem 'sprockets', '>= 2.12.0'
|
10
|
+
gem 'rubyzip', '>= 1.0.0'
|
11
|
+
gem 'json', '>= 1.8.0'
|
12
|
+
gem 'sass', '>= 3.3.0'
|
13
|
+
gem 'sprockets-sass', '>= 1.2.0'
|
14
|
+
gem 'compass', '>= 0.12.5'
|
15
15
|
gem 'rack', '>= 1.5.2'
|
16
|
-
gem
|
17
|
-
gem
|
18
|
-
gem
|
19
|
-
gem
|
20
|
-
gem
|
16
|
+
gem 'therubyracer', '>= 0.12.0'
|
17
|
+
gem 'less', '>= 2.6.0'
|
18
|
+
gem 'coffee-script', '>= 2.3.0'
|
19
|
+
gem 'rb-fsevent', '>= 0.9.3'
|
20
|
+
gem 'yui-compressor', '>= 0.12.0'
|
21
21
|
|
22
22
|
# Add dependencies to develop your gem here.
|
23
23
|
# Include everything needed to run rake, tests, features, etc.
|
24
24
|
group :development do
|
25
|
-
gem
|
26
|
-
gem
|
27
|
-
gem
|
28
|
-
gem
|
25
|
+
gem 'rspec'
|
26
|
+
gem 'cucumber'
|
27
|
+
gem 'aruba'
|
28
|
+
gem 'jeweler'
|
29
29
|
end
|
data/Gemfile.lock
CHANGED
@@ -121,11 +121,11 @@ PLATFORMS
|
|
121
121
|
DEPENDENCIES
|
122
122
|
aruba
|
123
123
|
coffee-script (>= 2.3.0)
|
124
|
-
compass (>=
|
124
|
+
compass (>= 0.12.5)
|
125
125
|
cucumber
|
126
126
|
guard (>= 2.2.1)
|
127
127
|
guard-livereload (>= 2.0.0)
|
128
|
-
jeweler
|
128
|
+
jeweler
|
129
129
|
json (>= 1.8.0)
|
130
130
|
less (>= 2.6.0)
|
131
131
|
rack (>= 1.5.2)
|
data/LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -16,12 +16,12 @@ Jeweler::Tasks.new do |gem|
|
|
16
16
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
17
|
gem.name = "marv"
|
18
18
|
gem.executables = ["marv"]
|
19
|
-
gem.homepage = "
|
19
|
+
gem.homepage = "http://hardpixel.github.io/marv"
|
20
20
|
gem.license = "MIT"
|
21
21
|
gem.summary = %Q{A tool for developing wordpress themes}
|
22
22
|
gem.description = %Q{A toolkit for bootstrapping and developing WordPress themes using Sass, LESS, and CoffeeScript.}
|
23
23
|
gem.email = "info@hardpixel.eu"
|
24
|
-
gem.authors = ["
|
24
|
+
gem.authors = ["Jonian Guveli", "Olibia Tsati"]
|
25
25
|
# dependencies defined in Gemfile
|
26
26
|
gem.files.include Dir.glob('**/*')
|
27
27
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
File without changes
|
File without changes
|
data/lib/marv/builder.rb
CHANGED
@@ -67,6 +67,9 @@ module Marv
|
|
67
67
|
|
68
68
|
# Empty out the build directory
|
69
69
|
def clean_build_directory
|
70
|
+
# create build path if it does not exist
|
71
|
+
FileUtils.mkdir_p(@project.build_path) unless File.exists?(@project.build_path)
|
72
|
+
# Empty the build path
|
70
73
|
FileUtils.rm_rf Dir.glob(File.join(@project.build_path, '*'))
|
71
74
|
end
|
72
75
|
|
@@ -115,7 +118,7 @@ module Marv
|
|
115
118
|
end
|
116
119
|
|
117
120
|
unless functions_paths.empty?
|
118
|
-
# Create the
|
121
|
+
# Create the functions folder in the build directory
|
119
122
|
FileUtils.mkdir_p(File.join(@project.build_path, 'functions'))
|
120
123
|
|
121
124
|
# Iterate over all files in source/functions, skipping the actual functions.php file
|
@@ -154,7 +157,7 @@ module Marv
|
|
154
157
|
end
|
155
158
|
|
156
159
|
def build_assets
|
157
|
-
[['style.css'], ['
|
160
|
+
[['style.css'], ['admin.css'], ['javascripts', 'theme.js'], ['javascripts', 'admin.js']].each do |asset|
|
158
161
|
destination = File.join(@project.build_path, asset)
|
159
162
|
|
160
163
|
sprocket = @sprockets.find_asset(asset.last)
|
@@ -226,7 +229,7 @@ module Marv
|
|
226
229
|
def init_sprockets
|
227
230
|
@sprockets = Sprockets::Environment.new
|
228
231
|
|
229
|
-
['javascripts', 'stylesheets'
|
232
|
+
['javascripts', 'stylesheets'].each do |dir|
|
230
233
|
@sprockets.append_path File.join(@assets_path, dir)
|
231
234
|
end
|
232
235
|
|
data/lib/marv/config.rb
CHANGED
@@ -29,7 +29,7 @@ module Marv
|
|
29
29
|
|
30
30
|
# Returns the path to the user's configuration file
|
31
31
|
def config_file
|
32
|
-
@config_file ||= File.expand_path(File.join('~', '.
|
32
|
+
@config_file ||= File.expand_path(File.join('~', '.marv', 'config.yml'))
|
33
33
|
end
|
34
34
|
|
35
35
|
# Writes the configuration file
|
data/lib/marv/generator.rb
CHANGED
data/lib/marv/project.rb
CHANGED
@@ -62,7 +62,7 @@ module Marv
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def global_config_file
|
65
|
-
@global_config_file ||= File.join(ENV['HOME'], '.
|
65
|
+
@global_config_file ||= File.join(ENV['HOME'], '.marv', 'config.rb')
|
66
66
|
end
|
67
67
|
|
68
68
|
# Create a symlink from source to the project build dir
|
data/lib/marv/version.rb
CHANGED
data/marv.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "marv"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["
|
12
|
-
s.date = "2014-07-
|
11
|
+
s.authors = ["Jonian Guveli", "Olibia Tsati"]
|
12
|
+
s.date = "2014-07-30"
|
13
13
|
s.description = "A toolkit for bootstrapping and developing WordPress themes using Sass, LESS, and CoffeeScript."
|
14
14
|
s.email = "info@hardpixel.eu"
|
15
15
|
s.executables = ["marv"]
|
@@ -18,8 +18,6 @@ Gem::Specification.new do |s|
|
|
18
18
|
"README.md"
|
19
19
|
]
|
20
20
|
s.files = [
|
21
|
-
".document",
|
22
|
-
".gitmodules",
|
23
21
|
".rspec",
|
24
22
|
"CHANGELOG.md",
|
25
23
|
"Gemfile",
|
@@ -39,7 +37,7 @@ Gem::Specification.new do |s|
|
|
39
37
|
"layouts/bramble/javascripts/theme.coffee",
|
40
38
|
"layouts/bramble/javascripts/theme.js",
|
41
39
|
"layouts/bramble/stylesheets/_header.scss.erb",
|
42
|
-
"layouts/bramble/stylesheets/style.
|
40
|
+
"layouts/bramble/stylesheets/style.scss.erb",
|
43
41
|
"layouts/bramble/templates/sample-template.php",
|
44
42
|
"layouts/config/config.tt",
|
45
43
|
"layouts/default/functions/functions.php.erb",
|
@@ -52,7 +50,7 @@ Gem::Specification.new do |s|
|
|
52
50
|
"layouts/default/javascripts/theme.coffee",
|
53
51
|
"layouts/default/javascripts/theme.js",
|
54
52
|
"layouts/default/stylesheets/_header.scss.erb",
|
55
|
-
"layouts/default/stylesheets/style.
|
53
|
+
"layouts/default/stylesheets/style.scss.erb",
|
56
54
|
"layouts/default/templates/404.php.erb",
|
57
55
|
"layouts/default/templates/archive.php.erb",
|
58
56
|
"layouts/default/templates/author.php.erb",
|
@@ -83,13 +81,13 @@ Gem::Specification.new do |s|
|
|
83
81
|
"lib/marv/guard.rb",
|
84
82
|
"lib/marv/project.rb",
|
85
83
|
"lib/marv/version.rb",
|
86
|
-
"marv-0.2.
|
84
|
+
"marv-0.2.3.gem",
|
87
85
|
"marv.gemspec",
|
88
86
|
"spec/lib/marv/config_spec.rb",
|
89
87
|
"spec/lib/marv/project_spec.rb",
|
90
88
|
"spec/spec_helper.rb"
|
91
89
|
]
|
92
|
-
s.homepage = "
|
90
|
+
s.homepage = "http://hardpixel.github.io/marv"
|
93
91
|
s.licenses = ["MIT"]
|
94
92
|
s.require_paths = ["lib"]
|
95
93
|
s.rubygems_version = "1.8.23"
|
@@ -107,7 +105,7 @@ Gem::Specification.new do |s|
|
|
107
105
|
s.add_runtime_dependency(%q<json>, [">= 1.8.0"])
|
108
106
|
s.add_runtime_dependency(%q<sass>, [">= 3.3.0"])
|
109
107
|
s.add_runtime_dependency(%q<sprockets-sass>, [">= 1.2.0"])
|
110
|
-
s.add_runtime_dependency(%q<compass>, [">=
|
108
|
+
s.add_runtime_dependency(%q<compass>, [">= 0.12.5"])
|
111
109
|
s.add_runtime_dependency(%q<rack>, [">= 1.5.2"])
|
112
110
|
s.add_runtime_dependency(%q<therubyracer>, [">= 0.12.0"])
|
113
111
|
s.add_runtime_dependency(%q<less>, [">= 2.6.0"])
|
@@ -117,7 +115,7 @@ Gem::Specification.new do |s|
|
|
117
115
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
118
116
|
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
119
117
|
s.add_development_dependency(%q<aruba>, [">= 0"])
|
120
|
-
s.add_development_dependency(%q<jeweler>, ["
|
118
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
121
119
|
else
|
122
120
|
s.add_dependency(%q<thor>, [">= 0.18.1"])
|
123
121
|
s.add_dependency(%q<guard>, [">= 2.2.1"])
|
@@ -127,7 +125,7 @@ Gem::Specification.new do |s|
|
|
127
125
|
s.add_dependency(%q<json>, [">= 1.8.0"])
|
128
126
|
s.add_dependency(%q<sass>, [">= 3.3.0"])
|
129
127
|
s.add_dependency(%q<sprockets-sass>, [">= 1.2.0"])
|
130
|
-
s.add_dependency(%q<compass>, [">=
|
128
|
+
s.add_dependency(%q<compass>, [">= 0.12.5"])
|
131
129
|
s.add_dependency(%q<rack>, [">= 1.5.2"])
|
132
130
|
s.add_dependency(%q<therubyracer>, [">= 0.12.0"])
|
133
131
|
s.add_dependency(%q<less>, [">= 2.6.0"])
|
@@ -137,7 +135,7 @@ Gem::Specification.new do |s|
|
|
137
135
|
s.add_dependency(%q<rspec>, [">= 0"])
|
138
136
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
139
137
|
s.add_dependency(%q<aruba>, [">= 0"])
|
140
|
-
s.add_dependency(%q<jeweler>, ["
|
138
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
141
139
|
end
|
142
140
|
else
|
143
141
|
s.add_dependency(%q<thor>, [">= 0.18.1"])
|
@@ -148,7 +146,7 @@ Gem::Specification.new do |s|
|
|
148
146
|
s.add_dependency(%q<json>, [">= 1.8.0"])
|
149
147
|
s.add_dependency(%q<sass>, [">= 3.3.0"])
|
150
148
|
s.add_dependency(%q<sprockets-sass>, [">= 1.2.0"])
|
151
|
-
s.add_dependency(%q<compass>, [">=
|
149
|
+
s.add_dependency(%q<compass>, [">= 0.12.5"])
|
152
150
|
s.add_dependency(%q<rack>, [">= 1.5.2"])
|
153
151
|
s.add_dependency(%q<therubyracer>, [">= 0.12.0"])
|
154
152
|
s.add_dependency(%q<less>, [">= 2.6.0"])
|
@@ -158,7 +156,7 @@ Gem::Specification.new do |s|
|
|
158
156
|
s.add_dependency(%q<rspec>, [">= 0"])
|
159
157
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
160
158
|
s.add_dependency(%q<aruba>, [">= 0"])
|
161
|
-
s.add_dependency(%q<jeweler>, ["
|
159
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
162
160
|
end
|
163
161
|
end
|
164
162
|
|
@@ -4,7 +4,7 @@ require 'marv/config'
|
|
4
4
|
describe Marv::Config do
|
5
5
|
|
6
6
|
def config_file
|
7
|
-
File.expand_path(File.join('~', '.
|
7
|
+
File.expand_path(File.join('~', '.marv', 'config.yml'))
|
8
8
|
end
|
9
9
|
|
10
10
|
before(:each) do
|
@@ -31,7 +31,7 @@ describe Marv::Config do
|
|
31
31
|
@config[:links].should == ['/var/www/wordpress']
|
32
32
|
end
|
33
33
|
|
34
|
-
it "should store config in ~/.
|
34
|
+
it "should store config in ~/.marv/config.yml" do
|
35
35
|
@config.config_file.should == config_file
|
36
36
|
end
|
37
37
|
|
@@ -42,11 +42,11 @@ describe Marv::Config do
|
|
42
42
|
|
43
43
|
describe :write do
|
44
44
|
it "should dump any changes made to the config" do
|
45
|
-
@config[:theme][:author] = "
|
46
|
-
@config[:theme][:author_url] = "http://
|
45
|
+
@config[:theme][:author] = "John Doe"
|
46
|
+
@config[:theme][:author_url] = "http://john-doe.com"
|
47
47
|
|
48
48
|
@config.write(:io => @buffer)
|
49
|
-
@buffer.string.should == "---\n:theme:\n :author:
|
49
|
+
@buffer.string.should == "---\n:theme:\n :author: John Doe\n :author_url: http://john-doe.com\n:links: []\n"
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Jonian Guveli
|
9
|
+
- Olibia Tsati
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
13
|
+
date: 2014-07-30 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: thor
|
@@ -146,7 +147,7 @@ dependencies:
|
|
146
147
|
requirements:
|
147
148
|
- - ! '>='
|
148
149
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
150
|
+
version: 0.12.5
|
150
151
|
type: :runtime
|
151
152
|
prerelease: false
|
152
153
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -154,7 +155,7 @@ dependencies:
|
|
154
155
|
requirements:
|
155
156
|
- - ! '>='
|
156
157
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
158
|
+
version: 0.12.5
|
158
159
|
- !ruby/object:Gem::Dependency
|
159
160
|
name: rack
|
160
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -304,17 +305,17 @@ dependencies:
|
|
304
305
|
requirement: !ruby/object:Gem::Requirement
|
305
306
|
none: false
|
306
307
|
requirements:
|
307
|
-
- -
|
308
|
+
- - ! '>='
|
308
309
|
- !ruby/object:Gem::Version
|
309
|
-
version:
|
310
|
+
version: '0'
|
310
311
|
type: :development
|
311
312
|
prerelease: false
|
312
313
|
version_requirements: !ruby/object:Gem::Requirement
|
313
314
|
none: false
|
314
315
|
requirements:
|
315
|
-
- -
|
316
|
+
- - ! '>='
|
316
317
|
- !ruby/object:Gem::Version
|
317
|
-
version:
|
318
|
+
version: '0'
|
318
319
|
description: A toolkit for bootstrapping and developing WordPress themes using Sass,
|
319
320
|
LESS, and CoffeeScript.
|
320
321
|
email: info@hardpixel.eu
|
@@ -325,8 +326,6 @@ extra_rdoc_files:
|
|
325
326
|
- LICENSE
|
326
327
|
- README.md
|
327
328
|
files:
|
328
|
-
- .document
|
329
|
-
- .gitmodules
|
330
329
|
- .rspec
|
331
330
|
- CHANGELOG.md
|
332
331
|
- Gemfile
|
@@ -346,7 +345,7 @@ files:
|
|
346
345
|
- layouts/bramble/javascripts/theme.coffee
|
347
346
|
- layouts/bramble/javascripts/theme.js
|
348
347
|
- layouts/bramble/stylesheets/_header.scss.erb
|
349
|
-
- layouts/bramble/stylesheets/style.
|
348
|
+
- layouts/bramble/stylesheets/style.scss.erb
|
350
349
|
- layouts/bramble/templates/sample-template.php
|
351
350
|
- layouts/config/config.tt
|
352
351
|
- layouts/default/functions/functions.php.erb
|
@@ -359,7 +358,7 @@ files:
|
|
359
358
|
- layouts/default/javascripts/theme.coffee
|
360
359
|
- layouts/default/javascripts/theme.js
|
361
360
|
- layouts/default/stylesheets/_header.scss.erb
|
362
|
-
- layouts/default/stylesheets/style.
|
361
|
+
- layouts/default/stylesheets/style.scss.erb
|
363
362
|
- layouts/default/templates/404.php.erb
|
364
363
|
- layouts/default/templates/archive.php.erb
|
365
364
|
- layouts/default/templates/author.php.erb
|
@@ -390,12 +389,12 @@ files:
|
|
390
389
|
- lib/marv/guard.rb
|
391
390
|
- lib/marv/project.rb
|
392
391
|
- lib/marv/version.rb
|
393
|
-
- marv-0.2.
|
392
|
+
- marv-0.2.3.gem
|
394
393
|
- marv.gemspec
|
395
394
|
- spec/lib/marv/config_spec.rb
|
396
395
|
- spec/lib/marv/project_spec.rb
|
397
396
|
- spec/spec_helper.rb
|
398
|
-
homepage:
|
397
|
+
homepage: http://hardpixel.github.io/marv
|
399
398
|
licenses:
|
400
399
|
- MIT
|
401
400
|
post_install_message:
|
data/.document
DELETED
data/.gitmodules
DELETED