smalruby-editor 0.1.16-x86-mingw32 → 0.1.17-x86-mingw32

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47874074016e9dd005b8b5b4eac725702132b95a
4
- data.tar.gz: d44bf9676c75316949454979710c94ea1d7929c2
3
+ metadata.gz: 9c99fd30c2a58d7b5d57a7958a1391dbcd567dd3
4
+ data.tar.gz: d82de49042c9abff444828faeb794dd87f4f77a1
5
5
  SHA512:
6
- metadata.gz: b7c276231be625d03b1b0114d9ab578481eeca372320a9eac85b321ef0f24de124dcbce6d8c32338c2ed9f3777ce30fd5d3da06cc642408203a2888500fabba1
7
- data.tar.gz: 69a417672aadef53615da7c5d8f82836290900c2ced56613513a6b624fde363ae5ef21beb571332ff18badd9e86b9f54b36fdfbe63f5d5311333aa4aee1789e8
6
+ metadata.gz: ba8ed7390bcf35e9480d64bbadadb8ae77b3ca451628d62d2a6f3dee75d82cda3db4644b5f0bb80a6e2fc9619c71535788affbb0e8e7ff93197216e5e25139f4
7
+ data.tar.gz: 794a95ae8dc7d8f36cb7f2c7516e13b4db6af4caade7d834f865659adf0dee8a829cee9d4663424ae72dfb977c2feb56e2e729e6397e7182e381753ef2002785
data/.rubocop.yml CHANGED
@@ -20,8 +20,8 @@ EndOfLine:
20
20
  Enabled: false
21
21
 
22
22
  # diffが少なくなるためハッシュや配列の最後のカンマは許可する
23
- TrailingComma:
24
- Enabled: false
23
+ #TrailingComma:
24
+ # Enabled: false
25
25
 
26
26
  # デフォルトの10は短すぎる。80x25を基準として1画面に収まる長さとした。
27
27
  MethodLength:
data/README.rdoc CHANGED
@@ -17,6 +17,8 @@ The Smalruby(smɔ́ːrúːbi) Project will provide a Ruby learning environment f
17
17
 
18
18
  == Installation (for User)
19
19
 
20
+ Windows(only Japanese): https://github.com/smalruby/smalruby-installer-for-windows/wiki
21
+
20
22
  requirements:
21
23
 
22
24
  * Windows or UNIX like OS (Mac OS X, Linux, etc...)
@@ -257,6 +257,7 @@ $left-pane-width: $character-size + $margin * 2;
257
257
 
258
258
  #character-modal-left-pane {
259
259
  width: $left-pane-width;
260
+ height: $modal-height - $modal-body-margin * 2;
260
261
  overflow: hidden;
261
262
 
262
263
  #character-modal-preview {
@@ -295,11 +296,11 @@ $left-pane-width: $character-size + $margin * 2;
295
296
  margin-bottom: 8px;
296
297
 
297
298
  .control-label {
298
- width: 50px;
299
+ width: 40px;
299
300
  }
300
301
 
301
302
  .controls {
302
- margin-left: 50px + $modal-body-margin;
303
+ margin-left: 40px + 5px;
303
304
 
304
305
  input[type=range] {
305
306
  padding: 0;
@@ -315,6 +316,8 @@ $left-pane-width: $character-size + $margin * 2;
315
316
  }
316
317
 
317
318
  #character-modal-right-pane {
319
+ height: $modal-height - $modal-body-margin * 2;
320
+
318
321
  overflow: hidden;
319
322
 
320
323
  #character-modal-costume-selector {
@@ -42,7 +42,7 @@ module RubyToBlock
42
42
  'angle' => @angle,
43
43
  'costumes' => @costumes.join(',')
44
44
  }
45
- attrs['rotationStyle'] = @rotation_style if @rotation_style != 'free'
45
+ attrs['rotation_style'] = @rotation_style if @rotation_style != 'free'
46
46
  parent.add_element('character', attrs)
47
47
  end
48
48
  end
