instance_variables_from 1.0.0 → 1.0.1

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
- SHA1:
3
- metadata.gz: 0c1b5234381aae0860d06d43bdb44ed1708024d5
4
- data.tar.gz: 70de5548ad733615f0a22a75bc7157f39361a3ae
2
+ SHA256:
3
+ metadata.gz: fdfe4b2c77d8310c4f75d6d51c198f80db0c8aff8b39c8c0bf7deaee8b50aa28
4
+ data.tar.gz: 24830fba68ba51889cc02b71ad6bce3d46d0a5555e861d29414fcff6cacf74ee
5
5
  SHA512:
6
- metadata.gz: 023a8cfab7f4f2c2d028d17c1b82d7564ec9935a448ff65dfe22e9f2028564dd4f6fdd53721fd97467f70894de50a70e4ed83b3c64bb2682284e14040650bb57
7
- data.tar.gz: 99464d3bb20a3da6c3ff6c36244ab5f23ada83e281f4bee6a0fdd910fc2b736b32adeecc2360c61776fc5bfc4f54794174c1d9cb08202aafcf99736b41effb61
6
+ metadata.gz: dbd151e938256a3ebeef7ed13c14ec9a67a090a3efde9067a68687fbb6c7d8303e7be140a630f81085a53dc9011e3144bd261bf3d1ce776e4d9cbaea19ce62ad
7
+ data.tar.gz: 7c45ce7414e58c5873bb1bd4c8d9bf1d87e146e2dbf6e712eff79c27a42be2f1592b3b796d53a99fb32779af06e09f19d8ac91b6133018e19c015fa02a0dffa0
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.0.1
4
+
5
+ * Relax Ruby version requirement to allow Ruby 3.0
6
+
3
7
  ### 1.0.0
4
8
 
5
9
  * Moved from zucker gem into its own gem
data/Gemfile CHANGED
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem 'minitest'
6
+ gem 'rake'
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2016 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2010-2016 Jan Lelis, https://janlelis.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Kernel#instance_variables_from [![[version]](https://badge.fury.io/rb/instance_variables_from.svg)](http://badge.fury.io/rb/instance_variables_from) [![[travis]](https://travis-ci.org/janlelis/instance_variables_from.png)](https://travis-ci.org/janlelis/instance_variables_from)
1
+ # Kernel#instance_variables_from [![[version]](https://badge.fury.io/rb/instance_variables_from.svg)](http://badge.fury.io/rb/instance_variables_from) [![[ci]](https://github.com/janlelis/instance_variable_from/workflows/Test/badge.svg)](https://github.com/janlelis/instance_variable_from/actions?query=workflow%3ATest)
2
2
 
3
3
  Automatically turn bindings, hashes or arrays into instance variables. Instead of:
4
4
 
@@ -49,4 +49,4 @@ gem 'instance_variables_from'
49
49
 
50
50
  ## MIT License
51
51
 
52
- Copyright (C) 2010-2016 Jan Lelis <http://janlelis.com>. Released under the MIT license.
52
+ Copyright (C) 2010-2016 Jan Lelis <https://janlelis.com>. Released under the MIT license.
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # # #
2
2
  # Get gemspec info
3
3
 
4
- gemspec_file = Dir['*.gemspec'].first
4
+ gemspec_file = Dir['*.gemspec'].first
5
5
  gemspec = eval File.read(gemspec_file), binding, gemspec_file
6
6
  info = "#{gemspec.name} | #{gemspec.version} | " \
7
7
  "#{gemspec.runtime_dependencies.size} dependencies | " \
@@ -28,3 +28,17 @@ desc "#{gemspec.name} | IRB"
28
28
  task :irb do
29
29
  sh "irb -I ./lib -r #{gemspec.name.gsub '-','/'}"
30
30
  end
31
+
32
+
33
+ # # #
34
+ # Run Specs
35
+
36
+ desc "#{gemspec.name} | Spec"
37
+ task :spec do
38
+ if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
39
+ sh "for %f in (spec/\*.rb) do ruby spec/%f"
40
+ else
41
+ sh "for file in spec/*.rb; do ruby $file; done"
42
+ end
43
+ end
44
+ task default: :spec
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
8
8
  gem.summary = "Turn bindings, hashes or arrays into instance variables."
9
9
  gem.description = "Automatically turn bindings, hashes or arrays into instance variables."
10
10
  gem.authors = ["Jan Lelis"]
11
- gem.email = ["mail@janlelis.de"]
11
+ gem.email = ["hi@ruby.consulting"]
12
12
  gem.homepage = "https://github.com/janlelis/instance_variables_from"
13
13
  gem.license = "MIT"
14
14
 
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.required_ruby_version = "~> 2.0"
20
+ gem.required_ruby_version = ">= 2.0"
21
21
  end
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module InstanceVariablesFrom
2
- VERSION = "1.0.0".freeze
4
+ VERSION = "1.0.1"
3
5
  end
4
6
 
metadata CHANGED
@@ -1,31 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instance_variables_from
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-02 00:00:00.000000000 Z
11
+ date: 2021-01-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Automatically turn bindings, hashes or arrays into instance variables.
14
14
  email:
15
- - mail@janlelis.de
15
+ - hi@ruby.consulting
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - ".gitignore"
21
- - ".travis.yml"
22
21
  - CHANGELOG.md
23
22
  - Gemfile
24
23
  - MIT-LICENSE.txt
25
24
  - README.md
26
25
  - Rakefile
27
26
  - instance_variables_from.gemspec
28
- - lib/.instance_variables_from.rb.swp
29
27
  - lib/instance_variables_from.rb
30
28
  - lib/instance_variables_from/version.rb
31
29
  - spec/instance_variables_from_spec.rb
@@ -39,7 +37,7 @@ require_paths:
39
37
  - lib
40
38
  required_ruby_version: !ruby/object:Gem::Requirement
41
39
  requirements:
42
- - - "~>"
40
+ - - ">="
43
41
  - !ruby/object:Gem::Version
44
42
  version: '2.0'
45
43
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -48,8 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
46
  - !ruby/object:Gem::Version
49
47
  version: '0'
50
48
  requirements: []
51
- rubyforge_project:
52
- rubygems_version: 2.5.1
49
+ rubygems_version: 3.2.3
53
50
  signing_key:
54
51
  specification_version: 4
55
52
  summary: Turn bindings, hashes or arrays into instance variables.
@@ -1,20 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- script: bundle exec ruby spec/instance_variables_from_spec.rb
5
-
6
- rvm:
7
- - 2.2
8
- - 2.1
9
- - 2.0
10
- - rbx-2
11
- - jruby-head
12
- - jruby-9000
13
-
14
- cache:
15
- - bundler
16
-
17
- matrix:
18
- fast_finish: true
19
- allow_failures:
20
- - rvm: jruby-9000