css2cocoa 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+ # Add dependencies to develop your gem here.
6
+ # Include everything needed to run rake, tests, features, etc.
7
+ group :development do
8
+ gem "rspec", "~> 2.1.0"
9
+ gem "bundler", "~> 1.0.0"
10
+ gem "jeweler", "~> 1.5.1"
11
+ gem "rcov", ">= 0"
12
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,28 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.1.2)
5
+ git (1.2.5)
6
+ jeweler (1.5.1)
7
+ bundler (~> 1.0.0)
8
+ git (>= 1.2.5)
9
+ rake
10
+ rake (0.8.7)
11
+ rcov (0.9.9)
12
+ rspec (2.1.0)
13
+ rspec-core (~> 2.1.0)
14
+ rspec-expectations (~> 2.1.0)
15
+ rspec-mocks (~> 2.1.0)
16
+ rspec-core (2.1.0)
17
+ rspec-expectations (2.1.0)
18
+ diff-lcs (~> 1.1.2)
19
+ rspec-mocks (2.1.0)
20
+
21
+ PLATFORMS
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ bundler (~> 1.0.0)
26
+ jeweler (~> 1.5.1)
27
+ rcov
28
+ rspec (~> 2.1.0)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Seivan Heidari
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.
data/README.rdoc ADDED
@@ -0,0 +1,21 @@
1
+ = css2cocoa
2
+ test it; css2cocoa gradient "-webkit-gradient(linear, 0% 0%, 0% 100%, from(#EEF1F6), to(#DEE3E6))"
3
+
4
+ Will work through both CLi and in a Rails project soon.
5
+
6
+ css2cocoa
7
+ == Contributing to css2cocoa
8
+
9
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
10
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
11
+ * Fork the project
12
+ * Start a feature/bugfix branch
13
+ * Commit and push until you are happy with your contribution
14
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
15
+ * 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.
16
+
17
+ == Copyright
18
+
19
+ Copyright (c) 2010 Seivan Heidari. See LICENSE.txt for
20
+ further details.
21
+
data/Rakefile ADDED
@@ -0,0 +1,50 @@
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 'rake'
11
+
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "css2cocoa"
16
+ gem.homepage = "http://github.com/seivan/Css2Cocoa"
17
+ gem.license = "MIT"
18
+ gem.summary = %Q{Converts CSS3 webkit stylish code to OBJ-C, like gradients}
19
+ gem.description = %Q{Converts CSS3 webkit stylish code to OBJ-C, like gradients}
20
+ gem.email = "seivan@kth.se"
21
+ gem.authors = ["Seivan Heidari"]
22
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
23
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
+ #gem.add_runtime_dependency 'thor'
25
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
26
+ end
27
+ Jeweler::RubygemsDotOrgTasks.new
28
+
29
+ require 'rspec/core'
30
+ require 'rspec/core/rake_task'
31
+ RSpec::Core::RakeTask.new(:spec) do |spec|
32
+ spec.pattern = FileList['spec/**/*_spec.rb']
33
+ end
34
+
35
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
36
+ spec.pattern = 'spec/**/*_spec.rb'
37
+ spec.rcov = true
38
+ end
39
+
40
+ task :default => :spec
41
+
42
+ require 'rake/rdoctask'
43
+ Rake::RDocTask.new do |rdoc|
44
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
45
+
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "css2cocoa #{version}"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.1
data/bin/css2cocoa.rb ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require File.expand_path(File.dirname(__FILE__) + "/../lib/css2cocoa")
4
+ #require "css2cocoa"
5
+ Css2Cocoa::CLI.parse(STDOUT, ARGV)
6
+
data/css2cocoa.gemspec ADDED
@@ -0,0 +1,74 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{css2cocoa}
8
+ s.version = "0.2.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Seivan Heidari"]
12
+ s.date = %q{2010-12-01}
13
+ s.default_executable = %q{css2cocoa.rb}
14
+ s.description = %q{Converts CSS3 webkit stylish code to OBJ-C, like gradients}
15
+ s.email = %q{seivan@kth.se}
16
+ s.executables = ["css2cocoa.rb"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".rspec",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "bin/css2cocoa.rb",
31
+ "css2cocoa.gemspec",
32
+ "lib/.DS_Store",
33
+ "lib/css2cocoa.rb",
34
+ "lib/css2cocoa/.DS_Store",
35
+ "lib/css2cocoa/cli.rb",
36
+ "lib/css2cocoa/gradient.rb",
37
+ "spec/cli_spec.rb",
38
+ "spec/gradient_spec.rb",
39
+ "spec/spec_helper.rb"
40
+ ]
41
+ s.homepage = %q{http://github.com/seivan/Css2Cocoa}
42
+ s.licenses = ["MIT"]
43
+ s.require_paths = ["lib"]
44
+ s.rubygems_version = %q{1.3.7}
45
+ s.summary = %q{Converts CSS3 webkit stylish code to OBJ-C, like gradients}
46
+ s.test_files = [
47
+ "spec/cli_spec.rb",
48
+ "spec/gradient_spec.rb",
49
+ "spec/spec_helper.rb"
50
+ ]
51
+
52
+ if s.respond_to? :specification_version then
53
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
54
+ s.specification_version = 3
55
+
56
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
57
+ s.add_development_dependency(%q<rspec>, ["~> 2.1.0"])
58
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
59
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
60
+ s.add_development_dependency(%q<rcov>, [">= 0"])
61
+ else
62
+ s.add_dependency(%q<rspec>, ["~> 2.1.0"])
63
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
64
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
65
+ s.add_dependency(%q<rcov>, [">= 0"])
66
+ end
67
+ else
68
+ s.add_dependency(%q<rspec>, ["~> 2.1.0"])
69
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
70
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
71
+ s.add_dependency(%q<rcov>, [">= 0"])
72
+ end
73
+ end
74
+
data/lib/.DS_Store ADDED
Binary file
data/lib/css2cocoa.rb ADDED
@@ -0,0 +1,11 @@
1
+ # dir = File.dirname(__FILE__)
2
+ # $:.unshift(File.dirname(__FILE__)) unless
3
+ # $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
4
+ require 'rubygems'
5
+ Dir[File.expand_path(File.join(File.dirname(__FILE__), 'css2cocoa/**/*'))].each do |file|
6
+ require file
7
+ end
8
+
9
+ module Css2Cocoa
10
+ end
11
+
Binary file
@@ -0,0 +1,17 @@
1
+ require 'optparse'
2
+
3
+ module Css2Cocoa
4
+ class CLI
5
+ def self.parse(stdout, grad)
6
+ case grad.shift
7
+ when "gradient"
8
+ CLI.gradient(stdout, grad.shift)
9
+ end
10
+ end
11
+
12
+ def self.gradient(stdout, grad)
13
+ stdout.puts Gradient::parse_gradient(grad.to_s)
14
+ end
15
+
16
+ end
17
+ end
@@ -0,0 +1,72 @@
1
+ #"color-stop(.9,#999999)"
2
+ class Gradient
3
+ def self.parse_gradient(css_gradient, engine=:webkit)
4
+ css_gradient_array = css_gradient.split(", ")
5
+
6
+ start_location = css_gradient.split(",")[1].split("%").last.to_i/100
7
+ end_location = css_gradient.split(",")[2].split("%").last.to_i/100
8
+
9
+ start_color, stop_color = css_gradient.split(",")[3..-1]
10
+ colors_and_locations = {}
11
+
12
+
13
+ begin
14
+ color_stops = css_gradient_array[5].split(",c")
15
+ color_stops.each do |color_stop|
16
+ stop, color = color_stop.scan(/(\.\d+|\w+)/).flatten[2..3] #[[".9", nil], [nil, "999999"]]
17
+ colors_and_locations[stop.to_f] = color
18
+ end
19
+ puts "Generating multiple colour gradient!"
20
+ rescue NoMethodError => e
21
+ puts "Generating two colour gradient!"
22
+ end
23
+
24
+ colors_and_locations[start_location.to_f] = start_color.gsub(/(\w+\d+)/).first
25
+ colors_and_locations[end_location.to_f] = stop_color.gsub(/(\w+\d+)/).first
26
+ colors = []
27
+ locations = []
28
+ colors_and_locations.sort.each do |location, color|
29
+ colors << color
30
+ locations << location
31
+ end
32
+
33
+ """
34
+ #{Gradient.generate_rgb_helper}
35
+ #{Gradient.generate_gradient_location_method(locations)}
36
+ #{Gradient.generate_gradient_color_method(colors)}
37
+ """
38
+ end
39
+
40
+ def self.generate_rgb_helper
41
+ "#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]"
42
+ end
43
+
44
+ def self.generate_gradient_color_method(colors)
45
+ allocation = "gradient.colors = [NSArray arrayWithObjects:"
46
+ nil_object = "nil];"
47
+ string_colors = ""
48
+ colors.each do |color|
49
+ string_colors << Gradient.ui_color_from_rgb(color)
50
+ end
51
+ allocation + string_colors + nil_object
52
+ end
53
+ def self.generate_gradient_location_method(locations)
54
+ allocation = "gradient.locations = [NSArray arrayWithObjects:"
55
+ nil_object = "nil];"
56
+ string_locations = ""
57
+ locations.each do |location|
58
+ string_locations << Gradient.generate_ns_number(location)
59
+ end
60
+ allocation + string_locations + nil_object
61
+ end
62
+
63
+ def self.ui_color_from_rgb(hex_value)
64
+ "(id)UIColorFromRGB(0x#{hex_value}).CGColor,"
65
+ end
66
+
67
+ def self.generate_ns_number(number)
68
+ "[NSNumber numberWithFloat:#{number.to_f}],"
69
+ end
70
+ end
71
+
72
+ puts Gradient.parse_gradient("-webkit-gradient(linear, 0% 0%, 0% 100%, from(#EEF1F6), to(#DEE3E6))")
data/spec/cli_spec.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "spec_helper"
2
+
3
+ describe CLI, "Command Line Interface" do
4
+ let(:CLI) {}
5
+ end
@@ -0,0 +1,81 @@
1
+ #require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+ require "spec_helper"
3
+
4
+ describe Gradient, "gradients" do
5
+ let(:multiple_colors_and_locations) do
6
+ "-webkit-gradient(linear, 0% 40%, 0% 100%, from(#EEF1F6), to(#E6154D), color-stop(.923,#999999),color-stop(.1,#999999),color-stop(.6,#999999))"
7
+ end
8
+ let(:objc_multiple_colors_and_locations) do
9
+ """
10
+ #define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
11
+ gradient.locations = [NSArray arrayWithObjects:[NSNumber numberWithFloat:0.0],[NSNumber numberWithFloat:0.1],[NSNumber numberWithFloat:0.6],[NSNumber numberWithFloat:0.923],[NSNumber numberWithFloat:1.0],nil];
12
+ gradient.colors = [NSArray arrayWithObjects:(id)UIColorFromRGB(0xEEF1F6).CGColor,(id)UIColorFromRGB(0x999999).CGColor,(id)UIColorFromRGB(0x999999).CGColor,(id)UIColorFromRGB(0x999999).CGColor,(id)UIColorFromRGB(0xE6154).CGColor,nil];
13
+ """
14
+ end
15
+
16
+ let(:two_colors_and_locations) do
17
+ "-webkit-gradient(linear, 0% 0%, 0% 100%, from(#EEF1F6), to(#DEE3E6))"
18
+ end
19
+ let(:objc_two_colors_and_locations) do
20
+ """
21
+ #define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
22
+ gradient.locations = [NSArray arrayWithObjects:[NSNumber numberWithFloat:0.0],[NSNumber numberWithFloat:1.0],nil];
23
+ gradient.colors = [NSArray arrayWithObjects:(id)UIColorFromRGB(0xEEF1F6).CGColor,(id)UIColorFromRGB(0xDEE3E6).CGColor,nil];
24
+ """
25
+ end
26
+
27
+ let(:rgb_helper) do
28
+ "#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]"
29
+ end
30
+ let(:ui_color) {"(id)UIColorFromRGB(0x999999).CGColor,"}
31
+ let(:gradient_color) do
32
+ "gradient.colors = [NSArray arrayWithObjects:(id)UIColorFromRGB(0xEEF1F6).CGColor,(id)UIColorFromRGB(0xDEE3E6).CGColor,nil];"
33
+ end
34
+ let(:gradient_location) do
35
+ "gradient.locations = [NSArray arrayWithObjects:[NSNumber numberWithFloat:1.0],[NSNumber numberWithFloat:0.9],nil];"
36
+ end
37
+ let(:number_1) {"[NSNumber numberWithFloat:1.0],"}
38
+ let(:number_09) {"[NSNumber numberWithFloat:0.9],"}
39
+
40
+ describe Gradient, "parse gradients" do
41
+ context "parse_gradient with multiple colours" do
42
+ subject {Gradient.parse_gradient(multiple_colors_and_locations, :webkit)}
43
+ it {should == objc_multiple_colors_and_locations }
44
+ end
45
+ context "parse_gradient two colours" do
46
+ subject {Gradient.parse_gradient(two_colors_and_locations, :webkit)}
47
+ it {should == objc_two_colors_and_locations }
48
+ end
49
+ end
50
+
51
+ describe Gradient, "helpers" do
52
+ context "generate_gradient_color_method" do
53
+ subject {Gradient.generate_gradient_color_method(["EEF1F6", "DEE3E6"])}
54
+ it {should == gradient_color}
55
+ end
56
+ context "generate_gradient_location_method" do
57
+ subject {Gradient.generate_gradient_location_method([1, "0.9"])}
58
+ it {should == gradient_location}
59
+ end
60
+ context "generate_rgb_helper" do
61
+ subject {Gradient.generate_rgb_helper}
62
+ it {should == rgb_helper }
63
+ end
64
+
65
+ context "ui_color_from_rgb" do
66
+ subject {Gradient.ui_color_from_rgb("999999")}
67
+ it {should == ui_color}
68
+ end
69
+
70
+ describe "generate_ns_number from int and float-strings" do
71
+ context "with integer" do
72
+ subject {Gradient.generate_ns_number(1)}
73
+ it {should == number_1 }
74
+ end
75
+ context "with float-like string" do
76
+ subject {Gradient.generate_ns_number(" .9")}
77
+ it {should == number_09 }
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,13 @@
1
+ # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ # $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ #require 'rspec'
4
+
5
+ require 'css2cocoa'
6
+
7
+ # Requires supporting files with custom matchers and macros, etc,
8
+ # in ./support/ and its subdirectories.
9
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
10
+
11
+ RSpec.configure do |config|
12
+
13
+ end
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: css2cocoa
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 1
9
+ version: 0.2.1
10
+ platform: ruby
11
+ authors:
12
+ - Seivan Heidari
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-12-01 00:00:00 +01:00
18
+ default_executable: css2cocoa.rb
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 1
30
+ - 0
31
+ version: 2.1.0
32
+ type: :development
33
+ prerelease: false
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: bundler
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 1
44
+ - 0
45
+ - 0
46
+ version: 1.0.0
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: jeweler
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ segments:
58
+ - 1
59
+ - 5
60
+ - 1
61
+ version: 1.5.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: rcov
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ segments:
73
+ - 0
74
+ version: "0"
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: *id004
78
+ description: Converts CSS3 webkit stylish code to OBJ-C, like gradients
79
+ email: seivan@kth.se
80
+ executables:
81
+ - css2cocoa.rb
82
+ extensions: []
83
+
84
+ extra_rdoc_files:
85
+ - LICENSE.txt
86
+ - README.rdoc
87
+ files:
88
+ - .document
89
+ - .rspec
90
+ - Gemfile
91
+ - Gemfile.lock
92
+ - LICENSE.txt
93
+ - README.rdoc
94
+ - Rakefile
95
+ - VERSION
96
+ - bin/css2cocoa.rb
97
+ - css2cocoa.gemspec
98
+ - lib/.DS_Store
99
+ - lib/css2cocoa.rb
100
+ - lib/css2cocoa/.DS_Store
101
+ - lib/css2cocoa/cli.rb
102
+ - lib/css2cocoa/gradient.rb
103
+ - spec/cli_spec.rb
104
+ - spec/gradient_spec.rb
105
+ - spec/spec_helper.rb
106
+ has_rdoc: true
107
+ homepage: http://github.com/seivan/Css2Cocoa
108
+ licenses:
109
+ - MIT
110
+ post_install_message:
111
+ rdoc_options: []
112
+
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ hash: -2092298521984145990
121
+ segments:
122
+ - 0
123
+ version: "0"
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ segments:
130
+ - 0
131
+ version: "0"
132
+ requirements: []
133
+
134
+ rubyforge_project:
135
+ rubygems_version: 1.3.7
136
+ signing_key:
137
+ specification_version: 3
138
+ summary: Converts CSS3 webkit stylish code to OBJ-C, like gradients
139
+ test_files:
140
+ - spec/cli_spec.rb
141
+ - spec/gradient_spec.rb
142
+ - spec/spec_helper.rb