@@ -5,7 +5,8 @@ module RubyToBlock
5
5
  module CharacterOperation
6
6
  extend ActiveSupport::Concern
7
7
 
8
- CHAR_RE = '(?:(\S+)\.)?'
8
+ CHAR_NAME_RE = '([a-z]\S*)'
9
+ CHAR_RE = '(?:' + CHAR_NAME_RE + '\.)?'
9
10
 
10
11
  attr_accessor :character
11
12
 
@@ -0,0 +1,13 @@
1
+ # -*- coding: utf-8 -*-
2
+ module RubyToBlock
3
+ module Block
4
+ class ControlBreak < Base
5
+ blocknize '^\s*break\s*$', statement: true, inline: true
6
+
7
+ def self.process_match_data(md, context)
8
+ context.add_block(new)
9
+ true
10
+ end
11
+ end
12
+ end
13
+ end
@@ -2,7 +2,7 @@
2
2
  module RubyToBlock
3
3
  module Block
4
4
  class End < Base
5
- blocknize '^\s*end$', statement: true
5
+ blocknize '^\s*end\s*$', statement: true
6
6
 
7
7
  def self.process_match_data(md, context)
8
8
  ends_num = 1
@@ -0,0 +1,24 @@
1
+ # -*- coding: utf-8 -*-
2
+ module RubyToBlock
3
+ module Block
4
+ class MotionGoToCharacter < CharacterMethodCall
5
+ blocknize '^\s*' + CHAR_RE + 'go_to\(' + CHAR_NAME_RE + '\)\s*$',
6
+ statement: true
7
+
8
+ def self.process_match_data(md, context)
9
+ md2 = regexp.match(md[type])
10
+
11
+ name = md2[2]
12
+ name.strip!
13
+ c = context.characters[name]
14
+ return false unless c
15
+
16
+ block = new(fields: { CHAR: name })
17
+ _, context.current_block =
18
+ *add_child_or_create_character_new_block(context, md2[1], block)
19
+
20
+ true
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,9 @@
1
+ # -*- coding: utf-8 -*-
2
+ module RubyToBlock
3
+ module Block
4
+ class MotionGoToMouse < CharacterMethodCall
5
+ blocknize '^\s*' + CHAR_RE + 'go_to\(:mouse\)\s*$',
6
+ statement: true
7
+ end
8
+ end
9
+ end
@@ -2,7 +2,7 @@
2
2
  module RubyToBlock
3
3
  module Block
4
4
  class MotionPointTowardsCharacter < CharacterMethodCall
5
- blocknize '^\s*' + CHAR_RE + 'point_towards\(([^:)]+)\)\s*$',
5
+ blocknize '^\s*' + CHAR_RE + 'point_towards\(' + CHAR_NAME_RE + '\)\s*$',
6
6
  statement: true
7
7
 
8
8
  def self.process_match_data(md, context)
@@ -74,14 +74,11 @@ class SourceCode < ActiveRecord::Base
74
74
 
75
75
  def ruby_cmd
76
76
  if SmalrubyEditor.osx?
77
- dirs = [RbConfig::CONFIG['bindir']] + ENV['PATH'].split(';')
78
- dirs.each do |dir|
79
- path = Pathname('rsdl').expand_path(dir)
80
- return path if path.exist?
81
- end
77
+ Pathname(Gem.bin_path('rsdl', 'rsdl'))
78
+ else
79
+ Pathname(RbConfig::CONFIG['RUBY_INSTALL_NAME'])
80
+ .expand_path(RbConfig::CONFIG['bindir'])
82
81
  end
83
- Pathname(RbConfig::CONFIG['RUBY_INSTALL_NAME'])
84
- .expand_path(RbConfig::CONFIG['bindir'])
85
82
  end
86
83
 
87
84
  def open3_capture3_ruby_c
@@ -324,7 +324,7 @@
324
324
  -# 条件:偽
325
325
  %block{:type => "#{category}_false"}
326
326
 
327
- -#%category{:name => '変数', :custom => 'VARIABLE'}
327
+ %category{:name => '変数', :custom => 'VARIABLE'}
328
328
 
