escalator 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfe377639702aeca02103cea9454ca87ccdeb14d
4
- data.tar.gz: d79050293143f59fedd8456ac4d5dc903776fc44
3
+ metadata.gz: b7090d0538de1f61b6ea04dbf1506275138c16bd
4
+ data.tar.gz: 354bedc84a43edfeb2a560bcd55dce137d13e643
5
5
  SHA512:
6
- metadata.gz: 734cbfe7bbc43d355cfc1cff00f1071aaca84be94d7813575f7bba9bbcefbfc0153b04bcf5415bf5b7354b3dc3f2e2f012d321213132aaf7cafc835e8eabe27f
7
- data.tar.gz: 2011273b79c0aa5776ea148c3dba0ad21fb029e6ca28a6582cc83f6752803ee7c114fef653c32b813594a9556716c2af6c7b2f95d9cce469d2697e7dbe62c3b9
6
+ metadata.gz: 3ab6fd9adbc1c2cd896ad6497f743783ae9dc47776192b0cf7364870da113fc4ea7900d240d328a02654f9fcace9f4f6f4b039d928d6fee5d08297d71d8102e8
7
+ data.tar.gz: 0fffaf803b79336a8f6bde8be7715b6ecec60253bb87feb18042654b17ac2b5c6b0f80ea667ffb3b6f5d7d057f542c7e9367c372e828ed30f24aedb456ed30eb
data/Gemfile CHANGED
@@ -4,6 +4,5 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem "test-unit"
7
- gem "activesupport"
8
- gem "webrick"
9
- gem "curses"
7
+
8
+ gem "activesupport", ">=4.2.7"
data/Gemfile.lock CHANGED
@@ -1,19 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- escalator (0.2.1)
4
+ escalator (0.2.2)
5
+ activesupport (>= 4.2.7)
5
6
  thor
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- activesupport (5.0.0.1)
11
- concurrent-ruby (~> 1.0, >= 1.0.2)
11
+ activesupport (4.2.7.1)
12
12
  i18n (~> 0.7)
13
+ json (~> 1.7, >= 1.7.7)
13
14
  minitest (~> 5.1)
15
+ thread_safe (~> 0.3, >= 0.3.4)
14
16
  tzinfo (~> 1.1)
15
- concurrent-ruby (1.0.2)
16
17
  i18n (0.7.0)
18
+ json (1.8.3)
17
19
  minitest (5.9.1)
18
20
  power_assert (0.2.7)
19
21
  rake (10.5.0)
@@ -26,13 +28,14 @@ GEM
26
28
 
27
29
  PLATFORMS
28
30
  ruby
31
+ x64-mingw32
29
32
 
30
33
  DEPENDENCIES
31
- activesupport
34
+ activesupport (>= 4.2.7)
32
35
  bundler (~> 1.11)
33
36
  escalator!
34
37
  rake (~> 10.0)
35
38
  test-unit
36
39
 
37
40
  BUNDLED WITH
38
- 1.11.2
41
+ 1.13.6
data/README.md CHANGED
@@ -17,6 +17,8 @@ Install Escalator at the command prompt.
17
17
  $ gem install escalator
18
18
  ```
19
19
 
20
+ [![https://gyazo.com/6f00d74612def41fb33d836275b74c24](https://i.gyazo.com/6f00d74612def41fb33d836275b74c24.gif)](https://gyazo.com/6f00d74612def41fb33d836275b74c24)
21
+
20
22
  # Create an Escalator project
21
23
 
22
24
  At the command prompt, create a new Escalator project.
@@ -26,6 +28,8 @@ $ escalator create my_project
26
28
  $ cd my_project
27
29
  ```
28
30
 
31
+ [![https://gyazo.com/c538f66129aa425e2b1da4f478a10f52](https://i.gyazo.com/c538f66129aa425e2b1da4f478a10f52.gif)](https://gyazo.com/c538f66129aa425e2b1da4f478a10f52)
32
+
29
33
  Created files are consisted like the tree below.
30
34
 
31
35
  ```
data/README_jp.md CHANGED
@@ -20,6 +20,8 @@ gemでエスカレーターをインストールします。
20
20
  $ gem install escalator
21
21
  ```
22
22
 
23
+ [![https://gyazo.com/6f00d74612def41fb33d836275b74c24](https://i.gyazo.com/6f00d74612def41fb33d836275b74c24.gif)](https://gyazo.com/6f00d74612def41fb33d836275b74c24)
24
+
23
25
  ### プロジェクト作成
24
26
 
25
27
  エスカレーターをインストールするとescalatorコマンドが使用できる様になります。
@@ -30,6 +32,8 @@ $ escalator create my_project
30
32
  $ cd my_project
31
33
  ```
32
34
 
35
+ [![https://gyazo.com/c538f66129aa425e2b1da4f478a10f52](https://i.gyazo.com/c538f66129aa425e2b1da4f478a10f52.gif)](https://gyazo.com/c538f66129aa425e2b1da4f478a10f52)
36
+
33
37
  ファイルの構成は下の様になっています。
34
38
  plc以下にエスカレーターを実行するPLCプロジェクトの雛形があります。
35
39
  現在はエミュレーターと三菱電機のiQ-RシリーズR08CPUのみの対応となっています。
@@ -51,8 +55,6 @@ plc以下にエスカレーターを実行するPLCプロジェクトの雛形
51
55
  └── r08.gx3
52
56
  ```
53
57
 
54
- [![](http://img.youtube.com/vi/aFEtOIgKLvQ/0.jpg)](https://youtu.be/aFEtOIgKLvQ)
55
-
56
58
  ### 通信設定
57
59
 
58
60
  #### PLCの通信設定
data/escalator.gemspec CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.add_dependency "thor"
18
+ spec.add_runtime_dependency "activesupport", ">=4.2.7"
18
19
 
19
20
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
21
  spec.bindir = "exe"
@@ -21,7 +21,6 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
23
  require 'singleton'
24
- require 'curses'
25
24
 
26
25
  module Escalator
27
26
 
@@ -30,17 +29,6 @@ module Escalator
30
29
  class Console
31
30
  include Singleton
32
31
 
33
- def self.finalize
34
- proc {
35
- #Curses.close_screen
36
- }
37
- end
38
-
39
- def initialize
40
- #Curses.init_screen
41
- ObjectSpace.define_finalizer(self, self.class.finalize)
42
- end
43
-
44
32
  def run
45
33
  l = true
46
34
  trap(:INT) { puts "\n> " }
@@ -22,5 +22,5 @@
22
22
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
 
24
24
  module Escalator
25
- VERSION = "0.2.2"
25
+ VERSION = "0.2.3"
26
26
  end
@@ -112,6 +112,14 @@ module Emulator
112
112
  end
113
113
  end
114
114
 
115
+ def bool= value
116
+ if stack.empty?
117
+ stack << value
118
+ else
119
+ stack[-1] = value
120
+ end
121
+ end
122
+
115
123
  def run
116
124
  Thread.new do
117
125
  loop do
@@ -208,14 +216,6 @@ module Emulator
208
216
  }
209
217
  end
210
218
 
211
- def bool= value
212
- if stack.empty?
213
- stack << value
214
- else
215
- stack[-1] = value
216
- end
217
- end
218
-
219
219
  def and_join_stack
220
220
  @stacks[-1] = [@stacks.last.inject(true){|r,b| r & b}]
221
221
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escalator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuyoshi Ito
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2016-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 4.2.7
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 4.2.7
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement