glowing-archer 0.0.6.5 → 0.0.6.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # Glowing::Archer
2
2
 
3
- TODO: Write a gem description
4
-
5
3
  ## Installation
6
4
 
7
5
  Add this line to your application's Gemfile:
@@ -27,3 +25,9 @@ TODO: Write usage instructions here
27
25
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
26
  4. Push to the branch (`git push origin my-new-feature`)
29
27
  5. Create new Pull Request
28
+
29
+ ## Testing
30
+
31
+ Check the /spec, improve and run with
32
+
33
+ $ rspec
@@ -3,16 +3,16 @@ module PrettyDate
3
3
  a = (Time.now-self).to_i
4
4
 
5
5
  case a
6
- when 0 then 'Just now'
7
- when 1 then 'A second ago'
6
+ when 0 then 'just now'
7
+ when 1 then 'a second ago'
8
8
  when 2..59 then a.to_s+' seconds ago'
9
- when 60..119 then 'A minute ago' #120 = 2 minutes
9
+ when 60..119 then 'a minute ago' #120 = 2 minutes
10
10
  when 120..3540 then (a/60).to_i.to_s+' minutes ago'
11
- when 3541..7100 then 'An hour ago' # 3600 = 1 hour
11
+ when 3541..7100 then 'an hour ago' # 3600 = 1 hour
12
12
  when 7101..82800 then ((a+99)/3600).to_i.to_s+' hours ago'
13
- when 82801..172000 then 'A day ago' # 86400 = 1 day
13
+ when 82801..172000 then 'a day ago' # 86400 = 1 day
14
14
  when 172001..518400 then ((a+800)/(60*60*24)).to_i.to_s+' days ago'
15
- when 518400..1036800 then 'A week ago'
15
+ when 518400..1036800 then 'a week ago'
16
16
  else ((a+180000)/(60*60*24*7)).to_i.to_s+' weeks ago'
17
17
  end
18
18
  end
@@ -1,5 +1,5 @@
1
1
  module Glowing
2
2
  module Archer
3
- VERSION = "0.0.6.5"
3
+ VERSION = "0.0.6.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glowing-archer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6.5
4
+ version: 0.0.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-12 00:00:00.000000000 Z
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -64,7 +64,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
64
  version: '0'
65
65
  segments:
66
66
  - 0
67
- hash: 1656255534451648988
67
+ hash: 4564027920508608059
68
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  segments:
75
75
  - 0
76
- hash: 1656255534451648988
76
+ hash: 4564027920508608059
77
77
  requirements: []
78
78
  rubyforge_project:
79
79
  rubygems_version: 1.8.23