329
329
  - category = 'ruby'
330
330
  %category{:name => 'Ruby'}
@@ -122,3 +122,7 @@
122
122
  #text-editor
123
123
 
124
124
  = render 'signin_modal'
125
+
126
+ - if raspberrypi?
127
+ %script{type: "text/javascript"}
128
+ $(function() { $('div[id=":5"]').hide(); });
@@ -1,3 +1,3 @@
1
1
  module SmalrubyEditor
2
- VERSION = '0.1.16'
2
+ VERSION = '0.1.17'
3
3
  end
@@ -68,7 +68,7 @@ Gem::Specification.new do |spec|
68
68
  ['launchy'],
69
69
  ['mime-types', '~> 1.16'],
70
70
  ['haml-rails'],
71
- ['smalruby', '~> 0.0.25'],
71
+ ['smalruby', '~> 0.0.26'],
72
72
  ]
73
73
  runtime_dependencies << ['therubyracer'] unless is_windows
74
74
  runtime_dependencies.each do |args|
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.16
4
+ version: 0.1.17
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Kouji Takao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-08 00:00:00.000000000 Z
11
+ date: 2014-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - ~>
186
186
  - !ruby/object:Gem::Version
187
- version: 0.0.25
187
+ version: 0.0.26
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - ~>
193
193
  - !ruby/object:Gem::Version
194
- version: 0.0.25
194
+ version: 0.0.26
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: bundler
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -301,6 +301,7 @@ files:
301
301
  - app/models/concerns/ruby_to_block/block/character_method_call.rb
302
302
  - app/models/concerns/ruby_to_block/block/character_new.rb
303
303
  - app/models/concerns/ruby_to_block/block/character_operation.rb
304
+ - app/models/concerns/ruby_to_block/block/control_beark.rb
304
305
  - app/models/concerns/ruby_to_block/block/control_if.rb
305
306
  - app/models/concerns/ruby_to_block/block/control_loop.rb
306
307
  - app/models/concerns/ruby_to_block/block/control_sleep.rb
@@ -327,6 +328,8 @@ files:
327
328
  - app/models/concerns/ruby_to_block/block/math_number.rb
328
329
  - app/models/concerns/ruby_to_block/block/motion_change_x_by.rb
329
330
  - app/models/concerns/ruby_to_block/block/motion_change_y_by.rb
331
+ - app/models/concerns/ruby_to_block/block/motion_go_to_character.rb
332
+ - app/models/concerns/ruby_to_block/block/motion_go_to_mouse.rb
330
333
  - app/models/concerns/ruby_to_block/block/motion_move.rb
331
334
  - app/models/concerns/ruby_to_block/block/motion_point_towards_character.rb
332
335
  - app/models/concerns/ruby_to_block/block/motion_point_towards_mouse.rb
@@ -590,10 +593,10 @@ files:
590
593
  - vendor/assets/javascripts/blockly/msg/js/ja.js
591
594
  - vendor/assets/javascripts/jquery.blockUI.js
592
595
  - vendor/assets/stylesheets/.keep
593
- - public/assets/application-7f560d8d6d224f87269691c57ca9a376.css
594
- - public/assets/application-7f560d8d6d224f87269691c57ca9a376.css.gz
595
596
  - public/assets/application-842ac8f5aa3fcc87bbb0e8b3a0fef5d7.js
596
597
  - public/assets/application-842ac8f5aa3fcc87bbb0e8b3a0fef5d7.js.gz
598
+ - public/assets/application-b31ceba36a60591e488903231db4cb37.css
599
+ - public/assets/application-b31ceba36a60591e488903231db4cb37.css.gz
597
600
  - public/assets/favicon-a37c90b368fd8ed436cb8f9e9396465c.ico
598
601
  - public/assets/jquery-ui/animated-overlay-c48c87b7a95316f4698484e3b85ee4aa.gif
599
602
  - public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-58b63faadd031ca3db096dfdffd90224.png