latest 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -31,7 +31,7 @@ You can print latest's version like so:
31
31
 
32
32
  ```bash
33
33
  latest -v
34
- # Latest v0.3.0
34
+ # Latest v0.4.0
35
35
  ```
36
36
 
37
37
 
data/bin/latest CHANGED
@@ -18,8 +18,8 @@ else
18
18
  gem.pre = true
19
19
  print "--pre "
20
20
  end
21
- puts "#{gem.version} (#{gem.downloads} downloads)"
22
- rescue StandardError => e
21
+ puts "#{gem.version} (#{gem.downloads} download#{'s' unless gem.downloads == 1})"
22
+ rescue => e
23
23
  print "[Error] "
24
24
  puts e.message
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Latest
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -7,7 +7,7 @@ describe "Latest" do
7
7
 
8
8
  STABLE_VERSION_REGEX = /\d+(\.\d+)*/ # 11.2.123
9
9
  PRE_VERSION_REGEX = /--pre \d+(\.\d+)*(.[a-z\.?\d]+)+/i # 0.1.23.beta.1
10
- DOWNLOADS_REGEX = /\(\d+ downloads\)/ # (10 downloads)
10
+ DOWNLOADS_REGEX = /\(\d+ downloads?\)/ # (10 downloads)
11
11
 
12
12
  def assert_version_match(name, string, prerelease=false)
13
13
  regex = Regexp.new("#{name} #{prerelease ? PRE_VERSION_REGEX : STABLE_VERSION_REGEX} #{DOWNLOADS_REGEX}")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: latest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70325692439400 !ruby/object:Gem::Requirement
16
+ requirement: &70276147819600 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>'
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70325692439400
24
+ version_requirements: *70276147819600
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70325692438920 !ruby/object:Gem::Requirement
27
+ requirement: &70276147818900 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>'
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70325692438920
35
+ version_requirements: *70276147818900
36
36
  description: Latest keeps us up to speed by querying rubygems.org for a gem's most
37
37
  recent version number. Yep, that's all it does.
38
38
  email:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: -2568820004086336079
78
+ hash: -2247530751751994731
79
79
  requirements: []
80
80
  rubyforge_project: latest
81
81
  rubygems_version: 1.8.11