ruby_core_extensions 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +11 -5
- data/CHANGELOG.md +3 -1
- data/gemfiles/rails5.gemfile +6 -0
- data/gemfiles/rails6.gemfile +6 -0
- data/lib/ruby_core_extensions/hash.rb +0 -10
- data/lib/ruby_core_extensions/version.rb +1 -1
- data/ruby_core_extensions.gemspec +2 -2
- data/spec/support/coverage.rb +1 -1
- metadata +10 -10
- data/gemfiles/rails3.gemfile +0 -11
- data/gemfiles/rails4.gemfile +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fe51cbe0690ad8ae1a0a62820bf571b5d3d617a93ba7187807fc904f99c44867
|
4
|
+
data.tar.gz: a1298753e9148cb80f3454a534217c899435dfa03e25d1ee10dd234085eaf39a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e23c149d5b40d8448ada9185501f74e750cc2c035790c0f0f8e0043f11d6a31a4511d8f593a6c5f8126f6d347faa570a0402ce65281fa20c17927480b654681
|
7
|
+
data.tar.gz: daaf2bc62fff5a8e18c4089194af2d0e9e1773d6845b5400fc8d4d0b71dc7aa5dcc5ffa6afcec2860d7f46c58e983249112320ae7a3178dcac985b2af8871fbc
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.6.3
|
data/.travis.yml
CHANGED
@@ -1,14 +1,20 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.
|
3
|
+
- 2.4
|
4
|
+
- 2.5
|
5
|
+
- 2.6
|
6
|
+
matrix:
|
7
|
+
exclude:
|
8
|
+
- rvm: 2.4
|
9
|
+
gemfile: gemfiles/rails6.gemfile
|
10
|
+
before_install:
|
11
|
+
- gem install bundler
|
4
12
|
script: bundle exec rake spec
|
5
13
|
gemfile:
|
6
|
-
- gemfiles/
|
7
|
-
- gemfiles/
|
14
|
+
- gemfiles/rails5.gemfile
|
15
|
+
- gemfiles/rails6.gemfile
|
8
16
|
notifications:
|
9
17
|
email:
|
10
18
|
- support@travellink.com.au
|
11
|
-
flowdock:
|
12
|
-
secure: IK3CyMRa++LNdooemZJBZSNdwUiKpVdXZUz9exYIkj3La/EJDOy+kqV2NzYdqRht2BGHHiRsVn3hVqySDDuv9jxBHTZgM0v/pQ4kT8JZqi7fDb36axf3M6Y2VJyrJ0S/9BbHqLE95B4NXQ30ctLCSfQNbp9sOn2EwP3DZS9KJks=
|
13
19
|
sudo: false
|
14
20
|
cache: bundler
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,9 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
|
5
5
|
|
6
|
-
##
|
6
|
+
## 0.2.0
|
7
|
+
|
8
|
+
- [TT-5814] Update to Rails5+ and Ruby2.4+
|
7
9
|
|
8
10
|
## 0.1.0
|
9
11
|
|
@@ -1,14 +1,4 @@
|
|
1
1
|
class Hash
|
2
|
-
unless self.method_defined?(:extract!)
|
3
|
-
# Imported from Rails 3
|
4
|
-
def extract!(*keys)
|
5
|
-
result = {}
|
6
|
-
keys.each { |key| result[key] = delete(key) }
|
7
|
-
result
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
|
12
2
|
def map_key_value(key_method, value_method = nil)
|
13
3
|
value_method ||= key_method
|
14
4
|
each.with_object({}) do |(k, v), new_hash|
|
@@ -20,10 +20,10 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_dependency 'activesupport', '>=
|
23
|
+
spec.add_dependency 'activesupport', '>= 5.0'
|
24
24
|
spec.add_dependency 'tzinfo'
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler", "~> 1
|
26
|
+
spec.add_development_dependency "bundler", "~> 2.0.1"
|
27
27
|
spec.add_development_dependency "rake"
|
28
28
|
spec.add_development_dependency 'rspec'
|
29
29
|
spec.add_development_dependency 'coverage-kit'
|
data/spec/support/coverage.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_core_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Noack
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-08-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '5.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '5.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: tzinfo
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 2.0.1
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 2.0.1
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rake
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,14 +160,15 @@ files:
|
|
160
160
|
- ".gitignore"
|
161
161
|
- ".rspec"
|
162
162
|
- ".rubocop.yml"
|
163
|
+
- ".ruby-version"
|
163
164
|
- ".travis.yml"
|
164
165
|
- CHANGELOG.md
|
165
166
|
- Gemfile
|
166
167
|
- LICENSE
|
167
168
|
- README.md
|
168
169
|
- Rakefile
|
169
|
-
- gemfiles/
|
170
|
-
- gemfiles/
|
170
|
+
- gemfiles/rails5.gemfile
|
171
|
+
- gemfiles/rails6.gemfile
|
171
172
|
- lib/ruby_core_extensions.rb
|
172
173
|
- lib/ruby_core_extensions/array.rb
|
173
174
|
- lib/ruby_core_extensions/class.rb
|
@@ -217,8 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
218
|
- !ruby/object:Gem::Version
|
218
219
|
version: '0'
|
219
220
|
requirements: []
|
220
|
-
|
221
|
-
rubygems_version: 2.6.14.1
|
221
|
+
rubygems_version: 3.0.3
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: Set of extensions to core ruby libraries used by TravelLink Technology.
|
data/gemfiles/rails3.gemfile
DELETED