Skip to content

Commit 869694f

Browse files
committed
Merge branch 'matt/fix_version_parser' into 'master'
Fix version parser See merge request mx/binks!9
2 parents 99b1df3 + de7c7ef commit 869694f

6 files changed

Lines changed: 18 additions & 2 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
binks (0.0.6)
4+
binks (0.0.7)
55
thor (>= 0.20.3)
66

77
GEM

lib/binks/gradle.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Binks
22
class Gradle
3-
GRADLE_VERSION = %r{version[\s]*\=*[\s]*['"](?<version>[\.\d]+(|\.pre))['"]}
3+
GRADLE_VERSION = %r{^version[\s]*\=*[\s]*['"](?<version>[\.\d]+(|\.pre))['"]}
44

55
attr_reader :filename
66

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
33

4+
plugins {
5+
id 'com.mx.coppuccino' version '9.9.9'
6+
}
7+
48
version = "0.0.2"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
33

4+
plugins {
5+
id 'com.mx.coppuccino' version '9.9.9'
6+
}
7+
48
version "0.0.3"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
33

4+
plugins {
5+
id 'com.mx.coppuccino' version '9.9.9'
6+
}
7+
48
version = '0.0.1-some_invalid_junk'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
33

4+
plugins {
5+
id 'com.mx.coppuccino' version '9.9.9'
6+
}
7+
48
version = '0.0.1'

0 commit comments

Comments
 (0)