amiba 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/bin/amiba CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- mode: ruby -*-
3
3
  require 'rubygems'
4
-
5
4
  require 'amiba'
6
5
 
7
6
  $thor_runner = true
data/lib/amiba/site.rb CHANGED
@@ -38,6 +38,7 @@ module Amiba
38
38
  namespace :"site:upload:s3"
39
39
 
40
40
  class_option :credentials, :default => :default
41
+ class_option :target, :default => "site"
41
42
 
42
43
  def init_s3
43
44
  cf = File.expand_path(File.join(Dir.pwd, ".fog"))
@@ -79,7 +80,7 @@ module Amiba
79
80
 
80
81
  private
81
82
  def bucket
82
- Amiba::Configuration.site_name
83
+ Amiba::Configuration.send(:"#{options[:target]}_name")
83
84
  end
84
85
 
85
86
  def location
@@ -198,7 +199,7 @@ module Amiba
198
199
  Tilt.new(layout.staged_filename).render(Amiba::Scope.new(page))
199
200
  end
200
201
  rescue
201
- puts "Unable to process #{page.name}, skipping"
202
+ puts "Unable to process #{page.name}: #{$!}, skipping"
202
203
  end
203
204
  end
204
205
 
@@ -43,6 +43,9 @@ module Amiba
43
43
  Tilt.new(self.staged_filename).render(Amiba::Scope.new(self))
44
44
  end
45
45
 
46
+ def ref
47
+ "#{category.to_s.downcase.pluralize}_#{name}"
48
+ end
46
49
  end
47
50
  end
48
51
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amiba
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 6
10
- version: 0.0.6
5
+ version: 0.0.7
11
6
  platform: ruby
12
7
  authors:
13
8
  - Steven Mohapi-Banks
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-03-20 00:00:00 +00:00
13
+ date: 2011-05-23 00:00:00 +01:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,11 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ~>
28
23
  - !ruby/object:Gem::Version
29
- hash: 43
30
- segments:
31
- - 0
32
- - 14
33
- - 6
34
24
  version: 0.14.6
35
25
  type: :runtime
36
26
  version_requirements: *id001
@@ -42,11 +32,6 @@ dependencies:
42
32
  requirements:
43
33
  - - ~>
44
34
  - !ruby/object:Gem::Version
45
- hash: 29
46
- segments:
47
- - 1
48
- - 2
49
- - 1
50
35
  version: 1.2.1
51
36
  type: :runtime
52
37
  version_requirements: *id002
@@ -58,11 +43,6 @@ dependencies:
58
43
  requirements:
59
44
  - - ~>
60
45
  - !ruby/object:Gem::Version
61
- hash: 53
62
- segments:
63
- - 3
64
- - 0
65
- - 25
66
46
  version: 3.0.25
67
47
  type: :runtime
68
48
  version_requirements: *id003
@@ -74,11 +54,6 @@ dependencies:
74
54
  requirements:
75
55
  - - ~>
76
56
  - !ruby/object:Gem::Version
77
- hash: 15
78
- segments:
79
- - 3
80
- - 0
81
- - 4
82
57
  version: 3.0.4
83
58
  type: :runtime
84
59
  version_requirements: *id004
@@ -90,11 +65,6 @@ dependencies:
90
65
  requirements:
91
66
  - - ~>
92
67
  - !ruby/object:Gem::Version
93
- hash: 15
94
- segments:
95
- - 3
96
- - 0
97
- - 4
98
68
  version: 3.0.4
99
69
  type: :runtime
100
70
  version_requirements: *id005
@@ -106,11 +76,6 @@ dependencies:
106
76
  requirements:
107
77
  - - ~>
108
78
  - !ruby/object:Gem::Version
109
- hash: 11
110
- segments:
111
- - 0
112
- - 5
113
- - 0
114
79
  version: 0.5.0
115
80
  type: :runtime
116
81
  version_requirements: *id006
@@ -122,11 +87,6 @@ dependencies:
122
87
  requirements:
123
88
  - - ~>
124
89
  - !ruby/object:Gem::Version
125
- hash: 31
126
- segments:
127
- - 1
128
- - 6
129
- - 8
130
90
  version: 1.6.8
131
91
  type: :runtime
132
92
  version_requirements: *id007
@@ -138,11 +98,6 @@ dependencies:
138
98
  requirements:
139
99
  - - ">="
140
100
  - !ruby/object:Gem::Version
141
- hash: 7
142
- segments:
143
- - 0
144
- - 6
145
- - 0
146
101
  version: 0.6.0
147
102
  type: :runtime
148
103
  version_requirements: *id008
@@ -154,11 +109,6 @@ dependencies:
154
109
  requirements:
155
110
  - - ~>
156
111
  - !ruby/object:Gem::Version
157
- hash: 29
158
- segments:
159
- - 2
160
- - 4
161
- - 1
162
112
  version: 2.4.1
163
113
  type: :runtime
164
114
  version_requirements: *id009
@@ -170,9 +120,6 @@ dependencies:
170
120
  requirements:
171
121
  - - ">="
172
122
  - !ruby/object:Gem::Version
173
- hash: 3
174
- segments:
175
- - 0
176
123
  version: "0"
177
124
  type: :development
178
125
  version_requirements: *id010
@@ -184,9 +131,6 @@ dependencies:
184
131
  requirements:
185
132
  - - ">="
186
133
  - !ruby/object:Gem::Version
187
- hash: 3
188
- segments:
189
- - 0
190
134
  version: "0"
191
135
  type: :development
192
136
  version_requirements: *id011
@@ -198,9 +142,6 @@ dependencies:
198
142
  requirements:
199
143
  - - ">="
200
144
  - !ruby/object:Gem::Version
201
- hash: 3
202
- segments:
203
- - 0
204
145
  version: "0"
205
146
  type: :development
206
147
  version_requirements: *id012
@@ -212,13 +153,6 @@ dependencies:
212
153
  requirements:
213
154
  - - ">="
214
155
  - !ruby/object:Gem::Version
215
- hash: 62196449
216
- segments:
217
- - 2
218
- - 0
219
- - 0
220
- - beta
221
- - 1
222
156
  version: 2.0.0.beta1
223
157
  type: :development
224
158
  version_requirements: *id013
@@ -273,25 +207,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
273
207
  requirements:
274
208
  - - ">="
275
209
  - !ruby/object:Gem::Version
276
- hash: 3
277
- segments:
278
- - 0
279
210
  version: "0"
280
211
  required_rubygems_version: !ruby/object:Gem::Requirement
281
212
  none: false
282
213
  requirements:
283
214
  - - ">="
284
215
  - !ruby/object:Gem::Version
285
- hash: 23
286
- segments:
287
- - 1
288
- - 3
289
- - 6
290
216
  version: 1.3.6
291
217
  requirements: []
292
218
 
293
219
  rubyforge_project:
294
- rubygems_version: 1.6.2
220
+ rubygems_version: 1.6.0
295
221
  signing_key:
296
222
  specification_version: 3
297
223
  summary: Simple gem to build a static web-site