smalruby-editor 0.1.1 → 0.1.2

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/demos/default.xml +1 -1
  3. data/app/assets/javascripts/application.js +1 -0
  4. data/app/assets/javascripts/blocks/blockly.js.coffee.erb +1 -1
  5. data/app/assets/javascripts/blocks/events.js.coffee.erb +2 -3
  6. data/app/assets/javascripts/blocks/field_character.js.coffee.erb +108 -0
  7. data/app/assets/javascripts/blocks/hardware.js.coffee.erb +35 -2
  8. data/app/assets/javascripts/blocks/motion.js.coffee.erb +4 -4
  9. data/app/assets/javascripts/blocks/operators.js.coffee.erb +27 -29
  10. data/app/assets/javascripts/blocks/sensing.js.coffee.erb +4 -6
  11. data/app/assets/javascripts/generators/ruby.js.coffee.erb +21 -19
  12. data/app/assets/javascripts/models/character.js.coffee +21 -0
  13. data/app/assets/javascripts/views/character_modal_view.js.coffee +24 -3
  14. data/app/views/editor/_character_modal.html.haml +1 -1
  15. data/app/views/editor/_toolbox.html.haml +7 -3
  16. data/lib/smalruby_editor/version.rb +1 -1
  17. data/public/assets/{application-0c2ae32cd8822cec7ba6e445e2501010.js → application-735e172a0df828da16d22f5d3c26671f.js} +294 -59
  18. data/public/assets/{application-0c2ae32cd8822cec7ba6e445e2501010.js.gz → application-735e172a0df828da16d22f5d3c26671f.js.gz} +0 -0
  19. data/public/assets/{default-7f438ebd7f8ab6ef65c5b9744786e57f.xml → default-5d1886100d7c8961e9962bbc4bb0c714.xml} +1 -1
  20. data/public/assets/manifest-1f254fa92a71ba4faad0f99136daeed8.json +1 -1
  21. data/spec/acceptance/block_mode/blocks/hardware/servo_set_position.feature +104 -0
  22. data/spec/acceptance/block_mode/blocks/operators/and_or.feature +61 -0
  23. data/spec/acceptance/block_mode/blocks/operators/four_arithmetic_and_compares.feature +85 -0
  24. data/spec/acceptance/block_mode/blocks/operators/index_of.feature +60 -0
  25. data/spec/acceptance/block_mode/blocks/operators/length.feature +52 -0
  26. data/spec/acceptance/block_mode/blocks/operators/math_method.feature +109 -0
  27. data/spec/acceptance/block_mode/blocks/operators/negate.feature +47 -0
  28. data/spec/acceptance/block_mode/blocks/operators/rand.feature +60 -0
  29. data/spec/acceptance/block_mode/blocks/operators/round.feature +52 -0
  30. data/spec/acceptance/block_mode/blocks/operators/true_false.feature +36 -0
  31. data/spec/acceptance/block_mode/blocks/ruby/expression.feature +36 -0
  32. data/spec/acceptance/block_mode/blocks/ruby/p.feature +34 -0
  33. data/spec/acceptance/block_mode/blocks/ruby/statement_comment.feature +25 -0
  34. data/spec/javascripts/models/character_spec.coffee +44 -5
  35. data/spec/steps/ace_steps.rb +9 -0
  36. data/spec/steps/block_mode_steps.rb +14 -0
  37. data/spec/steps/fix_turnip.rb +35 -0
  38. data/spec/steps/text_editor_steps.rb +1 -0
  39. data/spec/teaspoon_env.rb +1 -1
  40. data/spec/turnip_helper.rb +1 -0
  41. metadata +34 -5
@@ -116,6 +116,7 @@ step 'JavaScriptによるリクエストが終わるまで待つ' do
116
116
  sleep 1
117
117
  end
118
118
  end
119
+
119
120
  step ':name は :value であること' do |name, value|
120
121
  expect(page.evaluate_script(<<-JS)).to eq(value)
121
122
  $('#{NAME_INFO[name][:selector]}').val()
