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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: aafbe44681ab6a478eca0daa40fb3f8f64090dc3
4
- data.tar.gz: 0f4e958a789fe9811eea5c5da73b5336c1b59237
2
+ SHA256:
3
+ metadata.gz: 809f107d24036e8c03cc742a318c842dd3e1b3bf08f2c865255ce9abb980fe63
4
+ data.tar.gz: dd17d08166ddffca705c5e79900e6af532737483cac01ff2b0edb530f2a5cf62
5
5
  SHA512:
6
- metadata.gz: 39b0bfe42961adc68ca05abe7c9a0d73fa5f06910c61f406b59439a4cedbec3b33c97c7cd03834e0185700a59ed80ff7190a4739ed8910c70ff4be6e1806915e
7
- data.tar.gz: 34b775a0ff3ce50a9ed9aca5789473e3e2f099e09f09f9362f25243cd09b4f33cf0799b832275c4aa1cf398a6923f35566a685e6507357df0030500bcb4b4471
6
+ metadata.gz: 54764fee87857b77c9d84fa8cb54d4e6ae9a26846786a2a778d3c4e5ddd84121828545e63fef1de8be32eca462dc6efc32ef4b6e17674d7519d504762c20f1ca
7
+ data.tar.gz: 974901c3faa33edd5b6e4beb481cb7a1043691c2336c09ec2191cec5f27a785be4a4f414fa2e088908e9b0f66207f12b5b668ce7c570f49201d5b674c205154f
@@ -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
- BitmapCompiler::Core::Editor.new.run("Specify the file path")
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
-
@@ -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'
@@ -11,7 +11,7 @@ module BitmapCompiler
11
11
 
12
12
  # CLI method to call the Editor
13
13
  def process_file
14
- bitmap_compiler.run(options[:file])
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 bitmap_compiler
23
- @bitmap_compiler ||= BitmapCompiler::Core::Editor.new
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
- bitmap_controller.execute_command(input)
30
+ bitmap_compiler = BitmapController.new(bitmap)
31
+ bitmap_compiler.execute_command(input)
35
32
  end
36
33
  end
37
34
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Template Method Pattern for our Error classes
3
+ # Factory Pattern for error subclasses
4
4
  module BitmapCompiler
5
5
  module Core
6
6
  module Errors
@@ -1,3 +1,3 @@
1
1
  module BitmapCompiler
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  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.2.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-08-31 00:00:00.000000000 Z
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.5.1
158
+ rubygems_version: 2.7.7
173
159
  signing_key:
174
160
  specification_version: 4
175
161
  summary: Bitmap Compiler API Ruby Client