forge 0.0.2 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ == 0.1.1 ==
2
+ - LiveReload support
3
+ - Option for "template" in config, for child themes
4
+ - Additions and corrections to config template
data/Gemfile CHANGED
@@ -12,6 +12,7 @@ gem "sass", "~> 3.1.8"
12
12
  gem "sprockets-sass", "~> 0.3.0"
13
13
  gem "compass", "~> 0.11.5"
14
14
  gem 'rack', '1.3.3'
15
+ gem "guard-livereload", "~> 0.3.1"
15
16
 
16
17
  # Add dependencies to develop your gem here.
17
18
  # Include everything needed to run rake, tests, features, etc.
@@ -1,6 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ addressable (2.2.6)
4
5
  aruba (0.4.6)
5
6
  bcat (>= 0.6.1)
6
7
  childprocess (>= 0.2.0)
@@ -24,6 +25,10 @@ GEM
24
25
  json (>= 1.4.6)
25
26
  term-ansicolor (>= 1.0.6)
26
27
  diff-lcs (1.1.3)
28
+ em-websocket (0.3.1)
29
+ addressable (>= 2.1.1)
30
+ eventmachine (>= 0.12.9)
31
+ eventmachine (0.12.10)
27
32
  ffi (1.0.9)
28
33
  fssm (0.2.7)
29
34
  gherkin (2.5.1)
@@ -31,12 +36,17 @@ GEM
31
36
  git (1.2.5)
32
37
  guard (0.8.4)
33
38
  thor (~> 0.14.6)
39
+ guard-livereload (0.3.1)
40
+ em-websocket (>= 0.2.0)
41
+ guard (>= 0.4.0)
42
+ multi_json (~> 1.0.3)
34
43
  hike (1.2.1)
35
44
  jeweler (1.6.4)
36
45
  bundler (~> 1.0)
37
46
  git (>= 1.2.5)
38
47
  rake
39
48
  json (1.6.1)
49
+ multi_json (1.0.3)
40
50
  rack (1.3.3)
41
51
  rake (0.9.2)
42
52
  rcov (0.9.10)
@@ -54,7 +64,7 @@ GEM
54
64
  sprockets (2.0.2)
55
65
  hike (~> 1.2)
56
66
  rack (~> 1.0)
57
- tilt (!= 1.3.0, ~> 1.1)
67
+ tilt (~> 1.1, != 1.3.0)
58
68
  sprockets-sass (0.3.0)
59
69
  sprockets (~> 2.0)
60
70
  term-ansicolor (1.0.6)
@@ -70,6 +80,7 @@ DEPENDENCIES
70
80
  compass (~> 0.11.5)
71
81
  cucumber
72
82
  guard (~> 0.8.4)
83
+ guard-livereload (~> 0.3.1)
73
84
  jeweler (~> 1.6.4)
74
85
  json (~> 1.6.1)
75
86
  rack (= 1.3.3)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  -----
8
8
 
9
- Current Version: **0.0.2**
9
+ Current Version: **0.1.1**
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.0.2
1
+ 0.1.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "forge"
8
- s.version = "0.0.2"
8
+ s.version = "0.1.1"
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-10-07"
12
+ s.date = "2011-10-21"
13
13
  s.description = "A toolkit for bootstrapping and developing WordPress themes."
14
14
  s.email = "aadams@jestro.com"
15
15
  s.executables = ["forge"]
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  ".document",
22
22
  ".gitmodules",
23
23
  ".rspec",
24
+ "CHANGELOG.md",
24
25
  "Gemfile",
25
26
  "Gemfile.lock",
26
27
  "LICENSE",
@@ -28,8 +29,6 @@ Gem::Specification.new do |s|
28
29
  "Rakefile",
29
30
  "VERSION",
30
31
  "bin/forge",
31
- "features/create.feature",
32
- "features/link.feature",
33
32
  "features/step_definitions/forge_steps.rb",
34
33
  "features/support/env.rb",
35
34
  "forge.gemspec",
@@ -73,7 +72,6 @@ Gem::Specification.new do |s|
73
72
  "lib/guard/forge/config.rb",
74
73
  "lib/guard/forge/functions.rb",
75
74
  "lib/guard/forge/templates.rb",
76
- "pkg/forge-0.0.2.gem",
77
75
  "spec/lib/forge/config_spec.rb",
78
76
  "spec/lib/forge/project_spec.rb",
79
77
  "spec/spec_helper.rb"
