smalruby-editor 0.2.7 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of smalruby-editor might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/generators/ruby.js.coffee.erb +0 -3
- data/app/controllers/source_codes_controller.rb +1 -1
- data/app/models/preference.rb +0 -1
- data/app/views/editor/_toolbox_default.html.haml +0 -5
- data/app/views/editor/_toolbox_smalrubot.html.haml +0 -4
- data/config/locales/en.yml +0 -1
- data/config/locales/ja.yml +0 -1
- data/lib/smalruby_editor/version.rb +1 -1
- data/spec/acceptance/standalone/preference.feature +0 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a867c530aa4e47ed950dc7c804909535612b8fa
|
4
|
+
data.tar.gz: 05addc20bb59e3c571756a2a3288b1b3c01d07d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e2949cdfdc426c36b4b2cead50a54f9cc35da4375e70d504549dc71a3dcdc1d7fae1859767800a45c3d11147c59c5f7ce9632aeabea3d19e4550ff772948bd7
|
7
|
+
data.tar.gz: 0ce3e2d5dc7bf6e858a1721978a740c70aafeba7237a646264754473c8bfc823e2bc8971a9eed0a95fa7efdab47558ddc5df21d3f1eb04d8c3e28c76fd91b92e
|
@@ -51,9 +51,6 @@ Blockly.Ruby.init = ->
|
|
51
51
|
@definitions_['receiver_stack'] = ['main']
|
52
52
|
@definitions_['character_stack'] = []
|
53
53
|
|
54
|
-
if Smalruby.isEnabled('enabled_auto_init_hardware')
|
55
|
-
@definitions_['init_hardware'] = 'init_hardware'
|
56
|
-
|
57
54
|
Blockly.Ruby.defineCharacter = (c) ->
|
58
55
|
name = c.get('name')
|
59
56
|
blockName = "character_#{name}"
|
@@ -180,7 +180,7 @@ class SourceCodesController < ApplicationController
|
|
180
180
|
|
181
181
|
def demo_program_paths
|
182
182
|
Pathname.glob(Rails.root.join('demos/*.rb.xml')) +
|
183
|
-
Pathname.glob(SmalrubyEditor.home_directory.join('
|
183
|
+
Pathname.glob(SmalrubyEditor.home_directory.join('demos/*.rb.xml'))
|
184
184
|
end
|
185
185
|
|
186
186
|
def rb_basename(path)
|
data/app/models/preference.rb
CHANGED
@@ -505,8 +505,3 @@
|
|
505
505
|
|
506
506
|
-# p
|
507
507
|
%block{:type => "#{category}_p"}
|
508
|
-
|
509
|
-
- if !current_preferences["enabled_auto_init_hardware"] && (current_preferences["toolbox__default__enabled_hardware_blocks"] || current_preferences["toolbox__default__enabled_smalrubot_v3_blocks"] || current_preferences["toolbox__default__enabled_smalrubot_s1_blocks"])
|
510
|
-
- category = 'hardware'
|
511
|
-
-# ハードウェアを準備する
|
512
|
-
%block{:type => "#{category}_init_hardware"}
|
data/config/locales/en.yml
CHANGED
@@ -30,7 +30,6 @@ en:
|
|
30
30
|
|
31
31
|
disabled_add_character_from_beginning: "Disabled add character from beginning"
|
32
32
|
disabled_new_character: "Disabled new character"
|
33
|
-
enabled_auto_init_hardware: "Auto init hardware"
|
34
33
|
enabled_readonly_ruby_mode: "Readonly ruby mode"
|
35
34
|
enabled_must_signin: "Must signin"
|
36
35
|
|
data/config/locales/ja.yml
CHANGED
@@ -71,12 +71,10 @@ Feature: Preference - 設定
|
|
71
71
|
Then "#preference-modal" が表示されていること
|
72
72
|
And "user[preferences][disabled_add_character_from_beginning]" がチェックされていること
|
73
73
|
And "user[preferences][disabled_new_character]" がチェックされていないこと
|
74
|
-
And "user[preferences][enabled_auto_init_hardware]" がチェックされていないこと
|
75
74
|
And "user[preferences][enabled_readonly_ruby_mode]" がチェックされていないこと
|
76
75
|
|
77
76
|
When "user[preferences][disabled_add_character_from_beginning]" のチェックを外す
|
78
77
|
And "user[preferences][disabled_new_character]" をチェックする
|
79
|
-
And "user[preferences][enabled_auto_init_hardware]" をチェックする
|
80
78
|
And "user[preferences][enabled_readonly_ruby_mode]" をチェックする
|
81
79
|
And "preference-modal-ok-button" をクリックする
|
82
80
|
And JavaScriptによるリクエストが終わるまで待つ
|
@@ -88,5 +86,4 @@ Feature: Preference - 設定
|
|
88
86
|
Then "#preference-modal" が表示されていること
|
89
87
|
And "user[preferences][disabled_add_character_from_beginning]" がチェックされていないこと
|
90
88
|
And "user[preferences][disabled_new_character]" がチェックされていること
|
91
|
-
And "user[preferences][enabled_auto_init_hardware]" がチェックされていること
|
92
89
|
And "user[preferences][enabled_readonly_ruby_mode]" がチェックされていること
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smalruby-editor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouji Takao
|
@@ -483,8 +483,8 @@ files:
|
|
483
483
|
- public/422.html
|
484
484
|
- public/500.html
|
485
485
|
- public/apple-touch-icon.png
|
486
|
-
- public/assets/application-
|
487
|
-
- public/assets/application-
|
486
|
+
- public/assets/application-5253d287046c0356ed5bdf79ed312e9d.js
|
487
|
+
- public/assets/application-5253d287046c0356ed5bdf79ed312e9d.js.gz
|
488
488
|
- public/assets/application-f879948b97a781e3d996535a2a0585fa.css
|
489
489
|
- public/assets/application-f879948b97a781e3d996535a2a0585fa.css.gz
|
490
490
|
- public/assets/blockly/msg/js/en_us-d5e1938b2d57c1df954f4411b9165d10.js
|
@@ -507,7 +507,7 @@ files:
|
|
507
507
|
- public/assets/jquery-ui/ui-icons_888888_256x240-ce584ffa171c3ea9a018cf0d7bec65c8.png
|
508
508
|
- public/assets/jquery-ui/ui-icons_cd0a0a_256x240-747e96029e8dedcabc224e5f7d1f2ede.png
|
509
509
|
- public/assets/loading-e77296be32d066d3e29d3bf9803fa417.gif
|
510
|
-
- public/assets/manifest-
|
510
|
+
- public/assets/manifest-005ad49acadb6769ff8289e7543e777d.json
|
511
511
|
- public/assets/msg/en_us-a98cc83805d44f5f675fe6eac2c955ec.js
|
512
512
|
- public/assets/msg/en_us-a98cc83805d44f5f675fe6eac2c955ec.js.gz
|
513
513
|
- public/assets/msg/ja-243b0a55ef1086ef2180af94c422cb5e.js
|