colorized 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.6.2"
12
+ gem "rcov", ">= 0"
13
+ end
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 ninjudd
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.
@@ -0,0 +1,19 @@
1
+ = colorized
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to colorized
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
+ * Fork the project
10
+ * Start a feature/bugfix branch
11
+ * Commit and push until you are happy with your contribution
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2011 ninjudd. See LICENSE.txt for
18
+ further details.
19
+
@@ -0,0 +1,45 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rake/rdoctask'
4
+
5
+ begin
6
+ require 'jeweler'
7
+ Jeweler::Tasks.new do |s|
8
+ s.name = "colorized"
9
+ s.homepage = "http://github.com/ninjudd/colorized"
10
+ s.license = "MIT"
11
+ s.summary = %Q{Cross application color theme generator.}
12
+ s.description = %Q{Cross application color theme generator inspired by Solarized.}
13
+ s.email = "git@justinbalthrop.com"
14
+ s.authors = ["ninjudd"]
15
+ end
16
+ Jeweler::GemcutterTasks.new
17
+ rescue LoadError
18
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
19
+ end
20
+
21
+ Rake::TestTask.new do |t|
22
+ t.libs << 'lib'
23
+ t.pattern = 'test/**/*_test.rb'
24
+ t.verbose = false
25
+ end
26
+
27
+ Rake::RDocTask.new do |rdoc|
28
+ rdoc.rdoc_dir = 'rdoc'
29
+ rdoc.title = 'model_set'
30
+ rdoc.options << '--line-numbers' << '--inline-source'
31
+ rdoc.rdoc_files.include('README*')
32
+ rdoc.rdoc_files.include('lib/**/*.rb')
33
+ end
34
+
35
+ begin
36
+ require 'rcov/rcovtask'
37
+ Rcov::RcovTask.new do |t|
38
+ t.libs << 'test'
39
+ t.test_files = FileList['test/**/*_test.rb']
40
+ t.verbose = true
41
+ end
42
+ rescue LoadError
43
+ end
44
+
45
+ task :default => :test
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.0
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ruby
2
+ require 'yaml'
3
+ require 'erb'
4
+ require 'find'
5
+ require 'ostruct'
6
+ require 'fileutils'
7
+ require 'pp'
8
+
9
+ @theme_file = ARGV.first
10
+ @theme_name = File.basename(@theme_file, '.yml')
11
+ @theme = OpenStruct.new(YAML::load_file(@theme_file))
12
+ @templates = File.dirname(File.expand_path(__FILE__)) + '/../templates'
13
+
14
+ def generate_file(template)
15
+ file = template.gsub(@templates, @theme_name)
16
+ dir = File.dirname(file)
17
+ FileUtils.mkdir_p(dir) unless File.exists?(dir)
18
+ File.open(file, 'w') do |f|
19
+ f.write ERB.new(IO.read(template)).result(binding)
20
+ end
21
+ end
22
+
23
+ Find.find(@templates) do |file|
24
+ next if File.directory?(file)
25
+ generate_file(file)
26
+ end
File without changes
@@ -0,0 +1,17 @@
1
+ .base03 {background-color: #002b36}
2
+ .base02 {background-color: #073642}
3
+ .base01 {color: #586e75}
4
+ .base00 {color: #657b83}
5
+ .base0 {color: #839496}
6
+ .base1 {color: #93a1a1}
7
+ .base2 {background-color: #eee8d5}
8
+ .base3 {backgrount-color: #fdf6e3}
9
+
10
+ .yellow {color: #b58900}
11
+ .orange {color: #cb4b16}
12
+ .red {color: #dc322f}
13
+ .magenta {color: #d33682}
14
+ .violet {color: #6c71c4}
15
+ .blue {color: #268bd2}
16
+ .cyan {color: #2aa198}
17
+ .green {color: #859900}
@@ -0,0 +1,65 @@
1
+ <head>
2
+ <link rel="stylesheet" type="text/css" href="colorized.css" />
3
+ </head>
4
+ <body class="base3">
5
+ <div class="base03" style="font-family:Menlo, monospace; padding:10px 20px">
6
+ <p class="base1" >base1 </p>
7
+ <p class="base0" >base0 </p>
8
+ <p class="base00" >base00 </p>
9
+ <p class="base01" >base01 </p>
10
+ <p class="yellow" >yellow </p>
11
+ <p class="orange" >orange </p>
12
+ <p class="red" >red </p>
13
+ <p class="magenta">magenta</p>
14
+ <p class="violet" >violet </p>
15
+ <p class="blue" >blue </p>
16
+ <p class="cyan" >cyan </p>
17
+ <p class="green" >green </p>
18
+ </div>
19
+
20
+ <div class="base02" style="font-family:Menlo, monospace; padding:10px 20px">
21
+ <p class="base1" >base1 </p>
22
+ <p class="base0" >base0 </p>
23
+ <p class="base00" >base00 </p>
24
+ <p class="base01" >base01 </p>
25
+ <p class="yellow" >yellow </p>
26
+ <p class="orange" >orange </p>
27
+ <p class="red" >red </p>
28
+ <p class="magenta">magenta</p>
29
+ <p class="violet" >violet </p>
30
+ <p class="blue" >blue </p>
31
+ <p class="cyan" >cyan </p>
32
+ <p class="green" >green </p>
33
+ </div>
34
+
35
+ <div class="base2" style="font-family:Menlo, monospace; padding:10px 20px">
36
+ <p class="base01" >base01 </p>
37
+ <p class="base00" >base00 </p>
38
+ <p class="base0" >base0 </p>
39
+ <p class="base1" >base1 </p>
40
+ <p class="yellow" >yellow </p>
41
+ <p class="orange" >orange </p>
42
+ <p class="red" >red </p>
43
+ <p class="magenta">magenta</p>
44
+ <p class="violet" >violet </p>
45
+ <p class="blue" >blue </p>
46
+ <p class="cyan" >cyan </p>
47
+ <p class="green" >green </p>
48
+ </div>
49
+
50
+ <div class="base3" style="font-family:Menlo, monospace; padding:10px 20px">
51
+ <p class="base01" >base01 </p>
52
+ <p class="base00" >base00 </p>
53
+ <p class="base0" >base0 </p>
54
+ <p class="base1" >base1 </p>
55
+ <p class="yellow" >yellow </p>
56
+ <p class="orange" >orange </p>
57
+ <p class="red" >red </p>
58
+ <p class="magenta">magenta</p>
59
+ <p class="violet" >violet </p>
60
+ <p class="blue" >blue </p>
61
+ <p class="cyan" >cyan </p>
62
+ <p class="green" >green </p>
63
+ </div>
64
+
65
+ </body>
@@ -0,0 +1,17 @@
1
+ .base03 {background-color: <%= @theme.base03 %>}
2
+ .base02 {background-color: <%= @theme.base02 %>}
3
+ .base01 {color: <%= @theme.base01 %>}
4
+ .base00 {color: <%= @theme.base00 %>}
5
+ .base0 {color: <%= @theme.base0 %>}
6
+ .base1 {color: <%= @theme.base1 %>}
7
+ .base2 {background-color: <%= @theme.base2 %>}
8
+ .base3 {backgrount-color: <%= @theme.base3 %>}
9
+
10
+ .yellow {color: <%= @theme.yellow %>}
11
+ .orange {color: <%= @theme.orange %>}
12
+ .red {color: <%= @theme.red %>}
13
+ .magenta {color: <%= @theme.magenta %>}
14
+ .violet {color: <%= @theme.violet %>}
15
+ .blue {color: <%= @theme.blue %>}
16
+ .cyan {color: <%= @theme.cyan %>}
17
+ .green {color: <%= @theme.green %>}
@@ -0,0 +1,65 @@
1
+ <head>
2
+ <link rel="stylesheet" type="text/css" href="colorized.css" />
3
+ </head>
4
+ <body class="base3">
5
+ <div class="base03" style="font-family:Menlo, monospace; padding:10px 20px">
6
+ <p class="base1" >base1 </p>
7
+ <p class="base0" >base0 </p>
8
+ <p class="base00" >base00 </p>
9
+ <p class="base01" >base01 </p>
10
+ <p class="yellow" >yellow </p>
11
+ <p class="orange" >orange </p>
12
+ <p class="red" >red </p>
13
+ <p class="magenta">magenta</p>
14
+ <p class="violet" >violet </p>
15
+ <p class="blue" >blue </p>
16
+ <p class="cyan" >cyan </p>
17
+ <p class="green" >green </p>
18
+ </div>
19
+
20
+ <div class="base02" style="font-family:Menlo, monospace; padding:10px 20px">
21
+ <p class="base1" >base1 </p>
22
+ <p class="base0" >base0 </p>
23
+ <p class="base00" >base00 </p>
24
+ <p class="base01" >base01 </p>
25
+ <p class="yellow" >yellow </p>
26
+ <p class="orange" >orange </p>
27
+ <p class="red" >red </p>
28
+ <p class="magenta">magenta</p>
29
+ <p class="violet" >violet </p>
30
+ <p class="blue" >blue </p>
31
+ <p class="cyan" >cyan </p>
32
+ <p class="green" >green </p>
33
+ </div>
34
+
35
+ <div class="base2" style="font-family:Menlo, monospace; padding:10px 20px">
36
+ <p class="base01" >base01 </p>
37
+ <p class="base00" >base00 </p>
38
+ <p class="base0" >base0 </p>
39
+ <p class="base1" >base1 </p>
40
+ <p class="yellow" >yellow </p>
41
+ <p class="orange" >orange </p>
42
+ <p class="red" >red </p>
43
+ <p class="magenta">magenta</p>
44
+ <p class="violet" >violet </p>
45
+ <p class="blue" >blue </p>
46
+ <p class="cyan" >cyan </p>
47
+ <p class="green" >green </p>
48
+ </div>
49
+
50
+ <div class="base3" style="font-family:Menlo, monospace; padding:10px 20px">
51
+ <p class="base01" >base01 </p>
52
+ <p class="base00" >base00 </p>
53
+ <p class="base0" >base0 </p>
54
+ <p class="base1" >base1 </p>
55
+ <p class="yellow" >yellow </p>
56
+ <p class="orange" >orange </p>
57
+ <p class="red" >red </p>
58
+ <p class="magenta">magenta</p>
59
+ <p class="violet" >violet </p>
60
+ <p class="blue" >blue </p>
61
+ <p class="cyan" >cyan </p>
62
+ <p class="green" >green </p>
63
+ </div>
64
+
65
+ </body>
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'colorized'
16
+
17
+ class Test::Unit::TestCase
18
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestColorized < 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
@@ -0,0 +1,17 @@
1
+ base03: "#002b36"
2
+ base02: "#073642"
3
+ base01: "#586e75"
4
+ base00: "#657b83"
5
+ base0: "#839496"
6
+ base1: "#93a1a1"
7
+ base2: "#eee8d5"
8
+ base3: "#fdf6e3"
9
+
10
+ yellow: "#b58900"
11
+ orange: "#cb4b16"
12
+ red: "#dc322f"
13
+ magenta: "#d33682"
14
+ violet: "#6c71c4"
15
+ blue: "#268bd2"
16
+ cyan: "#2aa198"
17
+ green: "#859900"
@@ -0,0 +1,17 @@
1
+ .base03 {background-color: #002b36}
2
+ .base02 {background-color: #073642}
3
+ .base01 {color: #586e75}
4
+ .base00 {color: #002b36}
5
+ .base0 {color: #839496}
6
+ .base1 {color: #93a1a1}
7
+ .base2 {background-color: #eee8d5}
8
+ .base3 {backgrount-color: #fdf6e3}
9
+
10
+ .yellow {color: #b58900}
11
+ .orange {color: #cb4b16}
12
+ .red {color: #dc322f}
13
+ .magenta {color: #d33682}
14
+ .violet {color: #6c71c4}
15
+ .blue {color: #268bd2}
16
+ .cyan {color: #2aa198}
17
+ .green {color: #859900}
@@ -0,0 +1,65 @@
1
+ <head>
2
+ <link rel="stylesheet" type="text/css" href="colorized.css" />
3
+ </head>
4
+ <body class="base3">
5
+ <div class="base03" style="font-family:Menlo, monospace; padding:10px 20px">
6
+ <p class="base1" >base1 </p>
7
+ <p class="base0" >base0 </p>
8
+ <p class="base00" >base00 </p>
9
+ <p class="base01" >base01 </p>
10
+ <p class="yellow" >yellow </p>
11
+ <p class="orange" >orange </p>
12
+ <p class="red" >red </p>
13
+ <p class="magenta">magenta</p>
14
+ <p class="violet" >violet </p>
15
+ <p class="blue" >blue </p>
16
+ <p class="cyan" >cyan </p>
17
+ <p class="green" >green </p>
18
+ </div>
19
+
20
+ <div class="base02" style="font-family:Menlo, monospace; padding:10px 20px">
21
+ <p class="base1" >base1 </p>
22
+ <p class="base0" >base0 </p>
23
+ <p class="base00" >base00 </p>
24
+ <p class="base01" >base01 </p>
25
+ <p class="yellow" >yellow </p>
26
+ <p class="orange" >orange </p>
27
+ <p class="red" >red </p>
28
+ <p class="magenta">magenta</p>
29
+ <p class="violet" >violet </p>
30
+ <p class="blue" >blue </p>
31
+ <p class="cyan" >cyan </p>
32
+ <p class="green" >green </p>
33
+ </div>
34
+
35
+ <div class="base2" style="font-family:Menlo, monospace; padding:10px 20px">
36
+ <p class="base01" >base01 </p>
37
+ <p class="base00" >base00 </p>
38
+ <p class="base0" >base0 </p>
39
+ <p class="base1" >base1 </p>
40
+ <p class="yellow" >yellow </p>
41
+ <p class="orange" >orange </p>
42
+ <p class="red" >red </p>
43
+ <p class="magenta">magenta</p>
44
+ <p class="violet" >violet </p>
45
+ <p class="blue" >blue </p>
46
+ <p class="cyan" >cyan </p>
47
+ <p class="green" >green </p>
48
+ </div>
49
+
50
+ <div class="base3" style="font-family:Menlo, monospace; padding:10px 20px">
51
+ <p class="base01" >base01 </p>
52
+ <p class="base00" >base00 </p>
53
+ <p class="base0" >base0 </p>
54
+ <p class="base1" >base1 </p>
55
+ <p class="yellow" >yellow </p>
56
+ <p class="orange" >orange </p>
57
+ <p class="red" >red </p>
58
+ <p class="magenta">magenta</p>
59
+ <p class="violet" >violet </p>
60
+ <p class="blue" >blue </p>
61
+ <p class="cyan" >cyan </p>
62
+ <p class="green" >green </p>
63
+ </div>
64
+
65
+ </body>
metadata ADDED
@@ -0,0 +1,144 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: colorized
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 0
10
+ version: 0.0.0
11
+ platform: ruby
12
+ authors:
13
+ - ninjudd
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-06-04 00:00:00 -07:00
19
+ default_executable: colorize
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ type: :development
24
+ name: shoulda
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
33
+ version: "0"
34
+ requirement: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ prerelease: false
37
+ type: :development
38
+ name: bundler
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ hash: 23
45
+ segments:
46
+ - 1
47
+ - 0
48
+ - 0
49
+ version: 1.0.0
50
+ requirement: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ prerelease: false
53
+ type: :development
54
+ name: jeweler
55
+ version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ hash: 11
61
+ segments:
62
+ - 1
63
+ - 6
64
+ - 2
65
+ version: 1.6.2
66
+ requirement: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ prerelease: false
69
+ type: :development
70
+ name: rcov
71
+ version_requirements: &id004 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
79
+ version: "0"
80
+ requirement: *id004
81
+ description: Cross application color theme generator inspired by Solarized.
82
+ email: git@justinbalthrop.com
83
+ executables:
84
+ - colorize
85
+ extensions: []
86
+
87
+ extra_rdoc_files:
88
+ - LICENSE.txt
89
+ - README.rdoc
90
+ files:
91
+ - .document
92
+ - Gemfile
93
+ - LICENSE.txt
94
+ - README.rdoc
95
+ - Rakefile
96
+ - VERSION
97
+ - bin/colorize
98
+ - lib/colorized.rb
99
+ - solarized/html/colorized.css
100
+ - solarized/html/index.html
101
+ - templates/html/colorized.css
102
+ - templates/html/index.html
103
+ - test/helper.rb
104
+ - test/test_colorized.rb
105
+ - themes/solarized.yml
106
+ - themes/solarized/Users/justin/projects/colorized/templates/html/index.html
107
+ - themes/solarized/html/colorized.css
108
+ - themes/solarized/html/index.html
109
+ has_rdoc: true
110
+ homepage: http://github.com/ninjudd/colorized
111
+ licenses:
112
+ - MIT
113
+ post_install_message:
114
+ rdoc_options: []
115
+
116
+ require_paths:
117
+ - lib
118
+ required_ruby_version: !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ hash: 3
124
+ segments:
125
+ - 0
126
+ version: "0"
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ hash: 3
133
+ segments:
134
+ - 0
135
+ version: "0"
136
+ requirements: []
137
+
138
+ rubyforge_project:
139
+ rubygems_version: 1.3.7
140
+ signing_key:
141
+ specification_version: 3
142
+ summary: Cross application color theme generator.
143
+ test_files: []
144
+