Permalink
Browse files

remove some cruft and renamed files

  • Loading branch information...
1 parent f3b8282 commit 9899ea3dd172d15a43f0837a4c9322f7277f875e @slagyr committed Aug 27, 2011
Showing with 6 additions and 111 deletions.
  1. 0 license.txt → LICENSE
  2. +3 −3 README.rdoc → README.md
  3. +0 −33 etc/tasks/doc.rake
  4. +0 −35 etc/tasks/jruby_gems.rake
  5. +3 −1 ruby/Rakefile
  6. +0 −39 style_gen.rb
View
File renamed without changes.
@@ -33,7 +33,7 @@ Try it out:
== License
-Copyright 2008-2010 8th Light, Inc. All Rights Reserved.
-Limelight and all included source files are distributed under terms of the GNU LGPL.
+Copyright 2008-2011 8th Light, Inc. All Rights Reserved.
+Limelight and all included source files are distributed under terms of the MIT license.
-See license.txt
+See LICENSE
View
@@ -1,33 +0,0 @@
-require 'rdoc/task'
-
-WEB_ROOT = File.expand_path('~/Projects/slagyr.github.com/limelight/')
-
-desc 'Generate RDoc'
-rd = Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = "#{WEB_ROOT}/rdoc"
- rdoc.options << '--title' << 'Limelight' << '--line-numbers' << '--inline-source' << '--main' << 'README.rdoc'
- rdoc.rdoc_files.include('README.rdoc', 'CHANGES', 'lib/**/*.rb')
-end
-task :rdoc
-
-desc "Generate the ruby for for styles"
-task :gen_styles_rdoc do
- require 'lib/limelight.rb'
- require 'lib/limelight/string'
- src = "raise \"studio.rb is present for solely to document it's Java counterpart limelight.Studio. This file should NOT be loaded in the Ruby runtime.\"\n\n"
- src << "module Limelight\n"
- src << " class Style\n"
- Java::limelight.styles.Style::STYLE_LIST.each do |descriptor|
- name = descriptor.name
- type = descriptor.compiler.type
- default_value = descriptor.defaultValue
- src << " # Specifies the #{name} attribute of a prop.\n"
- src << " # type: #{type}\n"
- src << " # default_value: #{default_value}\n"
- src << " attr_accessor :#{name.underscored.gsub(" ", "")}\n"
- src << "\n"
- end
- src << " end\n"
- src << "end\n"
- File.open("#{$LIMELIGHT_LIB}/limelight/style.rb", 'w') { |f| f.write src }
-end
View
@@ -1,35 +0,0 @@
-def installed_jruby_gems
- gem_dir_pattern = /\W+(\d+\.?)*/
- installed_gems = []
- Dir.entries("jruby/lib/ruby/gems/1.8/gems").each { |entry| installed_gems << entry if entry.match(gem_dir_pattern)} if File.exists?("jruby/lib/ruby/gems/1.8/gems")
- return installed_gems
-end
-
-def init_jruby_gems
- ENV["GEM_HOME"] = File.expand_path(File.dirname(__FILE__) + "/../../jruby/lib/ruby/gems/1.8/")
- puts "Using gem home: #{Gem.dir}"
-end
-
-task :jruby_gems do
- puts "Establishing Gems"
- init_jruby_gems
- gem_pattern = /.*\.gem/
- all_gems = []
- Dir.entries("etc/gems/required_jruby_gems").each { |entry| all_gems << entry[0...-4] if entry.match(gem_pattern) }
- gems_to_install = all_gems - installed_jruby_gems
- gems_to_install.each do |gem|
- puts "Installing gem: #{gem}"
- system "jruby/bin/gem install etc/gems/required_jruby_gems/#{gem}.gem -f --no-rdoc --no-ri"
- end
-end
-
-task :clear_jruby_gems do
- init_jruby_gems
- require 'rubygems/uninstaller'
- Gem.source_index.each do |spec|
- puts "spec[1].installation_path: #{spec[1].installation_path}"
- uninstaller = Gem::Uninstaller.new(spec[1], {:ignore => true, :executables => true})
- uninstaller.remove_all([spec[1]])
- uninstaller.remove_executables(spec[1])
- end
-end
View
@@ -1,3 +1,5 @@
+require 'rake/dsl_definition'
+#require 'rake'
load File.expand_path(File.dirname(__FILE__) + "/../etc/tasks/_common.rake")
#require File.expand_path(File.dirname(__FILE__) + "/lib/limelight.jar")
@@ -64,4 +66,4 @@ task "jar" => %w{clean compile} do
end
desc "Compiles, and tests the limelight java code"
-task "build" => %w{jar spec}
+task "build" => %w{jar spec}
View
@@ -1,39 +0,0 @@
-require File.expand_path(File.dirname(__FILE__) + "/lib/init")
-
-class_content = IO.read File.expand_path(File.dirname(__FILE__) + "/src/limelight/styles/attributes/WidthAttribute.java")
-test_content = IO.read File.expand_path(File.dirname(__FILE__) + "/src/limelight/styles/attributes/WidthAttributeTest.java")
-
-#puts "class_content: #{class_content}"
-#puts "test_content: #{test_content}"
-
-Java::limelight.styles.Style::STYLE_LIST.each do |attr|
- class_name = "#{attr.name}Attribute".gsub(" ", "")
- class_filename = "#{class_name}.java"
- test_filename = "#{class_name}Test.java"
-
-# puts "class_filename: #{class_filename}"
-# puts "test_filename: #{test_filename}"
-
- new_class_content = class_content.
- gsub("WidthAttribute", class_name).
- gsub("\"Width\"", "\"#{attr.name}\"").
- gsub("dimension", attr.compiler.type).
- gsub("auto", attr.defaultValue.toString)
-
- new_test_content = test_content.
- gsub("WidthAttribute", class_name).
- gsub("\"Width\"", "\"#{attr.name}\"").
- gsub("dimension", attr.compiler.type).
- gsub("auto", attr.defaultValue.toString)
-
- new_class_filename = File.expand_path(File.dirname(__FILE__) + "/src/limelight/styles/attributes/#{class_filename}")
- new_test_filename = File.expand_path(File.dirname(__FILE__) + "/src/limelight/styles/attributes/#{test_filename}")
-
- if attr.name != "Width"
-
- File.open(new_class_filename, "w") { |f| f.write new_class_content }
- File.open(new_test_filename, "w") { |f| f.write new_test_content }
-
- end
-
-end

0 comments on commit 9899ea3

Please sign in to comment.