smalruby-editor 0.1.22-x86-mingw32 → 0.1.23-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of smalruby-editor might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/.ruby-version +1 -1
- data/.simplecov +0 -0
- data/.travis.yml +1 -1
- data/LEGAL +0 -0
- data/LICENSE +0 -0
- data/Procfile +0 -0
- data/README.rdoc +1 -0
- data/Rakefile +0 -0
- data/app/assets/images/.keep +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/javascripts/application.js +0 -1
- data/app/assets/javascripts/blocks/blockly.js.coffee.erb +0 -0
- data/app/assets/javascripts/blocks/character.js.coffee.erb +0 -0
- data/app/assets/javascripts/blocks/control.js.coffee.erb +16 -19
- data/app/assets/javascripts/blocks/data.js.coffee.erb +0 -0
- data/app/assets/javascripts/blocks/etc.js.coffee.erb +0 -0
- data/app/assets/javascripts/blocks/events.js.coffee.erb +8 -6
- data/app/assets/javascripts/blocks/field_character.js.coffee.erb +6 -1
- data/app/assets/javascripts/blocks/hardware.js.coffee.erb +117 -167
- data/app/assets/javascripts/blocks/looks.js.coffee.erb +14 -16
- data/app/assets/javascripts/blocks/motion.js.coffee.erb +46 -47
- data/app/assets/javascripts/blocks/operators.js.coffee.erb +54 -57
- data/app/assets/javascripts/blocks/pen.js.coffee.erb +5 -9
- data/app/assets/javascripts/blocks/ruby.js.coffee.erb +4 -3
- data/app/assets/javascripts/blocks/sensing.js.coffee.erb +53 -48
- data/app/assets/javascripts/blocks/sound.js.coffee.erb +12 -10
- data/app/assets/javascripts/collections/.keep +0 -0
- data/app/assets/javascripts/collections/character_set.js.coffee +0 -0
- data/app/assets/javascripts/fix_blockly.js +74 -0
- data/app/assets/javascripts/generators/ruby.js.coffee.erb +0 -0
- data/app/assets/javascripts/models/.keep +0 -0
- data/app/assets/javascripts/models/character.js.coffee +0 -0
- data/app/assets/javascripts/models/scene.js.coffee +0 -0
- data/app/assets/javascripts/models/source_code.js.coffee +0 -0
- data/app/assets/javascripts/msg/en_us.js +236 -0
- data/app/assets/javascripts/msg/ja.js +237 -0
- data/app/assets/javascripts/routers/.keep +0 -0
- data/app/assets/javascripts/smalruby.js.coffee +8 -0
- data/app/assets/javascripts/views/.keep +0 -0
- data/app/assets/javascripts/views/character_modal_view.js.coffee +0 -0
- data/app/assets/javascripts/views/character_selector_view.js.coffee +0 -0
- data/app/assets/javascripts/views/load_modal_view.js.coffee +0 -0
- data/app/assets/javascripts/views/{main_menu_view.js.coffee → main_menu_view.js.coffee.erb} +19 -18
- data/app/assets/javascripts/views/reset_modal_view.js.coffee +0 -0
- data/app/assets/javascripts/views/signin_modal_view.js.coffee +0 -0
- data/app/assets/stylesheets/application.css +0 -0
- data/app/assets/stylesheets/editor.css.scss +4 -0
- data/app/assets/stylesheets/flatstrap-custom.css.scss +0 -0
- data/app/assets/stylesheets/load-modal.css.scss +0 -0
- data/app/assets/stylesheets/toolbox.css.scss.erb +0 -0
- data/app/assets/templates/.keep +0 -0
- data/app/controllers/application_controller.rb +16 -0
- data/app/controllers/concerns/.keep +0 -0
- data/app/controllers/editor_controller.rb +0 -0
- data/app/controllers/sessions_controller.rb +0 -0
- data/app/controllers/source_codes_controller.rb +0 -0
- data/app/helpers/application_helper.rb +11 -0
- data/app/helpers/editor_helper.rb +0 -0
- data/app/helpers/sessions_helper.rb +0 -0
- data/app/mailers/.keep +0 -0
- data/app/models/.keep +0 -0
- data/app/models/concerns/.keep +0 -0
- data/app/models/concerns/ruby_to_block.rb +0 -0
- data/app/models/concerns/ruby_to_block/block.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/base.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/character.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/character_event.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/character_method_call.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/character_new.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/character_operation.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/control_beark.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/control_if.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/control_loop.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/control_sleep.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/do.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/else.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/end.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/events_on_click.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/events_on_key_push_or_down.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/events_on_start.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_button_down_or_up.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_init_hardware.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_led_off.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_led_on.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_motor_driver.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_motor_driver_set_speed.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_motor_driver_speed.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_on_button_down_or_up.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_on_sensor_change.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_operation.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_rgb_led_on.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_sensor_value.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_commands.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_run.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_set_speed.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/looks_hide.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/looks_say.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/looks_show.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/looks_vanish.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/math_number.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_change_x_by.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_change_y_by.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_go_to_character.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_go_to_mouse.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_move.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_point_towards_character.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_point_towards_mouse.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_rotate_left.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_rotate_right.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_self_angle.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_self_x.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_self_y.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_set_angle.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_set_rotation_style.rb +17 -0
- data/app/models/concerns/ruby_to_block/block/motion_set_x.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_set_x_y.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_set_y.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_turn.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_turn_if_reach_wall.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/motion_turn_xy.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/null.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/operators_compare.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/operators_false.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/operators_true.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/require_smalruby.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/ruby_comment.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/ruby_expression.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/ruby_p.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/ruby_statement.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/sensing_hit.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/sensing_reach_wall.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/sound_play.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/sound_preset_sounds.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/text.rb +0 -0
- data/app/models/concerns/ruby_to_block/block/value.rb +0 -0
- data/app/models/concerns/ruby_to_block/context.rb +0 -0
- data/app/models/concerns/ruby_to_block/formatter.rb +0 -0
- data/app/models/source_code.rb +0 -0
- data/app/views/editor/_block_tab.html.haml +4 -4
- data/app/views/editor/_character_modal.html.haml +7 -7
- data/app/views/editor/_load_modal.html.haml +6 -6
- data/app/views/editor/_reset_modal.html.haml +0 -0
- data/app/views/editor/_signin_modal.html.haml +0 -0
- data/app/views/editor/_toolbox.html.haml +39 -39
- data/app/views/editor/demo.html.erb +0 -0
- data/app/views/editor/index.html.haml +18 -18
- data/app/views/layouts/application.html.erb +2 -0
- data/bin/bundle +0 -0
- data/bin/rails +0 -0
- data/bin/rake +0 -0
- data/bin/smalruby-editor +0 -0
- data/config.ru +0 -0
- data/config/application.rb +1 -1
- data/config/boot.rb +0 -0
- data/config/database.yml.mysql2 +0 -0
- data/config/database.yml.sqlite3 +0 -0
- data/config/database.yml.travis +0 -0
- data/config/environment.rb +0 -0
- data/config/environments/development.rb +0 -0
- data/config/environments/production.rb +4 -1
- data/config/environments/standalone.rb +0 -0
- data/config/environments/test.rb +0 -0
- data/config/initializers/backtrace_silencers.rb +0 -0
- data/config/initializers/filter_parameter_logging.rb +0 -0
- data/config/initializers/inflections.rb +0 -0
- data/config/initializers/mime_types.rb +0 -0
- data/config/initializers/secret_token.rb +0 -0
- data/config/initializers/session_store.rb +0 -0
- data/config/initializers/teaspoon.rb +0 -0
- data/config/initializers/wrap_parameters.rb +0 -0
- data/config/locales/en.yml +64 -22
- data/config/locales/ja.yml +65 -0
- data/config/routes.rb +3 -1
- data/config/unicorn.rb +0 -0
- data/db/migrate/20131216121603_create_source_codes.rb +0 -0
- data/db/migrate/20131219045113_add_filename_to_source_code.rb +0 -0
- data/db/schema.rb +0 -0
- data/db/seeds.rb +0 -0
- data/demos/adjust_2wd_car.rb.xml +0 -0
- data/demos/car_chase.rb.xml +0 -0
- data/demos/hardware_led.rb.xml +0 -0
- data/demos/pong.rb.xml +0 -0
- data/demos/star.rb.xml +0 -0
- data/lib/assets/.keep +0 -0
- data/lib/smalruby_editor.rb +0 -0
- data/lib/smalruby_editor/blockly_message_helper.rb +20 -0
- data/lib/smalruby_editor/version.rb +1 -1
- data/lib/tasks/.keep +0 -0
- data/lib/tasks/gem.rake +1 -3
- data/lib/tasks/release.rake +0 -0
- data/lib/tasks/rspec.rake +0 -0
- data/lib/tasks/rubocop.rake +0 -0
- data/log/.keep +0 -0
- data/public/404.html +0 -0
- data/public/422.html +0 -0
- data/public/500.html +0 -0
- data/public/apple-touch-icon.png +0 -0
- data/public/blockly/media/1x1.gif +0 -0
- data/public/blockly/media/click.mp3 +0 -0
- data/public/blockly/media/click.ogg +0 -0
- data/public/blockly/media/click.wav +0 -0
- data/public/blockly/media/delete.mp3 +0 -0
- data/public/blockly/media/delete.ogg +0 -0
- data/public/blockly/media/delete.wav +0 -0
- data/public/blockly/media/handclosed.cur +0 -0
- data/public/blockly/media/handopen.cur +0 -0
- data/public/blockly/media/quote0.png +0 -0
- data/public/blockly/media/quote1.png +0 -0
- data/public/blockly/media/trashbody.png +0 -0
- data/public/blockly/media/trashlid.png +0 -0
- data/public/blockly/media/tree.png +0 -0
- data/public/browserconfig.xml +0 -0
- data/public/fonts/FontAwesome.otf +0 -0
- data/public/fonts/fontawesome-webfont.eot +0 -0
- data/public/fonts/fontawesome-webfont.ttf +0 -0
- data/public/fonts/fontawesome-webfont.woff +0 -0
- data/public/large.png +0 -0
- data/public/robots.txt +0 -0
- data/public/smalruby/assets/ball1.png +0 -0
- data/public/smalruby/assets/ball2.png +0 -0
- data/public/smalruby/assets/ball3.png +0 -0
- data/public/smalruby/assets/ball4.png +0 -0
- data/public/smalruby/assets/ball5.png +0 -0
- data/public/smalruby/assets/ball6.png +0 -0
- data/public/smalruby/assets/car1.png +0 -0
- data/public/smalruby/assets/car2.png +0 -0
- data/public/smalruby/assets/car3.png +0 -0
- data/public/smalruby/assets/car4.png +0 -0
- data/public/smalruby/assets/cat1.png +0 -0
- data/public/smalruby/assets/cat2.png +0 -0
- data/public/smalruby/assets/cat3.png +0 -0
- data/public/smalruby/assets/frog1.png +0 -0
- data/public/smalruby/assets/piano_do.wav +0 -0
- data/public/smalruby/assets/piano_do_2.wav +0 -0
- data/public/smalruby/assets/piano_fa.wav +0 -0
- data/public/smalruby/assets/piano_mi.wav +0 -0
- data/public/smalruby/assets/piano_ra.wav +0 -0
- data/public/smalruby/assets/piano_re.wav +0 -0
- data/public/smalruby/assets/piano_si.wav +0 -0
- data/public/smalruby/assets/piano_so.wav +0 -0
- data/public/smalruby/assets/ryu1.png +0 -0
- data/public/smalruby/assets/ryu2.png +0 -0
- data/public/smalruby/assets/taichi1.png +0 -0
- data/public/smalruby/assets/taichi2.png +0 -0
- data/public/square.png +0 -0
- data/public/tiny.png +0 -0
- data/public/wide.png +0 -0
- data/smalruby-editor.gemspec +1 -1
- data/spec/acceptance/base.feature +0 -0
- data/spec/acceptance/block_mode/blocks/character/new.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/await.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/await_until.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/break.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/if.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/if_else.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/loop.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/next.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/redo.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/sleep.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/times.feature +0 -0
- data/spec/acceptance/block_mode/blocks/control/until.feature +0 -0
- data/spec/acceptance/block_mode/blocks/events/on_click.feature +0 -0
- data/spec/acceptance/block_mode/blocks/events/on_hit.feature +0 -0
- data/spec/acceptance/block_mode/blocks/events/on_key_push_or_down.feature +0 -0
- data/spec/acceptance/block_mode/blocks/events/on_start.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/button_down_or_up.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/button_not_use_pullup.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/init_hardware.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/led_off.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/led_on.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/motor_driver.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/motor_driver_speed.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/on_button_down_or_up.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/on_sensor_change.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/rgb_led_off.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/rgb_led_on.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/sensor_value.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/servo_set_position.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/two_wheel_drive_car.feature +0 -0
- data/spec/acceptance/block_mode/blocks/hardware/two_wheel_drive_car_speed.feature +0 -0
- data/spec/acceptance/block_mode/blocks/looks/hide.feature +0 -0
- data/spec/acceptance/block_mode/blocks/looks/say.feature +0 -0
- data/spec/acceptance/block_mode/blocks/looks/show.feature +0 -0
- data/spec/acceptance/block_mode/blocks/looks/vanish.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/change_x_by.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/change_y_by.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/move.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/reach_wall.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/rotate_left.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/rotate_right.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/self_angle.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/self_x.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/self_y.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/set_angle.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/set_x.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/set_x_y.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/set_y.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/turn.feature +0 -0
- data/spec/acceptance/block_mode/blocks/motion/turn_if_reach_wall.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/and_or.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/four_arithmetic_and_compares.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/index_of.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/length.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/math_method.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/negate.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/rand.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/round.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/text.feature +0 -0
- data/spec/acceptance/block_mode/blocks/operators/true_false.feature +0 -0
- data/spec/acceptance/block_mode/blocks/ruby/expression.feature +0 -0
- data/spec/acceptance/block_mode/blocks/ruby/p.feature +0 -0
- data/spec/acceptance/block_mode/blocks/ruby/statement_comment.feature +0 -0
- data/spec/acceptance/block_mode/blocks/sensing/character_property.feature +0 -0
- data/spec/acceptance/block_mode/blocks/sensing/hit.feature +0 -0
- data/spec/acceptance/block_mode/blocks/sensing/input_key_push_or_down.feature +0 -0
- data/spec/acceptance/block_mode/blocks/sensing/input_mouse_pos_x.feature +0 -0
- data/spec/acceptance/block_mode/blocks/sensing/input_mouse_pos_y.feature +0 -0
- data/spec/acceptance/block_mode/blocks/sensing/input_mouse_push_or_down.feature +0 -0
- data/spec/acceptance/block_mode/blocks/sensing/reach_wall.feature +0 -0
- data/spec/acceptance/block_mode/blocks/sensing/time_now.feature +0 -0
- data/spec/acceptance/block_mode/blocks/sound/play.feature +0 -0
- data/spec/acceptance/block_mode/demo.feature +0 -0
- data/spec/acceptance/block_mode/translate.feature +0 -0
- data/spec/acceptance/readme.md +0 -0
- data/spec/acceptance/ruby_mode/check.feature +0 -0
- data/spec/acceptance/ruby_mode/download.feature +0 -0
- data/spec/acceptance/ruby_mode/load.feature +0 -0
- data/spec/acceptance/ruby_mode/translate.feature +0 -0
- data/spec/acceptance/standalone/run.feature +0 -0
- data/spec/acceptance/standalone/save.feature +0 -0
- data/spec/acceptance/standalone/signin.feature +0 -0
- data/spec/controllers/editor_controller_spec.rb +0 -0
- data/spec/controllers/sessions_controller_spec.rb +0 -0
- data/spec/controllers/source_codes_controller_spec.rb +0 -0
- data/spec/fixtures/files/01.rb +0 -0
- data/spec/fixtures/files/01.rb.xml +0 -0
- data/spec/fixtures/files/01_remix.rb +0 -0
- data/spec/fixtures/files/01_remix02.rb +0 -0
- data/spec/fixtures/files/01_remix10.rb.xml +0 -0
- data/spec/fixtures/files/favicon.ico +0 -0
- data/spec/helpers/editor_helper_spec.rb +0 -0
- data/spec/helpers/sessions_helper_spec.rb +0 -0
- data/spec/javascripts/collections/character_set_spec.coffee +0 -0
- data/spec/javascripts/models/character_spec.coffee +0 -0
- data/spec/javascripts/models/scene_spec.coffee +0 -0
- data/spec/javascripts/models/source_code_spec.coffee +0 -0
- data/spec/javascripts/spec_helper.js +0 -0
- data/spec/lib/smalruby_editor_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/character_method_call_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/control_if_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/control_loop_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/events_on_start_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/hardware_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/looks_say_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/looks_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/motion_move_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/motion_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/motion_turn_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/motion_turn_xy_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/require_smalruby_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/ruby_comment_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/ruby_statement_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/sensing_reach_wall_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/shared/block_examples.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/sound_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block/text_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block/block_spec.rb +0 -0
- data/spec/models/concerns/ruby_to_block_spec.rb +0 -0
- data/spec/models/source_code_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/steps/base_steps.rb +1 -0
- data/spec/steps/block_mode_steps.rb +0 -0
- data/spec/steps/fix_turnip.rb +0 -0
- data/spec/steps/global_variable.rb +0 -0
- data/spec/steps/text_editor_steps.rb +0 -0
- data/spec/support/capybara.rb +0 -0
- data/spec/support/env.rb +0 -0
- data/spec/support/ruby_to_block.rb +0 -0
- data/spec/teaspoon_env.rb +0 -0
- data/spec/turnip_helper.rb +0 -0
- data/vendor/assets/javascripts/.keep +0 -0
- data/vendor/assets/javascripts/blockly/blockly_compressed.js +0 -0
- data/vendor/assets/javascripts/blockly/blocks_compressed.js +0 -0
- data/vendor/assets/javascripts/blockly/msg/js/en_us.js +507 -0
- data/vendor/assets/javascripts/blockly/msg/js/ja.js +0 -0
- data/vendor/assets/javascripts/jquery.blockUI.js +0 -0
- data/vendor/assets/stylesheets/.keep +0 -0
- metadata +80 -66
data/app/models/concerns/.keep
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
module RubyToBlock
|
3
|
+
module Block
|
4
|
+
class MotionSetRotationStyle < CharacterMethodCall
|
5
|
+
blocknize '^\s*' + CHAR_RE +
|
6
|
+
'rotation_style\s*=\s*:(left_right|none|free)\s*$',
|
7
|
+
statement: true, inline: true
|
8
|
+
|
9
|
+
def self.process_match_data(md, context)
|
10
|
+
md2 = regexp.match(md[type])
|
11
|
+
add_character_method_call_block(context, md2[1],
|
12
|
+
new(fields: { STYLE: md2[2] }))
|
13
|
+
true
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/app/models/source_code.rb
CHANGED
File without changes
|
@@ -8,10 +8,10 @@
|
|
8
8
|
%ul.nav{:class => 'nav-pills'}
|
9
9
|
%li.active
|
10
10
|
%a{:href => '#character-selector-tab', :'data-toggle' => 'tab'}<
|
11
|
-
|
11
|
+
= t('.character')
|
12
12
|
-#%li
|
13
13
|
-#%a{:href => '#scene-selector-tab', :'data-toggle' => 'tab'}<
|
14
|
-
|
14
|
+
-#= t('.stage')
|
15
15
|
|
16
16
|
#selectors-tab-content{:class => 'tab-content'}
|
17
17
|
#character-selector-tab{:class => 'tab-pane active selector-tab'}
|
@@ -20,7 +20,7 @@
|
|
20
20
|
%a#add-character-button{:class => 'character'}
|
21
21
|
%i.icon-plus-sign-alt
|
22
22
|
%br
|
23
|
-
|
23
|
+
= t('.new_character')
|
24
24
|
|
25
25
|
#scene-selector-tab{:class => 'tab-pane selector-tab'}
|
26
26
|
.item
|
@@ -40,7 +40,7 @@
|
|
40
40
|
.attributes
|
41
41
|
X: {{- get('x') }} Y: {{- get('y') }}
|
42
42
|
%br
|
43
|
-
|
43
|
+
= t('.direction_parameter')
|
44
44
|
%i{class: "{{- rotationStyleIconName() }}"}
|
45
45
|
{{- get('angle') }}°
|
46
46
|
|
@@ -19,26 +19,26 @@
|
|
19
19
|
%form#character-modal-form{:class => 'form-horizontal'}
|
20
20
|
.control-group{:for => "character[name]"}
|
21
21
|
%label.control-label{:for => 'character_name'}<
|
22
|
-
|
22
|
+
= t('.name')
|
23
23
|
.controls
|
24
|
-
%input#character_name{:name => 'character[name]', :type => 'text', :placeholder => '
|
24
|
+
%input#character_name{:name => 'character[name]', :type => 'text', :placeholder => t('.msg_input_name'), :class => 'input-large'}
|
25
25
|
.control-group
|
26
26
|
%label.control-label{:for => 'character_x'}<
|
27
|
-
|
27
|
+
= t('.x_position')
|
28
28
|
.controls
|
29
29
|
%input#character_x{:name => 'character[x]', :type => 'range', :min => '0', :max => '639', :class => 'input-large'}
|
30
30
|
%span#character_x_value{:class => 'character_value'}
|
31
31
|
300
|
32
32
|
.control-group
|
33
33
|
%label.control-label{:for => 'character_y'}<
|
34
|
-
|
34
|
+
= t('.y_position')
|
35
35
|
.controls
|
36
36
|
%input#character_y{:name => 'character[y]', :type => 'range', :min => '0', :max => '439', :class => 'input-large'}
|
37
37
|
%span#character_y_value{:class => 'character_value'}
|
38
38
|
200
|
39
39
|
.control-group
|
40
40
|
%label.control-label{:for => 'character_angle'}<
|
41
|
-
|
41
|
+
= t('.direction')
|
42
42
|
.controls
|
43
43
|
#character_rotation_style.btn-group
|
44
44
|
%button#character_rotation_style_free.btn{type: "button", class: "btn-small", value: "free"}<
|
@@ -56,7 +56,7 @@
|
|
56
56
|
.modal-footer
|
57
57
|
%button.btn{:'data-dismiss' => 'modal', :'aria-hidden' => 'true'}<
|
58
58
|
%i.icon-remove
|
59
|
-
|
59
|
+
= t('common.cancel')
|
60
60
|
%button#character-modal-ok-button{:class => 'btn btn-primary'}<
|
61
61
|
%i.icon-circle-blank
|
62
|
-
|
62
|
+
= t('common.ok')
|
@@ -7,14 +7,14 @@
|
|
7
7
|
.page-header
|
8
8
|
%h3<
|
9
9
|
%i.icon-th-large
|
10
|
-
|
10
|
+
= t('.preset_programs')
|
11
11
|
%ul.thumbnails{:id => "load-modal-demo-programs",
|
12
12
|
:class => "list-programs"}
|
13
13
|
|
14
14
|
.page-header
|
15
15
|
%h3<
|
16
16
|
%i.icon-search
|
17
|
-
|
17
|
+
= t('.find_program')
|
18
18
|
%ul.thumbnails{:class => "list-programs"}
|
19
19
|
%li
|
20
20
|
%a#load-modal-find-from-computer.thumbnail
|
@@ -22,7 +22,7 @@
|
|
22
22
|
%i.icon-folder-open-alt
|
23
23
|
%blockquote
|
24
24
|
%p
|
25
|
-
|
25
|
+
= t('.computer')
|
26
26
|
%small
|
27
27
|
Computer
|
28
28
|
|
@@ -30,10 +30,10 @@
|
|
30
30
|
.pull-left
|
31
31
|
%button#load-modal-remix-button.btn<
|
32
32
|
%i.icon-refresh
|
33
|
-
|
33
|
+
= t('.remix')
|
34
34
|
%button.btn{:"data-dismiss" => "modal", :"aria-hidden" => "true"}<
|
35
35
|
%i.icon-remove
|
36
|
-
|
36
|
+
= t('common.cancel')
|
37
37
|
%button#load-modal-ok-button{:class => "btn btn-primary"}<
|
38
38
|
%i.icon-circle-blank
|
39
|
-
|
39
|
+
= t('common.ok')
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
%xml{:id => 'toolbox', :style => 'display: none'}
|
2
2
|
- category = 'motion'
|
3
|
-
%category{:name => '
|
4
|
-
%category{:name => '
|
3
|
+
%category{:name => t('.motion')}
|
4
|
+
%category{:name => t('.motion_move')}
|
5
5
|
-# ( )歩動かす
|
6
6
|
%block{:type => "#{category}_move"}
|
7
7
|
= toolbox_number_value('STEP', 10)
|
@@ -45,7 +45,7 @@
|
|
45
45
|
-# 変数:y座標
|
46
46
|
%block{:type => "#{category}_self_y"}
|
47
47
|
|
48
|
-
%category{:name => '
|
48
|
+
%category{:name => t('.motion_rotate')}
|
49
49
|
-# もし端に着いたら、跳ね返る
|
50
50
|
%block{:type => "#{category}_turn_if_reach_wall"}
|
51
51
|
|
@@ -80,10 +80,10 @@
|
|
80
80
|
%block{:type => "#{category}_self_angle"}
|
81
81
|
|
82
82
|
- category = 'hardware'
|
83
|
-
%category{:name => '
|
84
|
-
|
83
|
+
%category{:name => t('.motion_actuator')}
|
84
|
+
- subcategory = 'servo'
|
85
85
|
-# サーボ[▼PIN]を( )度(5~180)にする
|
86
|
-
|
86
|
+
%block{:type => "#{category}_#{subcategory}_set_position"}
|
87
87
|
= toolbox_number_value('POS', 90)
|
88
88
|
|
89
89
|
- subcategory = 'two_wheel_drive_car'
|
@@ -137,7 +137,7 @@
|
|
137
137
|
= toolbox_number_value('SPEED', 100)
|
138
138
|
|
139
139
|
- category = 'looks'
|
140
|
-
%category{:name => '
|
140
|
+
%category{:name => t('.looks')}
|
141
141
|
-# [ ]と( )秒言う
|
142
142
|
-#%block{:type => "#{category}_say_second"}
|
143
143
|
-# = toolbox_text_value('TEXT', 'こんにちは!')
|
@@ -145,7 +145,7 @@
|
|
145
145
|
|
146
146
|
-# [ ]と言う
|
147
147
|
%block{:type => "#{category}_say"}
|
148
|
-
= toolbox_text_value('TEXT', '
|
148
|
+
= toolbox_text_value('TEXT', t('.hello'))
|
149
149
|
|
150
150
|
-# [ ]と( )秒考える
|
151
151
|
-#%block{:type => "#{category}_think_second"}
|
@@ -187,30 +187,30 @@
|
|
187
187
|
-# LED[▼PIN]をオフにする
|
188
188
|
%block{:type => "#{category}_#{subcategory}_off"}
|
189
189
|
|
190
|
-
|
190
|
+
- subcategory = 'rgb_led'
|
191
191
|
-# RGB LED[▼アノード]コモン[▼PIN]を[カラー]にする
|
192
|
-
|
192
|
+
%block{:type => "#{category}_#{subcategory}_on"}
|
193
193
|
|
194
194
|
-# RGB LED[▼アノード]コモン[▼PIN]をオフにする
|
195
|
-
|
195
|
+
%block{:type => "#{category}_#{subcategory}_off"}
|
196
196
|
|
197
|
-
|
197
|
+
- subcategory = 'seven_segment_display'
|
198
198
|
-# 7セグディスプレイに[▼0-9]を表示する
|
199
|
-
|
199
|
+
%block{:type => "#{category}_#{subcategory}_show"}
|
200
200
|
|
201
201
|
-# 7セグディスプレイをオフにする
|
202
|
-
|
202
|
+
%block{:type => "#{category}_#{subcategory}_off"}
|
203
203
|
|
204
|
-
|
204
|
+
- subcategory = 'lcd'
|
205
205
|
-# LCDに( )を表示する
|
206
|
-
|
206
|
+
%block{:type => "#{category}_#{subcategory}_puts"}
|
207
207
|
= toolbox_text_value('TEXT', 'Hello')
|
208
208
|
|
209
209
|
-# LCDをクリアする
|
210
|
-
|
210
|
+
%block{:type => "#{category}_#{subcategory}_clear"}
|
211
211
|
|
212
212
|
- category = 'sound'
|
213
|
-
%category{:name => '
|
213
|
+
%category{:name => t('.sound')}
|
214
214
|
-# [▼プリセット音声]の音を鳴らす
|
215
215
|
%block{:type => "#{category}_play"}
|
216
216
|
%value{:name => 'NAME'}
|
@@ -223,7 +223,7 @@
|
|
223
223
|
-#%block{:type => "#{category}_volume"}
|
224
224
|
|
225
225
|
- category = 'pen'
|
226
|
-
%category{:name => '
|
226
|
+
%category{:name => t('.pen')}
|
227
227
|
-# ペンを下ろす
|
228
228
|
%block{:type => "#{category}_down_pen"}
|
229
229
|
|
@@ -233,11 +233,11 @@
|
|
233
233
|
-# ペンの色を[カラー]にする
|
234
234
|
%block{:type => "#{category}_set_pen_color"}
|
235
235
|
|
236
|
-
%category{:name => '
|
237
|
-
%category{:name => '
|
236
|
+
%category{:name => t('.data')}
|
237
|
+
%category{:name => t('.data_variables'), :custom => 'VARIABLE'}
|
238
238
|
|
239
239
|
- category = 'events'
|
240
|
-
%category{:name => '
|
240
|
+
%category{:name => t('.events')}
|
241
241
|
-# まずは
|
242
242
|
%block{:type => "#{category}_on_start"}
|
243
243
|
|
@@ -259,8 +259,8 @@
|
|
259
259
|
%block{:type => "#{category}_on_button_down_or_up"}
|
260
260
|
|
261
261
|
- category = 'control'
|
262
|
-
%category{:name => '
|
263
|
-
%category{:name => '
|
262
|
+
%category{:name => t('.control')}
|
263
|
+
%category{:name => t('.control_loop')}
|
264
264
|
-# ずっと
|
265
265
|
%block{:type => "#{category}_loop"}
|
266
266
|
|
@@ -280,7 +280,7 @@
|
|
280
280
|
-# 現在の繰り返しをやり直す
|
281
281
|
%block{:type => "#{category}_redo"}
|
282
282
|
|
283
|
-
%category{:name => '
|
283
|
+
%category{:name => t('.control_wait')}
|
284
284
|
-# ( )秒待つ
|
285
285
|
%block{:type => "#{category}_sleep"}
|
286
286
|
= toolbox_number_value('SEC', 1)
|
@@ -291,7 +291,7 @@
|
|
291
291
|
-# ほんの少し待つ
|
292
292
|
%block{:type => "#{category}_await"}
|
293
293
|
|
294
|
-
%category{:name => '
|
294
|
+
%category{:name => t('.control_if')}
|
295
295
|
-# もし< >なら
|
296
296
|
%block{:type => "#{category}_if"}
|
297
297
|
|
@@ -299,8 +299,8 @@
|
|
299
299
|
%block{:type => "#{category}_if_else"}
|
300
300
|
|
301
301
|
- category = 'sensing'
|
302
|
-
%category{:name => '
|
303
|
-
%category{:name => '
|
302
|
+
%category{:name => t('.sensing')}
|
303
|
+
%category{:name => t('.sensing_general')}
|
304
304
|
-# 条件:端に触れた
|
305
305
|
%block{:type => "#{category}_reach_wall"}
|
306
306
|
|
@@ -343,7 +343,7 @@
|
|
343
343
|
-#%block{:type => "#{category}_days_since_2000"}
|
344
344
|
|
345
345
|
- category = 'hardware'
|
346
|
-
%category{:name => '
|
346
|
+
%category{:name => t('.sensing_hardware')}
|
347
347
|
-# センサー[▼PIN]
|
348
348
|
%block{:type => "#{category}_sensor_value"}
|
349
349
|
= toolbox_pin_field('A0')
|
@@ -361,8 +361,8 @@
|
|
361
361
|
= toolbox_pin_field('D6')
|
362
362
|
|
363
363
|
- category = 'operators'
|
364
|
-
%category{:name => '
|
365
|
-
%category{:name => '
|
364
|
+
%category{:name => t('.operators')}
|
365
|
+
%category{:name => t('.operators_calculate')}
|
366
366
|
-# 変数:( ) + ( )
|
367
367
|
%block{:type => "#{category}_add"}
|
368
368
|
|
@@ -400,22 +400,22 @@
|
|
400
400
|
%field{:name => 'NUM'}<
|
401
401
|
0
|
402
402
|
|
403
|
-
%category{:name => '
|
403
|
+
%category{:name => t('.operators_string')}
|
404
404
|
-# 変数:( )の( )番目
|
405
405
|
%block{:type => "#{category}_index_of"}
|
406
|
-
= toolbox_text_value('A', '
|
406
|
+
= toolbox_text_value('A', t('.world'))
|
407
407
|
= toolbox_number_value('INDEX', 1)
|
408
408
|
|
409
409
|
-# 変数:( )の長さ
|
410
410
|
%block{:type => "#{category}_length"}
|
411
|
-
= toolbox_text_value('A', '
|
411
|
+
= toolbox_text_value('A', t('.world'))
|
412
412
|
|
413
413
|
-# テキスト
|
414
414
|
%block{:type => 'text'}
|
415
415
|
%field{:name => 'TEXT'}<
|
416
|
-
|
416
|
+
= t('.text')
|
417
417
|
|
418
|
-
%category{:name => '
|
418
|
+
%category{:name => t('.operators_condition')}
|
419
419
|
-# 条件:( ) < ( )
|
420
420
|
%block{:type => "#{category}_compare_gt"}
|
421
421
|
|
@@ -446,9 +446,9 @@
|
|
446
446
|
-# 条件:偽
|
447
447
|
%block{:type => "#{category}_false"}
|
448
448
|
|
449
|
-
%category{:name => '
|
449
|
+
%category{:name => t('.etc')}
|
450
450
|
- category = 'ruby'
|
451
|
-
%category{:name => '
|
451
|
+
%category{:name => t('.etc_ruby')}
|
452
452
|
-# 文
|
453
453
|
%block{:type => "#{category}_statement"}
|
454
454
|
|
@@ -462,7 +462,7 @@
|
|
462
462
|
%block{:type => "#{category}_p"}
|
463
463
|
|
464
464
|
- category = 'hardware'
|
465
|
-
%category{:name => '
|
465
|
+
%category{:name => t('.etc_hardware')}
|
466
466
|
-# ハードウェアを準備する
|
467
467
|
%block{:type => "#{category}_init_hardware"}
|
468
468
|
|