datetime_diff 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44e046094af730d746cb28c16018952ae973e1ea
4
- data.tar.gz: 6b0556e0e74fe94443c1718eb03524b4b6ea96f1
3
+ metadata.gz: 50556d19d60fb8444242dbaa04a8e18c513e4314
4
+ data.tar.gz: b1febefe2c3729e8eff2527456a6a253305a5541
5
5
  SHA512:
6
- metadata.gz: 2cc062969c7b6f312c861950e258717aee17470343ddd20930fb662ee989a609222a73b37eaaef3404f41110cfd68ac010034d3a207dcb3d5f53bcd59e6d989a
7
- data.tar.gz: 3ed7fa2c41e40ee5b9394d10452e80c0f61516120e9db732aa4635f895c49d58927f7fa9a949c5c6c1b5b9faf222d239534730f9b0bbf4b8a64ba91619379990
6
+ metadata.gz: dcf84f3ce2c2b2206e0d4d9dbcd9bb8b82767a22a1d460583fe6466098868c398bfcf8690d60a0f4a3e448e65a69e72f31a7a7cd78571973822cd8e6cac53ae1
7
+ data.tar.gz: 0e3c13f5c0144152caede2990044dcb79bee8beacff259eae48cbbb6bb04e0c4e1b0262515dfa7efa0e6bc9bb3e85f24151beaeae4af6680caf2266abd33afba
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v 0.3.3
2
+ - change names
1
3
  v 0.3.2
2
4
  - change M to m in mls
3
5
  v 0.3.1
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in gem_datetime.gemspec
3
+ # Specify your gem's dependencies in datetime_diff.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # GemDatetime
1
+ # DateTimeDiff
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/gem_datetime`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/datetime_diff`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
5
  TODO: Delete this and the text above, and describe your gem
6
6
 
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'gem_datetime'
12
+ gem 'datetime_diff'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,7 +18,7 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install gem_datetime
21
+ $ gem install datetime_diff
22
22
 
23
23
  ## Usage
24
24
 
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/gem_datetime. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/datetime_diff. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
36
 
37
37
 
38
38
  ## License
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "gem_datetime"
4
+ require "datetime_diff"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'gem_datetime/version'
4
+ require 'datetime_diff/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "datetime_diff"
8
- spec.version = GemDatetime::VERSION
8
+ spec.version = DateTimeDiff::VERSION
9
9
  spec.authors = ["thiago feitosa"]
10
10
  spec.email = ["mail@thiago.pro"]
11
11
 
@@ -0,0 +1,3 @@
1
+ module DateTimeDiff
2
+ VERSION = "0.3.3"
3
+ end
@@ -1,12 +1,6 @@
1
- require "gem_datetime/version"
1
+ require "datetime_diff/version"
2
2
 
3
- module GemDatetime
4
-
5
- def self.delimiter h
6
- for key,value in h
7
- @@delimiter[key] = value
8
- end
9
- end
3
+ module DateTimeDiff
10
4
 
11
5
  def self.diff_to_s mls, format=nil
12
6
 
@@ -68,13 +62,13 @@ module GemDatetime
68
62
  else
69
63
  mls = dt.to_time.to_f - self.to_time.to_f
70
64
  end
71
- GemDatetime.diff_to_s mls, format
65
+ DateTimeDiff.diff_to_s mls, format
72
66
  end
73
67
  end
74
68
 
75
69
  class DateTime
76
- include GemDatetime
70
+ include DateTimeDiff
77
71
  end
78
72
  class Time
79
- include GemDatetime
73
+ include DateTimeDiff
80
74
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datetime_diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thiago feitosa
@@ -69,9 +69,9 @@ files:
69
69
  - Rakefile
70
70
  - bin/console
71
71
  - bin/setup
72
- - gem_datetime.gemspec
73
- - lib/gem_datetime.rb
74
- - lib/gem_datetime/version.rb
72
+ - datetime_diff.gemspec
73
+ - lib/datetime_diff.rb
74
+ - lib/datetime_diff/version.rb
75
75
  homepage: https://github.com/thiaguerd/datetime_diff
76
76
  licenses:
77
77
  - MIT
@@ -1,3 +0,0 @@
1
- module GemDatetime
2
- VERSION = "0.3.1"
3
- end