drg 0.10.0 → 0.11.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: 192ffc2e344eb1965d37566de60fe780cd90b8d2
4
- data.tar.gz: 492ffad6f66e52f76003a8f351119a2355c2157b
3
+ metadata.gz: 4a12d96b59086abf157f90d3f894220069d48ca2
4
+ data.tar.gz: d4900b4c70fd03628c809813c372f5856ecdd245
5
5
  SHA512:
6
- metadata.gz: 31f40faf4b9264925aef07fdbef1742771f2d9d03c296984f0dd78e9ec9f36f30279bc48ca6600de5f51e45396b542679d145db9d0e3e1c36d384e0497413f3c
7
- data.tar.gz: 07dd1b06d0ff569720ebbdda5ba518d106bd89e81dcbb79cbe12db66bf42b8d882af1001deb6a35754fe2d845389989dfdb1beadefb05cf48d42f68d4f243559
6
+ metadata.gz: ed1825a70919f356e54cfa7965ab6ef1f8d395375a1298b9c847701b4f578b7cebc5b059fd2510c5bd578497ceb9905b4d2bf5c623d572607569fddf8b18b656
7
+ data.tar.gz: 83b3c8a86637e8556e3ae33e5c17dc6b6cf5ab4ff1f7294b26cc0b7fcfd378359f3fd930598987323979458301abd55d64ccbd59a254982a6c43090e0688772a
data/README.md CHANGED
@@ -143,6 +143,14 @@ Remove the versions from your Gemfile. A clean start!
143
143
  rake drg:unpin
144
144
  ```
145
145
 
146
+ ### Skipping gems
147
+
148
+ You can tell drg to ignore gems by adding an inline comment with @drg (skip|ignore|frozen)
149
+
150
+ ```ruby
151
+ gem 'name' # @drg skip
152
+ ```
153
+
146
154
  ## Development
147
155
 
148
156
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake` to run the tests.
data/drg.gemspec CHANGED
@@ -12,8 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = %q{DRG that Gemfile! The missing bundler extension. Gem version automation with Bundler}
13
13
  spec.homepage = "https://github.com/ridiculous/drg"
14
14
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
- spec.bindir = "exe"
16
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
+ spec.executables = []
17
16
  spec.require_paths = ["lib"]
18
17
 
19
18
  # spec.add_dependency 'ruby_parser', '>= 3.7.0', '< 4.0.0'
@@ -27,6 +27,7 @@ module DRG
27
27
  next if line =~ /^\s*#/
28
28
  next if line =~ /:?path:?\s*(=>)?\s*/
29
29
  next if line =~ /:?git(hub)?:?\s*(=>)?\s*/
30
+ next if line =~ /@drg\s+(frozen|ignore|skip)/
30
31
  return GemfileLine.new line, index, name if line =~ /gem\s*['"]#{name}["']/
31
32
  end
32
33
  nil
data/lib/drg/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DRG
2
- VERSION = '0.10.0'.freeze
2
+ VERSION = '0.11.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Buckley
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
@@ -90,8 +90,7 @@ description: DRG that Gemfile! The missing bundler extension. Gem version automa
90
90
  with Bundler
91
91
  email:
92
92
  - arebuckley@gmail.com
93
- executables:
94
- - drg
93
+ executables: []
95
94
  extensions: []
96
95
  extra_rdoc_files: []
97
96
  files:
@@ -105,7 +104,6 @@ files:
105
104
  - bin/console
106
105
  - bin/setup
107
106
  - drg.gemspec
108
- - exe/drg
109
107
  - lib/drg.rb
110
108
  - lib/drg/file_context.rb
111
109
  - lib/drg/file_reader.rb
data/exe/drg DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env bash
2
- git add Gemfile
3
- for cmd in $@; do
4
- echo " * Updating $cmd versions"
5
- bundle exec rake drg:pin:${cmd}_latest
6
- bundle update
7
- bundle exec rspec . -t ~js
8
- if [ $? -eq 0 ]
9
- then
10
- echo " * Tests passed after updating $cmd versions. Adding Gemfile ..."
11
- git add Gemfile*
12
- else
13
- echo " * Tests failed after updating $cmd versions. Reverting change to Gemfile ..." >&2
14
- git checkout -- Gemfile*
15
- bundle
16
- exit 1
17
- fi
18
- done