bundled_gems 0.0.0 → 0.0.1

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: b51f174aa1854278547a6afcb8eb696539eea6d768955b9efd08a834b39d6e72
4
- data.tar.gz: 5ebaaa1c39e3e457f02510f7039d27f5d996af53a94b1e50ee72de5ec4ee2d3b
3
+ metadata.gz: 4b9089d309c13a540008bf19e45d431710fb61be598719e9da8fd4495b1d8d25
4
+ data.tar.gz: da8afb0076317d4bbc3afe5a63097e2d0978be12c99f3ed047b6b8316f2c86d9
5
5
  SHA512:
6
- metadata.gz: 9563e3997aab18ceef9cc71fd81a8b755f628321f501c5d1f3f4c598d61f3293bf15b3b2c29d0eefcf552cb83090d76d9646d1776a1752c2e8225de95c3ebfee
7
- data.tar.gz: 734a8dde655c75876872087401fc353cb00dad2a17b9623e9eb6432d02e2e1b51be93be640da2102af493ae1459cff73cdcfa295b5a1fcfb830c308d9b9b793c
6
+ metadata.gz: 8dbefcc29cedc9bd6257a064d3f6bc2d6e18314c88b3aae7c789d72343b78edf1d92d3a22c9df15cff755d772aeeea73616fa45a32d9129d9f68cd487ae84276
7
+ data.tar.gz: 60826c632d28a0613c0d9b5fffb16a4a087c9c3959f25bf10cf69c572ad4d8de9737d7a894556610b0951372eaf4c31b619623dfae7ecde508cb7c02424616a1
data/.gitignore CHANGED
@@ -6,3 +6,5 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+
10
+ Gemfile.lock
@@ -3,5 +3,8 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.6.4
7
- before_install: gem install bundler -v 2.0.2
6
+ - 2.6.5
7
+ script:
8
+ - bundle exec rake
9
+ - ./bin/bgem
10
+ before_install: gem install bundler
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ load File.expand_path("../../exe/bgem", __FILE__)
@@ -23,10 +23,13 @@ Gem::Specification.new do |spec|
23
23
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
24
  end
25
25
  spec.bindir = "exe"
26
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.executables = %w[bgem]
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency "bundler", "~> 2.0"
30
- spec.add_development_dependency "rake", "~> 10.0"
31
- spec.add_development_dependency "minitest", "~> 5.0"
29
+ spec.add_dependency "bundler"
30
+ spec.add_dependency "thor"
31
+
32
+ spec.add_development_dependency "minitest"
33
+ spec.add_development_dependency "rake"
34
+ # spec.add_development_dependency "rubocop-rails_config"
32
35
  end
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundled_gems"
5
+ require 'bundled_gem/cli'
6
+
7
+ BundledGem::Cli.start(ARGV)
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+
5
+ module BundledGem
6
+ class Cli < Thor
7
+ desc "list", "bundle list(without bundle install)"
8
+ def list
9
+ gemfilelock_content = File.read("./Gemfile.lock")
10
+ lockfile = Bundler::LockfileParser.new(gemfilelock_content)
11
+ lockfile.specs.each { |s| puts "#{s.name}, #{s.version}" }
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module BundledGem
2
- VERSION = "0.0.0"
4
+ VERSION = "0.0.1"
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundled_gem/version"
2
4
 
3
5
  module BundledGem
metadata CHANGED
@@ -1,61 +1,76 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundled_gems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-03 00:00:00.000000000 Z
11
+ date: 2019-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
34
- type: :development
33
+ version: '0'
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '5.0'
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '5.0'
68
+ version: '0'
55
69
  description: BundledGems
56
70
  email:
57
71
  - me@toshimaru.net
58
- executables: []
72
+ executables:
73
+ - bgem
59
74
  extensions: []
60
75
  extra_rdoc_files: []
61
76
  files:
@@ -63,13 +78,15 @@ files:
63
78
  - ".travis.yml"
64
79
  - CODE_OF_CONDUCT.md
65
80
  - Gemfile
66
- - Gemfile.lock
67
81
  - LICENSE.txt
68
82
  - README.md
69
83
  - Rakefile
84
+ - bin/bgem
70
85
  - bin/console
71
86
  - bin/setup
72
87
  - bundled_gems.gemspec
88
+ - exe/bgem
89
+ - lib/bundled_gem/cli.rb
73
90
  - lib/bundled_gem/version.rb
74
91
  - lib/bundled_gems.rb
75
92
  homepage: https://github.com/toshimaru/bundled_gems
@@ -1,22 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- bundled_gems (0.0.0)
5
- bundler (~> 2.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- minitest (5.12.2)
11
- rake (10.5.0)
12
-
13
- PLATFORMS
14
- ruby
15
-
16
- DEPENDENCIES
17
- bundled_gems!
18
- minitest (~> 5.0)
19
- rake (~> 10.0)
20
-
21
- BUNDLED WITH
22
- 2.0.2