brighter_planet_layout 0.2.39 → 0.2.40

Sign up to get free protection for your applications and to get access to all the features.
data/.document CHANGED
@@ -1,5 +1,5 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/.gitignore CHANGED
@@ -1,21 +1,21 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
data/README.rdoc CHANGED
@@ -4,9 +4,22 @@
4
4
 
5
5
  * You need to create <tt>app/views/layouts/_title.html.erb</tt> with something like:
6
6
 
7
- <h1>APPLICATION_NAME</h1>
8
- <h2>THE SOCIAL WEB APP</h2>
7
+ <h1>Application Name</h1>
8
+ <h2>An exciting slogan</h2>
9
+
10
+ == Sites
11
+
12
+ +brighter_planet_layout+ is currently used by:
13
+
14
+ * {app1}[http://github.com/brighterplanet/app1]
15
+ * {cm1}[http://github.com/brighterplanet/cm1]
16
+ * {data1}[http://github.com/brighterplanet/data1]
17
+ * {keyring1}[http://github.com/brighterplanet/keyring1]
18
+ * {numbers}[http://github.com/brighterplanet.com/numbers] †
19
+ * {brighterplanet.github.com}[http://github.com/brighterplanet/brighterplanet.github.com] †
20
+
21
+ † <i>These sites do not use this gem directly. Run <tt>rake layout:build</tt> to update them to +brighter_planet_layout+ HEAD.</i>
9
22
 
10
23
  == Copyright
11
24
 
12
- Copyright (c) 2010 Andy Rossmeissl. See LICENSE for details.
25
+ Copyright (c) 2010 Andy Rossmeissl.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.39
1
+ 0.2.40
@@ -1,5 +1,6 @@
1
1
  <div id="elsewhere">
2
2
  <% cache "#{__FILE__}/latest_tweet", :ttl => 3.minutes do %>
3
+ <!-- Cached at <%= Time.now %> -->
3
4
  <% tweet = ::BrighterPlanetLayout.latest_tweet -%>
4
5
  <% if tweet %>
5
6
  <div id="twitter">
@@ -8,13 +9,31 @@
8
9
  <span>via <%= link_to '@brighterplanet', 'http://twitter.com/brighterplanet' %></span>
9
10
  </p>
10
11
  </div>
12
+ <% else %>
13
+ <div id="twitter">
14
+ <p>
15
+ Check out our <a href="http://twitter.com/brighterplanet">Twitter feed</a>
16
+ <span>via <a href="http://twitter.com/brighterplanet">@brighterplanet</a></span>
17
+ </p>
18
+ </div>
11
19
  <% end %>
12
20
  <% end %>
13
21
  <% cache "#{__FILE__}/latest_blog_post", :ttl => 3.minutes do %>
22
+ <!-- Cached at <%= Time.now %> -->
14
23
  <% blog_post = ::BrighterPlanetLayout.latest_blog_post -%>
15
24
  <% if blog_post %>
16
25
  <div id="blog" class="<%= blog_post.author.downcase.dasherize %>">
17
- <p><%= link_to blog_post.title, blog_post.link %> <span>by <%= blog_post.author %> <%= time_ago_in_words blog_post.updated %> ago on <%= link_to 'Safety in Numbers', 'http://numbers.brighterplanet.com' %>, our blog</span></p>
26
+ <p>
27
+ <%= link_to blog_post.title, blog_post.link %>
28
+ <span>by <%= blog_post.author %> <%= time_ago_in_words blog_post.updated %> ago on <%= link_to 'Safety in Numbers', 'http://numbers.brighterplanet.com' %>, our blog</span>
29
+ </p>
30
+ </div>
31
+ <% else %>
32
+ <div id="blog" class="andy">
33
+ <p>
34
+ See <a href="http://numbers.brighterplanet.com">the latest posts</a>
35
+ <span>by Andy on <a href="http://numbers.brighterplanet.com">Safety in Numbers</a>, our blog</span>
36
+ </p>
18
37
  </div>
19
38
  <% end %>
20
39
  <% end %>
@@ -1,109 +1,107 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{brighter_planet_layout}
8
- s.version = "0.2.39"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Andy Rossmeissl", "Seamus Abshere"]
12
- s.date = %q{2010-10-06}
13
- s.description = %q{Layouts, partials, stylesheets, and images}
14
- s.email = %q{andy@rossmeissl.net}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".gitattributes",
22
- ".gitignore",
23
- "LICENSE",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION",
27
- "app/helpers/brighter_planet_helper.rb",
28
- "app/views/layouts/_elsewhere.html.erb",
29
- "app/views/layouts/_footer.html.erb",
30
- "app/views/layouts/_google_analytics.html.erb",
31
- "app/views/layouts/_header.html.erb",
32
- "app/views/layouts/brighter_planet.html.erb",
33
- "brighter_planet_layout.gemspec",
34
- "lib/brighter_planet_layout.rb",
35
- "lib/brighter_planet_layout/rails.rb",
36
- "lib/brighter_planet_layout/railtie.rb",
37
- "lib/brighter_planet_layout/rake_tasks.rb",
38
- "public/401.html",
39
- "public/403.html",
40
- "public/403.xml",
41
- "public/404.html",
42
- "public/404.json",
43
- "public/404.xml",
44
- "public/409.html",
45
- "public/422.html",
46
- "public/500.html",
47
- "public/favicon.ico",
48
- "public/javascripts/controls.js",
49
- "public/javascripts/dragdrop.js",
50
- "public/javascripts/effects.js",
51
- "public/javascripts/prototype.js",
52
- "public/javascripts/rails.js",
53
- "public/maintenance.html",
54
- "public/stylesheets/brighter_planet.css",
55
- "public/stylesheets/fonts/DejaVuSansMono-Oblique.eot",
56
- "public/stylesheets/fonts/DejaVuSansMono-Oblique.ttf",
57
- "public/stylesheets/fonts/DejaVuSansMono.eot",
58
- "public/stylesheets/fonts/DejaVuSansMono.ttf",
59
- "public/stylesheets/fonts/KievitOT-Bold.otf",
60
- "public/stylesheets/fonts/KievitOT-BoldItalic.otf",
61
- "public/stylesheets/fonts/KievitOT-Italic.otf",
62
- "public/stylesheets/fonts/KievitOT-Regular.otf",
63
- "public/stylesheets/fonts/KievitWebPro-Bold.eot",
64
- "public/stylesheets/fonts/KievitWebPro-Bold.woff",
65
- "public/stylesheets/fonts/KievitWebPro-BoldIta.eot",
66
- "public/stylesheets/fonts/KievitWebPro-BoldIta.woff",
67
- "public/stylesheets/fonts/KievitWebPro-Ita.eot",
68
- "public/stylesheets/fonts/KievitWebPro-Ita.woff",
69
- "public/stylesheets/fonts/KievitWebPro.eot",
70
- "public/stylesheets/fonts/KievitWebPro.woff",
71
- "public/stylesheets/idle.css",
72
- "public/stylesheets/images/bg.png",
73
- "public/stylesheets/images/cards.png",
74
- "public/stylesheets/images/gears.png",
75
- "public/stylesheets/images/logo.png",
76
- "public/stylesheets/images/meter.png",
77
- "public/stylesheets/images/prism.png",
78
- "public/stylesheets/images/radiant_earth-small.png",
79
- "rails/init.rb",
80
- "test/helper.rb",
81
- "test/test_brighter_planet_layout.rb"
82
- ]
83
- s.homepage = %q{http://github.com/brighterplanet/brighter_planet_layout}
84
- s.rdoc_options = ["--charset=UTF-8"]
85
- s.require_paths = ["lib"]
86
- s.rubygems_version = %q{1.3.6}
87
- s.summary = %q{Layout assets for Brighter Planet sites}
88
- s.test_files = [
89
- "test/helper.rb",
90
- "test/test_brighter_planet_layout.rb"
91
- ]
92
-
93
- if s.respond_to? :specification_version then
94
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
95
- s.specification_version = 3
96
-
97
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
98
- s.add_runtime_dependency(%q<ultraviolet>, [">= 0.10.2"])
99
- s.add_runtime_dependency(%q<simple-rss>, [">= 1.2.3"])
100
- else
101
- s.add_dependency(%q<ultraviolet>, [">= 0.10.2"])
102
- s.add_dependency(%q<simple-rss>, [">= 1.2.3"])
103
- end
104
- else
105
- s.add_dependency(%q<ultraviolet>, [">= 0.10.2"])
106
- s.add_dependency(%q<simple-rss>, [">= 1.2.3"])
107
- end
108
- end
109
-
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{brighter_planet_layout}
8
+ s.version = "0.2.40"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Andy Rossmeissl", "Seamus Abshere"]
12
+ s.date = %q{2010-10-06}
13
+ s.description = %q{Layouts, partials, stylesheets, and images}
14
+ s.email = %q{andy@rossmeissl.net}
15
+ s.extra_rdoc_files = [
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ ".gitattributes",
21
+ ".gitignore",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "app/helpers/brighter_planet_helper.rb",
26
+ "app/views/layouts/_elsewhere.html.erb",
27
+ "app/views/layouts/_footer.html.erb",
28
+ "app/views/layouts/_google_analytics.html.erb",
29
+ "app/views/layouts/_header.html.erb",
30
+ "app/views/layouts/brighter_planet.html.erb",
31
+ "brighter_planet_layout.gemspec",
32
+ "lib/brighter_planet_layout.rb",
33
+ "lib/brighter_planet_layout/rails.rb",
34
+ "lib/brighter_planet_layout/railtie.rb",
35
+ "lib/brighter_planet_layout/rake_tasks.rb",
36
+ "public/401.html",
37
+ "public/403.html",
38
+ "public/403.xml",
39
+ "public/404.html",
40
+ "public/404.json",
41
+ "public/404.xml",
42
+ "public/409.html",
43
+ "public/422.html",
44
+ "public/500.html",
45
+ "public/favicon.ico",
46
+ "public/javascripts/controls.js",
47
+ "public/javascripts/dragdrop.js",
48
+ "public/javascripts/effects.js",
49
+ "public/javascripts/prototype.js",
50
+ "public/javascripts/rails.js",
51
+ "public/maintenance.html",
52
+ "public/stylesheets/brighter_planet.css",
53
+ "public/stylesheets/fonts/DejaVuSansMono-Oblique.eot",
54
+ "public/stylesheets/fonts/DejaVuSansMono-Oblique.ttf",
55
+ "public/stylesheets/fonts/DejaVuSansMono.eot",
56
+ "public/stylesheets/fonts/DejaVuSansMono.ttf",
57
+ "public/stylesheets/fonts/KievitOT-Bold.otf",
58
+ "public/stylesheets/fonts/KievitOT-BoldItalic.otf",
59
+ "public/stylesheets/fonts/KievitOT-Italic.otf",
60
+ "public/stylesheets/fonts/KievitOT-Regular.otf",
61
+ "public/stylesheets/fonts/KievitWebPro-Bold.eot",
62
+ "public/stylesheets/fonts/KievitWebPro-Bold.woff",
63
+ "public/stylesheets/fonts/KievitWebPro-BoldIta.eot",
64
+ "public/stylesheets/fonts/KievitWebPro-BoldIta.woff",
65
+ "public/stylesheets/fonts/KievitWebPro-Ita.eot",
66
+ "public/stylesheets/fonts/KievitWebPro-Ita.woff",
67
+ "public/stylesheets/fonts/KievitWebPro.eot",
68
+ "public/stylesheets/fonts/KievitWebPro.woff",
69
+ "public/stylesheets/idle.css",
70
+ "public/stylesheets/images/bg.png",
71
+ "public/stylesheets/images/cards.png",
72
+ "public/stylesheets/images/gears.png",
73
+ "public/stylesheets/images/logo.png",
74
+ "public/stylesheets/images/meter.png",
75
+ "public/stylesheets/images/prism.png",
76
+ "public/stylesheets/images/radiant_earth-small.png",
77
+ "rails/init.rb",
78
+ "test/helper.rb",
79
+ "test/test_brighter_planet_layout.rb"
80
+ ]
81
+ s.homepage = %q{http://github.com/brighterplanet/brighter_planet_layout}
82
+ s.rdoc_options = ["--charset=UTF-8"]
83
+ s.require_paths = ["lib"]
84
+ s.rubygems_version = %q{1.3.7}
85
+ s.summary = %q{Layout assets for Brighter Planet sites}
86
+ s.test_files = [
87
+ "test/helper.rb",
88
+ "test/test_brighter_planet_layout.rb"
89
+ ]
90
+
91
+ if s.respond_to? :specification_version then
92
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
93
+ s.specification_version = 3
94
+
95
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
96
+ s.add_runtime_dependency(%q<ultraviolet>, [">= 0.10.2"])
97
+ s.add_runtime_dependency(%q<simple-rss>, [">= 1.2.3"])
98
+ else
99
+ s.add_dependency(%q<ultraviolet>, [">= 0.10.2"])
100
+ s.add_dependency(%q<simple-rss>, [">= 1.2.3"])
101
+ end
102
+ else
103
+ s.add_dependency(%q<ultraviolet>, [">= 0.10.2"])
104
+ s.add_dependency(%q<simple-rss>, [">= 1.2.3"])
105
+ end
106
+ end
107
+
@@ -2,15 +2,7 @@ require 'fileutils'
2
2
  require 'yaml'
3
3
  require 'simple-rss'
4
4
  require 'open-uri'
5
-
6
- # http://ph7spot.com/musings/system-timer
7
- begin
8
- require 'system_timer'
9
- BrighterPlanetLayoutTimer = ::SystemTimer
10
- rescue ::LoadError
11
- require 'timeout'
12
- BrighterPlanetLayoutTimer = ::Timeout
13
- end
5
+ require 'timeout'
14
6
 
15
7
  module BrighterPlanetLayout
16
8
  GEM_ROOT = ::File.expand_path ::File.join(::File.dirname(__FILE__), '..')
@@ -80,7 +72,7 @@ module BrighterPlanetLayout
80
72
  end
81
73
 
82
74
  def self.latest_tweet
83
- ::BrighterPlanetLayoutTimer.timeout(FEED_TIMEOUT) do
75
+ ::Timeout.timeout(FEED_TIMEOUT) do
84
76
  ::SimpleRSS.parse(open(TWITTER_RSS)).entries.first
85
77
  end
86
78
  rescue ::OpenURI::HTTPError
@@ -92,7 +84,7 @@ module BrighterPlanetLayout
92
84
  end
93
85
 
94
86
  def self.latest_blog_post
95
- ::BrighterPlanetLayoutTimer.timeout(FEED_TIMEOUT) do
87
+ ::Timeout.timeout(FEED_TIMEOUT) do
96
88
  ::SimpleRSS.parse(open(BLOG_ATOM)).entries.first
97
89
  end
98
90
  rescue ::OpenURI::HTTPError
data/test/helper.rb CHANGED
@@ -1,10 +1,10 @@
1
- require 'rubygems'
2
- require 'test/unit'
3
- require 'shoulda'
4
-
5
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
- $LOAD_PATH.unshift(File.dirname(__FILE__))
7
- require 'brighter_planet_layout'
8
-
9
- class Test::Unit::TestCase
10
- end
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'brighter_planet_layout'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -1,7 +1,7 @@
1
- require 'helper'
2
-
3
- class TestBrighterPlanetLayout < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end
1
+ require 'helper'
2
+
3
+ class TestBrighterPlanetLayout < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brighter_planet_layout
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 71
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 39
9
- version: 0.2.39
9
+ - 40
10
+ version: 0.2.40
10
11
  platform: ruby
11
12
  authors:
12
13
  - Andy Rossmeissl
@@ -15,16 +16,18 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-10-06 00:00:00 -04:00
19
+ date: 2010-10-06 00:00:00 -05:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: ultraviolet
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
25
27
  requirements:
26
28
  - - ">="
27
29
  - !ruby/object:Gem::Version
30
+ hash: 51
28
31
  segments:
29
32
  - 0
30
33
  - 10
@@ -36,9 +39,11 @@ dependencies:
36
39
  name: simple-rss
37
40
  prerelease: false
38
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
39
43
  requirements:
40
44
  - - ">="
41
45
  - !ruby/object:Gem::Version
46
+ hash: 25
42
47
  segments:
43
48
  - 1
44
49
  - 2
@@ -53,13 +58,11 @@ executables: []
53
58
  extensions: []
54
59
 
55
60
  extra_rdoc_files:
56
- - LICENSE
57
61
  - README.rdoc
58
62
  files:
59
63
  - .document
60
64
  - .gitattributes
61
65
  - .gitignore
62
- - LICENSE
63
66
  - README.rdoc
64
67
  - Rakefile
65
68
  - VERSION
@@ -128,23 +131,27 @@ rdoc_options:
128
131
  require_paths:
129
132
  - lib
130
133
  required_ruby_version: !ruby/object:Gem::Requirement
134
+ none: false
131
135
  requirements:
132
136
  - - ">="
133
137
  - !ruby/object:Gem::Version
138
+ hash: 3
134
139
  segments:
135
140
  - 0
136
141
  version: "0"
137
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
+ none: false
138
144
  requirements:
139
145
  - - ">="
140
146
  - !ruby/object:Gem::Version
147
+ hash: 3
141
148
  segments:
142
149
  - 0
143
150
  version: "0"
144
151
  requirements: []
145
152
 
146
153
  rubyforge_project:
147
- rubygems_version: 1.3.6
154
+ rubygems_version: 1.3.7
148
155
  signing_key:
149
156
  specification_version: 3
150
157
  summary: Layout assets for Brighter Planet sites
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2009 Andy Rossmeissl
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.