cobra_commander 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9f6f02282233ec41c21d79041849fed2e2e2cc60
4
- data.tar.gz: 78739e6b66cdbda390a0dacc7aa9ed188cfcd391
2
+ SHA256:
3
+ metadata.gz: c6691293eef47b4d36057d148675f31b8cb4b3c8c856a0735e2c0bef2103360f
4
+ data.tar.gz: 65a81c3b9a38e14f56b9fe77e278aff31934659dd1cc8f165a437d41c46088bc
5
5
  SHA512:
6
- metadata.gz: cb9108f46b25e17f6da9261f10e88d623476b70b3c5341b214b8184e7d9b51d656afd66ab5b1316d61f404fe579760f592bd5a7e30caba235ccac9a55a6efa39
7
- data.tar.gz: 7800ed167bca503ca3ad2f6c5bdcd6c7cd4241dc96d54fab2e4d8c92f73445aa7952fda746bf99b5255addee46dd2a9aa7483f2bb9a74c4d50c015eff10ffe87
6
+ metadata.gz: 29f6dcff1cda4a0f4275c6df455b8f7a5669f41a66377ee5ce66e70255a5d599dfdc728ded2c04e767f414a26d12782d59e92c7597ac4a87102dc49f99933dfa
7
+ data.tar.gz: b30229ef24c4ccd6f32edd8c9d8163f9d62986901741e4bd497b374c3c9b2b49b0ea2e0141499df0d1c26a26e72f497226ba321f73ccd7bad763e3e61b6a506b
@@ -1,7 +1,11 @@
1
1
  sudo: true
2
2
  language: ruby
3
- rvm:
4
- - 2.3.1
5
3
  before_install:
6
- - gem install bundler -v 1.13.6
4
+ - "find /home/travis/.rvm/rubies -wholename '*default/bundler-*.gemspec' -delete"
5
+ - gem install bundler:"$BUNDLER_VERSION"
7
6
  - sudo apt-get -qq install graphviz
7
+ rvm:
8
+ - 2.5.1
9
+ env:
10
+ - BUNDLER_VERSION=1.15.4
11
+ - BUNDLER_VERSION=1.16.3
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## Version 0.3.1 - 2018-08-15
6
+
7
+ * Resolve Bundler API version issue causing breakage building a ComponentTree. PR [#19](https://github.com/powerhome/cobra_commander/pull/19)
8
+
5
9
  ## Version 0.3.0 - 2017-10-22
6
10
 
7
11
  ### Added
data/README.md CHANGED
@@ -13,7 +13,7 @@ Tools for working with Component Based Rails Apps (see http://shageman.github.io
13
13
  Add this line to your application's Gemfile:
14
14
 
15
15
  ```ruby
16
- gem 'cobra'
16
+ gem 'cobra_commander'
17
17
  ```
18
18
 
19
19
  And then execute:
@@ -22,7 +22,7 @@ And then execute:
22
22
 
23
23
  Or install it yourself as:
24
24
 
25
- $ gem install cobra
25
+ $ gem install cobra_commander
26
26
 
27
27
  ## Usage
28
28
 
@@ -37,7 +37,7 @@ Commands:
37
37
 
38
38
  ## Development
39
39
 
40
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
41
41
 
42
42
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
43
43
 
@@ -64,13 +64,17 @@ module CobraCommander
64
64
  def dependencies
65
65
  @deps ||= begin
66
66
  return [] unless gem?
67
- gems = bundler_definition.dependencies.select do |dep|
68
- dep.source&.is_a_path? && dep.source.path.to_s != "."
69
- end
67
+ gems = bundler_definition.dependencies.select { |dep| path?(dep.source) }
70
68
  format(gems)
71
69
  end
72
70
  end
73
71
 
72
+ def path?(source)
73
+ return if source.nil?
74
+ source_has_path = source.respond_to?(:path?) ? source.path? : source.is_a_path?
75
+ source_has_path && source.path.to_s != "."
76
+ end
77
+
74
78
  def format(deps)
75
79
  deps.map do |dep|
76
80
  path = File.join(dep.source.path, dep.name)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CobraCommander
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobra_commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Langfeld
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-09-22 00:00:00.000000000 Z
12
+ date: 2018-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.6.13
196
+ rubygems_version: 2.7.7
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: Tools for working with Component Based Rails Apps