bitmap_compiler 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +0 -2
- data/README.md +3 -2
- data/bitmap_compiler.gemspec +0 -1
- data/lib/bitmap_compiler/cli.rb +3 -3
- data/lib/bitmap_compiler/core/editor.rb +2 -5
- data/lib/bitmap_compiler/core/errors/bitmap_error.rb +1 -1
- data/lib/bitmap_compiler/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 809f107d24036e8c03cc742a318c842dd3e1b3bf08f2c865255ce9abb980fe63
|
4
|
+
data.tar.gz: dd17d08166ddffca705c5e79900e6af532737483cac01ff2b0edb530f2a5cf62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54764fee87857b77c9d84fa8cb54d4e6ae9a26846786a2a778d3c4e5ddd84121828545e63fef1de8be32eca462dc6efc32ef4b6e17674d7519d504762c20f1ca
|
7
|
+
data.tar.gz: 974901c3faa33edd5b6e4beb481cb7a1043691c2336c09ec2191cec5f27a785be4a4f414fa2e088908e9b0f66207f12b5b668ce7c570f49201d5b674c205154f
|
data/Gemfile.lock
CHANGED
@@ -22,7 +22,6 @@ GEM
|
|
22
22
|
ast (~> 2.4.0)
|
23
23
|
powerpack (0.1.2)
|
24
24
|
rainbow (3.0.0)
|
25
|
-
rake (12.3.1)
|
26
25
|
rspec (3.8.0)
|
27
26
|
rspec-core (~> 3.8.0)
|
28
27
|
rspec-expectations (~> 3.8.0)
|
@@ -60,7 +59,6 @@ DEPENDENCIES
|
|
60
59
|
bitmap_compiler!
|
61
60
|
bundler
|
62
61
|
faker
|
63
|
-
rake
|
64
62
|
rspec (~> 3.0)
|
65
63
|
rubocop
|
66
64
|
simplecov
|
data/README.md
CHANGED
@@ -83,7 +83,9 @@ Or install it yourself as:
|
|
83
83
|
After that you should be able to use the `Editor` class in your `rails console` or inside your application:
|
84
84
|
|
85
85
|
```ruby
|
86
|
-
|
86
|
+
path = "Specify the file path"
|
87
|
+
|
88
|
+
BitmapCompiler::Core::Editor.new.run(path)
|
87
89
|
```
|
88
90
|
|
89
91
|
## Development
|
@@ -97,4 +99,3 @@ See [CONTRIBUTING.md](https://github.com/vbrazo/bitmap_compiler/blob/master/CONT
|
|
97
99
|
## License
|
98
100
|
|
99
101
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
100
|
-
|
data/bitmap_compiler.gemspec
CHANGED
@@ -25,7 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler'
|
27
27
|
spec.add_development_dependency 'faker'
|
28
|
-
spec.add_development_dependency 'rake'
|
29
28
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
30
29
|
spec.add_development_dependency 'rubocop'
|
31
30
|
spec.add_development_dependency 'simplecov'
|
data/lib/bitmap_compiler/cli.rb
CHANGED
@@ -11,7 +11,7 @@ module BitmapCompiler
|
|
11
11
|
|
12
12
|
# CLI method to call the Editor
|
13
13
|
def process_file
|
14
|
-
|
14
|
+
editor.run(options[:file])
|
15
15
|
rescue StandardError => e
|
16
16
|
warn "ERROR: #{e.message}"
|
17
17
|
exit 1
|
@@ -19,8 +19,8 @@ module BitmapCompiler
|
|
19
19
|
|
20
20
|
private
|
21
21
|
|
22
|
-
def
|
23
|
-
@
|
22
|
+
def editor
|
23
|
+
@editor ||= BitmapCompiler::Core::Editor.new
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -26,12 +26,9 @@ module BitmapCompiler
|
|
26
26
|
|
27
27
|
private
|
28
28
|
|
29
|
-
def bitmap_controller
|
30
|
-
@bitmap_controller ||= BitmapController.new(bitmap)
|
31
|
-
end
|
32
|
-
|
33
29
|
def execute(input)
|
34
|
-
|
30
|
+
bitmap_compiler = BitmapController.new(bitmap)
|
31
|
+
bitmap_compiler.execute_command(input)
|
35
32
|
end
|
36
33
|
end
|
37
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitmap_compiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vitor Oliveira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rspec
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
155
|
version: '0'
|
170
156
|
requirements: []
|
171
157
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.
|
158
|
+
rubygems_version: 2.7.7
|
173
159
|
signing_key:
|
174
160
|
specification_version: 4
|
175
161
|
summary: Bitmap Compiler API Ruby Client
|