data/spec/teaspoon_env.rb CHANGED
@@ -22,7 +22,7 @@ Teaspoon.setup do |config|
22
22
  #config.server = nil # defaults to Rack::Server
23
23
 
24
24
  # Behaviors
25
- #config.server_timeout = 20 # timeout for starting the server
25
+ config.server_timeout = 120 # timeout for starting the server
26
26
  # defaults to any open port unless specified
27
27
  #config.server_port = nil
28
28
  #config.fail_fast = true # abort after the first failing suite
@@ -1,2 +1,3 @@
1
+ load 'spec/steps/fix_turnip.rb', true
1
2
  load 'spec/steps/global_variable.rb', true
2
3
  Dir.glob('spec/steps{,/**}/*_steps.rb') { |f| load f, true }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smalruby-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouji Takao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-11 00:00:00.000000000 Z
11
+ date: 2014-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -353,6 +353,7 @@ files:
353
353
  - app/assets/javascripts/blocks/data.js.coffee.erb
354
354
  - app/assets/javascripts/blocks/etc.js.coffee.erb
355
355
  - app/assets/javascripts/blocks/events.js.coffee.erb
356
+ - app/assets/javascripts/blocks/field_character.js.coffee.erb
356
357
  - app/assets/javascripts/blocks/hardware.js.coffee.erb
357
358
  - app/assets/javascripts/blocks/looks.js.coffee.erb
358
359
  - app/assets/javascripts/blocks/motion.js.coffee.erb
@@ -509,6 +510,7 @@ files:
509
510
  - spec/acceptance/block_mode/blocks/hardware/rgb_led_off.feature
510
511
  - spec/acceptance/block_mode/blocks/hardware/rgb_led_on.feature
511
512
  - spec/acceptance/block_mode/blocks/hardware/sensor_value.feature
513
+ - spec/acceptance/block_mode/blocks/hardware/servo_set_position.feature
512
514
  - spec/acceptance/block_mode/blocks/looks/hide.feature
513
515
  - spec/acceptance/block_mode/blocks/looks/say.feature
514
516
  - spec/acceptance/block_mode/blocks/looks/show.feature
@@ -528,6 +530,18 @@ files:
528
530
  - spec/acceptance/block_mode/blocks/motion/set_y.feature
529
531
  - spec/acceptance/block_mode/blocks/motion/turn.feature
530
532
  - spec/acceptance/block_mode/blocks/motion/turn_if_reach_wall.feature
533
+ - spec/acceptance/block_mode/blocks/operators/and_or.feature
534
+ - spec/acceptance/block_mode/blocks/operators/four_arithmetic_and_compares.feature
535
+ - spec/acceptance/block_mode/blocks/operators/index_of.feature
536
+ - spec/acceptance/block_mode/blocks/operators/length.feature
537
+ - spec/acceptance/block_mode/blocks/operators/math_method.feature
538
+ - spec/acceptance/block_mode/blocks/operators/negate.feature
539
+ - spec/acceptance/block_mode/blocks/operators/rand.feature
540
+ - spec/acceptance/block_mode/blocks/operators/round.feature
541
+ - spec/acceptance/block_mode/blocks/operators/true_false.feature
542
+ - spec/acceptance/block_mode/blocks/ruby/expression.feature
543
+ - spec/acceptance/block_mode/blocks/ruby/p.feature
544
+ - spec/acceptance/block_mode/blocks/ruby/statement_comment.feature
531
545
  - spec/acceptance/block_mode/blocks/sensing/character_property.feature
532
546
  - spec/acceptance/block_mode/blocks/sensing/hit.feature
533
547
  - spec/acceptance/block_mode/blocks/sensing/input_key_push_or_down.feature
@@ -558,6 +572,7 @@ files:
558
572
  - spec/spec_helper.rb
559
573
  - spec/steps/ace_steps.rb
560
574
  - spec/steps/block_mode_steps.rb
575
+ - spec/steps/fix_turnip.rb
561
576
  - spec/steps/global_variable.rb
562
577
  - spec/steps/text_editor_steps.rb
