bundler-native-gems 0.1.0 → 0.2.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
2
  SHA1:
3
- metadata.gz: 6b81a67b63cb27d2164fa57adcf649c18dac6070
4
- data.tar.gz: 4677441f182b5650c8a82970db8a7f598a925035
3
+ metadata.gz: 3bea8400c96f4d4e1e517947e030c155bb365d54
4
+ data.tar.gz: 7a40489608c509525cf4a87a80fa7e96736c1b69
5
5
  SHA512:
6
- metadata.gz: 43a350f6d6322c13224b05d15843948425c8a7da005727a97e10d9612dbde8421810fe52ec4c9781cab1dd98472fa9a4978ec2d0d8a987a713741d2c600ee914
7
- data.tar.gz: 113d6b29a957563a1c02604e004911b81d02f3b2b9b2bb801c9d9d570db65c274e23c4950949b2314f558aeff47bf7259bd5bd5e0b8566d8813fd00d4b8865d5
6
+ metadata.gz: dc79bfad18e735ef7431eb2e80dd1ecd8c7fe3a37e10ff74560cfcbe0985457cb45b017e8f03593765c3814223c800c5c681944e16724453524d60a457f4fae6
7
+ data.tar.gz: bff91a20d55959d6114360f2542624226614fcf1ec57557cc7f171a704661daf73bfcbc8f6c369d72e515e3f2d03b96b09f24aa69a35d7e9975bd13d084c0af1
data/.gitignore CHANGED
@@ -28,9 +28,8 @@ build/
28
28
 
29
29
  # for a library or gem, you might want to ignore these files since the code is
30
30
  # intended to run in multiple environments; otherwise, check them in:
31
- # Gemfile.lock
32
- # .ruby-version
33
- # .ruby-gemset
31
+ Gemfile.lock
32
+ .ruby-version
34
33
 
35
34
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
36
35
  .rvmrc
data/Changelog.md ADDED
@@ -0,0 +1,10 @@
1
+ # Changelog
2
+
3
+ # v0.2.0 - 2016-04-19
4
+
5
+ * Bugfix - lists all native gems, not just direct dependencies
6
+ * Add changelog
7
+
8
+ # v0.1.0 - 2016-03-18
9
+
10
+ * Initial implementation
@@ -9,11 +9,11 @@ end
9
9
 
10
10
  require "bundler/setup"
11
11
 
12
- native_specs = Bundler.definition.dependencies.map(&:to_spec).reject {|spec| spec.extensions.empty? }
12
+ native_specs = Bundler.definition.resolve.to_a.select { |spec| spec.__materialize__.extensions.any? }
13
13
 
14
14
  table = TTY::Table.new(
15
15
  header: ["Gem Name", "Version"],
16
- rows: native_specs.map {|spec| [spec.name, spec.version] }
16
+ rows: native_specs.sort_by(&:name).map {|spec| [spec.name, spec.version] }
17
17
  )
18
18
 
19
19
  puts table.render(:ascii, padding: [0, 1, 0, 1])
@@ -1,3 +1,3 @@
1
1
  module BundlerNativeGems
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-native-gems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caius Durling
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-18 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -47,6 +47,7 @@ extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
49
  - ".gitignore"
50
+ - Changelog.md
50
51
  - Gemfile
51
52
  - LICENSE
52
53
  - README.md
@@ -73,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
74
  version: '0'
74
75
  requirements: []
75
76
  rubyforge_project:
76
- rubygems_version: 2.5.2
77
+ rubygems_version: 2.6.2
77
78
  signing_key:
78
79
  specification_version: 4
79
80
  summary: Inspect your Gemfile to list gems with native extensions