time_ago_in_words 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3643c74e96a16cf5b7a3052eec2cf8b0041d89c4
4
- data.tar.gz: b835b4a256c661bfb5133da03e55cbceccdb6b75
3
+ metadata.gz: b65f63f0509e262c26e0a90452dcf779a1125f66
4
+ data.tar.gz: 1bde03f24502a3767dd9679c9ec02b5f37c918ad
5
5
  SHA512:
6
- metadata.gz: 434184bf95eed3f42cf0cdaf0c04340c35fb9dbe661cf0296e80f819c5aa4b0d48bf70deeba089e4d3cfc3a2e828d2060d77854d818769973116c647a5542c67
7
- data.tar.gz: 3cb1145b769db7a50b466c36bf192b47afa12ede96692da37116a2387186306badb6121523e9149fde2e1d884b71ecd43c52238f58ffae5501c4b337e621b4e2
6
+ metadata.gz: 1af82571323d046708317c6ecf3c4ba7b9198d503cb3109659f84cb67e5b7390b058ed0ab8083edf89d0362f6e16065e01538187131bc3d2f8017e03e046a7e6
7
+ data.tar.gz: 6cc80d3a1710e11a231bd4aa34fdd0f367fffb9cdd8c4d53331d89db125917d7dc20eda33ca47a02a91d2e124a708fe5c024a1b3d7c7d233957b79a6fc4e036a
data/.gitignore CHANGED
@@ -1,9 +1,7 @@
1
1
  *.gem
2
2
  *.rbc
3
- .bundle
4
3
  .config
5
4
  .yardoc
6
- Gemfile.lock
7
5
  InstalledFiles
8
6
  _yardoc
9
7
  coverage
data/.rspec CHANGED
@@ -1,3 +1,4 @@
1
1
  --format documentation
2
2
  --color
3
3
  --order random
4
+ --fail-fast
@@ -0,0 +1,2 @@
1
+ time_ago_in_words
2
+
@@ -0,0 +1,2 @@
1
+ 2.0.0
2
+
@@ -1,7 +1,13 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
- - 1.9.2
4
4
  - 1.9.3
5
5
  - 2.0.0
6
- - ruby-head
7
- script: 'bundle exec rake'
6
+ - jruby-1.7.9
7
+ - rbx-2.2.1
8
+
9
+ install:
10
+ - bundle install
11
+
12
+ script:
13
+ - bundle exec rake
data/Gemfile CHANGED
@@ -2,3 +2,25 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in time_ago_in_words.gemspec
4
4
  gemspec
