imagen 0.1.7 → 0.1.8

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
  SHA256:
3
- metadata.gz: b4b4fad86b963fdc67be2493730debc25bb83d5ff421ca009d12432cee70d7bf
4
- data.tar.gz: 132a9033251bbeb0ba86811280bba08534fa67e62c77ab0b20ae3e40f903fd99
3
+ metadata.gz: 2a3eda1d60ddcef7be0e422a0428006a5c6d2c74c8028266148c4dbedecf7468
4
+ data.tar.gz: 71585f42ee54d37a4b8930916d24701f9fa9937c0264e3d64e6be241250d7c1e
5
5
  SHA512:
6
- metadata.gz: d92b18181657c65f9f3c2ab834dd0dda1cfcd05ed89bc27c5b2d0c929b1ed1d23ad126fd25cf86527e8b1b1bb7245604df70c6f5f01fbbba6f628d72891c9d39
7
- data.tar.gz: fc1b2c46987426b02eb1b5037ed90eb17a5f42eba02b7b97d24e791fac62e364743d4276a6ef980af04c55821fb2a3bf8ae89745589ac84f96311b3244795454
6
+ metadata.gz: 2235c072dba4555b92c7a82c06f6c6112106168da68fc6a20a539698b4575d5f0246b15421bfe8e1f39d7a02654f716d41cbf3b174a0e924c122178c536c827a
7
+ data.tar.gz: 7524dfb584c87f4501d14b282c4f053e2a30a1cca45ada618cb22fd760b5d683dc4773898b6813d9644a53e2dcdd1b77c364c6dacea7600505e712d1e4fbf981
@@ -13,6 +13,6 @@ Metrics/BlockLength:
13
13
  Exclude:
14
14
  - spec/**/*
15
15
 
16
- Style/SpaceInsideHashLiteralBraces:
16
+ Layout/SpaceInsideHashLiteralBraces:
17
17
  Enabled: true
18
18
  EnforcedStyle: no_space
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.8]
10
+ ### Changed
11
+ - Dependency updates
12
+
9
13
  ## [0.1.5] 2018-08-19
10
14
  ### Added
11
15
  - This `CHANGELOG.md`
@@ -31,7 +35,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
31
35
  ### Added
32
36
  - First release of `imagen` 🎉
33
37
 
34
- [Unreleased]: https://github.com/grodowski/imagen_rb/compare/v0.1.5...HEAD
38
+ [Unreleased]: https://github.com/grodowski/imagen_rb/compare/v0.1.8...HEAD
39
+ [0.1.8]: https://github.com/grodowski/imagen_rb/compare/v0.1.5...v0.1.8
35
40
  [0.1.5]: https://github.com/grodowski/imagen_rb/compare/v0.1.4...v0.1.5
36
41
  [0.1.4]: https://github.com/grodowski/imagen_rb/compare/v0.1.3...v0.1.4
37
42
  [0.1.3]: https://github.com/grodowski/imagen_rb/compare/v0.1.2...v0.1.3
@@ -26,9 +26,9 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency 'parser', '>= 2.5', '!= 2.5.1.1'
27
27
 
28
28
  spec.add_development_dependency 'bundler', '~> 2.0'
29
- spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'rake', '~> 12.3'
30
30
  spec.add_development_dependency 'rspec', '~> 3.0'
31
- spec.add_development_dependency 'rubocop', '~> 0.55.0'
31
+ spec.add_development_dependency 'rubocop', '~> 0.66.0'
32
32
  spec.add_development_dependency 'pry'
33
33
  spec.add_development_dependency 'simplecov'
34
34
  spec.add_development_dependency 'simplecov-lcov'
@@ -9,7 +9,7 @@ require 'imagen/remote_builder'
9
9
 
10
10
  # Base module
11
11
  module Imagen
12
- EXCLUDE_RE = /_(spec|test).rb$/
12
+ EXCLUDE_RE = /_(spec|test).rb$/.freeze
13
13
 
14
14
  def self.from_local(dir)
15
15
  Node::Root.new.build_from_dir(dir)
@@ -66,6 +66,7 @@ module Imagen
66
66
 
67
67
  def validate_version(parser_version)
68
68
  return if AVAILABLE_RUBY_VERSIONS.include?(parser_version)
69
+
69
70
  raise ArgumentError, "#{parser_version} is not supported by imagen"
70
71
  end
71
72
  end
@@ -18,6 +18,7 @@ module Imagen
18
18
  unless repo_url.match?(/^https:\/\//)
19
19
  raise ArgumentError, 'repo_url must start with https://'
20
20
  end
21
+
21
22
  @repo_url = repo_url
22
23
  @dir = dirname
23
24
  end
@@ -110,6 +110,7 @@ module Imagen
110
110
 
111
111
  def list_files
112
112
  return [dir] if File.file?(dir)
113
+
113
114
  Dir.glob("#{dir}/**/*.rb").reject { |path| path =~ Imagen::EXCLUDE_RE }
114
115
  end
115
116
  end
@@ -179,6 +180,7 @@ module Imagen
179
180
  arg_nodes = ast_node.children.find { |n| n.type == :args }.children
180
181
  arg_names = arg_nodes.map { |arg| arg.children[0] }
181
182
  return if arg_names.empty?
183
+
182
184
  "(#{arg_names.join(', ')})"
183
185
  end
184
186
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Imagen
4
- VERSION = '0.1.7'
4
+ VERSION = '0.1.8'
5
5
  end
@@ -20,6 +20,7 @@ module Imagen
20
20
 
21
21
  def traverse(ast_node, parent)
22
22
  return unless ast_node.is_a?(Parser::AST::Node)
23
+
23
24
  node = visit(ast_node, parent)
24
25
  ast_node.children.each { |child| traverse(child, node || parent) }
25
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-25 00:00:00.000000000 Z
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '10.0'
53
+ version: '12.3'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '10.0'
60
+ version: '12.3'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 0.55.0
81
+ version: 0.66.0
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: 0.55.0
88
+ version: 0.66.0
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: pry
91
91
  requirement: !ruby/object:Gem::Requirement