drg 0.15.5 → 0.15.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -5
- data/drg.gemspec +1 -1
- data/lib/drg/ruby/condition.rb +4 -4
- data/lib/drg/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d07718561b63d248e436961dca545007b488753
|
4
|
+
data.tar.gz: f418bac5e2c6bb10e45d7193d11dc24d4c7d4d65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8aeb1467b533b35c6507d18aebbd4163002e5728ad7d90e4945c6ac393428c7a5903b24a85cfdf29e55a88f0796c693b6a4ccf3afd0f84d51d45a2c4402bf622
|
7
|
+
data.tar.gz: c5412c09381ca920633349490e1bde537a825e0e94711fda7563ae054441e6b1209cceee17b42949f68d8c432e004d6ddefcdd3ffd0fa8916ddce458f0400309
|
data/README.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
# DRG
|
2
|
-
[![Code Climate](https://codeclimate.com/github/ridiculous/drg/badges/gpa.svg)](https://codeclimate.com/github/ridiculous/drg)
|
3
2
|
[![Gem Version](https://badge.fury.io/rb/drg.svg)](http://badge.fury.io/rb/drg)
|
4
3
|
|
5
4
|
A suite of rake tasks to help you test and manage your project.
|
@@ -8,7 +7,7 @@ The `drg:pin` suite provides enhanced dependency management with Bundler. You ca
|
|
8
7
|
available minor, major or patch level version.
|
9
8
|
|
10
9
|
The `drg:spec` task generates RSpec scaffolding for existing code. This helps bootstrap your tests and guide you in what
|
11
|
-
|
10
|
+
you should be testing.
|
12
11
|
|
13
12
|
## Requirements
|
14
13
|
|
@@ -16,8 +15,6 @@ The `drg:spec` task generates RSpec scaffolding for existing code. This helps bo
|
|
16
15
|
|
17
16
|
## Installation
|
18
17
|
|
19
|
-
Add this line to your application's Gemfile:
|
20
|
-
|
21
18
|
```ruby
|
22
19
|
gem 'drg'
|
23
20
|
```
|
@@ -141,7 +138,7 @@ gem 'rails', '~> 4.2'
|
|
141
138
|
Want to pin gems at their __patch__ version?
|
142
139
|
|
143
140
|
```bash
|
144
|
-
rake drg:pin:
|
141
|
+
rake drg:pin:patch
|
145
142
|
```
|
146
143
|
|
147
144
|
This task will update your Gemfile with the approximate gem's patch version. It'll change:
|
data/drg.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Ryan Buckley"]
|
10
10
|
spec.email = ["arebuckley@gmail.com"]
|
11
11
|
spec.summary = %q{A suite of rake tasks to help you test and manage your project}
|
12
|
-
spec.description = %q{A suite of rake tasks that provide enhanced dependency management and
|
12
|
+
spec.description = %q{A suite of rake tasks that provide enhanced dependency management and rspec scaffolding}
|
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
15
|
spec.executables = []
|
data/lib/drg/ruby/condition.rb
CHANGED
@@ -63,12 +63,12 @@ class DRG::Ruby::Condition
|
|
63
63
|
|
64
64
|
def edit(txt)
|
65
65
|
txt = txt.to_s
|
66
|
-
txt.sub! /^return\
|
66
|
+
txt.sub! /^return\b/, 'returns'
|
67
67
|
txt.sub! /^returns\s*$/, 'returns nil'
|
68
|
-
if txt.
|
69
|
-
txt = "returns #{txt}"
|
70
|
-
elsif txt.include?(' = ')
|
68
|
+
if txt.include?(' = ')
|
71
69
|
txt = "assigns #{txt}"
|
70
|
+
elsif !txt.empty? and txt !~ /^return/
|
71
|
+
txt = "returns #{txt.strip}"
|
72
72
|
end
|
73
73
|
txt.strip
|
74
74
|
end
|
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: 0.15.
|
4
|
+
version: 0.15.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Buckley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_parser
|
@@ -127,7 +127,7 @@ dependencies:
|
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '4'
|
129
129
|
description: A suite of rake tasks that provide enhanced dependency management and
|
130
|
-
|
130
|
+
rspec scaffolding
|
131
131
|
email:
|
132
132
|
- arebuckley@gmail.com
|
133
133
|
executables: []
|