lexical_analyzer 0.2.0 → 0.2.1

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: 54b488be7553b7be24ea6fa73c51fb35f13ad33d
4
- data.tar.gz: 42df79a772749f16ab5af6b902b84897086385dc
3
+ metadata.gz: ee15b89d663889db39772853d91bdb4152977d0f
4
+ data.tar.gz: 4790044e23aca76c211d3aa4e56d10b585399cb7
5
5
  SHA512:
6
- metadata.gz: 41c89261b16eb1b5f626e5d824a59d1a84e0aad0d11eda7e15454fcc243f3f6c1e85645d96e7caa4b06fce90ff0007ad1796d84d15391e160df4e3f06f9a1c82
7
- data.tar.gz: e9352a9008ae1353193c277162e0b9979e89e495c2dfa5d78e9407d088b612d483f76603dea29e0d0c4650f72dcca0aa95704613ed60993b311b744d825acda1
6
+ metadata.gz: ddfe76924797cc38c2c05e32f8465795340123d45385aa674e7e706a406eed36d9eecc3e437256af2fed11fb6b8d2e29da19e47bab57d044213185fa3ed269f7
7
+ data.tar.gz: b91be335cd609992b2ca23424d39173f26a26b385c984da079cb1a8da6b3d4cd15e0f54affc5d9efa42ae1eb6404359207aaefbf1fe42ed520e90edf11a838a4
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "bundler", "~> 1.15"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency "minitest", "~> 5.0"
25
+ spec.add_development_dependency 'reek', "~> 5.0.2"
25
26
  end
@@ -1,3 +1,3 @@
1
1
  class LexicalAnalyzer
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -3,8 +3,9 @@
3
3
 
4
4
  require_relative 'lexical_analyzer/version'
5
5
 
6
+ # The RCTP class for lexical analysis.
6
7
  class LexicalAnalyzer
7
- attr_accessor :text # Access the text in the analyzer.
8
+ attr_reader :text # Access the text in the analyzer.
8
9
  attr_reader :rules # Access the array of lexical rules.
9
10
 
10
11
  # Some array index values.
data/rakefile.rb CHANGED
@@ -9,6 +9,11 @@ end
9
9
 
10
10
  task :default => :test
11
11
 
12
+ desc "Run a scan for smelly code!"
13
+ task :reek do |t|
14
+ `reek --no-color lib > reek.txt`
15
+ end
16
+
12
17
  desc "What version of lexical analyzer is this?"
13
18
  task :vers do |t|
14
19
  puts
data/reek.txt ADDED
@@ -0,0 +1 @@
1
+ 0 total warnings
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lexical_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PeterCamilleri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-31 00:00:00.000000000 Z
11
+ date: 2018-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: reek
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 5.0.2
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 5.0.2
55
69
  description: The RCTP configurable lexical analyser.
56
70
  email:
57
71
  - peter.c.camilleri@gmail.com
@@ -68,6 +82,7 @@ files:
68
82
  - lib/lexical_analyzer.rb
69
83
  - lib/lexical_analyzer/version.rb
70
84
  - rakefile.rb
85
+ - reek.txt
71
86
  homepage: https://github.com/PeterCamilleri/lexical_analyzer
72
87
  licenses:
73
88
  - MIT