Permalink
Browse files

Created repository.

  • Loading branch information...
0 parents commit 4ec3ffa8dcb83e2a951bff4e74ad2c3e45d8f85c @bendiken bendiken committed Jan 18, 2010
Showing with 121 additions and 0 deletions.
  1. +35 −0 .gemspec
  2. +5 −0 .gitignore
  3. +11 −0 .yardopts
  4. +1 −0 AUTHORS
  5. +1 −0 README
  6. 0 README.md
  7. +8 −0 Rakefile
  8. +24 −0 UNLICENSE
  9. +1 −0 VERSION
  10. +2 −0 doc/.gitignore
  11. +8 −0 lib/php.rb
  12. +19 −0 lib/php/version.rb
  13. +5 −0 spec/php_spec.rb
  14. +1 −0 spec/spec_helper.rb
@@ -0,0 +1,35 @@
+#!/usr/bin/env ruby -rubygems
+# -*- encoding: utf-8 -*-
+
+GEMSPEC = Gem::Specification.new do |gem|
+ gem.version = File.read('VERSION').chomp
+ gem.date = File.mtime('VERSION').strftime('%Y-%m-%d')
+
+ gem.name = 'php'
+ gem.homepage = 'http://php.rubyforge.org/'
+ gem.license = 'Public Domain' if gem.respond_to?(:license=)
+ gem.summary = 'A Ruby-to-PHP code generator.'
+ gem.description = 'PHP.rb is a Ruby-to-PHP code generator.'
+ gem.rubyforge_project = 'php'
+
+ gem.authors = ['Arto Bendiken']
+ gem.email = 'arto.bendiken@gmail.com'
+
+ gem.platform = Gem::Platform::RUBY
+ gem.files = %w(AUTHORS README UNLICENSE VERSION) + Dir.glob('lib/**/*.rb')
+ gem.bindir = %q(bin)
+ gem.executables = %w()
+ gem.default_executable = gem.executables.first
+ gem.require_paths = %w(lib)
+ gem.extensions = %w()
+ gem.test_files = %w()
+ gem.has_rdoc = false
+
+ gem.required_ruby_version = '>= 1.8.2'
+ gem.requirements = []
+ gem.add_development_dependency 'rspec', '>= 1.2.9'
+ gem.add_development_dependency 'yard' , '>= 0.5.2'
+ gem.add_runtime_dependency 'sexp_processor', '>= 3.0.3'
+ gem.add_runtime_dependency 'ParseTree', '>= 3.0.4'
+ gem.post_install_message = nil
+end
@@ -0,0 +1,5 @@
+.DS_Store
+.tmp
+.yardoc
+pkg
+tmp
@@ -0,0 +1,11 @@
+--title "PHP.rb: A Ruby-to-PHP Code Generator"
+--output-dir doc/yard
+--protected
+--no-private
+--hide-void-return
+--markup markdown
+--readme README.md
+-
+AUTHORS
+UNLICENSE
+VERSION
@@ -0,0 +1 @@
+* Arto Bendiken <arto.bendiken@gmail.com>
No changes.
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib')))
+require 'rubygems'
+begin
+ require 'rakefile' # http://github.com/bendiken/rakefile
+rescue LoadError => e
+end
+require 'php'
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>
@@ -0,0 +1 @@
+0.0.0
@@ -0,0 +1,2 @@
+rdoc
+yard
@@ -0,0 +1,8 @@
+require 'sexp_processor'
+require 'parse_tree'
+require 'parse_tree_extensions'
+require 'php/version'
+
+module PHP
+ # TODO
+end
@@ -0,0 +1,19 @@
+module PHP
+ module VERSION
+ MAJOR = 0
+ MINOR = 0
+ TINY = 0
+ EXTRA = nil
+
+ STRING = [MAJOR, MINOR, TINY].join('.')
+ STRING << "-#{EXTRA}" if EXTRA
+
+ ##
+ # @return [String]
+ def self.to_s() STRING end
+
+ ##
+ # @return [String]
+ def self.to_str() STRING end
+ end
+end
@@ -0,0 +1,5 @@
+require File.join(File.dirname(__FILE__), 'spec_helper')
+
+describe PHP do
+ # TODO
+end
@@ -0,0 +1 @@
+require 'php'

0 comments on commit 4ec3ffa

Please sign in to comment.