563
578
  - spec/support/capybara.rb
@@ -570,11 +585,11 @@ files:
570
585
  - vendor/assets/javascripts/blockly/msg/js/ja.js
571
586
  - vendor/assets/javascripts/jquery.blockUI.js
572
587
  - vendor/assets/stylesheets/.keep
573
- - public/assets/application-0c2ae32cd8822cec7ba6e445e2501010.js
574
- - public/assets/application-0c2ae32cd8822cec7ba6e445e2501010.js.gz
575
588
  - public/assets/application-0e1a6c238c0cc501b29746e5db35b5a1.css
576
589
  - public/assets/application-0e1a6c238c0cc501b29746e5db35b5a1.css.gz
577
- - public/assets/default-7f438ebd7f8ab6ef65c5b9744786e57f.xml
590
+ - public/assets/application-735e172a0df828da16d22f5d3c26671f.js
591
+ - public/assets/application-735e172a0df828da16d22f5d3c26671f.js.gz
592
+ - public/assets/default-5d1886100d7c8961e9962bbc4bb0c714.xml
578
593
  - public/assets/favicon-a37c90b368fd8ed436cb8f9e9396465c.ico
579
594
  - public/assets/jquery-ui/animated-overlay-c48c87b7a95316f4698484e3b85ee4aa.gif
580
595
  - public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-58b63faadd031ca3db096dfdffd90224.png
@@ -647,6 +662,7 @@ test_files:
647
662
  - spec/acceptance/block_mode/blocks/hardware/rgb_led_off.feature
648
663
  - spec/acceptance/block_mode/blocks/hardware/rgb_led_on.feature
649
664
  - spec/acceptance/block_mode/blocks/hardware/sensor_value.feature
665
+ - spec/acceptance/block_mode/blocks/hardware/servo_set_position.feature
650
666
  - spec/acceptance/block_mode/blocks/looks/hide.feature
651
667
  - spec/acceptance/block_mode/blocks/looks/say.feature
652
668
  - spec/acceptance/block_mode/blocks/looks/show.feature
@@ -666,6 +682,18 @@ test_files:
666
682
  - spec/acceptance/block_mode/blocks/motion/set_y.feature
667
683
  - spec/acceptance/block_mode/blocks/motion/turn.feature
668
684
  - spec/acceptance/block_mode/blocks/motion/turn_if_reach_wall.feature
685
+ - spec/acceptance/block_mode/blocks/operators/and_or.feature
686
+ - spec/acceptance/block_mode/blocks/operators/four_arithmetic_and_compares.feature
687
+ - spec/acceptance/block_mode/blocks/operators/index_of.feature
688
+ - spec/acceptance/block_mode/blocks/operators/length.feature
689
+ - spec/acceptance/block_mode/blocks/operators/math_method.feature
690
+ - spec/acceptance/block_mode/blocks/operators/negate.feature
691
+ - spec/acceptance/block_mode/blocks/operators/rand.feature
692
+ - spec/acceptance/block_mode/blocks/operators/round.feature
693
+ - spec/acceptance/block_mode/blocks/operators/true_false.feature
694
+ - spec/acceptance/block_mode/blocks/ruby/expression.feature
695
+ - spec/acceptance/block_mode/blocks/ruby/p.feature
696
+ - spec/acceptance/block_mode/blocks/ruby/statement_comment.feature
669
697
  - spec/acceptance/block_mode/blocks/sensing/character_property.feature
670
698
  - spec/acceptance/block_mode/blocks/sensing/hit.feature
671
699
  - spec/acceptance/block_mode/blocks/sensing/input_key_push_or_down.feature
@@ -696,6 +724,7 @@ test_files:
696
724
  - spec/spec_helper.rb
697
725
  - spec/steps/ace_steps.rb
698
726
  - spec/steps/block_mode_steps.rb
727
+ - spec/steps/fix_turnip.rb
699
728
  - spec/steps/global_variable.rb
700
729
  - spec/steps/text_editor_steps.rb
701
730
  - spec/support/capybara.rb