drg 1.2.1 → 1.2.2
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 +4 -4
- data/LICENSE.txt +22 -0
- data/README.md +6 -7
- data/drg.gemspec +2 -2
- data/lib/drg/tasks/gemfile_line.rb +5 -3
- data/lib/drg/version.rb +1 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc8458eead2110fb89a28e5594fce74bd3cecaa2
|
4
|
+
data.tar.gz: b08d8bbc72aaf3fa8de3b20f5b07a1ffa08deec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45cba115c9a853f42d363f8810f83ee3edb455e0898692a3bd9fb431a3a010e39c771b2b88d2a2d7ed23fb4e96bcf331cbb392b85cbe2e8fd45704d921eb219f
|
7
|
+
data.tar.gz: a49c11efdf04d9d13909c6c4f3b4fb75e52300c29d1b68bddb380e8673c74247b032b2743b3727ba3a0d2cc51e05ef83e9f7b74c414b1165b26f7dceaead1cf9
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2016 Ryan Buckley
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -26,7 +26,6 @@ rake drg:pin:latest[gem] # Pin the given gem to the latest version (defau
|
|
26
26
|
rake drg:pin:minor_latest[gem] # Pin the given gem to the latest available patch version (defaults to all gems)
|
27
27
|
rake drg:pin:patch_latest[gem] # Pin the given gem to the latest available minor version (defaults to all gems)
|
28
28
|
rake drg:unpin # Unpin the gems in your Gemfile
|
29
|
-
rake spec # Run all tests
|
30
29
|
```
|
31
30
|
|
32
31
|
### drg:pin
|
@@ -39,22 +38,22 @@ or `:path` will be ignored. You can "pin" all your versions to the current versi
|
|
39
38
|
rake drg:pin
|
40
39
|
```
|
41
40
|
|
42
|
-
This task will update your Gemfile with the gem's
|
41
|
+
This task will update your Gemfile with the gem's approximate version. It'll change:
|
43
42
|
|
44
43
|
```ruby
|
45
44
|
gem 'rails'
|
46
45
|
gem 'byebug', require: false
|
47
46
|
gem 'therubyracer', '~> 0.12', platforms: :ruby
|
48
|
-
gem 'drg' #
|
47
|
+
gem 'drg' # :)
|
49
48
|
```
|
50
49
|
|
51
50
|
to:
|
52
51
|
|
53
52
|
```ruby
|
54
|
-
gem 'rails', '4.2
|
55
|
-
gem 'byebug', '5.0
|
56
|
-
gem 'therubyracer', '0.12
|
57
|
-
gem 'drg', '
|
53
|
+
gem 'rails', '~> 4.2'
|
54
|
+
gem 'byebug', '~> 5.0', require: false
|
55
|
+
gem 'therubyracer', '~> 0.12', platforms: :ruby
|
56
|
+
gem 'drg', '~> 1.2' # :)
|
58
57
|
```
|
59
58
|
|
60
59
|
### Automation
|
data/drg.gemspec
CHANGED
@@ -12,11 +12,11 @@ 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.executables = []
|
16
15
|
spec.require_paths = ["lib"]
|
16
|
+
spec.license = "MIT"
|
17
17
|
|
18
18
|
spec.add_dependency 'bundler', '~> 1.10'
|
19
|
-
spec.add_dependency 'duck_puncher', '>= 2.0.0', '
|
19
|
+
spec.add_dependency 'duck_puncher', '>= 2.0.0', '< 3.0.0'
|
20
20
|
spec.add_dependency 'highline', '~> 1.6'
|
21
21
|
|
22
22
|
spec.add_development_dependency 'rake', '~> 10.0'
|
@@ -10,8 +10,8 @@ module DRG
|
|
10
10
|
|
11
11
|
# @param [String] version is the new value for the gem (add/replace)
|
12
12
|
# @return [String] line
|
13
|
-
def update(
|
14
|
-
swap_version(", '#{
|
13
|
+
def update(new_version)
|
14
|
+
swap_version(", '#{new_version.to_s}'")
|
15
15
|
end
|
16
16
|
|
17
17
|
# @return [String] line
|
@@ -23,7 +23,9 @@ module DRG
|
|
23
23
|
def swap_version(full_version)
|
24
24
|
comment = line =~ /#/ ? " #{line.slice!(/#.*/).strip}" : ''
|
25
25
|
if line =~ /,.+\n?/
|
26
|
-
if line =~
|
26
|
+
if line =~ /,.*[\d.]+.*,.*require.+/
|
27
|
+
line.sub! /,\s*['"].+['"]\s*,\s*/, "#{full_version}, "
|
28
|
+
elsif line =~ /,\s*['"].+['"]/
|
27
29
|
line[/,\s*['"].+['"]/] = full_version
|
28
30
|
else
|
29
31
|
line[/,\s*/] = "#{full_version}, "
|
data/lib/drg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Buckley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.0.0
|
34
|
-
- - "
|
34
|
+
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 3.0.0
|
37
37
|
type: :runtime
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: 2.0.0
|
44
|
-
- - "
|
44
|
+
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 3.0.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- ".ruby-version"
|
106
106
|
- ".travis.yml"
|
107
107
|
- Gemfile
|
108
|
+
- LICENSE.txt
|
108
109
|
- README.md
|
109
110
|
- Rakefile
|
110
111
|
- bin/console
|
@@ -122,7 +123,8 @@ files:
|
|
122
123
|
- lib/drg/version.rb
|
123
124
|
- lib/tasks/drg.rake
|
124
125
|
homepage: https://github.com/ridiculous/drg
|
125
|
-
licenses:
|
126
|
+
licenses:
|
127
|
+
- MIT
|
126
128
|
metadata: {}
|
127
129
|
post_install_message:
|
128
130
|
rdoc_options: []
|