5
+
6
+ group :development do
7
+ gem 'pry' # core replacement for irb
8
+ gem 'pry-doc' # gives MRI core documentation and source code
9
+ end
10
+
11
+ unless %w(jruby rbx).include? RUBY_ENGINE
12
+ group :test do
13
+ # Coverage reports only for MRI
14
+ gem 'simplecov', '>= 0.8.2'
15
+ gem 'coveralls', '>= 0.7.0'
16
+ end
17
+
18
+ group :development do
19
+ gem 'redcarpet', '>= 3' # redcarpet doesn't currently works with jruby nor rbx. kramdown is a possible alternative
20
+ gem 'yard', '>= 0.8.7.3' # no need to generate yard docs from jruby nor rbx
21
+ gem 'pry-stack_explorer' # adds command `show-stack`
22
+ gem 'pry-debugger' # adds commands `continue, step, next, finish`
23
+ end
24
+ end
25
+
26
+ gem 'rubysl' if RUBY_ENGINE == 'rbx'
@@ -0,0 +1,94 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ time_ago_in_words (0.1.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ binding_of_caller (0.7.2)
10
+ debug_inspector (>= 0.0.1)
11
+ coderay (1.1.0)
12
+ columnize (0.3.6)
13
+ coveralls (0.7.0)
14
+ multi_json (~> 1.3)
15
+ rest-client
16
+ simplecov (>= 0.7)
17
+ term-ansicolor
18
+ thor
19
+ debug_inspector (0.0.2)
20
+ debugger (1.6.3)
21
+ columnize (>= 0.3.1)
22
+ debugger-linecache (~> 1.2.0)
23
+ debugger-ruby_core_source (~> 1.2.4)
24
+ debugger-linecache (1.2.0)
25
+ debugger-ruby_core_source (1.2.4)
26
+ diff-lcs (1.2.5)
27
+ docile (1.1.1)
28
+ ffi (1.9.3-java)
29
+ method_source (0.8.2)
30
+ mime-types (2.0)
31
+ multi_json (1.8.2)
32
+ pry (0.9.12.4)
33
+ coderay (~> 1.0)
34
+ method_source (~> 0.8)
35
+ slop (~> 3.4)
36
+ pry (0.9.12.4-java)
37
+ coderay (~> 1.0)
38
+ method_source (~> 0.8)
39
+ slop (~> 3.4)
40
+ spoon (~> 0.0)
41
+ pry-debugger (0.2.2)
42
+ debugger (~> 1.3)
43
+ pry (~> 0.9.10)
44
+ pry-doc (0.4.6)
45
+ pry (>= 0.9)
46
+ yard (>= 0.8)
47
+ pry-stack_explorer (0.4.9.1)
48
+ binding_of_caller (>= 0.7)
49
+ pry (>= 0.9.11)
50
+ rake (10.1.0)
51
+ redcarpet (3.0.0)
52
+ rest-client (1.6.7)
53
+ mime-types (>= 1.16)
54
+ rspec (2.14.1)
55
+ rspec-core (~> 2.14.0)
56
+ rspec-expectations (~> 2.14.0)
57
+ rspec-mocks (~> 2.14.0)
58
+ rspec-core (2.14.7)
59
+ rspec-expectations (2.14.4)
60
+ diff-lcs (>= 1.1.3, < 2.0)
61
+ rspec-mocks (2.14.4)
62
+ rubygems-tasks (0.2.4)
63
+ simplecov (0.8.2)
64
+ docile (~> 1.1.0)
65
+ multi_json
66
+ simplecov-html (~> 0.8.0)
67
+ simplecov-html (0.8.0)
68
+ slop (3.4.7)
69
+ spoon (0.0.4)
70
+ ffi
71
+ term-ansicolor (1.2.2)
72
+ tins (~> 0.8)
73
+ thor (0.18.1)
74
+ tins (0.13.1)
75
+ yard (0.8.7.3)
76
+
77
+ PLATFORMS
78
+ java
79
+ ruby
80
+
81
+ DEPENDENCIES
82
+ bundler (>= 1.3.5)
83
+ coveralls (>= 0.7.0)
84
+ pry
85
+ pry-debugger
86
+ pry-doc
87
+ pry-stack_explorer
88
+ rake
89
+ redcarpet (>= 3)
90
+ rspec (~> 2.14, >= 2.14.1)
91
+ rubygems-tasks (~> 0.2, >= 0.2.4)
92
+ simplecov (>= 0.8.2)
93
+ time_ago_in_words!
94
+ yard (>= 0.8.7.3)
data/README.md CHANGED
@@ -5,11 +5,96 @@
5
5
  [![Dependency Status][DS img]][Dependency Status]
6
6
  [![Code Climate][CC img]][Code Climate]
7
7
  [![Coverage Status][CS img]][Coverage Status]
8
+ [![githalytics.com alpha](https://cruel-carlota.pagodabox.com/3fe2425a26ab0ca00b5bc6acf817af59 "githalytics.com")](http://githalytics.com/elgalu/time_ago_in_words)
9
+
10
+ ## Warning
11
+
12
+ This is just a proof-of-concept gem. Please review the following production-ready suggestions i have for you:
13
+
14
+ ### Rails apps
15
+
16
+ You can use classic Rails time ago in words
17
+
18
+ ```ruby
19
+ time_ago_in_words(Time.now - 60*60*2) + ' ago'
20
+ #=> "about 2 hours ago"
21
+
22
+ # Note that all these returns the same
23
+ distance_of_time_in_words(Time.now, 15.seconds.from_now, include_seconds: true)
24
+ distance_of_time_in_words(Time.now, 15.seconds.ago, include_seconds: true)
25
+ time_ago_in_words(15.seconds.from_now, include_seconds: true)
26
+ #=> "less than 20 seconds"
27
+ ```
28
+
29
+ For localization or changing the words to be used, look at [this file](https://github.com/rails/rails/blob/master/actionview/lib/action_view/locale/en.yml)
30
+
31
+ ### Non-Rails apps
32
+
33
+ Same as before but you will need some explicit requires:
34
+
35
+ ```ruby
36
+ require 'action_view'
37
+ require 'action_view/helpers'
38
+ include ActionView::Helpers::DateHelper
39
+ time_ago_in_words(Time.now - 60*60*2) + ' ago'
40
+ #=> "about 2 hours ago"
41
+
42
+ # If you need to take advantage of Numeric ActiveSupport extensions:
43
+ require 'active_support/core_ext/numeric/time'
44
+ time_ago_in_words(Time.now - 2.hours) + ' ago'
45
+ #=> "about 2 hours ago"
46
+ # note that (Time.now - 2.hours) == (2.hours.ago)
47
+ ```
48
+
49
+ ### Web apps, client side:
50
+
51
+ If you are programming for the web and don't want to mess your caching strategies then client-side update libraries came to your rescue:
52
+
53
+ | Name | Pure Javascript + Rails integration | jQuery library | jQuery + Rails integration |
54
+ |:-------------------- |:-----------------------------------:|:------------------:|:--------------------------:|
55
+ | 37signals Local Time | [local_time][] | [smart-time-ago][] | [timeago-rails][] |
56
+ | Smart Time Ago | | [smart-time-ago][] | [timeago-rails][] |
57
+ | Timeago | | [jquery-timeago][] | [rails-timeago][] |
58
+
59
+ [smart-time-ago]: https://github.com/pragmaticly/smart-time-ago
60
+ [jquery-timeago]: https://github.com/rmm5t/jquery-timeago
61
+ [timeago-rails]: https://github.com/ashchan/timeago-rails
62
+ [rails-timeago]: https://github.com/jgraichen/rails-timeago
63
+ [local_time]: https://github.com/37signals/local_time#time-ago-helper
64
+
65
+ ### [dotiw](https://github.com/radar/dotiw)
66
+
67
+ If you are looking for results that looks like this
68
+
69
+ "1 year, 2 months, 4 hours, 5 minutes, and 6 seconds"
70
+
71
+ There is also [time-lord](https://github.com/krainboltgreene/time-lord) if you want to look around
72
+
73
+ ```ruby
74
+ require 'time-lord'
75
+ 1.hour.ago.to_i #=> -3600
76
+ 200.minutes.ago.to_words #=> "3 hours ago"
77
+ (200.years + 400.days).ago.to_words #=> "201 years ago"
78
+ 1.hour.ago.to_range #=> 1379701707..1379705307
79
+ ```
80
+
81
+ ### Related: Natural Language Date Parser
82
+
83
+ If you are working in the opposite direction [chronic][] natural language date parsing to the rescue.
84
+
85
+ ```ruby
86
+ require 'chronic' #gem install chronic
87
+ Chronic.parse("1 year from now").year #=> 2014
88
+ ```
89
+
90
+ The Javascript version of [chronic][] is [date][] and can be used within your browser (client-side) or nodejs (server-side).
8
91
 
9
92
  ## Description
10
93
 
11
94
  Humanize elapsed time from some Time instance to Time.now, e.g. '2 hours and 1 minute ago'
12
95
 
96
+ This gem provides slightly different approach to the others but still needs some work to be production-ready, check [TODO](#todo) section.
97
+
13
98
  ## Installation
14
99
 
15
100
  `$ gem install time_ago_in_words` or add to your [Gemfile][] this line: `gem 'time_ago_in_words'` then run [bundle install][]
@@ -19,7 +104,6 @@ Humanize elapsed time from some Time instance to Time.now, e.g. '2 hours and 1 m
19
104
  Just `require 'time_ago_in_words'` and then call Time#ago_in_words method:
20
105
 
21
106
  ```ruby
22
- require 'rubygems' # if ruby 1.8.7
23
107
  require 'time_ago_in_words'
24
108
 
25
109
  # Comparing from now:
@@ -70,8 +154,8 @@ Released under the MIT License. See the [LICENSE][] file for further details.
70
154
  [RubyGems][] | [Documentation][] | [Source][] | [Bugtracker][] | [Build Status][] | [Dependency Status][] | [Code Climate][]
71
155
 
72
156
 
73
- [bundle install]: http://gembundler.com/man/bundle-install.1.html
74
- [Gemfile]: http://gembundler.com/man/gemfile.5.html
157
+ [bundle install]: http://gembundler.com/v1.3/man/bundle-install.1.html
158
+ [Gemfile]: http://gembundler.com/v1.3/gemfile.html
75
159
  [LICENSE]: LICENSE.md
76
160
  [Change Log]: CHANGELOG.md
77
161
 
@@ -95,3 +179,6 @@ Released under the MIT License. See the [LICENSE][] file for further details.
95
179
  [CS img]: https://coveralls.io/repos/elgalu/time_ago_in_words/badge.png?branch=master
96
180
 
97
181
  [time_ago_in_words]: http://apidock.com/rails/ActionView/Helpers/DateHelper/time_ago_in_words
182
+
183
+ [chronic]: https://github.com/mojombo/chronic
184
+ [date]: https://github.com/matthewmueller/date
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
- require "bundler/gem_tasks"
2
- require 'rspec/core/rake_task'
1
+ require 'rubygems/tasks'
2
+ Gem::Tasks.new
3
3
 
4
+ require 'rspec/core/rake_task'
4
5
  RSpec::Core::RakeTask.new(:spec)
5
6
 
6
7
  task :default => :spec
@@ -1,3 +1,3 @@
1
1
  module TimeAgoInWords
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,12 +1,15 @@
1
- require 'simplecov'
2
- require 'coveralls'
1
+ unless %w(jruby rbx).include? RUBY_ENGINE
2
+ require 'simplecov'
3
+ require 'coveralls'
3
4
 
4
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
- SimpleCov::Formatter::HTMLFormatter,
6
- Coveralls::SimpleCov::Formatter
7
- ]
8
- SimpleCov.start
5
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
6
+ SimpleCov::Formatter::HTMLFormatter,
7
+ Coveralls::SimpleCov::Formatter
8
+ ]
9
+ SimpleCov.start
10
+ end
9
11
 
12
+ # Internal
10
13
  require 'time_ago_in_words'
11
14
 
12
15
  # Require this file using `require "spec_helper"` within each of your specs
@@ -15,7 +18,8 @@ RSpec.configure do |config|
15
18
  config.treat_symbols_as_metadata_keys_with_true_values = true
16
19
  config.run_all_when_everything_filtered = true
17
20
  config.filter_run :focus
18
-
19
- # Run specs in random order to surface order dependencies.
20
- config.order = 'random'
21
+ config.order = 'random' # Run specs in random order to surface order dependencies.
22
+ config.expect_with :rspec do |c|
23
+ c.syntax = :expect # disable `should` syntax http://goo.gl/BGxqP
24
+ end
21
25
  end
@@ -2,53 +2,55 @@ require 'spec_helper'
2
2
 
3
3
  describe TimeAgoInWords do
4
4
  it 'should have a version number' do
5
- TimeAgoInWords::VERSION.should_not be_nil
5
+ expect(TimeAgoInWords::VERSION).not_to be_nil
6
6
  end
7
7
 
8
8
  describe '#ago_in_words' do
9
- context 'invalid dates' do
10
- it "returns 'just now' when elapsed seconds are less than 1" do
11
- Time.now.ago_in_words.should == 'just now'
12
- (Time.now - 0.5).ago_in_words.should == 'just now'
13
- (Time.now + 0.5).ago_in_words.should == 'just now'
9
+ context 'unsupported dates' do
10
+ it "returns empty string in future dates" do
11
+ expect((Time.now + 1.6).ago_in_words).to eq('')
12
+ expect((Time.now + 100).ago_in_words).to eq('')
13
+ expect((Time.now + 9999).ago_in_words).to eq('')
14
14
  end
15
15
 
16
- it "returns empty string on future dates" do
17
- (Time.now + 1.6).ago_in_words.should == ''
18
- (Time.now + 100).ago_in_words.should == ''
19
- (Time.now + 9999).ago_in_words.should == ''
16
+ it "returns 'a very very long time ago' when more than 300 years ago" do
17
+ expect(Time.local(1713,01,01).ago_in_words).to eq('a very very long time ago')
20
18
  end
19
+ end
21
20
 
22
- it "returns 'a very very long time ago' when more than 300 years ago" do
23
- Time.local(1713,01,01).ago_in_words.should == 'a very very long time ago'
21
+ context 'valid dates' do
22
+ it "returns 'just now' when elapsed seconds are less than 1" do
23
+ expect(Time.now.ago_in_words).to eq('just now')
24
+ expect((Time.now - 0.5).ago_in_words).to eq('just now')
25
+ expect((Time.now + 0.5).ago_in_words).to eq('just now')
24
26
  end
25
27
 
26
28
  it "can handle many days ago" do
27
- (Time.now - 60*60*24*9999).ago_in_words.should == '9999 days ago'
29
+ expect((Time.now - 60*60*24*9999).ago_in_words).to eq('9999 days ago')
28
30
  end
29
31
 
30
32
  it "returns N seconds ago, N seconds ago!" do
31
- (Time.now - 2).ago_in_words.should == '2 seconds ago'
32
- (Time.now - 33).ago_in_words.should == '33 seconds ago'
33
+ expect((Time.now - 2).ago_in_words).to eq('2 seconds ago')
34
+ expect((Time.now - 33).ago_in_words).to eq('33 seconds ago')
33
35
  end
34
36
 
35
37
  it "returns 1 second/minute/hour/day ago when 1 ago!" do
36
- (Time.now - 1).ago_in_words.should == '1 second ago'
37
- (Time.now - 60).ago_in_words.should == '1 minute ago'
38
- (Time.now - 60*60).ago_in_words.should == '1 hour ago'
39
- (Time.now - 60*60*24).ago_in_words.should == '1 day ago'
38
+ expect((Time.now - 1).ago_in_words).to eq('1 second ago')
39
+ expect((Time.now - 60).ago_in_words).to eq('1 minute ago')
40
+ expect((Time.now - 60*60).ago_in_words).to eq('1 hour ago')
41
+ expect((Time.now - 60*60*24).ago_in_words).to eq('1 day ago')
40
42
  end
41
43
 
42
44
  it "returns 1 second/minute/hour/day and 1 second/minute/hour/day ago when appropriate" do
43
- (Time.now - 1 - 60).ago_in_words.should == '1 minute and 1 second ago'
44
- (Time.now - 1*60*60 - 60).ago_in_words.should == '1 hour and 1 minute ago'
45
- (Time.now - 1*60*60*24 - 60*60).ago_in_words.should == '1 day and 1 hour ago'
45
+ expect((Time.now - 1 - 60).ago_in_words).to eq('1 minute and 1 second ago')
46
+ expect((Time.now - 1*60*60 - 60).ago_in_words).to eq('1 hour and 1 minute ago')
47
+ expect((Time.now - 1*60*60*24 - 60*60).ago_in_words).to eq('1 day and 1 hour ago')
46
48
  end
47
49
 
48
50
  it "returns 1 second/minute/hour/day and 1 second/minute/hour/day ago ignoring third elements (residual irrelevant precisions)" do
49
- (Time.now - 1*60*60 - 60 - 10).ago_in_words.should == '1 hour and 1 minute ago'
50
- (Time.now - 1*60*60*24 - 1*60*60 - 100).ago_in_words.should == '1 day and 1 hour ago'
51
- (Time.now - 9*60*60*24 - 3*60*60 - 100).ago_in_words.should == '9 days and 3 hours ago'
51
+ expect((Time.now - 1*60*60 - 60 - 10).ago_in_words).to eq('1 hour and 1 minute ago')
52
+ expect((Time.now - 1*60*60*24 - 1*60*60 - 100).ago_in_words).to eq('1 day and 1 hour ago')
53
+ expect((Time.now - 9*60*60*24 - 3*60*60 - 100).ago_in_words).to eq('9 days and 3 hours ago')
52
54
  end
53
55
  end
54
56
  end
@@ -5,31 +5,28 @@ require 'time_ago_in_words/version'
5
5
  Gem::Specification.new do |spec|
6
6
 
7
7
  spec.platform = Gem::Platform::RUBY
8
- spec.name = "time_ago_in_words"
8
+ spec.name = 'time_ago_in_words'
9
9
  spec.version = TimeAgoInWords::VERSION
10
10
  spec.summary = %q{Humanize elapsed time from some Time instance to Time.now, e.g. '2 hours and 1 minute ago'}
11
11
  spec.description = spec.summary
12
12
 
13
13
  spec.required_ruby_version = '>= 1.9.2'
14
- spec.required_rubygems_version = '>= 2'
14
+ spec.required_rubygems_version = '>= 1.8.25'
15
15
 
16
16
  spec.license = 'MIT'
17
17
 
18
- spec.authors = ["Leo Gallucci"]
19
- spec.email = ["elgalu3@gmail.com"]
20
- spec.homepage = "https://github.com/elgalu/time_ago_in_words"
18
+ spec.authors = ['Leo Gallucci']
19
+ spec.email = ['elgalu3@gmail.com']
20
+ spec.homepage = 'https://github.com/elgalu/time_ago_in_words'
21
21
 
22
- spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
23
  spec.files = `git ls-files`.split($/)
24
+ spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
24
25
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
25
- spec.require_paths = ["lib"]
26
-
27
- spec.add_development_dependency "bundler", ">= 1.2"
28
- spec.add_development_dependency "rake"
29
- spec.add_development_dependency "rspec", "~> 2.13"
30
- spec.add_development_dependency "redcarpet", ">= 2.2"
31
- spec.add_development_dependency "yard", ">= 0.8.5.2"
32
- spec.add_development_dependency "simplecov", ">= 0.7.1"
33
- spec.add_development_dependency 'coveralls', '>= 0.5.8'
26
+
27
+ spec.add_development_dependency 'bundler', '>= 1.3.5'
28
+ spec.add_development_dependency 'rake'
29
+ spec.add_development_dependency 'rspec', '~> 2.14', '>= 2.14.1'
30
+ spec.add_development_dependency 'rubygems-tasks', '~> 0.2', '>= 0.2.4'
34
31
 
35
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_ago_in_words
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo Gallucci
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-06 00:00:00.000000000 Z
11
+ date: 2013-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '1.2'
19
+ version: 1.3.5
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '1.2'
26
+ version: 1.3.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,70 +44,40 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '2.13'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '2.13'
55
- - !ruby/object:Gem::Dependency
56
- name: redcarpet
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
47
+ version: '2.14'
59
48
  - - '>='
60
49
  - !ruby/object:Gem::Version
61
- version: '2.2'
50
+ version: 2.14.1
62
51
  type: :development
63
52
  prerelease: false
64
53
  version_requirements: !ruby/object:Gem::Requirement
65
54
  requirements:
66
- - - '>='
55
+ - - ~>
67
56
  - !ruby/object:Gem::Version
68
- version: '2.2'
69
- - !ruby/object:Gem::Dependency
70
- name: yard
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
57
+ version: '2.14'
73
58
  - - '>='
74
59
  - !ruby/object:Gem::Version
75
- version: 0.8.5.2
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: 0.8.5.2
60
+ version: 2.14.1
83
61
  - !ruby/object:Gem::Dependency
84
- name: simplecov
62
+ name: rubygems-tasks
85
63
  requirement: !ruby/object:Gem::Requirement
86
64
  requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: 0.7.1
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
65
+ - - ~>
95
66
  - !ruby/object:Gem::Version
96
- version: 0.7.1
97
- - !ruby/object:Gem::Dependency
98
- name: coveralls
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
67
+ version: '0.2'
101
68
  - - '>='
102
69
  - !ruby/object:Gem::Version
103
- version: 0.5.8
70
+ version: 0.2.4
104
71
  type: :development
105
72
  prerelease: false
106
73
  version_requirements: !ruby/object:Gem::Requirement
107
74
  requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '0.2'
108
78
  - - '>='
109
79
  - !ruby/object:Gem::Version
110
- version: 0.5.8
80
+ version: 0.2.4
111
81
  description: Humanize elapsed time from some Time instance to Time.now, e.g. '2 hours
112
82
  and 1 minute ago'
113
83
  email:
@@ -118,10 +88,13 @@ extra_rdoc_files: []
118
88
  files:
119
89
  - .gitignore
120
90
  - .rspec
91
+ - .ruby-gemset
92
+ - .ruby-version
121
93
  - .travis.yml
122
94
  - .yardopts
123
95
  - CHANGELOG.md
124
96
  - Gemfile
97
+ - Gemfile.lock
125
98
  - LICENSE.md
126
99
  - README.md
127
100
  - Rakefile
@@ -149,10 +122,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
122
  requirements:
150
123
  - - '>='
151
124
  - !ruby/object:Gem::Version
152
- version: '2'
125
+ version: 1.8.25
153
126
  requirements: []
154
127
  rubyforge_project:
155
- rubygems_version: 2.0.0
128
+ rubygems_version: 2.1.11
156
129
  signing_key:
157
130
  specification_version: 4
158
131
  summary: Humanize elapsed time from some Time instance to Time.now, e.g. '2 hours
@@ -160,4 +133,3 @@ summary: Humanize elapsed time from some Time instance to Time.now, e.g. '2 hour
160
133
  test_files:
161
134
  - spec/spec_helper.rb
162
135
  - spec/time_ago_in_words_spec.rb
163
- has_rdoc: