cobra_commander 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +7 -3
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/lib/cobra_commander/component_tree.rb +7 -3
- data/lib/cobra_commander/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c6691293eef47b4d36057d148675f31b8cb4b3c8c856a0735e2c0bef2103360f
|
4
|
+
data.tar.gz: 65a81c3b9a38e14f56b9fe77e278aff31934659dd1cc8f165a437d41c46088bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29f6dcff1cda4a0f4275c6df455b8f7a5669f41a66377ee5ce66e70255a5d599dfdc728ded2c04e767f414a26d12782d59e92c7597ac4a87102dc49f99933dfa
|
7
|
+
data.tar.gz: b30229ef24c4ccd6f32edd8c9d8163f9d62986901741e4bd497b374c3c9b2b49b0ea2e0141499df0d1c26a26e72f497226ba321f73ccd7bad763e3e61b6a506b
|
data/.travis.yml
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
sudo: true
|
2
2
|
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.3.1
|
5
3
|
before_install:
|
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
|
data/CHANGELOG.md
CHANGED
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 '
|
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
|
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
|
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
|
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)
|
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.
|
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:
|
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.
|
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
|