@@ -97,6 +95,7 @@ Gem::Specification.new do |s|
97
95
  s.add_runtime_dependency(%q<sprockets-sass>, ["~> 0.3.0"])
98
96
  s.add_runtime_dependency(%q<compass>, ["~> 0.11.5"])
99
97
  s.add_runtime_dependency(%q<rack>, ["= 1.3.3"])
98
+ s.add_runtime_dependency(%q<guard-livereload>, ["~> 0.3.1"])
100
99
  s.add_development_dependency(%q<rspec>, [">= 0"])
101
100
  s.add_development_dependency(%q<cucumber>, [">= 0"])
102
101
  s.add_development_dependency(%q<aruba>, [">= 0"])
@@ -113,6 +112,7 @@ Gem::Specification.new do |s|
113
112
  s.add_dependency(%q<sprockets-sass>, ["~> 0.3.0"])
114
113
  s.add_dependency(%q<compass>, ["~> 0.11.5"])
115
114
  s.add_dependency(%q<rack>, ["= 1.3.3"])
115
+ s.add_dependency(%q<guard-livereload>, ["~> 0.3.1"])
116
116
  s.add_dependency(%q<rspec>, [">= 0"])
117
117
  s.add_dependency(%q<cucumber>, [">= 0"])
118
118
  s.add_dependency(%q<aruba>, [">= 0"])
@@ -130,6 +130,7 @@ Gem::Specification.new do |s|
130
130
  s.add_dependency(%q<sprockets-sass>, ["~> 0.3.0"])
131
131
  s.add_dependency(%q<compass>, ["~> 0.11.5"])
132
132
  s.add_dependency(%q<rack>, ["= 1.3.3"])
133
+ s.add_dependency(%q<guard-livereload>, ["~> 0.3.1"])
133
134
  s.add_dependency(%q<rspec>, [">= 0"])
134
135
  s.add_dependency(%q<cucumber>, [">= 0"])
135
136
  s.add_dependency(%q<aruba>, [">= 0"])
@@ -14,13 +14,13 @@
14
14
  // Description of the theme
15
15
  "description": "<%= config[:description] %>",
16
16
 
17
- // Description of the theme
17
+ // Version number of the theme
18
18
  "version_number": "<%= config[:version_number] %>",
19
19
 
20
- // Description of the theme
20
+ // Name of the theme license
21
21
  "license_name": "<%= config[:license_name] %>",
22
22
 
23
- // Description of the theme
23
+ // Website for the theme license
24
24
  "license_uri": "<%= config[:license_uri] %>",
25
25
 
26
26
  // Tags for this theme, as an array
@@ -29,5 +29,8 @@
29
29
  "tags": <%= config[:tags] ? config[:tags] : "[]" %>,
30
30
 
31
31
  // Additional comments (optional)
32
- "comments": "<%= config[:comments] %>"
32
+ "comments": "<%= config[:comments] %>",
33
+
34
+ // Enable livereload gem
35
+ "live_reload": false
33
36
  }
@@ -5,6 +5,9 @@
5
5
  * Author URI: <%= config["author_uri"] %>
6
6
  * Description: <%= config["description"] if config["description"] %>
7
7
  * Version: <%= config["version_number"] if config["version_number"] %>
8
+ <% if config["template"] -%>
9
+ * Template: <%= config["template"] %>
10
+ <% end -%>
8
11
  * License: <%= config["license_name"] if config["license_name"] %>
9
12
  * License URI: <%= config["license_uri"] if config["license_uri"] %>
10
13
  * Tags: <%= config["tags"].join(", ") if config["tags"] %>
@@ -46,6 +46,14 @@ module Forge
46
46
  end
47
47
  }
48
48
 
