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.

Files changed (396) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/.rspec +0 -0
  4. data/.rubocop.yml +0 -0
  5. data/.ruby-version +1 -1
  6. data/.simplecov +0 -0
  7. data/.travis.yml +1 -1
  8. data/LEGAL +0 -0
  9. data/LICENSE +0 -0
  10. data/Procfile +0 -0
  11. data/README.rdoc +1 -0
  12. data/Rakefile +0 -0
  13. data/app/assets/images/.keep +0 -0
  14. data/app/assets/images/favicon.ico +0 -0
  15. data/app/assets/javascripts/application.js +0 -1
  16. data/app/assets/javascripts/blocks/blockly.js.coffee.erb +0 -0
  17. data/app/assets/javascripts/blocks/character.js.coffee.erb +0 -0
  18. data/app/assets/javascripts/blocks/control.js.coffee.erb +16 -19
  19. data/app/assets/javascripts/blocks/data.js.coffee.erb +0 -0
  20. data/app/assets/javascripts/blocks/etc.js.coffee.erb +0 -0
  21. data/app/assets/javascripts/blocks/events.js.coffee.erb +8 -6
  22. data/app/assets/javascripts/blocks/field_character.js.coffee.erb +6 -1
  23. data/app/assets/javascripts/blocks/hardware.js.coffee.erb +117 -167
  24. data/app/assets/javascripts/blocks/looks.js.coffee.erb +14 -16
  25. data/app/assets/javascripts/blocks/motion.js.coffee.erb +46 -47
  26. data/app/assets/javascripts/blocks/operators.js.coffee.erb +54 -57
  27. data/app/assets/javascripts/blocks/pen.js.coffee.erb +5 -9
  28. data/app/assets/javascripts/blocks/ruby.js.coffee.erb +4 -3
  29. data/app/assets/javascripts/blocks/sensing.js.coffee.erb +53 -48
  30. data/app/assets/javascripts/blocks/sound.js.coffee.erb +12 -10
  31. data/app/assets/javascripts/collections/.keep +0 -0
  32. data/app/assets/javascripts/collections/character_set.js.coffee +0 -0
  33. data/app/assets/javascripts/fix_blockly.js +74 -0
  34. data/app/assets/javascripts/generators/ruby.js.coffee.erb +0 -0
  35. data/app/assets/javascripts/models/.keep +0 -0
  36. data/app/assets/javascripts/models/character.js.coffee +0 -0
  37. data/app/assets/javascripts/models/scene.js.coffee +0 -0
  38. data/app/assets/javascripts/models/source_code.js.coffee +0 -0
  39. data/app/assets/javascripts/msg/en_us.js +236 -0
  40. data/app/assets/javascripts/msg/ja.js +237 -0
  41. data/app/assets/javascripts/routers/.keep +0 -0
  42. data/app/assets/javascripts/smalruby.js.coffee +8 -0
  43. data/app/assets/javascripts/views/.keep +0 -0
  44. data/app/assets/javascripts/views/character_modal_view.js.coffee +0 -0
  45. data/app/assets/javascripts/views/character_selector_view.js.coffee +0 -0
  46. data/app/assets/javascripts/views/load_modal_view.js.coffee +0 -0
  47. data/app/assets/javascripts/views/{main_menu_view.js.coffee → main_menu_view.js.coffee.erb} +19 -18
  48. data/app/assets/javascripts/views/reset_modal_view.js.coffee +0 -0
  49. data/app/assets/javascripts/views/signin_modal_view.js.coffee +0 -0
  50. data/app/assets/stylesheets/application.css +0 -0
  51. data/app/assets/stylesheets/editor.css.scss +4 -0
  52. data/app/assets/stylesheets/flatstrap-custom.css.scss +0 -0
  53. data/app/assets/stylesheets/load-modal.css.scss +0 -0
  54. data/app/assets/stylesheets/toolbox.css.scss.erb +0 -0
  55. data/app/assets/templates/.keep +0 -0
  56. data/app/controllers/application_controller.rb +16 -0
  57. data/app/controllers/concerns/.keep +0 -0
  58. data/app/controllers/editor_controller.rb +0 -0
  59. data/app/controllers/sessions_controller.rb +0 -0
  60. data/app/controllers/source_codes_controller.rb +0 -0
  61. data/app/helpers/application_helper.rb +11 -0
  62. data/app/helpers/editor_helper.rb +0 -0
  63. data/app/helpers/sessions_helper.rb +0 -0
  64. data/app/mailers/.keep +0 -0
  65. data/app/models/.keep +0 -0
  66. data/app/models/concerns/.keep +0 -0
  67. data/app/models/concerns/ruby_to_block.rb +0 -0
  68. data/app/models/concerns/ruby_to_block/block.rb +0 -0
  69. data/app/models/concerns/ruby_to_block/block/base.rb +0 -0
  70. data/app/models/concerns/ruby_to_block/block/character.rb +0 -0
  71. data/app/models/concerns/ruby_to_block/block/character_event.rb +0 -0
  72. data/app/models/concerns/ruby_to_block/block/character_method_call.rb +0 -0
  73. data/app/models/concerns/ruby_to_block/block/character_new.rb +0 -0
  74. data/app/models/concerns/ruby_to_block/block/character_operation.rb +0 -0
  75. data/app/models/concerns/ruby_to_block/block/control_beark.rb +0 -0
  76. data/app/models/concerns/ruby_to_block/block/control_if.rb +0 -0
  77. data/app/models/concerns/ruby_to_block/block/control_loop.rb +0 -0
  78. data/app/models/concerns/ruby_to_block/block/control_sleep.rb +0 -0
  79. data/app/models/concerns/ruby_to_block/block/do.rb +0 -0
  80. data/app/models/concerns/ruby_to_block/block/else.rb +0 -0
  81. data/app/models/concerns/ruby_to_block/block/end.rb +0 -0
  82. data/app/models/concerns/ruby_to_block/block/events_on_click.rb +0 -0
  83. data/app/models/concerns/ruby_to_block/block/events_on_key_push_or_down.rb +0 -0
  84. data/app/models/concerns/ruby_to_block/block/events_on_start.rb +0 -0
  85. data/app/models/concerns/ruby_to_block/block/hardware_button_down_or_up.rb +0 -0
  86. data/app/models/concerns/ruby_to_block/block/hardware_button_not_use_pullup.rb +0 -0
  87. data/app/models/concerns/ruby_to_block/block/hardware_init_hardware.rb +0 -0
  88. data/app/models/concerns/ruby_to_block/block/hardware_led_off.rb +0 -0
  89. data/app/models/concerns/ruby_to_block/block/hardware_led_on.rb +0 -0
  90. data/app/models/concerns/ruby_to_block/block/hardware_motor_driver.rb +0 -0
  91. data/app/models/concerns/ruby_to_block/block/hardware_motor_driver_set_speed.rb +0 -0
  92. data/app/models/concerns/ruby_to_block/block/hardware_motor_driver_speed.rb +0 -0
  93. data/app/models/concerns/ruby_to_block/block/hardware_on_button_down_or_up.rb +0 -0
  94. data/app/models/concerns/ruby_to_block/block/hardware_on_sensor_change.rb +0 -0
  95. data/app/models/concerns/ruby_to_block/block/hardware_operation.rb +0 -0
  96. data/app/models/concerns/ruby_to_block/block/hardware_rgb_led_off.rb +0 -0
  97. data/app/models/concerns/ruby_to_block/block/hardware_rgb_led_on.rb +0 -0
  98. data/app/models/concerns/ruby_to_block/block/hardware_sensor_value.rb +0 -0
  99. data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car.rb +0 -0
  100. data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_commands.rb +0 -0
  101. data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_run.rb +0 -0
  102. data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_set_speed.rb +0 -0
  103. data/app/models/concerns/ruby_to_block/block/hardware_two_wheel_drive_car_speed.rb +0 -0
  104. data/app/models/concerns/ruby_to_block/block/looks_hide.rb +0 -0
  105. data/app/models/concerns/ruby_to_block/block/looks_say.rb +0 -0
  106. data/app/models/concerns/ruby_to_block/block/looks_show.rb +0 -0
  107. data/app/models/concerns/ruby_to_block/block/looks_vanish.rb +0 -0
  108. data/app/models/concerns/ruby_to_block/block/math_number.rb +0 -0
  109. data/app/models/concerns/ruby_to_block/block/motion_change_x_by.rb +0 -0
  110. data/app/models/concerns/ruby_to_block/block/motion_change_y_by.rb +0 -0
  111. data/app/models/concerns/ruby_to_block/block/motion_go_to_character.rb +0 -0
  112. data/app/models/concerns/ruby_to_block/block/motion_go_to_mouse.rb +0 -0
  113. data/app/models/concerns/ruby_to_block/block/motion_move.rb +0 -0
  114. data/app/models/concerns/ruby_to_block/block/motion_point_towards_character.rb +0 -0
  115. data/app/models/concerns/ruby_to_block/block/motion_point_towards_mouse.rb +0 -0
  116. data/app/models/concerns/ruby_to_block/block/motion_rotate_left.rb +0 -0
  117. data/app/models/concerns/ruby_to_block/block/motion_rotate_right.rb +0 -0
  118. data/app/models/concerns/ruby_to_block/block/motion_self_angle.rb +0 -0
  119. data/app/models/concerns/ruby_to_block/block/motion_self_x.rb +0 -0
  120. data/app/models/concerns/ruby_to_block/block/motion_self_y.rb +0 -0
  121. data/app/models/concerns/ruby_to_block/block/motion_set_angle.rb +0 -0
  122. data/app/models/concerns/ruby_to_block/block/motion_set_rotation_style.rb +17 -0
  123. data/app/models/concerns/ruby_to_block/block/motion_set_x.rb +0 -0
  124. data/app/models/concerns/ruby_to_block/block/motion_set_x_y.rb +0 -0
  125. data/app/models/concerns/ruby_to_block/block/motion_set_y.rb +0 -0
  126. data/app/models/concerns/ruby_to_block/block/motion_turn.rb +0 -0
  127. data/app/models/concerns/ruby_to_block/block/motion_turn_if_reach_wall.rb +0 -0
  128. data/app/models/concerns/ruby_to_block/block/motion_turn_xy.rb +0 -0
  129. data/app/models/concerns/ruby_to_block/block/null.rb +0 -0
  130. data/app/models/concerns/ruby_to_block/block/operators_compare.rb +0 -0
  131. data/app/models/concerns/ruby_to_block/block/operators_false.rb +0 -0
  132. data/app/models/concerns/ruby_to_block/block/operators_true.rb +0 -0
  133. data/app/models/concerns/ruby_to_block/block/require_smalruby.rb +0 -0
  134. data/app/models/concerns/ruby_to_block/block/ruby_comment.rb +0 -0
  135. data/app/models/concerns/ruby_to_block/block/ruby_expression.rb +0 -0
  136. data/app/models/concerns/ruby_to_block/block/ruby_p.rb +0 -0
  137. data/app/models/concerns/ruby_to_block/block/ruby_statement.rb +0 -0
  138. data/app/models/concerns/ruby_to_block/block/sensing_hit.rb +0 -0
  139. data/app/models/concerns/ruby_to_block/block/sensing_reach_wall.rb +0 -0
  140. data/app/models/concerns/ruby_to_block/block/sound_play.rb +0 -0
  141. data/app/models/concerns/ruby_to_block/block/sound_preset_sounds.rb +0 -0
  142. data/app/models/concerns/ruby_to_block/block/text.rb +0 -0
  143. data/app/models/concerns/ruby_to_block/block/value.rb +0 -0
  144. data/app/models/concerns/ruby_to_block/context.rb +0 -0
  145. data/app/models/concerns/ruby_to_block/formatter.rb +0 -0
  146. data/app/models/source_code.rb +0 -0
  147. data/app/views/editor/_block_tab.html.haml +4 -4
  148. data/app/views/editor/_character_modal.html.haml +7 -7
  149. data/app/views/editor/_load_modal.html.haml +6 -6
  150. data/app/views/editor/_reset_modal.html.haml +0 -0
  151. data/app/views/editor/_signin_modal.html.haml +0 -0
  152. data/app/views/editor/_toolbox.html.haml +39 -39
  153. data/app/views/editor/demo.html.erb +0 -0
  154. data/app/views/editor/index.html.haml +18 -18
  155. data/app/views/layouts/application.html.erb +2 -0
  156. data/bin/bundle +0 -0
  157. data/bin/rails +0 -0
  158. data/bin/rake +0 -0
  159. data/bin/smalruby-editor +0 -0
  160. data/config.ru +0 -0
  161. data/config/application.rb +1 -1
  162. data/config/boot.rb +0 -0
  163. data/config/database.yml.mysql2 +0 -0
  164. data/config/database.yml.sqlite3 +0 -0
  165. data/config/database.yml.travis +0 -0
  166. data/config/environment.rb +0 -0
  167. data/config/environments/development.rb +0 -0
  168. data/config/environments/production.rb +4 -1
  169. data/config/environments/standalone.rb +0 -0
  170. data/config/environments/test.rb +0 -0
  171. data/config/initializers/backtrace_silencers.rb +0 -0
  172. data/config/initializers/filter_parameter_logging.rb +0 -0
  173. data/config/initializers/inflections.rb +0 -0
  174. data/config/initializers/mime_types.rb +0 -0
  175. data/config/initializers/secret_token.rb +0 -0
  176. data/config/initializers/session_store.rb +0 -0
  177. data/config/initializers/teaspoon.rb +0 -0
  178. data/config/initializers/wrap_parameters.rb +0 -0
  179. data/config/locales/en.yml +64 -22
  180. data/config/locales/ja.yml +65 -0
  181. data/config/routes.rb +3 -1
  182. data/config/unicorn.rb +0 -0
  183. data/db/migrate/20131216121603_create_source_codes.rb +0 -0
  184. data/db/migrate/20131219045113_add_filename_to_source_code.rb +0 -0
  185. data/db/schema.rb +0 -0
  186. data/db/seeds.rb +0 -0
  187. data/demos/adjust_2wd_car.rb.xml +0 -0
  188. data/demos/car_chase.rb.xml +0 -0
  189. data/demos/hardware_led.rb.xml +0 -0
  190. data/demos/pong.rb.xml +0 -0
  191. data/demos/star.rb.xml +0 -0
  192. data/lib/assets/.keep +0 -0
  193. data/lib/smalruby_editor.rb +0 -0
  194. data/lib/smalruby_editor/blockly_message_helper.rb +20 -0
  195. data/lib/smalruby_editor/version.rb +1 -1
  196. data/lib/tasks/.keep +0 -0
  197. data/lib/tasks/gem.rake +1 -3
  198. data/lib/tasks/release.rake +0 -0
  199. data/lib/tasks/rspec.rake +0 -0
  200. data/lib/tasks/rubocop.rake +0 -0
  201. data/log/.keep +0 -0
  202. data/public/404.html +0 -0
  203. data/public/422.html +0 -0
  204. data/public/500.html +0 -0
  205. data/public/apple-touch-icon.png +0 -0
  206. data/public/blockly/media/1x1.gif +0 -0
  207. data/public/blockly/media/click.mp3 +0 -0
  208. data/public/blockly/media/click.ogg +0 -0
  209. data/public/blockly/media/click.wav +0 -0
  210. data/public/blockly/media/delete.mp3 +0 -0
  211. data/public/blockly/media/delete.ogg +0 -0
  212. data/public/blockly/media/delete.wav +0 -0
  213. data/public/blockly/media/handclosed.cur +0 -0
  214. data/public/blockly/media/handopen.cur +0 -0
  215. data/public/blockly/media/quote0.png +0 -0
  216. data/public/blockly/media/quote1.png +0 -0
  217. data/public/blockly/media/trashbody.png +0 -0
  218. data/public/blockly/media/trashlid.png +0 -0
  219. data/public/blockly/media/tree.png +0 -0
  220. data/public/browserconfig.xml +0 -0
  221. data/public/fonts/FontAwesome.otf +0 -0
  222. data/public/fonts/fontawesome-webfont.eot +0 -0
  223. data/public/fonts/fontawesome-webfont.ttf +0 -0
  224. data/public/fonts/fontawesome-webfont.woff +0 -0
  225. data/public/large.png +0 -0
  226. data/public/robots.txt +0 -0
  227. data/public/smalruby/assets/ball1.png +0 -0
  228. data/public/smalruby/assets/ball2.png +0 -0
  229. data/public/smalruby/assets/ball3.png +0 -0
  230. data/public/smalruby/assets/ball4.png +0 -0
  231. data/public/smalruby/assets/ball5.png +0 -0
  232. data/public/smalruby/assets/ball6.png +0 -0
  233. data/public/smalruby/assets/car1.png +0 -0
  234. data/public/smalruby/assets/car2.png +0 -0
  235. data/public/smalruby/assets/car3.png +0 -0
  236. data/public/smalruby/assets/car4.png +0 -0
  237. data/public/smalruby/assets/cat1.png +0 -0
  238. data/public/smalruby/assets/cat2.png +0 -0
  239. data/public/smalruby/assets/cat3.png +0 -0
  240. data/public/smalruby/assets/frog1.png +0 -0
  241. data/public/smalruby/assets/piano_do.wav +0 -0
  242. data/public/smalruby/assets/piano_do_2.wav +0 -0
  243. data/public/smalruby/assets/piano_fa.wav +0 -0
  244. data/public/smalruby/assets/piano_mi.wav +0 -0
  245. data/public/smalruby/assets/piano_ra.wav +0 -0
  246. data/public/smalruby/assets/piano_re.wav +0 -0
  247. data/public/smalruby/assets/piano_si.wav +0 -0
  248. data/public/smalruby/assets/piano_so.wav +0 -0
  249. data/public/smalruby/assets/ryu1.png +0 -0
  250. data/public/smalruby/assets/ryu2.png +0 -0
  251. data/public/smalruby/assets/taichi1.png +0 -0
  252. data/public/smalruby/assets/taichi2.png +0 -0
  253. data/public/square.png +0 -0
  254. data/public/tiny.png +0 -0
  255. data/public/wide.png +0 -0
  256. data/smalruby-editor.gemspec +1 -1
  257. data/spec/acceptance/base.feature +0 -0
  258. data/spec/acceptance/block_mode/blocks/character/new.feature +0 -0
  259. data/spec/acceptance/block_mode/blocks/control/await.feature +0 -0
  260. data/spec/acceptance/block_mode/blocks/control/await_until.feature +0 -0
  261. data/spec/acceptance/block_mode/blocks/control/break.feature +0 -0
  262. data/spec/acceptance/block_mode/blocks/control/if.feature +0 -0
  263. data/spec/acceptance/block_mode/blocks/control/if_else.feature +0 -0
  264. data/spec/acceptance/block_mode/blocks/control/loop.feature +0 -0
  265. data/spec/acceptance/block_mode/blocks/control/next.feature +0 -0
  266. data/spec/acceptance/block_mode/blocks/control/redo.feature +0 -0
  267. data/spec/acceptance/block_mode/blocks/control/sleep.feature +0 -0
  268. data/spec/acceptance/block_mode/blocks/control/times.feature +0 -0
  269. data/spec/acceptance/block_mode/blocks/control/until.feature +0 -0
  270. data/spec/acceptance/block_mode/blocks/events/on_click.feature +0 -0
  271. data/spec/acceptance/block_mode/blocks/events/on_hit.feature +0 -0
  272. data/spec/acceptance/block_mode/blocks/events/on_key_push_or_down.feature +0 -0
  273. data/spec/acceptance/block_mode/blocks/events/on_start.feature +0 -0
  274. data/spec/acceptance/block_mode/blocks/hardware/button_down_or_up.feature +0 -0
  275. data/spec/acceptance/block_mode/blocks/hardware/button_not_use_pullup.feature +0 -0
  276. data/spec/acceptance/block_mode/blocks/hardware/init_hardware.feature +0 -0
  277. data/spec/acceptance/block_mode/blocks/hardware/led_off.feature +0 -0
  278. data/spec/acceptance/block_mode/blocks/hardware/led_on.feature +0 -0
  279. data/spec/acceptance/block_mode/blocks/hardware/motor_driver.feature +0 -0
  280. data/spec/acceptance/block_mode/blocks/hardware/motor_driver_speed.feature +0 -0
  281. data/spec/acceptance/block_mode/blocks/hardware/on_button_down_or_up.feature +0 -0
  282. data/spec/acceptance/block_mode/blocks/hardware/on_sensor_change.feature +0 -0
  283. data/spec/acceptance/block_mode/blocks/hardware/rgb_led_off.feature +0 -0
  284. data/spec/acceptance/block_mode/blocks/hardware/rgb_led_on.feature +0 -0
  285. data/spec/acceptance/block_mode/blocks/hardware/sensor_value.feature +0 -0
  286. data/spec/acceptance/block_mode/blocks/hardware/servo_set_position.feature +0 -0
  287. data/spec/acceptance/block_mode/blocks/hardware/two_wheel_drive_car.feature +0 -0
  288. data/spec/acceptance/block_mode/blocks/hardware/two_wheel_drive_car_speed.feature +0 -0
  289. data/spec/acceptance/block_mode/blocks/looks/hide.feature +0 -0
  290. data/spec/acceptance/block_mode/blocks/looks/say.feature +0 -0
  291. data/spec/acceptance/block_mode/blocks/looks/show.feature +0 -0
  292. data/spec/acceptance/block_mode/blocks/looks/vanish.feature +0 -0
  293. data/spec/acceptance/block_mode/blocks/motion/change_x_by.feature +0 -0
  294. data/spec/acceptance/block_mode/blocks/motion/change_y_by.feature +0 -0
  295. data/spec/acceptance/block_mode/blocks/motion/move.feature +0 -0
  296. data/spec/acceptance/block_mode/blocks/motion/reach_wall.feature +0 -0
  297. data/spec/acceptance/block_mode/blocks/motion/rotate_left.feature +0 -0
  298. data/spec/acceptance/block_mode/blocks/motion/rotate_right.feature +0 -0
  299. data/spec/acceptance/block_mode/blocks/motion/self_angle.feature +0 -0
  300. data/spec/acceptance/block_mode/blocks/motion/self_x.feature +0 -0
  301. data/spec/acceptance/block_mode/blocks/motion/self_y.feature +0 -0
  302. data/spec/acceptance/block_mode/blocks/motion/set_angle.feature +0 -0
  303. data/spec/acceptance/block_mode/blocks/motion/set_x.feature +0 -0
  304. data/spec/acceptance/block_mode/blocks/motion/set_x_y.feature +0 -0
  305. data/spec/acceptance/block_mode/blocks/motion/set_y.feature +0 -0
  306. data/spec/acceptance/block_mode/blocks/motion/turn.feature +0 -0
  307. data/spec/acceptance/block_mode/blocks/motion/turn_if_reach_wall.feature +0 -0
  308. data/spec/acceptance/block_mode/blocks/operators/and_or.feature +0 -0
  309. data/spec/acceptance/block_mode/blocks/operators/four_arithmetic_and_compares.feature +0 -0
  310. data/spec/acceptance/block_mode/blocks/operators/index_of.feature +0 -0
  311. data/spec/acceptance/block_mode/blocks/operators/length.feature +0 -0
  312. data/spec/acceptance/block_mode/blocks/operators/math_method.feature +0 -0
  313. data/spec/acceptance/block_mode/blocks/operators/negate.feature +0 -0
  314. data/spec/acceptance/block_mode/blocks/operators/rand.feature +0 -0
  315. data/spec/acceptance/block_mode/blocks/operators/round.feature +0 -0
  316. data/spec/acceptance/block_mode/blocks/operators/text.feature +0 -0
  317. data/spec/acceptance/block_mode/blocks/operators/true_false.feature +0 -0
  318. data/spec/acceptance/block_mode/blocks/ruby/expression.feature +0 -0
  319. data/spec/acceptance/block_mode/blocks/ruby/p.feature +0 -0
  320. data/spec/acceptance/block_mode/blocks/ruby/statement_comment.feature +0 -0
  321. data/spec/acceptance/block_mode/blocks/sensing/character_property.feature +0 -0
  322. data/spec/acceptance/block_mode/blocks/sensing/hit.feature +0 -0
  323. data/spec/acceptance/block_mode/blocks/sensing/input_key_push_or_down.feature +0 -0
  324. data/spec/acceptance/block_mode/blocks/sensing/input_mouse_pos_x.feature +0 -0
  325. data/spec/acceptance/block_mode/blocks/sensing/input_mouse_pos_y.feature +0 -0
  326. data/spec/acceptance/block_mode/blocks/sensing/input_mouse_push_or_down.feature +0 -0
  327. data/spec/acceptance/block_mode/blocks/sensing/reach_wall.feature +0 -0
  328. data/spec/acceptance/block_mode/blocks/sensing/time_now.feature +0 -0
  329. data/spec/acceptance/block_mode/blocks/sound/play.feature +0 -0
  330. data/spec/acceptance/block_mode/demo.feature +0 -0
  331. data/spec/acceptance/block_mode/translate.feature +0 -0
  332. data/spec/acceptance/readme.md +0 -0
  333. data/spec/acceptance/ruby_mode/check.feature +0 -0
  334. data/spec/acceptance/ruby_mode/download.feature +0 -0
  335. data/spec/acceptance/ruby_mode/load.feature +0 -0
  336. data/spec/acceptance/ruby_mode/translate.feature +0 -0
  337. data/spec/acceptance/standalone/run.feature +0 -0
  338. data/spec/acceptance/standalone/save.feature +0 -0
  339. data/spec/acceptance/standalone/signin.feature +0 -0
  340. data/spec/controllers/editor_controller_spec.rb +0 -0
  341. data/spec/controllers/sessions_controller_spec.rb +0 -0
  342. data/spec/controllers/source_codes_controller_spec.rb +0 -0
  343. data/spec/fixtures/files/01.rb +0 -0
  344. data/spec/fixtures/files/01.rb.xml +0 -0
  345. data/spec/fixtures/files/01_remix.rb +0 -0
  346. data/spec/fixtures/files/01_remix02.rb +0 -0
  347. data/spec/fixtures/files/01_remix10.rb.xml +0 -0
  348. data/spec/fixtures/files/favicon.ico +0 -0
  349. data/spec/helpers/editor_helper_spec.rb +0 -0
  350. data/spec/helpers/sessions_helper_spec.rb +0 -0
  351. data/spec/javascripts/collections/character_set_spec.coffee +0 -0
  352. data/spec/javascripts/models/character_spec.coffee +0 -0
  353. data/spec/javascripts/models/scene_spec.coffee +0 -0
  354. data/spec/javascripts/models/source_code_spec.coffee +0 -0
  355. data/spec/javascripts/spec_helper.js +0 -0
  356. data/spec/lib/smalruby_editor_spec.rb +0 -0
  357. data/spec/models/concerns/ruby_to_block/block/character_method_call_spec.rb +0 -0
  358. data/spec/models/concerns/ruby_to_block/block/control_if_spec.rb +0 -0
  359. data/spec/models/concerns/ruby_to_block/block/control_loop_spec.rb +0 -0
  360. data/spec/models/concerns/ruby_to_block/block/events_on_start_spec.rb +0 -0
  361. data/spec/models/concerns/ruby_to_block/block/hardware_spec.rb +0 -0
  362. data/spec/models/concerns/ruby_to_block/block/looks_say_spec.rb +0 -0
  363. data/spec/models/concerns/ruby_to_block/block/looks_spec.rb +0 -0
  364. data/spec/models/concerns/ruby_to_block/block/motion_move_spec.rb +0 -0
  365. data/spec/models/concerns/ruby_to_block/block/motion_spec.rb +0 -0
  366. data/spec/models/concerns/ruby_to_block/block/motion_turn_spec.rb +0 -0
  367. data/spec/models/concerns/ruby_to_block/block/motion_turn_xy_spec.rb +0 -0
  368. data/spec/models/concerns/ruby_to_block/block/require_smalruby_spec.rb +0 -0
  369. data/spec/models/concerns/ruby_to_block/block/ruby_comment_spec.rb +0 -0
  370. data/spec/models/concerns/ruby_to_block/block/ruby_statement_spec.rb +0 -0
  371. data/spec/models/concerns/ruby_to_block/block/sensing_reach_wall_spec.rb +0 -0
  372. data/spec/models/concerns/ruby_to_block/block/shared/block_examples.rb +0 -0
  373. data/spec/models/concerns/ruby_to_block/block/sound_spec.rb +0 -0
  374. data/spec/models/concerns/ruby_to_block/block/text_spec.rb +0 -0
  375. data/spec/models/concerns/ruby_to_block/block_spec.rb +0 -0
  376. data/spec/models/concerns/ruby_to_block_spec.rb +0 -0
  377. data/spec/models/source_code_spec.rb +0 -0
  378. data/spec/spec_helper.rb +0 -0
  379. data/spec/steps/base_steps.rb +1 -0
  380. data/spec/steps/block_mode_steps.rb +0 -0
  381. data/spec/steps/fix_turnip.rb +0 -0
  382. data/spec/steps/global_variable.rb +0 -0
  383. data/spec/steps/text_editor_steps.rb +0 -0
  384. data/spec/support/capybara.rb +0 -0
  385. data/spec/support/env.rb +0 -0
  386. data/spec/support/ruby_to_block.rb +0 -0
  387. data/spec/teaspoon_env.rb +0 -0
  388. data/spec/turnip_helper.rb +0 -0
  389. data/vendor/assets/javascripts/.keep +0 -0
  390. data/vendor/assets/javascripts/blockly/blockly_compressed.js +0 -0
  391. data/vendor/assets/javascripts/blockly/blocks_compressed.js +0 -0
  392. data/vendor/assets/javascripts/blockly/msg/js/en_us.js +507 -0
  393. data/vendor/assets/javascripts/blockly/msg/js/ja.js +0 -0
  394. data/vendor/assets/javascripts/jquery.blockUI.js +0 -0
  395. data/vendor/assets/stylesheets/.keep +0 -0
  396. metadata +80 -66
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
@@ -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 => 'car1やball1など', :class => 'input-large'}
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
- X座標
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
- Y座標
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
- -#- subcategory = 'servo'
83
+ %category{:name => t('.motion_actuator')}
84
+ - subcategory = 'servo'
85
85
  -# サーボ[▼PIN]を( )度(5~180)にする
