working_hours 1.1.2 → 1.1.3

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: 67a0f2eb365a59918de39db2f11c29793a458f07
4
- data.tar.gz: 003cae888ac4274d8fa53fffee04c8bddb83b3b8
3
+ metadata.gz: 84b53643f4f18edb7c63446575a16d2f670d658e
4
+ data.tar.gz: dff1cc9158cf632f559734fdf52b31b41b16d004
5
5
  SHA512:
6
- metadata.gz: 1917dd8e540d5b79d19f85c4c29ee10951f42f37a86451eacbaa9e03522db3f76b93051358d87404bb74df3ead6c2940c029f7b80e713af861a3517e562f692a
7
- data.tar.gz: 78aaf458c8bf63b49f9a94cf9134a9f6f95ae8293075d799acca986ef5b6da4417fae2315f1450d404884384864f67fc8ae51482d5f75fc02727df76a43d5dbf
6
+ metadata.gz: ffaa30b066b7fa1aca5627d26698b6fa54c4f594d7d5dc4a876be57ab065557d6bcd078ad2a3682d855804981e992979ed7c6b986ba9b8e1135850d2e4716ea2
7
+ data.tar.gz: 124cd2067fbb66250df7bf78451a0561d37b2b3a27ff91cfd8b85155af0e806193b20fb272065fd615ac85500b6539c1080ac93c2daed37e48e00d9ae2b8d346
data/.travis.yml CHANGED
@@ -1,11 +1,16 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
- - 2.1.6
5
- - 2.2.3
4
+ - 2.1.8
5
+ - 2.2.4
6
+ - 2.3.0
7
+ - 2.4.0
6
8
  - ruby-head
7
- - jruby-1.7.19
9
+ - jruby-1.7.23
10
+ - jruby-9.0.4.0
8
11
  - jruby-head
12
+ before_install:
13
+ - bundler --version || gem install bundler
9
14
  env: JRUBY_OPTS=--2.0
10
15
  gemfile:
11
16
  - gemfiles/Gemfile.activesupport-3.2.x
@@ -14,6 +19,10 @@ gemfile:
14
19
  - gemfiles/Gemfile.activesupport-4.2.x
15
20
  - gemfiles/Gemfile.activesupport-edge
16
21
  matrix:
22
+ exclude:
23
+ - rvm: 2.4.0
24
+ env: JRUBY_OPTS=--2.0
25
+ gemfile: gemfiles/Gemfile.activesupport-3.2.x
17
26
  allow_failures:
18
27
  - gemfile: gemfiles/Gemfile.activesupport-edge
19
28
  - rvm: ruby-head
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Unreleased
2
2
 
3
- [Compare master with v1.1.2](https://github.com/intrepidd/working_hours/compare/v1.1.2...master)
3
+ [Compare master with v1.1.3](https://github.com/intrepidd/working_hours/compare/v1.1.3...master)
4
+
5
+ # v1.1.3
6
+ * Fixed warnings with Ruby 2.4.0+ - [#32](https://github.com/Intrepidd/working_hours/pull/32)
7
+ * Fix install bug with jruby 1.7.20
4
8
 
5
9
  # v1.1.2
6
10
  * Fixed an issue of float imprecision causing infinite loop - [#27](https://github.com/Intrepidd/working_hours/pull/27)
data/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
  A modern ruby gem allowing to do time calculation with working hours.
6
6
 
7
7
  Compatible and tested with:
8
- - Ruby `2.0`, `2.1`, JRuby `1.7` ( with ruby 2 syntax support enabled )
9
- - ActiveSupport `3.2.x`, `4.0.x` and `4.1.x`
8
+ - Ruby `2.x`, JRuby `9.0.x`, JRuby `1.7.x` ( with 2.0 syntax: `--2.0` )
9
+ - ActiveSupport `3.2.x`, `4.x`
10
10
 
11
11
  ## Installation
12
12
 
@@ -2,7 +2,7 @@ require "working_hours/duration_proxy"
2
2
 
3
3
  module WorkingHours
4
4
  module CoreExt
5
- module Fixnum
5
+ module Integer
6
6
 
7
7
  def working
8
8
  WorkingHours::DurationProxy.new(self)
@@ -12,4 +12,4 @@ module WorkingHours
12
12
  end
13
13
  end
14
14
 
15
- Fixnum.send(:include, WorkingHours::CoreExt::Fixnum)
15
+ Integer.send(:include, WorkingHours::CoreExt::Integer)
@@ -1,3 +1,3 @@
1
1
  module WorkingHours
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
data/lib/working_hours.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  require "working_hours/module"
2
- require "working_hours/core_ext/fixnum"
3
- require "working_hours/core_ext/date_and_time"
2
+ require "working_hours/core_ext/integer"
3
+ require "working_hours/core_ext/date_and_time"
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe WorkingHours::CoreExt::Fixnum do
3
+ describe WorkingHours::CoreExt::Integer do
4
4
 
5
5
  describe '#working' do
6
6
  it 'returns a DurationProxy' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: working_hours
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Jarthon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-12-06 00:00:00.000000000 Z
12
+ date: 2017-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -120,7 +120,7 @@ files:
120
120
  - lib/working_hours/computation.rb
121
121
  - lib/working_hours/config.rb
122
122
  - lib/working_hours/core_ext/date_and_time.rb
123
- - lib/working_hours/core_ext/fixnum.rb
123
+ - lib/working_hours/core_ext/integer.rb
124
124
  - lib/working_hours/duration.rb
125
125
  - lib/working_hours/duration_proxy.rb
126
126
  - lib/working_hours/module.rb
@@ -129,7 +129,7 @@ files:
129
129
  - spec/working_hours/computation_spec.rb
130
130
  - spec/working_hours/config_spec.rb
131
131
  - spec/working_hours/core_ext/date_and_time_spec.rb
132
- - spec/working_hours/core_ext/fixnum_spec.rb
132
+ - spec/working_hours/core_ext/integer_spec.rb
133
133
  - spec/working_hours/duration_proxy_spec.rb
134
134
  - spec/working_hours/duration_spec.rb
135
135
  - spec/working_hours_spec.rb
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.4.5.1
157
+ rubygems_version: 2.6.6
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: time calculation with working hours
@@ -163,8 +163,7 @@ test_files:
163
163
  - spec/working_hours/computation_spec.rb
164
164
  - spec/working_hours/config_spec.rb
165
165
  - spec/working_hours/core_ext/date_and_time_spec.rb
166
- - spec/working_hours/core_ext/fixnum_spec.rb
166
+ - spec/working_hours/core_ext/integer_spec.rb
167
167
  - spec/working_hours/duration_proxy_spec.rb
168
168
  - spec/working_hours/duration_spec.rb
169
169
  - spec/working_hours_spec.rb
170
- has_rdoc: