forge 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- == 0.2 ==
1
+ == 0.3.0 ==
2
+ - Changed configuration over to Ruby from JSON
3
+ - Fixed some bugs that caused forge watch to crash
4
+
5
+ == 0.2.0 ==
2
6
  - Added preliminary LESS support
3
7
  - Added ERB processing on templates, functions and assets with filenames that end with .erb
4
8
  - Adding --config=filename flag for specifying an alternate config file
data/Gemfile CHANGED
@@ -14,6 +14,8 @@ gem "compass", "~> 0.11.5"
14
14
  gem 'rack', '~> 1.3.5'
15
15
  gem "guard-livereload", "~> 0.3.1"
16
16
  gem "less", "~> 2.0.7"
17
+ gem "rb-fsevent", "~> 0.4.3.1"
18
+ gem "yui-compressor", "~> 0.9.6"
17
19
 
18
20
  # Add dependencies to develop your gem here.
19
21
  # Include everything needed to run rake, tests, features, etc.
@@ -24,4 +26,4 @@ group :development do
24
26
  gem "bundler", "~> 1.0.0"
25
27
  gem "jeweler", "~> 1.6.4"
26
28
  gem "rcov", ">= 0"
27
- end
29
+ end
data/Gemfile.lock CHANGED
@@ -1,6 +1,10 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ POpen4 (0.1.4)
5
+ Platform (>= 0.4.0)
6
+ open4
7
+ Platform (0.4.0)
4
8
  addressable (2.2.6)
5
9
  aruba (0.4.6)
6
10
  bcat (>= 0.6.1)
@@ -50,8 +54,10 @@ GEM
50
54
  therubyracer (~> 0.9.2)
51
55
  libv8 (3.3.10.2)
52
56
  multi_json (1.0.3)
57
+ open4 (1.2.0)
53
58
  rack (1.3.5)
54
59
  rake (0.9.2)
60
+ rb-fsevent (0.4.3.1)
55
61
  rcov (0.9.10)
56
62
  rdiscount (1.6.8)
57
63
  rspec (2.6.0)
@@ -75,6 +81,8 @@ GEM
75
81
  libv8 (~> 3.3.10)
76
82
  thor (0.14.6)
77
83
  tilt (1.3.3)
84
+ yui-compressor (0.9.6)
85
+ POpen4 (>= 0.1.4)
78
86
 
79
87
  PLATFORMS
80
88
  ruby
@@ -90,6 +98,7 @@ DEPENDENCIES
90
98
  json (~> 1.6.1)
91
99
  less (~> 2.0.7)
92
100
  rack (~> 1.3.5)
101
+ rb-fsevent (~> 0.4.3.1)
93
102
  rcov
94
103
  rspec
95
104
  rubyzip (~> 0.9.4)
@@ -97,3 +106,4 @@ DEPENDENCIES
97
106
  sprockets (~> 2.0.2)
98
107
  sprockets-sass (~> 0.3.0)
99
108
  thor (~> 0.14.6)
109
+ yui-compressor (~> 0.9.6)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  -----
8
8
 
9
- Current Version: **0.1.1**
9
+ Current Version: **0.3.0**
10
10
 