86
- -#%block{:type => "#{category}_#{subcategory}_set_position"}
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
- -#- subcategory = 'rgb_led'
190
+ - subcategory = 'rgb_led'
191
191
  -# RGB LED[▼アノード]コモン[▼PIN]を[カラー]にする
192
- -#%block{:type => "#{category}_#{subcategory}_on"}
192
+ %block{:type => "#{category}_#{subcategory}_on"}
193
193
 
194
194
  -# RGB LED[▼アノード]コモン[▼PIN]をオフにする
195
- -#%block{:type => "#{category}_#{subcategory}_off"}
195
+ %block{:type => "#{category}_#{subcategory}_off"}
196
196
 
197
- -#- subcategory = 'seven_segment_display'
197
+ - subcategory = 'seven_segment_display'
198
198
  -# 7セグディスプレイに[▼0-9]を表示する
199
- -#%block{:type => "#{category}_#{subcategory}_show"}
199
+ %block{:type => "#{category}_#{subcategory}_show"}
200
200
 
201
201
  -# 7セグディスプレイをオフにする
202
- -#%block{:type => "#{category}_#{subcategory}_off"}
202
+ %block{:type => "#{category}_#{subcategory}_off"}
203
203
 
204
- -#- subcategory = 'lcd'
204
+ - subcategory = 'lcd'
205
205
  -# LCDに( )を表示する
206
- -#%block{:type => "#{category}_#{subcategory}_puts"}
206
+ %block{:type => "#{category}_#{subcategory}_puts"}
207
207
  = toolbox_text_value('TEXT', 'Hello')
208
208
 
209
209
  -# LCDをクリアする
210
- -#%block{:type => "#{category}_#{subcategory}_clear"}
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 => '変数', :custom => 'VARIABLE'}
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 => 'Ruby'}
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