nesta 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 2
9
- version: 0.9.2
8
+ - 3
9
+ version: 0.9.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Graham Ashton
@@ -14,11 +14,11 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-10 00:00:00 +00:00
17
+ date: 2011-01-18 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: builder
21
+ name: haml
22
22
  requirement: &id001 !ruby/object:Gem::Requirement
23
23
  none: false
24
24
  requirements:
@@ -31,23 +31,9 @@ dependencies:
31
31
  type: :runtime
32
32
  prerelease: false
33
33
  version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: haml
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
39
- - - ~>
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 3
43
- - 0
44
- version: "3.0"
45
- type: :runtime
46
- prerelease: false
47
- version_requirements: *id002
48
34
  - !ruby/object:Gem::Dependency
49
35
  name: maruku
50
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ requirement: &id002 !ruby/object:Gem::Requirement
51
37
  none: false
52
38
  requirements:
53
39
  - - ">="
@@ -59,10 +45,10 @@ dependencies:
59
45
  version: 0.6.0
60
46
  type: :runtime
61
47
  prerelease: false
62
- version_requirements: *id003
48
+ version_requirements: *id002
63
49
  - !ruby/object:Gem::Dependency
64
50
  name: RedCloth
65
- requirement: &id004 !ruby/object:Gem::Requirement
51
+ requirement: &id003 !ruby/object:Gem::Requirement
66
52
  none: false
67
53
  requirements:
68
54
  - - ~>
@@ -73,10 +59,10 @@ dependencies:
73
59
  version: "4.2"
74
60
  type: :runtime
75
61
  prerelease: false
76
- version_requirements: *id004
62
+ version_requirements: *id003
77
63
  - !ruby/object:Gem::Dependency
78
64
  name: sinatra
79
- requirement: &id005 !ruby/object:Gem::Requirement
65
+ requirement: &id004 !ruby/object:Gem::Requirement
80
66
  none: false
81
67
  requirements:
82
68
  - - "="
@@ -88,10 +74,10 @@ dependencies:
88
74
  version: 1.1.2
89
75
  type: :runtime
90
76
  prerelease: false
91
- version_requirements: *id005
77
+ version_requirements: *id004
92
78
  - !ruby/object:Gem::Dependency
93
79
  name: shotgun
94
- requirement: &id006 !ruby/object:Gem::Requirement
80
+ requirement: &id005 !ruby/object:Gem::Requirement
95
81
  none: false
96
82
  requirements:
97
83
  - - ">="
@@ -102,10 +88,10 @@ dependencies:
102
88
  version: "0.8"
103
89
  type: :runtime
104
90
  prerelease: false
105
- version_requirements: *id006
91
+ version_requirements: *id005
106
92
  - !ruby/object:Gem::Dependency
107
93
  name: hpricot
108
- requirement: &id007 !ruby/object:Gem::Requirement
94
+ requirement: &id006 !ruby/object:Gem::Requirement
109
95
  none: false
110
96
  requirements:
111
97
  - - "="
@@ -117,10 +103,10 @@ dependencies:
117
103
  version: 0.8.3
118
104
  type: :development
119
105
  prerelease: false
120
- version_requirements: *id007
106
+ version_requirements: *id006
121
107
  - !ruby/object:Gem::Dependency
122
108
  name: rack-test
123
- requirement: &id008 !ruby/object:Gem::Requirement
109
+ requirement: &id007 !ruby/object:Gem::Requirement
124
110
  none: false
125
111
  requirements:
126
112
  - - "="
@@ -132,10 +118,10 @@ dependencies:
132
118
  version: 0.5.7
133
119
  type: :development
134
120
  prerelease: false
135
- version_requirements: *id008
121
+ version_requirements: *id007
136
122
  - !ruby/object:Gem::Dependency
137
123
  name: rspec
138
- requirement: &id009 !ruby/object:Gem::Requirement
124
+ requirement: &id008 !ruby/object:Gem::Requirement
139
125
  none: false
140
126
  requirements:
141
127
  - - "="
@@ -147,10 +133,10 @@ dependencies:
147
133
  version: 1.3.0
