forge 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 0.1.2 ==
2
+ - build and package commands were not copying includes
3
+ - Removing hidden files from includes folder, if they exist
4
+ - Updating rack gem - silences the warning it threw in 1.3.4
5
+
1
6
  == 0.1.1 ==
2
7
  - LiveReload support
3
8
  - Option for "template" in config, for child themes
data/Gemfile CHANGED
@@ -11,7 +11,7 @@ gem "json", "~> 1.6.1"
11
11
  gem "sass", "~> 3.1.8"
12
12
  gem "sprockets-sass", "~> 0.3.0"
13
13
  gem "compass", "~> 0.11.5"
14
- gem 'rack', '1.3.3'
14
+ gem 'rack', '~> 1.3.5'
15
15
  gem "guard-livereload", "~> 0.3.1"
16
16
 
17
17
  # Add dependencies to develop your gem here.
@@ -47,7 +47,7 @@ GEM
47
47
  rake
48
48
  json (1.6.1)
49
49
  multi_json (1.0.3)
50
- rack (1.3.3)
50
+ rack (1.3.5)
51
51
  rake (0.9.2)
52
52
  rcov (0.9.10)
53
53
  rdiscount (1.6.8)
@@ -83,7 +83,7 @@ DEPENDENCIES
83
83
  guard-livereload (~> 0.3.1)
84
84
  jeweler (~> 1.6.4)
85
85
  json (~> 1.6.1)
86
- rack (= 1.3.3)
86
+ rack (~> 1.3.5)
87
87
  rcov
88
88
  rspec
89
89
  rubyzip (~> 0.9.4)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "forge"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
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-21"
12
+ s.date = "2011-10-27"
13
13
  s.description = "A toolkit for bootstrapping and developing WordPress themes."
14
14
  s.email = "aadams@jestro.com"
15
15
  s.executables = ["forge"]
@@ -94,7 +94,7 @@ Gem::Specification.new do |s|
94
94
  s.add_runtime_dependency(%q<sass>, ["~> 3.1.8"])
95
95
  s.add_runtime_dependency(%q<sprockets-sass>, ["~> 0.3.0"])
96
96
  s.add_runtime_dependency(%q<compass>, ["~> 0.11.5"])
97
- s.add_runtime_dependency(%q<rack>, ["= 1.3.3"])
97
+ s.add_runtime_dependency(%q<rack>, ["~> 1.3.5"])
98
98
  s.add_runtime_dependency(%q<guard-livereload>, ["~> 0.3.1"])
99
99
  s.add_development_dependency(%q<rspec>, [">= 0"])
100
100
  s.add_development_dependency(%q<cucumber>, [">= 0"])
@@ -111,7 +111,7 @@ Gem::Specification.new do |s|
111
111
  s.add_dependency(%q<sass>, ["~> 3.1.8"])
112
112
  s.add_dependency(%q<sprockets-sass>, ["~> 0.3.0"])
113
113
  s.add_dependency(%q<compass>, ["~> 0.11.5"])
114
- s.add_dependency(%q<rack>, ["= 1.3.3"])
114
+ s.add_dependency(%q<rack>, ["~> 1.3.5"])
115
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"])
@@ -129,7 +129,7 @@ Gem::Specification.new do |s|
129
129
  s.add_dependency(%q<sass>, ["~> 3.1.8"])
130
130
  s.add_dependency(%q<sprockets-sass>, ["~> 0.3.0"])
131
131
  s.add_dependency(%q<compass>, ["~> 0.11.5"])
132
- s.add_dependency(%q<rack>, ["= 1.3.3"])
132
+ s.add_dependency(%q<rack>, ["~> 1.3.5"])
133
133
  s.add_dependency(%q<guard-livereload>, ["~> 0.3.1"])
134
134
  s.add_dependency(%q<rspec>, [">= 0"])
135
135
  s.add_dependency(%q<cucumber>, [">= 0"])
@@ -23,6 +23,7 @@ module Forge
23
23
  clean_build_directory
24
24
  copy_templates
25
25
  copy_functions
26
+ copy_includes
26
27
  build_assets
27
28
  end
28
29
 
@@ -89,7 +90,19 @@ module Forge
89
90
 
90
91
  def copy_includes
91
92
  unless Dir.glob(File.join(@includes_path, '*')).empty?
92
- FileUtils.cp_r @includes_path, @project.build_path
93
+ # Iterate over all files in source/includes, so we can exclude if necessary
94
+ paths = Dir.glob(File.join(@includes_path, '**', '*'))
95
+ paths.each do |path|
96
+ # Skip over hidden files and folders (.git, .svn, etc)
97
+ continue if File.basename(path)[0] == '.'
98
+
99
+ # Remove @includes_path from full file path to get the relative path
100
+ relative_path = path.gsub(@includes_path, '')
101
+ destination = File.join(@project.build_path, 'includes', relative_path)
102
+
103
+ FileUtils.mkdir_p(destination) if File.directory?(path)
104
+ FileUtils.cp path, destination unless File.directory?(path)
105
+ end
93
106
  end
