This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.servlet.http.HttpServletRequest | |
| import javax.servlet.http.HttpServletResponse | |
| import javax.servlet.Filter | |
| import javax.servlet.FilterChain | |
| import javax.servlet.ServletException | |
| import java.util.Date | |
| import java.util.ArrayList | |
| import java.util.TreeMap | |
| import java.net.URL | |
| import java.net.MalformedURLException |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Critical default settings: | |
| disable_system_gems | |
| disable_rubygems | |
| bundle_path ".gems/bundler_gems" | |
| # List gems to bundle here: | |
| gem 'appengine-rack', '0.0.10.pre' | |
| gem 'jruby-openssl', '0.7' | |
| gem 'jruby-jars', '1.5.1.pre2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Async URLFetch on appengine-jruby | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/mirah/ast.rb b/lib/mirah/ast.rb | |
| index 80cac7f..3993669 100644 | |
| --- a/lib/mirah/ast.rb | |
| +++ b/lib/mirah/ast.rb | |
| @@ -104,6 +104,7 @@ module Duby | |
| def inspect_children(indent = 0) | |
| indent_str = ' ' * indent | |
| str = '' | |
| +if children | |
| children.each_with_index do |child, i| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "pathname" | |
| require "fileutils" | |
| ROOT_PATH = Pathname(File.expand_path(File.dirname(__FILE__))) + ".." | |
| OUTDIR = ROOT_PATH + "build" | |
| WEB_INF_LIB = ROOT_PATH + "WEB-INF" + "lib" | |
| ### Construct the path to jars we need | |
| APPENGINE_JAVA_SDK = ENV['APPENGINE_JAVA_SDK'] | |
| unless File.exist?(ENV['APPENGINE_JAVA_SDK']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % diff -r elastic-mapreduce-ruby elastic-mapreduce-ruby.ORIG | |
| diff -r elastic-mapreduce-ruby/elastic-mapreduce elastic-mapreduce-ruby.ORIG/elastic-mapreduce | |
| 308,309c308 | |
| < #set_step_opt_value.call( "--input INPUT", "Input to the steps, e.g. s3n://mybucket/input", :input, ['streaming']) | |
| < set_step_opt_append.call("--input INPUT", "Input to the steps, e.g. s3n://mybucket/input", :input, ['streaming']) | |
| --- | |
| > set_step_opt_value.call( "--input INPUT", "Input to the steps, e.g. s3n://mybucket/input", :input, ['streaming']) | |
| 316,317c315 | |
| < set_step_opt_value.call( "--partitioner PARTITIONER", "Specify partitioner", :partitioner, ['streaming']) | |
| < |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -r -u gems/appengine-tools-0.0.17/lib/appengine-tools/gem_bundler.rb ../ruby-1.8.7-p334@default/gems/appengine-tools-0.0.17/lib/appengine-tools/gem_bundler.rb | |
| --- gems/appengine-tools-0.0.17/lib/appengine-tools/gem_bundler.rb 2011-04-14 01:06:51.000000000 +0900 | |
| +++ ../ruby-1.8.7-p334@default/gems/appengine-tools-0.0.17/lib/appengine-tools/gem_bundler.rb 2011-02-27 15:54:16.000000000 +0900 | |
| @@ -26,7 +26,7 @@ | |
| module Admin | |
| TARGET_VERSION = '1.8' | |
| TARGET_ENGINE = 'jruby' | |
| - GEM_PLATFORM = Gem::Platform.new("universal-java-1.6") | |
| + #GEM_PLATFORM = Gem::Platform.new("universal-java-1.6") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/nishidayuya/ruboto-irb/blob/master/assets/demo-scripts/demo-android-api.rb#L174 | |
| https://github.com/nishidayuya/ruboto-irb/blob/master/assets/demo-scripts/demo-android-api.rb#L344 | |
| Done | |
| >>[Running editor script (ruboto.rb)] | |
| <script>:29 warning: already initialized constant Id | |
| <script>:34 warning: already initialized constant AndroidIds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tkrmb2:~/proj/mirah-android/Garrett% rake compile | |
| (in /Users/takeru/proj/mirah-android/Garrett) | |
| Android SDK Tools Revision 10 | |
| Project Target: Android 2.1-update1 | |
| API level: 7 | |
| ------------------ | |
| Resolving library dependencies: | |
| No library dependencies. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tkrmb2:~/proj/mirah-android/Garrett% tree | |
| . | |
| ├── AndroidManifest.xml | |
| ├── LICENSE | |
| ├── README.md | |
| ├── Rakefile | |
| ├── bin | |
| │ ├── Garrett-debug-unaligned.apk |