148
134
  type: :development
149
135
  prerelease: false
150
- version_requirements: *id009
136
+ version_requirements: *id008
151
137
  - !ruby/object:Gem::Dependency
152
138
  name: rspec_hpricot_matchers
153
- requirement: &id010 !ruby/object:Gem::Requirement
139
+ requirement: &id009 !ruby/object:Gem::Requirement
154
140
  none: false
155
141
  requirements:
156
142
  - - "="
@@ -161,10 +147,10 @@ dependencies:
161
147
  version: "1.0"
162
148
  type: :development
163
149
  prerelease: false
164
- version_requirements: *id010
150
+ version_requirements: *id009
165
151
  - !ruby/object:Gem::Dependency
166
152
  name: test-unit
167
- requirement: &id011 !ruby/object:Gem::Requirement
153
+ requirement: &id010 !ruby/object:Gem::Requirement
168
154
  none: false
169
155
  requirements:
170
156
  - - "="
@@ -176,7 +162,7 @@ dependencies:
176
162
  version: 1.2.3
177
163
  type: :development
178
164
  prerelease: false
179
- version_requirements: *id011
165
+ version_requirements: *id010
180
166
  description: |
181
167
  Nesta is a lightweight Content Management System, written in Ruby using
182
168
  the Sinatra web framework. Nesta has the simplicity of a static site
@@ -208,7 +194,6 @@ files:
208
194
  - Rakefile
209
195
  - bin/nesta
210
196
  - config.ru
211
- - config/config.yml.sample
212
197
  - config/deploy.rb.sample
213
198
  - lib/nesta/app.rb
214
199
  - lib/nesta/cache.rb
@@ -239,17 +224,17 @@ files:
239
224
  - templates/config.ru
240
225
  - templates/config/config.yml
241
226
  - templates/config/deploy.rb
227
+ - templates/index.haml
242
228
  - templates/themes/README.md
243
229
  - templates/themes/app.rb
244
230
  - views/analytics.haml
245
- - views/atom.builder
231
+ - views/atom.haml
246
232
  - views/categories.haml
247
233
  - views/comments.haml
248
234
  - views/error.haml
249
235
  - views/feed.haml
250
236
  - views/footer.haml
251
237
  - views/header.haml
252
- - views/index.haml
253
238
  - views/layout.haml
254
239
  - views/master.sass
255
240
  - views/mixins.sass
@@ -257,7 +242,7 @@ files:
257
242
  - views/page.haml
258
243
  - views/page_meta.haml
259
244
  - views/sidebar.haml
260
- - views/sitemap.builder
245
+ - views/sitemap.haml
261
246
  - views/summaries.haml
262
247
  has_rdoc: true
263
248
  homepage: http://effectif.com/nesta
@@ -273,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
273
258
  requirements:
274
259
  - - ">="
275
260
  - !ruby/object:Gem::Version
276
- hash: -3009128770582666243
261
+ hash: -3358378487580333877
277
262
  segments:
278
263
  - 0
279
264
  version: "0"
@@ -282,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
267
  requirements:
283
268
  - - ">="
284
269
  - !ruby/object:Gem::Version
285
- hash: -3009128770582666243
270
+ hash: -3358378487580333877
286
271
  segments:
287
272
  - 0
288
273
  version: "0"
