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 +5 -5
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +2 -2
- data/Rakefile +15 -1
- data/instance_variables_from.gemspec +2 -2
- data/lib/instance_variables_from/version.rb +3 -1
- metadata +5 -8
- data/.travis.yml +0 -20
- data/lib/.instance_variables_from.rb.swp +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: fdfe4b2c77d8310c4f75d6d51c198f80db0c8aff8b39c8c0bf7deaee8b50aa28
|
|
4
|
+
data.tar.gz: 24830fba68ba51889cc02b71ad6bce3d46d0a5555e861d29414fcff6cacf74ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbd151e938256a3ebeef7ed13c14ec9a67a090a3efde9067a68687fbb6c7d8303e7be140a630f81085a53dc9011e3144bd261bf3d1ce776e4d9cbaea19ce62ad
|
|
7
|
+
data.tar.gz: 7c45ce7414e58c5873bb1bd4c8d9bf1d87e146e2dbf6e712eff79c27a42be2f1592b3b796d53a99fb32779af06e09f19d8ac91b6133018e19c015fa02a0dffa0
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/MIT-LICENSE.txt
CHANGED
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)
|
|
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 <
|
|
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 = ["
|
|
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 = "
|
|
20
|
+
gem.required_ruby_version = ">= 2.0"
|
|
21
21
|
end
|
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.
|
|
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:
|
|
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
|
-
-
|
|
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
|
-
|
|
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.
|
data/.travis.yml
DELETED
|
@@ -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
|
|
Binary file
|