qlang 0.0.1414 → 0.0.14142

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: 1518e06566b7c7e245e13554112a8181d38bdb1c
4
- data.tar.gz: eef905e36510038a6f5124264449e485841248df
3
+ metadata.gz: 6671b553251375c1573838ac60c23a091a2022fa
4
+ data.tar.gz: 9c8f8d7a43d80dd9af9c13505eaf1d9cecbf739a
5
5
  SHA512:
6
- metadata.gz: 7f91e2946d82df754a9bc496f18c494a7014bd4b24c7a14e311d73d7ceb7dc2af9598752d890eb409eea564bcbe75b59d81df727504115b33f9083d6a289e511
7
- data.tar.gz: f27a4aedfe46515869ec152ad7e0ab9bd64d30b33d95eaa01aaa4201b518405d0b3945ddc9e343dc5a76934058bcaca443ff2d36e4bf0bb3ddb9767a642ab8c7
6
+ metadata.gz: d690071a0649fc5ea24a9a83c70f4e13022abb0d48387ceb17178976668ddbfbb05aee9e5c1e0513226a1c01db93a9c491f39901b1b2c8e79081804b86507e8b
7
+ data.tar.gz: 14f0486e217a786d6a1845e7a4a3e265b2f0563d82d6b90f227dc3b61e772325a24c66bdbee72f7ca81d35712f3705d35507a67055168a207839f71feb92128b
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
- ruby '2.1.2'
2
+
3
3
 
4
4
  gem 'dydx', '0.1.412'
5
5
 
data/lib/qlang/exec.rb CHANGED
@@ -19,34 +19,36 @@ module Qlang
19
19
  exit 0
20
20
  end
21
21
 
22
- private def ch_compile_type(lang)
23
- case lang
24
- when '-Ruby'
25
- Qlang.to_ruby
26
- when '-R'
27
- Qlang.to_r
28
- else
29
- print 'Q support Ruby and R now.'
22
+ private
23
+
24
+ def ch_compile_type(lang)
25
+ case lang
26
+ when '-Ruby'
27
+ Qlang.to_ruby
28
+ when '-R'
29
+ Qlang.to_r
30
+ else
31
+ print 'Q support Ruby and R now.'
32
+ end
30
33
  end
31
- end
32
34
 
33
- private def parse
34
- raise '#{@args[0]} is unsupported option' unless @args[0] == '-q'
35
- filename = @args[1]
36
- file = open_file(filename)
37
- string = read_file(file)
38
- print(Kconv.tosjis(Qlang.compile(string)), '\n')
39
- file.close
40
- end
35
+ def parse
36
+ raise '#{@args[0]} is unsupported option' unless @args[0] == '-q'
37
+ filename = @args[1]
38
+ file = open_file(filename)
39
+ string = read_file(file)
40
+ print(Kconv.tosjis(Qlang.compile(string)), '\n')
41
+ file.close
42
+ end
41
43
 
42
- private def open_file(filename, flag = 'r')
43
- return if filename.nil?
44
- File.open(filename, flag)
45
- end
44
+ def open_file(filename, flag = 'r')
45
+ return if filename.nil?
46
+ File.open(filename, flag)
47
+ end
46
48
 
47
- private def read_file(file)
48
- file.read
49
- end
49
+ def read_file(file)
50
+ file.read
51
+ end
50
52
  end
51
53
  end
52
54
  end
@@ -96,10 +96,12 @@ module Qlang
96
96
  end
97
97
  end
98
98
 
99
- private def to_num(token_with_num)
100
- token_with_num =~ /\d+/
101
- $&.to_i
102
- end
99
+ private
100
+
101
+ def to_num(token_with_num)
102
+ token_with_num =~ /\d+/
103
+ $&.to_i
104
+ end
103
105
  end
104
106
  end
105
107
  end
data/lib/qlang/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Qlang
2
- VERSION = "0.0.1414"
2
+ VERSION = "0.0.14142"
3
3
  end
data/q_lang.gemspec CHANGED
@@ -18,8 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
+ spec.add_dependency "dydx", '~> 0.1.412'
22
+
21
23
  spec.add_development_dependency "bundler", "~> 1.6"
22
24
  spec.add_development_dependency "rake"
23
25
  spec.add_development_dependency "rspec"
24
- spec.add_development_dependency "dydx", '0.1.412'
25
26
  end
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qlang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1414
4
+ version: 0.0.14142
5
5
  platform: ruby
6
6
  authors:
7
7
  - gogotanaka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-11 00:00:00.000000000 Z
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: dydx
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
20
- type: :development
19
+ version: 0.1.412
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: 0.1.412
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1.6'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '1.6'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: dydx
56
+ name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.412
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.1.412
68
+ version: '0'
69
69
  description: Enjoy MATH!
70
70
  email:
71
71
  - mail@tanakakazuki.com
@@ -74,11 +74,11 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - ".coveralls.yml"
78
- - ".gitignore"
79
- - ".rspec"
80
- - ".rubocop.yml"
81
- - ".travis.yml"
77
+ - .coveralls.yml
78
+ - .gitignore
79
+ - .rspec
80
+ - .rubocop.yml
81
+ - .travis.yml
82
82
  - Gemfile
83
83
  - LICENSE.txt
84
84
  - README.md
@@ -125,17 +125,17 @@ require_paths:
125
125
  - lib
126
126
  required_ruby_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - ">="
128
+ - - '>='
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - ">="
133
+ - - '>='
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
137
  rubyforge_project:
138
- rubygems_version: 2.2.2
138
+ rubygems_version: 2.0.14
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Enjoy MATH!