94
107
  end
95
108
 
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.1.1
4
+ version: 0.1.2
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-21 00:00:00.000000000 Z
14
+ date: 2011-10-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
18
- requirement: &2156012580 !ruby/object:Gem::Requirement
18
+ requirement: &2152733420 !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: *2156012580
26
+ version_requirements: *2152733420
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: guard
29
- requirement: &2156011940 !ruby/object:Gem::Requirement
29
+ requirement: &2152732920 !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: *2156011940
37
+ version_requirements: *2152732920
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: sprockets
40
- requirement: &2156011360 !ruby/object:Gem::Requirement
40
+ requirement: &2152732240 !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: *2156011360
48
+ version_requirements: *2152732240
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rubyzip
51
- requirement: &2156010820 !ruby/object:Gem::Requirement
51
+ requirement: &2152731620 !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: *2156010820
59
+ version_requirements: *2152731620
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: json
62
- requirement: &2156010140 !ruby/object:Gem::Requirement
62
+ requirement: &2152730840 !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: *2156010140
70
+ version_requirements: *2152730840
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: sass
73
- requirement: &2156009480 !ruby/object:Gem::Requirement
73
+ requirement: &2152729920 !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: *2156009480
81
+ version_requirements: *2152729920
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: sprockets-sass
84
- requirement: &2156008880 !ruby/object:Gem::Requirement
84
+ requirement: &2152729400 !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: *2156008880
92
+ version_requirements: *2152729400
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: compass
95
- requirement: &2156008300 !ruby/object:Gem::Requirement
95
+ requirement: &2152728920 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ~>
@@ -100,21 +100,21 @@ dependencies:
100
100
  version: 0.11.5
101
101
  type: :runtime
102
102
  prerelease: false
103
- version_requirements: *2156008300
103
+ version_requirements: *2152728920
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rack
106
- requirement: &2156007700 !ruby/object:Gem::Requirement
106
+ requirement: &2152728140 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
- - - =
109
+ - - ~>
110
110
  - !ruby/object:Gem::Version
111
- version: 1.3.3
111
+ version: 1.3.5
112
112
  type: :runtime
113
113
  prerelease: false
114
- version_requirements: *2156007700
114
+ version_requirements: *2152728140
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: guard-livereload
117
- requirement: &2156006880 !ruby/object:Gem::Requirement
117
+ requirement: &2152727480 !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: *2156006880
125
+ version_requirements: *2152727480
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rspec
128
- requirement: &2156006160 !ruby/object:Gem::Requirement
128
+ requirement: &2152726820 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: '0'
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *2156006160
136
+ version_requirements: *2152726820
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: cucumber
139
- requirement: &2156005360 !ruby/object:Gem::Requirement
139
+ requirement: &2152726040 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ! '>='
@@ -144,10 +144,10 @@ dependencies:
144
144
  version: '0'
145
145
  type: :development
146
146
  prerelease: false
147
- version_requirements: *2156005360
147
+ version_requirements: *2152726040
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: aruba
150
- requirement: &2156004240 !ruby/object:Gem::Requirement
150
+ requirement: &2152725340 !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
153
153
  - - ! '>='
@@ -155,10 +155,10 @@ dependencies:
155
155
  version: '0'
156
156
  type: :development
157
157
  prerelease: false
158
- version_requirements: *2156004240
158
+ version_requirements: *2152725340
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: bundler
161
- requirement: &2156003640 !ruby/object:Gem::Requirement
161
+ requirement: &2152724860 !ruby/object:Gem::Requirement
162
162
  none: false
163
163
  requirements:
164
164
  - - ~>
@@ -166,10 +166,10 @@ dependencies:
166
166
  version: 1.0.0
167
167
  type: :development
168
168
  prerelease: false
169
- version_requirements: *2156003640
169
+ version_requirements: *2152724860
170
170
  - !ruby/object:Gem::Dependency
171
171
  name: jeweler
172
- requirement: &2155985080 !ruby/object:Gem::Requirement
172
+ requirement: &2152724320 !ruby/object:Gem::Requirement
173
173
  none: false
174
174
  requirements:
175
175
  - - ~>
@@ -177,10 +177,10 @@ dependencies:
177
177
  version: 1.6.4
178
178
  type: :development
179
179
  prerelease: false
180
- version_requirements: *2155985080
180
+ version_requirements: *2152724320
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rcov
183
- requirement: &2155984220 !ruby/object:Gem::Requirement
183
+ requirement: &2152723620 !ruby/object:Gem::Requirement
184
184
  none: false
185
185
  requirements:
186
186
  - - ! '>='
@@ -188,7 +188,7 @@ dependencies:
188
188
  version: '0'
189
189
  type: :development
190
190
  prerelease: false
191
- version_requirements: *2155984220
191
+ version_requirements: *2152723620
192
192
  description: A toolkit for bootstrapping and developing WordPress themes.
193
193
  email: aadams@jestro.com
194
194
  executables: