forge 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  -----
8
8
 
9
- Current Version: **0.3.0**
9
+ Current Version: **0.5.0**
10
10
 
11
11
  Install Forge (requires [Ruby](http://www.ruby-lang.org/) and [RubyGems](http://rubygems.org/)):
12
12
 
@@ -42,4 +42,14 @@ Get a little help with the Forge commands:
42
42
 
43
43
  $ forge help
44
44
 
45
- See the [user's manual](http://forge.thethemefoundry.com/manual) for more information.
45
+ See the [user's manual](http://forge.thethemefoundry.com/manual) for more information.
46
+
47
+ -----
48
+
49
+ **Note for upgrading existing projects to 0.5.0:**
50
+
51
+ As of version 0.5.0, Forge no longer generates the header of your **style.css** file based on the values in `config.rb`.
52
+
53
+ Instead, you need to write your own header and include it in **style.css.scss** yourself to generate a valid theme stylesheet.
54
+
55
+ If you have any questions on migrating, open a new issue and we'll help you sort it out!
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.4
1
+ 0.5.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "forge"
8
- s.version = "0.4.4"
8
+ s.version = "0.5.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 = "2012-08-12"
12
+ s.date = "2012-10-02"
13
13
  s.description = "A toolkit for bootstrapping and developing WordPress themes."
14
14
  s.email = "aadams@jestro.com"
15
15
  s.executables = ["forge"]
@@ -33,10 +33,10 @@ Gem::Specification.new do |s|
33
33
  "features/support/env.rb",
34
34
  "forge.gemspec",
35
35
  "layouts/config/config.tt",
36
- "layouts/config/stylesheet_header.erb",
37
36
  "layouts/default/functions/functions.php.erb",
38
37
  "layouts/default/javascripts/admin.js",
39
38
  "layouts/default/javascripts/theme.js",
39
+ "layouts/default/stylesheets/_header.scss.erb",
40
40
  "layouts/default/stylesheets/_reset.scss",
41
41
  "layouts/default/stylesheets/_typography.scss",
42
42
  "layouts/default/stylesheets/style.css.scss.erb",
@@ -66,10 +66,6 @@ Gem::Specification.new do |s|
66
66
  "lib/guard/forge/config.rb",
67
67
  "lib/guard/forge/functions.rb",
68
68
  "lib/guard/forge/templates.rb",
69
- "pkg/forge-0.4.0.gem",
70
- "pkg/forge-0.4.1.gem",
71
- "pkg/forge-0.4.2.gem",
72
- "pkg/forge-0.4.3.gem",
73
69
  "spec/lib/forge/config_spec.rb",
74
70
  "spec/lib/forge/project_spec.rb",
75
71
  "spec/spec_helper.rb"
@@ -1,32 +1,4 @@
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] %>"
1
+ # WordPress theme information is stored in source/assets/stylesheets/_header.scss as of Forge version 0.5
30
2
 
31
3
  # JavaScript compression
32
4
  # config[:compress_js] = false
@@ -1,3 +1,6 @@
1
+ // WordPress theme header
2
+ @import "header";
3
+
1
4
  // This is your master stylesheet
2
5
 
3
6
  // Use SASS to include CSS partials
@@ -165,10 +165,6 @@ module Forge
165
165
  file.write(YUI::JavaScriptCompressor.new.compress(sprockets_output))
166
166
  end
167
167
  end
168
-
169
- if asset.last == 'style.css'
170
- @task.prepend_file destination, @project.parse_erb(stylesheet_header)
171
- end
172
168
  end
173
169
  rescue Exception => e
174
170
  @task.say "Error while building #{asset.last}:"
@@ -256,12 +252,6 @@ module Forge
256
252
  end
257
253
 
258
254
  protected
259
- def stylesheet_header
260
- return @stylesheet_header unless @stylesheet_header.nil?
261
-
262
- file = @task.find_in_source_paths(File.join('config', 'stylesheet_header.erb'))
263
- @stylesheet_header = File.expand_path(file)
264
- end
265
255
 
266
256
  # Write an .erb from source to destination, catching and reporting errors along the way
267
257
  def write_erb(source, destination)
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.4.4
4
+ version: 0.5.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: 2012-08-12 00:00:00.000000000 Z
14
+ date: 2012-10-02 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
18
- requirement: &70206555867540 !ruby/object:Gem::Requirement
18
+ requirement: &70272598662640 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 0.15.4
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70206555867540
26
+ version_requirements: *70272598662640
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: guard
29
- requirement: &70206556005080 !ruby/object:Gem::Requirement
29
+ requirement: &70272598766300 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.3.0
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70206556005080
37
+ version_requirements: *70272598766300
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: sprockets
40
- requirement: &70206556003940 !ruby/object:Gem::Requirement
40
+ requirement: &70272598810900 !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: *70206556003940
48
+ version_requirements: *70272598810900
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rubyzip
51
- requirement: &70206556002740 !ruby/object:Gem::Requirement
51
+ requirement: &70272598810340 !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: *70206556002740
59
+ version_requirements: *70272598810340
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: json
62
- requirement: &70206556002100 !ruby/object:Gem::Requirement
62
+ requirement: &70272598809580 !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: *70206556002100
70
+ version_requirements: *70272598809580
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: sass
73
- requirement: &70206556001560 !ruby/object:Gem::Requirement
73
+ requirement: &70272598809100 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ~>
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: 3.2.0
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *70206556001560
81
+ version_requirements: *70272598809100
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: sprockets-sass
84
- requirement: &70206556000940 !ruby/object:Gem::Requirement
84
+ requirement: &70272598808620 !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: *70206556000940
92
+ version_requirements: *70272598808620
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: compass
95
- requirement: &70206556000380 !ruby/object:Gem::Requirement
95
+ requirement: &70272598808080 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ~>
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: 0.12.2
101
101
  type: :runtime
102
102
  prerelease: false
103
- version_requirements: *70206556000380
103
+ version_requirements: *70272598808080
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rack
106
- requirement: &70206555999880 !ruby/object:Gem::Requirement
106
+ requirement: &70272598807320 !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: *70206555999880
114
+ version_requirements: *70272598807320
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: guard-livereload
117
- requirement: &70206555999220 !ruby/object:Gem::Requirement
117
+ requirement: &70272598806440 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ~>
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: 1.0.0
123
123
  type: :runtime
124
124
  prerelease: false
125
- version_requirements: *70206555999220
125
+ version_requirements: *70272598806440
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: less
128
- requirement: &70206555998720 !ruby/object:Gem::Requirement
128
+ requirement: &70272598805820 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ~>
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: 2.0.7
134
134
  type: :runtime
135
135
  prerelease: false
136
- version_requirements: *70206555998720
136
+ version_requirements: *70272598805820
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: rb-fsevent
139
- requirement: &70206555998180 !ruby/object:Gem::Requirement
139
+ requirement: &70272598804800 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ~>
@@ -144,10 +144,10 @@ dependencies:
144
144
  version: 0.9.1
145
145
  type: :runtime
146
146
  prerelease: false
147
- version_requirements: *70206555998180
147
+ version_requirements: *70272598804800
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: yui-compressor
150
- requirement: &70206556072240 !ruby/object:Gem::Requirement
150
+ requirement: &70272598803760 !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
153
153
  - - ~>
@@ -155,10 +155,10 @@ dependencies:
155
155
  version: 0.9.6
156
156
  type: :runtime
157
157
  prerelease: false
158
- version_requirements: *70206556072240
158
+ version_requirements: *70272598803760
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: rspec
161
- requirement: &70206556071480 !ruby/object:Gem::Requirement
161
+ requirement: &70272598803140 !ruby/object:Gem::Requirement
162
162
  none: false
163
163
  requirements:
164
164
  - - ! '>='
@@ -166,10 +166,10 @@ dependencies:
166
166
  version: '0'
167
167
  type: :development
168
168
  prerelease: false
169
- version_requirements: *70206556071480
169
+ version_requirements: *70272598803140
170
170
  - !ruby/object:Gem::Dependency
171
171
  name: cucumber
172
- requirement: &70206556070760 !ruby/object:Gem::Requirement
172
+ requirement: &70272598802480 !ruby/object:Gem::Requirement
173
173
  none: false
174
174
  requirements:
175
175
  - - ! '>='
@@ -177,10 +177,10 @@ dependencies:
177
177
  version: '0'
178
178
  type: :development
179
179
  prerelease: false
180
- version_requirements: *70206556070760
180
+ version_requirements: *70272598802480
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: aruba
183
- requirement: &70206556070040 !ruby/object:Gem::Requirement
183
+ requirement: &70272598801780 !ruby/object:Gem::Requirement
184
184
  none: false
185
185
  requirements:
186
186
  - - ! '>='
@@ -188,10 +188,10 @@ dependencies:
188
188
  version: '0'
189
189
  type: :development
190
190
  prerelease: false
191
- version_requirements: *70206556070040
191
+ version_requirements: *70272598801780
192
192
  - !ruby/object:Gem::Dependency
193
193
  name: bundler
194
- requirement: &70206556069040 !ruby/object:Gem::Requirement
194
+ requirement: &70272598801060 !ruby/object:Gem::Requirement
195
195
  none: false
196
196
  requirements:
197
197
  - - ~>
@@ -199,10 +199,10 @@ dependencies:
199
199
  version: 1.0.0
200
200
  type: :development
201
201
  prerelease: false
202
- version_requirements: *70206556069040
202
+ version_requirements: *70272598801060
203
203
  - !ruby/object:Gem::Dependency
204
204
  name: jeweler
205
- requirement: &70206556067360 !ruby/object:Gem::Requirement
205
+ requirement: &70272598800580 !ruby/object:Gem::Requirement
206
206
  none: false
207
207
  requirements:
208
208
  - - ~>
@@ -210,7 +210,7 @@ dependencies:
210
210
  version: 1.6.4
211
211
  type: :development
212
212
  prerelease: false
213
- version_requirements: *70206556067360
213
+ version_requirements: *70272598800580
214
214
  description: A toolkit for bootstrapping and developing WordPress themes.
215
215
  email: aadams@jestro.com
216
216
  executables:
@@ -235,10 +235,10 @@ files:
235
235
  - features/support/env.rb
236
236
  - forge.gemspec
237
237
  - layouts/config/config.tt
238
- - layouts/config/stylesheet_header.erb
239
238
  - layouts/default/functions/functions.php.erb
240
239
  - layouts/default/javascripts/admin.js
241
240
  - layouts/default/javascripts/theme.js
241
+ - layouts/default/stylesheets/_header.scss.erb
242
242
  - layouts/default/stylesheets/_reset.scss
243
243
  - layouts/default/stylesheets/_typography.scss
244
244
  - layouts/default/stylesheets/style.css.scss.erb
@@ -268,10 +268,6 @@ files:
268
268
  - lib/guard/forge/config.rb
269
269
  - lib/guard/forge/functions.rb
270
270
  - lib/guard/forge/templates.rb
271
- - pkg/forge-0.4.0.gem
272
- - pkg/forge-0.4.1.gem
273
- - pkg/forge-0.4.2.gem
274
- - pkg/forge-0.4.3.gem
275
271
  - spec/lib/forge/config_spec.rb
276
272
  - spec/lib/forge/project_spec.rb
277
273
  - spec/spec_helper.rb
@@ -288,9 +284,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
288
284
  - - ! '>='
289
285
  - !ruby/object:Gem::Version
290
286
  version: '0'
291
- segments:
292
- - 0
293
- hash: -4158602189199387329
294
287
  required_rubygems_version: !ruby/object:Gem::Requirement
295
288
  none: false
296
289
  requirements:
Binary file
Binary file
Binary file
Binary file