11
11
  Install Forge (requires [Ruby](http://www.ruby-lang.org/) and [RubyGems](http://rubygems.org/)):
12
12
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/forge.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "forge"
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andy Adams", "Drew Strojny", "Matt Button"]
12
- s.date = "2011-11-12"
12
+ s.date = "2011-12-09"
13
13
  s.description = "A toolkit for bootstrapping and developing WordPress themes."
14
14
  s.email = "aadams@jestro.com"
15
15
  s.executables = ["forge"]
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  "features/step_definitions/forge_steps.rb",
33
33
  "features/support/env.rb",
34
34
  "forge.gemspec",
35
- "layouts/config/config.json.erb",
35
+ "layouts/config/config.tt",
36
36
  "layouts/config/stylesheet_header.erb",
37
37
  "layouts/default/functions/functions.php.erb",
38
38
  "layouts/default/javascripts/admin.js",
@@ -91,6 +91,8 @@ Gem::Specification.new do |s|
91
91
  s.add_runtime_dependency(%q<rack>, ["~> 1.3.5"])
92
92
  s.add_runtime_dependency(%q<guard-livereload>, ["~> 0.3.1"])
93
93
  s.add_runtime_dependency(%q<less>, ["~> 2.0.7"])
94
+ s.add_runtime_dependency(%q<rb-fsevent>, ["~> 0.4.3.1"])
95
+ s.add_runtime_dependency(%q<yui-compressor>, ["~> 0.9.6"])
94
96
  s.add_development_dependency(%q<rspec>, [">= 0"])
95
97
  s.add_development_dependency(%q<cucumber>, [">= 0"])
96
98
  s.add_development_dependency(%q<aruba>, [">= 0"])
@@ -109,6 +111,8 @@ Gem::Specification.new do |s|
109
111
  s.add_dependency(%q<rack>, ["~> 1.3.5"])
110
112
  s.add_dependency(%q<guard-livereload>, ["~> 0.3.1"])
111
113
  s.add_dependency(%q<less>, ["~> 2.0.7"])
114
+ s.add_dependency(%q<rb-fsevent>, ["~> 0.4.3.1"])
115
+ s.add_dependency(%q<yui-compressor>, ["~> 0.9.6"])
112
116
  s.add_dependency(%q<rspec>, [">= 0"])
113
117
  s.add_dependency(%q<cucumber>, [">= 0"])
114
118
  s.add_dependency(%q<aruba>, [">= 0"])
@@ -128,6 +132,8 @@ Gem::Specification.new do |s|
128
132
  s.add_dependency(%q<rack>, ["~> 1.3.5"])
129
133
  s.add_dependency(%q<guard-livereload>, ["~> 0.3.1"])
130
134
  s.add_dependency(%q<less>, ["~> 2.0.7"])
135
+ s.add_dependency(%q<rb-fsevent>, ["~> 0.4.3.1"])
136
+ s.add_dependency(%q<yui-compressor>, ["~> 0.9.6"])
131
137
  s.add_dependency(%q<rspec>, [">= 0"])
132
138
  s.add_dependency(%q<cucumber>, [">= 0"])
133
139
  s.add_dependency(%q<aruba>, [">= 0"])
@@ -0,0 +1,47 @@
1
+ # The name of the theme
2
+ config[:name] = "<%= config[:name] %>"
3
+
4
+ # The website for the theme
5
+ config[:uri] = "<%= config[:uri] %>"
6
+
7
+ # The author's name
8
+ config[:author] = "<%= config[:author] %>"
9
+
10
+ # The author's website
11
+ config[:author_uri] = "<%= config[:author_uri] %>"
12
+
13
+ # Description of the theme
14
+ config[:description] = "<%= config[:description] %>"
15
+
16
+ # Version number of the theme
17
+ config[:version_number] = "<%= config[:version_number] %>"
18
+
19
+ # Name of the theme license
20
+ config[:license_name] = "<%= config[:license_name] %>"
21
+
22
+ # Website for the theme license
23
+ config[:license_uri] = "<%= config[:license_uri] %>"
24
+
25
+ # Tags for this theme, as an array (ex. ["blue", "white", "two-columns"])
26
+ config[:tags] = <%= config[:tags] ? config[:tags] : "[]" %>
27
+
28
+ # Additional comments (optional)
29
+ config[:comments] = "<%= config[:comments] %>"
30
+
31
+ # JavaScript compression
32
+ # config[:compress_js] = false
33
+
34
+ # Enable livereload
35
+ # config[:livereload] = false
36
+
37
+ # Compass configuration can also go here.
38
+ # See http://compass-style.org/help/tutorials/configuration-reference/ for some of the options
39
+ # Note: Most options (especially path-related options) will have no effect on Forge
40
+
41
+ # Compass.configuration do |compass|
42
+ # compass.line_comments = true
43
+ # compass.output_style = :expanded # use :compressed for minified version
44
+ # end
45
+
46
+ # You can also include additional Compass frameworks by requiring them:
47
+ # require 'stitch'
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Theme Name: <%= config["name"] %>
3
- * Theme URI: <%= config["uri"] %>
4
- * Author: <%= config["author"] %>
5
- * Author URI: <%= config["author_uri"] %>
6
- * Description: <%= config["description"] if config["description"] %>
7
- * Version: <%= config["version_number"] if config["version_number"] %>
8
- <% if config["template"] -%>
9
- * Template: <%= config["template"] %>
2
+ * Theme Name: <%= config[:name] %>
3
+ * Theme URI: <%= config[:uri] %>
4
+ * Author: <%= config[:author] %>
5
+ * Author URI: <%= config[:author_uri] %>
6
+ * Description: <%= config[:description] if config[:description] %>
7
+ * Version: <%= config[:version_number] if config[:version_number] %>
8
+ <% if config[:template] -%>
9
+ * Template: <%= config[:template] %>
10
10
  <% end -%>
11
- * License: <%= config["license_name"] if config["license_name"] %>
12
- * License URI: <%= config["license_uri"] if config["license_uri"] %>
13
- * Tags: <%= config["tags"].join(", ") if config["tags"] %>
14
- <% if config["comments"] -%>
11
+ * License: <%= config[:license_name] if config[:license_name] %>
12
+ * License URI: <%= config[:license_uri] if config[:license_uri] %>
13
+ * Tags: <%= config[:tags].join(", ") if config[:tags] %>
14
+ <%- unless config[:comments].nil? || config[:comments].empty? -%>
15
15
  *
16
- * <%= config["comments"] %>
17
- <% end -%>
16
+ * <%= config[:comments] %>
17
+ <%- end -%>
18
18
  */
data/lib/forge/builder.rb CHANGED
@@ -3,7 +3,6 @@ require 'sprockets-sass'
3
3
  require 'sass'
4
4
  require 'less'
5
5
  require 'zip/zip'
6
- require 'compass'
7
6
  require 'forge/engines'
8
7
 
9
8
  module Forge
@@ -141,15 +140,25 @@ module Forge
141
140
 
142
141
  sprocket = @sprockets.find_asset(asset.last)
143
142
 
144
- sprockets_error = false
145
-
146
143
  # Catch any sprockets errors and continue the process
147
144
  begin
148
145
  @task.shell.mute do
149
146
  FileUtils.mkdir_p(File.dirname(destination)) unless File.directory?(File.dirname(destination))
150
147
  sprocket.write_to(destination) unless sprocket.nil?
151
148
 
152
- if asset.last == 'style.css' && (not sprockets_error)
149
+ if @project.config[:compress_js] && destination.end_with?('.js')
150
+ require "yui/compressor"
151
+
152
+ # Grab the initial sprockets output
153
+ sprockets_output = File.open(destination, 'r').read
154
+
155
+ # Re-write the file, minified
156
+ File.open(destination, 'w') do |file|
157
+ file.write(YUI::JavaScriptCompressor.new.compress(sprockets_output))
158
+ end
159
+ end
160
+
161
+ if asset.last == 'style.css'
153
162
  @task.prepend_file destination, @project.parse_erb(stylesheet_header)
154
163
  end
155
164
  end
@@ -167,7 +176,7 @@ module Forge
167
176
  end
168
177
 
169
178
  # Copy the images directory over
170
- FileUtils.cp_r(File.join(@assets_path, 'images'), @project.build_path)
179
+ FileUtils.cp_r(File.join(@assets_path, 'images'), @project.build_path) if File.exists?(File.join(@assets_path, 'images'))
171
180
 
172
181
  # Check for screenshot and move it into main build directory
173
182
  Dir.glob(File.join(@project.build_path, 'images', '*')).each do |filename|
@@ -180,10 +189,6 @@ module Forge
180
189
  private
181
190
 
182
191
  def init_sprockets
183
- Compass.configuration do |compass|
184
- compass.line_comments = false
185
- end
186
-
187
192
  @sprockets = Sprockets::Environment.new
188
193
 
189
194
  ['javascripts', 'stylesheets'].each do |dir|
@@ -88,7 +88,15 @@ module Forge
88
88
  end
89
89
 
90
90
  def write_config
91
- write_template(['config', 'config.json.erb'], @project.config_file)
91
+ unless File.exists?(@project.global_config_file)
92
+ @task.shell.mute do
93
+ @task.create_file(@project.global_config_file) do
94
+ "# Place your global configuration values here\n# config[:livereload] = true"
95
+ end
96
+ end
97
+ end
98
+
99
+ write_template(['config', 'config.tt'], @project.config_file)
92
100
 
93
101
  self
94
102
  end
data/lib/forge/guard.rb CHANGED
@@ -46,7 +46,7 @@ module Forge
46
46
  end
47
47
  }
48
48
 
49
- if @project.config['live_reload']
49
+ if @project.config[:livereload]
50
50
  guardfile_contents << %Q{
51
51
  guard 'livereload' do
52
52
  watch(%r{#{source_path}/*})
data/lib/forge/project.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'pathname'
2
- require 'json'
2
+ require 'compass'
3
3
 
4
4
  module Forge
5
5
  class Project
@@ -54,7 +54,11 @@ module Forge
54
54
  end
55
55
 
56
56
  def config_file
57
- @config_file ||= File.join(self.root, 'config.json')
57
+ @config_file ||= File.join(self.root, 'config.rb')
58
+ end
59
+
60
+ def global_config_file
61
+ @global_config_file ||= File.join(ENV['HOME'], '.forge', 'config.rb')
58
62
  end
59
63
 
60
64
  # Create a symlink from source to the project build dir
@@ -73,12 +77,27 @@ module Forge
73
77
  end
74
78
 
75
79
  def load_config
76
- unless File.exists?(self.config_file)
77
- raise Error, "Could not find the config file, are you sure you're in a
78
- forge project directory?"
80
+ config = {}
81
+
82
+ # Check for global (user) config.rb
83
+ if File.exists?(self.global_config_file)
84
+ config.merge!(load_ruby_config(self.global_config_file))
85
+ end
86
+
87
+ # Check for config.rb
88
+ if File.exists?(self.config_file)
89
+ config.merge!(load_ruby_config(self.config_file))
90
+ else
91
+ # Old format of config file
92
+ if File.exists?(File.join(self.root, 'config.json'))
93
+ config.merge!(convert_old_config)
94
+ else
95
+ raise Error, "Could not find the config file, are you sure you're in a
96
+ forge project directory?"
97
+ end
79
98
  end
80
99
 
81
- self.config = JSON.parse File.open(config_file).read
100
+ @config = config
82
101
  end
83
102
 
84
103
  def get_binding
@@ -88,5 +107,52 @@ module Forge
88
107
  def parse_erb(file)
89
108
  ERB.new(::File.binread(file), nil, '-', '@output_buffer').result(binding)
90
109
  end
110
+
111
+ private
112
+
113
+ def convert_old_config
114
+ require 'json'
115
+
116
+ # Let the user know what is going to happen
117
+ @task.say("It looks like you are using the old JSON-format config. Forge will now try converting your config to the new Ruby format.")
118
+ @task.ask(" Press any key to continue...")
119
+
120
+ begin
121
+ old_file_name = File.join(self.root, 'config.json')
122
+ # Parse the old config format, convert keys to symbols
123
+ @config = JSON.parse(File.open(old_file_name).read).inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
124
+
125
+ @task.create_file(@config_file) do
126
+ # Find the config.tt template, and parse it using ERB
127
+ config_template_path = @task.find_in_source_paths(File.join(['config', 'config.tt']))
128
+ parse_erb(File.expand_path(config_template_path))
129
+ end
130
+ rescue Exception => e
131
+ @task.say "Error while building new config file:", Thor::Shell::Color::RED
132
+ @task.say e.message, Thor::Shell::Color::RED
133
+ @task.say "You'll need to either fix the error and try again, or manually convert your config.json file to Ruby format (config.rb)"
134
+ exit
135
+ end
136
+
137
+ @task.say "Success! Double-check that all your config values were moved over, and you can now delete config.json.", Thor::Shell::Color::GREEN
138
+
139
+ # We now have a Ruby config file, so we can continue loading as normal
140
+ return load_ruby_config(self.config_file)
141
+ end
142
+
143
+ def load_ruby_config(file)
144
+ config = {}
145
+
146
+ begin
147
+ # Config file is just executed as straight ruby
148
+ eval(File.read(file))
149
+ rescue Exception => e
150
+ @task.say "Error while evaluating config file:"
151
+ @task.say e.message, Thor::Shell::Color::RED
152
+ end
153
+
154
+ return config
155
+ end
156
+
91
157
  end
92
158
  end
@@ -26,6 +26,9 @@ module Guard
26
26
  def run_on_change(paths)
27
27
  UI.info "Project config changed, reloading"
28
28
  ::Forge::Guard.project.load_config
29
+ ::Forge::Guard.builder = ::Forge::Builder.new(::Forge::Guard.project)
30
+ # Rebuild everything if the config changes
31
+ ::Forge::Guard.builder.build
29
32
  end
30
33
  end
31
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-11-12 00:00:00.000000000 Z
14
+ date: 2011-12-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
18
- requirement: &2156553020 !ruby/object:Gem::Requirement
18
+ requirement: &2153364900 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 0.14.6
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2156553020
26
+ version_requirements: *2153364900
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: guard
29
- requirement: &2156552520 !ruby/object:Gem::Requirement
29
+ requirement: &2153364420 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.8.4
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2156552520
37
+ version_requirements: *2153364420
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: sprockets
40
- requirement: &2156552040 !ruby/object:Gem::Requirement
40
+ requirement: &2153363940 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 2.0.2
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *2156552040
48
+ version_requirements: *2153363940
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rubyzip
51
- requirement: &2156551540 !ruby/object:Gem::Requirement
51
+ requirement: &2153363360 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ~>
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 0.9.4
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *2156551540
59
+ version_requirements: *2153363360
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: json
62
- requirement: &2156551000 !ruby/object:Gem::Requirement
62
+ requirement: &2153362840 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ~>
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 1.6.1
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *2156551000
70
+ version_requirements: *2153362840
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: sass
73
- requirement: &2156550500 !ruby/object:Gem::Requirement
73
+ requirement: &2153362260 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ~>
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: 3.1.8
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *2156550500
81
+ version_requirements: *2153362260
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: sprockets-sass
84
- requirement: &2156531840 !ruby/object:Gem::Requirement
84
+ requirement: &2153361620 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ~>
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: 0.3.0
90
90
  type: :runtime
91
91
  prerelease: false
92
- version_requirements: *2156531840
92
+ version_requirements: *2153361620
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: compass
95
- requirement: &2156531300 !ruby/object:Gem::Requirement
95
+ requirement: &2153360880 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ~>
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: 0.11.5
101
101
  type: :runtime
102
102
  prerelease: false
103
- version_requirements: *2156531300
103
+ version_requirements: *2153360880
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rack
106
- requirement: &2156530740 !ruby/object:Gem::Requirement
106
+ requirement: &2153359980 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ~>
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: 1.3.5
112
112
  type: :runtime
113
113
  prerelease: false
114
- version_requirements: *2156530740
114
+ version_requirements: *2153359980
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: guard-livereload
117
- requirement: &2156530260 !ruby/object:Gem::Requirement
117
+ requirement: &2153358720 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ~>
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: 0.3.1
123
123
  type: :runtime
124
124
  prerelease: false
125
- version_requirements: *2156530260
125
+ version_requirements: *2153358720
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: less
128
- requirement: &2156529780 !ruby/object:Gem::Requirement
128
+ requirement: &2153357400 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ~>
@@ -133,10 +133,32 @@ dependencies:
133
133
  version: 2.0.7
134
134
  type: :runtime
135
135
  prerelease: false
136
- version_requirements: *2156529780
136
+ version_requirements: *2153357400
137
+ - !ruby/object:Gem::Dependency
138
+ name: rb-fsevent
139
+ requirement: &2153356400 !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ~>
143
+ - !ruby/object:Gem::Version
144
+ version: 0.4.3.1
145
+ type: :runtime
146
+ prerelease: false
147
+ version_requirements: *2153356400
148
+ - !ruby/object:Gem::Dependency
149
+ name: yui-compressor
150
+ requirement: &2153355300 !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ~>
154
+ - !ruby/object:Gem::Version
155
+ version: 0.9.6
156
+ type: :runtime
157
+ prerelease: false
158
+ version_requirements: *2153355300
137
159
  - !ruby/object:Gem::Dependency
138
160
  name: rspec
139
- requirement: &2156529280 !ruby/object:Gem::Requirement
161
+ requirement: &2153354600 !ruby/object:Gem::Requirement
140
162
  none: false
141
163
  requirements:
142
164
  - - ! '>='
@@ -144,10 +166,10 @@ dependencies:
144
166
  version: '0'
145
167
  type: :development
146
168
  prerelease: false
147
- version_requirements: *2156529280
169
+ version_requirements: *2153354600
148
170
  - !ruby/object:Gem::Dependency
149
171
  name: cucumber
150
- requirement: &2156528800 !ruby/object:Gem::Requirement
172
+ requirement: &2153353760 !ruby/object:Gem::Requirement
151
173
  none: false
152
174
  requirements:
153
175
  - - ! '>='
@@ -155,10 +177,10 @@ dependencies:
155
177
  version: '0'
156
178
  type: :development
157
179
  prerelease: false
158
- version_requirements: *2156528800
180
+ version_requirements: *2153353760
159
181
  - !ruby/object:Gem::Dependency
160
182
  name: aruba
161
- requirement: &2156528320 !ruby/object:Gem::Requirement
183
+ requirement: &2153352880 !ruby/object:Gem::Requirement
162
184
  none: false
163
185
  requirements:
164
186
  - - ! '>='
@@ -166,10 +188,10 @@ dependencies:
166
188
  version: '0'
167
189
  type: :development
168
190
  prerelease: false
169
- version_requirements: *2156528320
191
+ version_requirements: *2153352880
170
192
  - !ruby/object:Gem::Dependency
171
193
  name: bundler
172
- requirement: &2156527780 !ruby/object:Gem::Requirement
194
+ requirement: &2153352080 !ruby/object:Gem::Requirement
173
195
  none: false
174
196
  requirements:
175
197
  - - ~>
@@ -177,10 +199,10 @@ dependencies:
177
199
  version: 1.0.0
178
200
  type: :development
179
201
  prerelease: false
180
- version_requirements: *2156527780
202
+ version_requirements: *2153352080
181
203
  - !ruby/object:Gem::Dependency
182
204
  name: jeweler
183
- requirement: &2156527240 !ruby/object:Gem::Requirement
205
+ requirement: &2153351300 !ruby/object:Gem::Requirement
184
206
  none: false
185
207
  requirements:
186
208
  - - ~>
@@ -188,10 +210,10 @@ dependencies:
188
210
  version: 1.6.4
189
211
  type: :development
190
212
  prerelease: false
191
- version_requirements: *2156527240
213
+ version_requirements: *2153351300
192
214
  - !ruby/object:Gem::Dependency
193
215
  name: rcov
194
- requirement: &2156526640 !ruby/object:Gem::Requirement
216
+ requirement: &2153350460 !ruby/object:Gem::Requirement
195
217
  none: false
196
218
  requirements:
197
219
  - - ! '>='
@@ -199,7 +221,7 @@ dependencies:
199
221
  version: '0'
200
222
  type: :development
201
223
  prerelease: false
202
- version_requirements: *2156526640
224
+ version_requirements: *2153350460
203
225
  description: A toolkit for bootstrapping and developing WordPress themes.
204
226
  email: aadams@jestro.com
205
227
  executables:
@@ -223,7 +245,7 @@ files:
223
245
  - features/step_definitions/forge_steps.rb
224
246
  - features/support/env.rb
225
247
  - forge.gemspec
226
- - layouts/config/config.json.erb
248
+ - layouts/config/config.tt
227
249
  - layouts/config/stylesheet_header.erb
228
250
  - layouts/default/functions/functions.php.erb
229
251
  - layouts/default/javascripts/admin.js
@@ -1,36 +0,0 @@
1
- {
2
- // The name of the theme
3
- "name": "<%= config[:name] %>",
4
-
5
- // The website for the theme
6
- "uri": "<%= config[:uri] %>",
7
-
8
- // The author's name
9
- "author": "<%= config[:author] %>",
10
-
11
- // The author's website
12
- "author_uri": "<%= config[:author_uri] %>",
13
-
14
- // Description of the theme
15
- "description": "<%= config[:description] %>",
16
-
17
- // Version number of the theme
18
- "version_number": "<%= config[:version_number] %>",
19
-
20
- // Name of the theme license
21
- "license_name": "<%= config[:license_name] %>",
22
-
23
- // Website for the theme license
24
- "license_uri": "<%= config[:license_uri] %>",
25
-
26
- // Tags for this theme, as an array
27
- // For Example:
28
- // "tags": ["blue", "white", "two-columns"],
29
- "tags": <%= config[:tags] ? config[:tags] : "[]" %>,
30
-
31
- // Additional comments (optional)
32
- "comments": "<%= config[:comments] %>",
33
-
34
- // Enable livereload gem
35
- "live_reload": false
36
- }