@@ -1,73 +0,0 @@
1
- # Title and subheading for your site. Used on the home page and in page
2
- # titles.
3
- #
4
- title: "My Site"
5
- subtitle: "(change this text in config/config.yml)"
6
-
7
- # If you want to set the descrition or keywords meta tags on your site's
8
- # home page, do it here.
9
- #
10
- # description: "Set this to something that describes your home page"
11
- # keywords: "enter 3 or 4, comma separated, keywords"
12
-
13
- # You should really specify your content's author when generating an
14
- # Atom feed. Specify at least one of name, uri or email, and Nesta will
15
- # include it in your feed. See the Atom spec for more info:
16
- #
17
- # http://www.atomenabled.org/developers/syndication/atom-format-spec.php#element.feed
18
- #
19
- # author:
20
- # name: Your Name
21
- # uri: http://yourhomepage.com
22
- # email: you@yourdomain.com
23
-
24
- # You can stick with the default look and feel, or use a theme. Themes are
25
- # easy to create or install, and live inside the themes directory. You
26
- # can also use scripts/theme to install them.
27
- #
28
- # theme: name-of-theme
29
-
30
- # If you want to use the Disqus service (http://disqus.com) to display
31
- # comments on your site, register a Disqus account and then specify your
32
- # site's short name here. A comment form will automatically be added to
33
- # the bottom of your pages.
34
- #
35
- # disqus_short_name: mysite
36
-
37
- # cache
38
- # Set it to true if you'd like Nesta to cache your pages in ./public.
39
- # Useful if you're deploying Nesta with a proxy server such as Nginx,
40
- # but not in the least bit helpful if your pages are dynamic, or you're
41
- # deploying Nesta to Heroku.
42
- #
43
- cache: false
44
-
45
- # content
46
- # The root directory where nesta will look for your article files.
47
- # Should contain "pages" and "attachments" subdirectories that contain
48
- # your actual content and the (optional) menu.txt file that links to your
49
- # main category pages.
50
- #
51
- content: content
52
-
53
- # google_analytics_code
54
- # Set this if you want Google Analytics to track traffic on your site.
55
- # Probably best not to set a default value, but to set it in production.
56
- #
57
- # The production settings are used if you're deploying to Heroku, so
58
- # scroll down a bit to set it in production even if you're not deploying
59
- # to your own server.
60
- #
61
- # google_analytics_code: "UA-???????-?"
62
-
63
- # Overriding "cache" and "content" in production is recommended if you're
64
- # deploying Nesta to your own server (but see the deployment documentation
65
- # on the Nesta site). Setting google_analytics_code in production is
66
- # recommended regardless of how you're deploying (if you have a GA account!).
67
- #
68
- # Don't forget to uncomment the "production:" line too...
69
-
70
- # production:
71
- # cache: true
72
- # content: /var/apps/nesta/shared/content
73
- # google_analytics_code: "UA-???????-?"
data/views/atom.builder DELETED
@@ -1,28 +0,0 @@
1
- xml.instruct!
2
- xml.feed :xmlns => "http://www.w3.org/2005/Atom" do
3
- xml.title @title, :type => "text"
4
- xml.generator "Nesta", :uri => "http://effectif.com/nesta"
5
- xml.id atom_id
6
- xml.link :href => "#{base_url}/articles.xml", :rel => "self"
7
- xml.link :href => base_url, :rel => "alternate"
8
- xml.subtitle @subtitle, :type => "text"
9
- xml.author do
10
- xml.name @author["name"] if @author["name"]
11
- xml.uri @author["uri"] if @author["uri"]
12
- xml.email @author["email"] if @author["email"]
13
- end if @author
14
- @articles.each do |article|
15
- xml.entry do
16
- xml.title article.heading
17
- xml.link :href => url_for(article),
18
- :type => "text/html",
19
- :rel => "alternate"
20
- xml.id atom_id(article)
21
- xml.content absolute_urls(article.body), :type => "html"
22
- xml.published article.date(:xmlschema)
23
- article.categories.each do |category|
24
- xml.category :term => category.permalink
25
- end
26
- end
27
- end
28
- end
data/views/index.haml DELETED
@@ -1,7 +0,0 @@
1
- %nav.breadcrumb Home
2
-
3
- #content
4
- %section.articles
5
- = haml :summaries, :layout => false, :locals => { :pages => @articles }
6
-
7
- = haml :sidebar, :layout => false
@@ -1,15 +0,0 @@
1
- xml.instruct!
2
- xml.urlset :xmlns => "http://www.sitemaps.org/schemas/sitemap/0.9" do
3
- xml.url do
4
- xml.loc base_url
5
- xml.changefreq "daily"
6
- xml.priority "1.0"
7
- xml.lastmod @last.xmlschema
8
- end
9
- @pages.each do |page|
10
- xml.url do
11
- xml.loc url_for(page)
12
- xml.lastmod page.last_modified.xmlschema
13
- end
14
- end
15
- end