brighter_planet_layout 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,6 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/brighterplanet/brighter_planet_layout"
12
12
  gem.authors = ["Andy Rossmeissl"]
13
13
  gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
14
+ gem.add_dependency 'ultraviolet', '0.10.2'
14
15
  gem.files.reject! { |fn| fn.downcase =~ /\.ai$/ }
15
16
  end
16
17
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -6,4 +6,8 @@ module BrighterPlanetHelper
6
6
  nil
7
7
  end
8
8
  end
9
+
10
+ def syntax(code, lang = 'ruby')
11
+ ::Uv.parse(code, 'xhtml', lang, false, :idle).html_safe
12
+ end
9
13
  end
@@ -3,7 +3,7 @@
3
3
  <title><%= title = @title ? "#{@title} [#{Rails.application.name}]" : Rails.application.name %></title>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
5
  <meta http-equiv="Content-Language" content="en" />
6
- <%= stylesheet_link_tag 'brighter_planet', 'application' %>
6
+ <%= stylesheet_link_tag 'brighter_planet', 'application', 'idle' %>
7
7
  <%= javascript_include_tag :defaults %>
8
8
  <%= csrf_meta_tag %>
9
9
  <link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{brighter_planet_layout}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.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 Rossmeissl"]
@@ -63,6 +63,7 @@ Gem::Specification.new do |s|
63
63
  "public/stylesheets/fonts/KievitWebPro-Ita.woff",
64
64
  "public/stylesheets/fonts/KievitWebPro.eot",
65
65
  "public/stylesheets/fonts/KievitWebPro.woff",
66
+ "public/stylesheets/idle.css",
66
67
  "public/stylesheets/images/bg.png",
67
68
  "public/stylesheets/images/cards.png",
68
69
  "public/stylesheets/images/emitters.png",
@@ -88,11 +89,14 @@ Gem::Specification.new do |s|
88
89
 
89
90
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
90
91
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
92
+ s.add_runtime_dependency(%q<ultraviolet>, ["= 0.10.2"])
91
93
  else
92
94
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
95
+ s.add_dependency(%q<ultraviolet>, ["= 0.10.2"])
93
96
  end
94
97
  else
95
98
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
99
+ s.add_dependency(%q<ultraviolet>, ["= 0.10.2"])
96
100
  end
97
101
  end
98
102
 
@@ -1,2 +1,4 @@
1
1
  require 'brighter_planet_layout/railtie' if defined?(Rails::Railtie)
2
- require File.join(File.dirname(__FILE__),'..', 'app', 'helpers', 'brighter_planet_helper.rb')
2
+ require File.join(File.dirname(__FILE__),'..', 'app', 'helpers', 'brighter_planet_helper.rb')
3
+ require 'rubygems'
4
+ require 'uv'
@@ -0,0 +1,63 @@
1
+ pre.idle .InheritedClass {
2
+ }
3
+ pre.idle .TypeName {
4
+ color: #21439C;
5
+ }
6
+ pre.idle .Number {
7
+ }
8
+ pre.idle .LibraryVariable {
9
+ color: #A535AE;
10
+ }
11
+ pre.idle .Storage {
12
+ color: #FF5600;
13
+ }
14
+ pre.idle .line-numbers {
15
+ background-color: #BAD6FD;
16
+ color: #000000;
17
+ }
18
+ pre.idle {
19
+ background-color: #FFFFFF;
20
+ color: #000000;
21
+ }
22
+ pre.idle .StringInterpolation {
23
+ color: #990000;
24
+ }
25
+ pre.idle .TagName {
26
+ }
27
+ pre.idle .LibraryConstant {
28
+ color: #A535AE;
29
+ }
30
+ pre.idle .FunctionArgument {
31
+ }
32
+ pre.idle .BuiltInConstant {
33
+ color: #A535AE;
34
+ }
35
+ pre.idle .Invalid {
36
+ background-color: #990000;
37
+ color: #FFFFFF;
38
+ }
39
+ pre.idle .LibraryClassType {
40
+ color: #A535AE;
41
+ }
42
+ pre.idle .LibraryFunction {
43
+ color: #A535AE;
44
+ }
45
+ pre.idle .TagAttribute {
46
+ }
47
+ pre.idle .Keyword {
48
+ color: #FF5600;
49
+ }
50
+ pre.idle .UserDefinedConstant {
51
+ }
52
+ pre.idle .String {
53
+ color: #00A33F;
54
+ }
55
+ pre.idle .FunctionName {
56
+ color: #21439C;
57
+ }
58
+ pre.idle .Variable {
59
+ }
60
+ pre.idle .Comment {
61
+ color: #919191;
62
+ }
63
+
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andy Rossmeissl
@@ -29,6 +29,20 @@ dependencies:
29
29
  version: "0"
30
30
  type: :development
31
31
  version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: ultraviolet
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "="
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
41
+ - 10
42
+ - 2
43
+ version: 0.10.2
44
+ type: :runtime
45
+ version_requirements: *id002
32
46
  description: Layouts, partials, stylesheets, and images
33
47
  email: andy@rossmeissl.net
34
48
  executables: []
@@ -85,6 +99,7 @@ files:
85
99
  - public/stylesheets/fonts/KievitWebPro-Ita.woff
86
100
  - public/stylesheets/fonts/KievitWebPro.eot
87
101
  - public/stylesheets/fonts/KievitWebPro.woff
102
+ - public/stylesheets/idle.css
88
103
  - public/stylesheets/images/bg.png
89
104
  - public/stylesheets/images/cards.png
90
105
  - public/stylesheets/images/emitters.png