49
+ if @project.config['live_reload']
50
+ guardfile_contents << %Q{
51
+ guard 'livereload' do
52
+ watch(%r{#{source_path}/*})
53
+ end
54
+ }
55
+ end
56
+
49
57
  (@additional_guards || []).each do |block|
50
58
  result = block.call(options, livereload)
51
59
  guardfile_contents << result unless result.nil?
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.0.2
4
+ version: 0.1.1
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-10-07 00:00:00.000000000 Z
14
+ date: 2011-10-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
18
- requirement: &2152342800 !ruby/object:Gem::Requirement
18
+ requirement: &2156012580 !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: *2152342800
26
+ version_requirements: *2156012580
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: guard
29
- requirement: &2152341300 !ruby/object:Gem::Requirement
29
+ requirement: &2156011940 !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: *2152341300
37
+ version_requirements: *2156011940
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: sprockets
40
- requirement: &2152339320 !ruby/object:Gem::Requirement
40
+ requirement: &2156011360 !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: *2152339320
48
+ version_requirements: *2156011360
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rubyzip
51
- requirement: &2152338580 !ruby/object:Gem::Requirement
51
+ requirement: &2156010820 !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: *2152338580
59
+ version_requirements: *2156010820
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: json
62
- requirement: &2152337340 !ruby/object:Gem::Requirement
62
+ requirement: &2156010140 !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: *2152337340
70
+ version_requirements: *2156010140
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: sass
73
- requirement: &2152336200 !ruby/object:Gem::Requirement
73
+ requirement: &2156009480 !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: *2152336200
81
+ version_requirements: *2156009480
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: sprockets-sass
84
- requirement: &2152335320 !ruby/object:Gem::Requirement
84
+ requirement: &2156008880 !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: *2152335320
92
+ version_requirements: *2156008880
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: compass
95
- requirement: &2152334400 !ruby/object:Gem::Requirement
95
+ requirement: &2156008300 !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: *2152334400
103
+ version_requirements: *2156008300
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rack
106
- requirement: &2152333480 !ruby/object:Gem::Requirement
106
+ requirement: &2156007700 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - =
@@ -111,10 +111,21 @@ dependencies:
111
111
  version: 1.3.3
112
112
  type: :runtime
113
113
  prerelease: false
114
- version_requirements: *2152333480
114
+ version_requirements: *2156007700
115
+ - !ruby/object:Gem::Dependency
116
+ name: guard-livereload
117
+ requirement: &2156006880 !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ~>
121
+ - !ruby/object:Gem::Version
122
+ version: 0.3.1
123
+ type: :runtime
124
+ prerelease: false
125
+ version_requirements: *2156006880
115
126
  - !ruby/object:Gem::Dependency
116
127
  name: rspec
117
- requirement: &2152332700 !ruby/object:Gem::Requirement
128
+ requirement: &2156006160 !ruby/object:Gem::Requirement
118
129
  none: false
119
130
  requirements:
120
131
  - - ! '>='
@@ -122,10 +133,10 @@ dependencies:
122
133
  version: '0'
123
134
  type: :development
124
135
  prerelease: false
125
- version_requirements: *2152332700
136
+ version_requirements: *2156006160
126
137
  - !ruby/object:Gem::Dependency
127
138
  name: cucumber
128
- requirement: &2152332040 !ruby/object:Gem::Requirement
139
+ requirement: &2156005360 !ruby/object:Gem::Requirement
129
140
  none: false
130
141
  requirements:
131
142
  - - ! '>='
@@ -133,10 +144,10 @@ dependencies:
133
144
  version: '0'
134
145
  type: :development
135
146
  prerelease: false
136
- version_requirements: *2152332040
147
+ version_requirements: *2156005360
137
148
  - !ruby/object:Gem::Dependency
138
149
  name: aruba
139
- requirement: &2152330140 !ruby/object:Gem::Requirement
150
+ requirement: &2156004240 !ruby/object:Gem::Requirement
140
151
  none: false
141
152
  requirements:
142
153
  - - ! '>='
@@ -144,10 +155,10 @@ dependencies:
144
155
  version: '0'
145
156
  type: :development
146
157
  prerelease: false
147
- version_requirements: *2152330140
158
+ version_requirements: *2156004240
148
159
  - !ruby/object:Gem::Dependency
149
160
  name: bundler
150
- requirement: &2152329320 !ruby/object:Gem::Requirement
161
+ requirement: &2156003640 !ruby/object:Gem::Requirement
151
162
  none: false
152
163
  requirements:
153
164
  - - ~>
@@ -155,10 +166,10 @@ dependencies:
155
166
  version: 1.0.0
156
167
  type: :development
157
168
  prerelease: false
158
- version_requirements: *2152329320
169
+ version_requirements: *2156003640
159
170
  - !ruby/object:Gem::Dependency
160
171
  name: jeweler
161
- requirement: &2152328260 !ruby/object:Gem::Requirement
172
+ requirement: &2155985080 !ruby/object:Gem::Requirement
162
173
  none: false
163
174
  requirements:
164
175
  - - ~>
@@ -166,10 +177,10 @@ dependencies:
166
177
  version: 1.6.4
167
178
  type: :development
168
179
  prerelease: false
169
- version_requirements: *2152328260
180
+ version_requirements: *2155985080
170
181
  - !ruby/object:Gem::Dependency
171
182
  name: rcov
172
- requirement: &2152327260 !ruby/object:Gem::Requirement
183
+ requirement: &2155984220 !ruby/object:Gem::Requirement
173
184
  none: false
174
185
  requirements:
175
186
  - - ! '>='
@@ -177,7 +188,7 @@ dependencies:
177
188
  version: '0'
178
189
  type: :development
179
190
  prerelease: false
180
- version_requirements: *2152327260
191
+ version_requirements: *2155984220
181
192
  description: A toolkit for bootstrapping and developing WordPress themes.
182
193
  email: aadams@jestro.com
183
194
  executables:
@@ -190,6 +201,7 @@ files:
190
201
  - .document
191
202
  - .gitmodules
192
203
  - .rspec
204
+ - CHANGELOG.md
193
205
  - Gemfile
194
206
  - Gemfile.lock
195
207
  - LICENSE
@@ -197,8 +209,6 @@ files:
197
209
  - Rakefile
198
210
  - VERSION
199
211
  - bin/forge
200
- - features/create.feature
201
- - features/link.feature
202
212
  - features/step_definitions/forge_steps.rb
203
213
  - features/support/env.rb
204
214
  - forge.gemspec
@@ -242,7 +252,6 @@ files:
242
252
  - lib/guard/forge/config.rb
243
253
  - lib/guard/forge/functions.rb
244
254
  - lib/guard/forge/templates.rb
245
- - pkg/forge-0.0.2.gem
246
255
  - spec/lib/forge/config_spec.rb
247
256
  - spec/lib/forge/project_spec.rb
248
257
  - spec/spec_helper.rb
@@ -259,9 +268,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
259
268
  - - ! '>='
260
269
  - !ruby/object:Gem::Version
261
270
  version: '0'
262
- segments:
263
- - 0
264
- hash: -4281416040129770689
265
271
  required_rubygems_version: !ruby/object:Gem::Requirement
266
272
  none: false
267
273
  requirements:
@@ -1,34 +0,0 @@
1
- Feature: Initialize a new Forge project
2
-
3
- Scenario: Creating a brand new project with all arguments
4
- Given a WordPress installation exists at "wordpress"
5
- When I successfully run `forge create foo --wp_dir=wordpress --name=foo_theme --uri=http://www.footheme.com --author="Foo Man" --author_uri=http://www.fooman.com`
6
- Then the forge skeleton should be created in directory "foo"
7
- And the file "foo/config.json" should contain:
8
- | "name": "foo_theme" |
9
- | "uri": "http://www.footheme.com" |
10
- | "author": "Foo Man" |
11
- | "author_uri": "http://www.fooman.com" |
12
-
13
- Scenario: Creating a new project without any arguments
14
- Given a WordPress installation exists at "wordpress"
15
- When I run `forge create foo` interactively
16
- And I type "wordpress"
17
- Then the forge skeleton should be created in directory "foo"
18
- And the file "foo/config.json" should contain:
19
- | "name": "foo" |
20
-
21
- Scenario: Creating a new project with all prompts
22
- Given a WordPress installation exists at "wordpress"
23
- When I run `forge create foo -i` interactively
24
- And I type "foo_theme"
25
- And I type "http://www.footheme.com"
26
- And I type "Foo Man"
27
- And I type "http://www.fooman.com"
28
- And I type "wordpress"
29
- Then the forge skeleton should be created in directory "foo"
30
- And the file "foo/config.json" should contain:
31
- | "name": "foo_theme" |
32
- | "uri": "http://www.footheme.com" |
33
- | "author": "Foo Man" |
34
- | "author_uri": "http://www.fooman.com" |
@@ -1,14 +0,0 @@
1
- Feature: Symbolic link creation via the link command
2
-
3
- Scenario: Linking a project to a WordPress install
4
- Given a WordPress installation exists at "wordpress"
5
- And I am in a forge project named "awesome_theme"
6
- When I successfully run `forge link ../wordpress`
7
- Then a directory named "../wordpress/wp-content/themes/awesome_theme" should exist
8
-
9
- Scenario: Linking a project to a bogus directory
10
- Given I am in a forge project named "awesome_theme"
11
- When I run `forge link ../wordpress`
12
- Then the exit status should be 1
13
- And the output should contain "Sorry, we couldn't find a wordpress installation"
14
- And a directory named "../wordpress/wp-content/themes/awesome_theme" should not exist
Binary file