self_data 1.0.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +28 -0
- data/.gitignore +0 -1
- data/.rspec +1 -0
- data/.rubocop.yml +5 -15
- data/CHANGELOG.md +6 -0
- data/Gemfile +5 -1
- data/Gemfile.lock +123 -0
- data/README.md +42 -7
- data/Rakefile +2 -0
- data/bin/console +2 -10
- data/bin/rubocop +29 -0
- data/lib/self_data/config.rb +12 -4
- data/lib/self_data/errors.rb +2 -0
- data/lib/self_data/version.rb +3 -1
- data/lib/self_data.rb +32 -22
- data/self_data.gemspec +18 -12
- metadata +51 -35
- data/.travis.yml +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b79811eeab45fe00ca77ccf2829d2f95a3fb870bab871f3f67ce359d206b42c3
|
4
|
+
data.tar.gz: 402041e352b55e2c165d2753ae162d5892182624cbf5d49c545201abe5b964d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ef0ffbbfe322e6318141e0e3c08bab970ecc310c494e57b79557d2e803c91ac5e44d156c2e84661d84ce819d0f45ae4870a891c8e6a9b3fd67f5b36ac8e9dc3
|
7
|
+
data.tar.gz: 2c3622cb728c06b46721a8e748df2482197a3301aa9221510fa4591229703712bf0e5e39aeac6e0cfd57b91055d906478f54ffe5d1ecaead4b3657b8045d8461
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
# We want to run on external PRs, but not on our own internal PRs as they'll be run on push event
|
10
|
+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'umbrellio/self_data'
|
11
|
+
|
12
|
+
strategy:
|
13
|
+
fail-fast: false
|
14
|
+
matrix:
|
15
|
+
ruby: ["2.6", "2.7", "3.0", "3.1"]
|
16
|
+
|
17
|
+
name: ${{ matrix.ruby }}
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v2
|
21
|
+
|
22
|
+
- uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
25
|
+
bundler-cache: true
|
26
|
+
|
27
|
+
- run: bundle exec rspec
|
28
|
+
- run: bundle exec rubocop
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,16 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Exclude:
|
4
|
-
- 'self_data.gemspec'
|
1
|
+
inherit_gem:
|
2
|
+
rubocop-config-umbrellio: lib/rubocop.yml
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
Style/StringLiterals:
|
10
|
-
Enabled: false
|
11
|
-
|
12
|
-
Style/MultilineOperationIndentation:
|
13
|
-
EnforcedStyle: indented
|
14
|
-
|
15
|
-
Style/AndOr:
|
16
|
-
EnforcedStyle: conditionals
|
4
|
+
AllCops:
|
5
|
+
DisplayCopNames: true
|
6
|
+
TargetRubyVersion: 2.6
|
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
self_data (1.3.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activesupport (6.1.4.4)
|
10
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
11
|
+
i18n (>= 1.6, < 2)
|
12
|
+
minitest (>= 5.1)
|
13
|
+
tzinfo (~> 2.0)
|
14
|
+
zeitwerk (~> 2.3)
|
15
|
+
ast (2.4.2)
|
16
|
+
coderay (1.1.3)
|
17
|
+
concurrent-ruby (1.1.9)
|
18
|
+
coveralls (0.7.2)
|
19
|
+
multi_json (~> 1.3)
|
20
|
+
rest-client (= 1.6.7)
|
21
|
+
simplecov (>= 0.7)
|
22
|
+
term-ansicolor (= 1.2.2)
|
23
|
+
thor (= 0.18.1)
|
24
|
+
diff-lcs (1.5.0)
|
25
|
+
docile (1.4.0)
|
26
|
+
i18n (1.8.11)
|
27
|
+
concurrent-ruby (~> 1.0)
|
28
|
+
method_source (1.0.0)
|
29
|
+
mime-types (3.4.1)
|
30
|
+
mime-types-data (~> 3.2015)
|
31
|
+
mime-types-data (3.2022.0105)
|
32
|
+
minitest (5.15.0)
|
33
|
+
multi_json (1.15.0)
|
34
|
+
parallel (1.21.0)
|
35
|
+
parser (3.1.0.0)
|
36
|
+
ast (~> 2.4.1)
|
37
|
+
pry (0.14.1)
|
38
|
+
coderay (~> 1.1)
|
39
|
+
method_source (~> 1.0)
|
40
|
+
rack (2.2.3)
|
41
|
+
rainbow (3.1.1)
|
42
|
+
rake (13.0.6)
|
43
|
+
regexp_parser (2.2.0)
|
44
|
+
rest-client (1.6.7)
|
45
|
+
mime-types (>= 1.16)
|
46
|
+
rexml (3.2.5)
|
47
|
+
rspec (3.10.0)
|
48
|
+
rspec-core (~> 3.10.0)
|
49
|
+
rspec-expectations (~> 3.10.0)
|
50
|
+
rspec-mocks (~> 3.10.0)
|
51
|
+
rspec-core (3.10.1)
|
52
|
+
rspec-support (~> 3.10.0)
|
53
|
+
rspec-expectations (3.10.1)
|
54
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
+
rspec-support (~> 3.10.0)
|
56
|
+
rspec-mocks (3.10.2)
|
57
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
58
|
+
rspec-support (~> 3.10.0)
|
59
|
+
rspec-support (3.10.3)
|
60
|
+
rubocop (1.24.0)
|
61
|
+
parallel (~> 1.10)
|
62
|
+
parser (>= 3.0.0.0)
|
63
|
+
rainbow (>= 2.2.2, < 4.0)
|
64
|
+
regexp_parser (>= 1.8, < 3.0)
|
65
|
+
rexml
|
66
|
+
rubocop-ast (>= 1.15.0, < 2.0)
|
67
|
+
ruby-progressbar (~> 1.7)
|
68
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
69
|
+
rubocop-ast (1.15.1)
|
70
|
+
parser (>= 3.0.1.1)
|
71
|
+
rubocop-config-umbrellio (1.24.0.56)
|
72
|
+
rubocop (= 1.24.0)
|
73
|
+
rubocop-performance (= 1.13.0)
|
74
|
+
rubocop-rails (= 2.13.0)
|
75
|
+
rubocop-rake (= 0.6.0)
|
76
|
+
rubocop-rspec (= 2.7.0)
|
77
|
+
rubocop-sequel (= 0.3.3)
|
78
|
+
rubocop-performance (1.13.0)
|
79
|
+
rubocop (>= 1.7.0, < 2.0)
|
80
|
+
rubocop-ast (>= 0.4.0)
|
81
|
+
rubocop-rails (2.13.0)
|
82
|
+
activesupport (>= 4.2.0)
|
83
|
+
rack (>= 1.1)
|
84
|
+
rubocop (>= 1.7.0, < 2.0)
|
85
|
+
rubocop-rake (0.6.0)
|
86
|
+
rubocop (~> 1.0)
|
87
|
+
rubocop-rspec (2.7.0)
|
88
|
+
rubocop (~> 1.19)
|
89
|
+
rubocop-sequel (0.3.3)
|
90
|
+
rubocop (~> 1.0)
|
91
|
+
ruby-progressbar (1.11.0)
|
92
|
+
simplecov (0.21.2)
|
93
|
+
docile (~> 1.1)
|
94
|
+
simplecov-html (~> 0.11)
|
95
|
+
simplecov_json_formatter (~> 0.1)
|
96
|
+
simplecov-html (0.12.3)
|
97
|
+
simplecov_json_formatter (0.1.3)
|
98
|
+
term-ansicolor (1.2.2)
|
99
|
+
tins (~> 0.8)
|
100
|
+
thor (0.18.1)
|
101
|
+
tins (0.13.2)
|
102
|
+
tzinfo (2.0.4)
|
103
|
+
concurrent-ruby (~> 1.0)
|
104
|
+
unicode-display_width (2.1.0)
|
105
|
+
zeitwerk (2.5.3)
|
106
|
+
|
107
|
+
PLATFORMS
|
108
|
+
arm64-darwin-21
|
109
|
+
x86_64-linux
|
110
|
+
|
111
|
+
DEPENDENCIES
|
112
|
+
activesupport (~> 6.0)
|
113
|
+
bundler
|
114
|
+
coveralls
|
115
|
+
pry
|
116
|
+
rake
|
117
|
+
rspec
|
118
|
+
rubocop-config-umbrellio
|
119
|
+
self_data!
|
120
|
+
simplecov
|
121
|
+
|
122
|
+
BUNDLED WITH
|
123
|
+
2.3.5
|
data/README.md
CHANGED
@@ -1,8 +1,26 @@
|
|
1
|
-
# SelfData
|
1
|
+
# SelfData · [![Gem Version](https://badge.fury.io/rb/self_data.svg)](https://badge.fury.io/rb/self_data) [![Build Status](https://travis-ci.org/umbrellio/self_data.svg?branch=master)](https://travis-ci.org/umbrellio/self_data) [![Coverage Status](https://coveralls.io/repos/github/umbrellio/self_data/badge.svg)](https://coveralls.io/github/umbrellio/self_data)
|
2
2
|
|
3
|
-
It's like native ruby DATA but you can use it not only for main file.
|
3
|
+
It's like native ruby `DATA` but you can use it not only for main file.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
# Gemfile
|
9
|
+
gem 'self_data'
|
10
|
+
```
|
11
|
+
|
12
|
+
```shell
|
13
|
+
$ bundle install
|
14
|
+
-- or --
|
15
|
+
$ gem install self_data
|
16
|
+
```
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'self_data'
|
20
|
+
```
|
21
|
+
|
22
|
+
## Synopsis
|
4
23
|
|
5
|
-
For example:
|
6
24
|
```ruby
|
7
25
|
# main.rb
|
8
26
|
|
@@ -36,16 +54,33 @@ a.rb data
|
|
36
54
|
```
|
37
55
|
|
38
56
|
and if you execute it, you'll get:
|
39
|
-
|
57
|
+
|
58
|
+
```shell
|
40
59
|
$ ruby main.rb
|
41
60
|
DATA: main.rb data
|
42
61
|
SelfData: a.rb data
|
43
62
|
```
|
44
63
|
|
45
|
-
|
64
|
+
## Usage and Notes
|
65
|
+
|
46
66
|
Use `SelfData.read()` to get text or use `SelfData.load(*formats, **options)` to get formatted data (like yaml, xml, erb, etc).
|
47
67
|
|
48
68
|
Look at the [lib/self_data/config.rb](https://github.com/umbrellio/self_data/blob/master/lib/self_data/config.rb) for more details.
|
49
69
|
|
50
|
-
|
51
|
-
|
70
|
+
SelfData uses `caller`, it's not fast, that's why you shouldn't use SelfData in loops.
|
71
|
+
|
72
|
+
## Contributing
|
73
|
+
|
74
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/umbrellio/self_data.
|
75
|
+
|
76
|
+
## License
|
77
|
+
|
78
|
+
Released under MIT License.
|
79
|
+
|
80
|
+
## Authors
|
81
|
+
|
82
|
+
Created by [7dr1v3](https://github.com/7dr1v3)
|
83
|
+
|
84
|
+
<a href="https://github.com/umbrellio/">
|
85
|
+
<img style="float: left;" src="https://umbrellio.github.io/Umbrellio/supported_by_umbrellio.svg" alt="Supported by Umbrellio" width="439" height="72">
|
86
|
+
</a>
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -2,13 +2,5 @@
|
|
2
2
|
|
3
3
|
require "bundler/setup"
|
4
4
|
require "self_data"
|
5
|
-
|
6
|
-
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
5
|
+
require "pry"
|
6
|
+
Pry.start
|
data/bin/rubocop
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rubocop' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("rubocop", "rubocop")
|
data/lib/self_data/config.rb
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "erb"
|
4
|
+
require "yaml"
|
5
|
+
require "json"
|
6
|
+
|
1
7
|
SelfData.default_formats = [:erb, :yaml]
|
2
8
|
SelfData.default_options = {}
|
3
|
-
SelfData.filters = []
|
4
9
|
|
5
|
-
SelfData.add_converter :erb, ->(data, options) { ERB.new(data).result(options[:context]) }
|
6
|
-
SelfData.add_converter :
|
7
|
-
|
10
|
+
SelfData.add_converter :erb, -> (data, options) { ERB.new(data).result(options[:context]) }
|
11
|
+
SelfData.add_converter :json, -> (data, _options) { JSON.parse(data) }
|
12
|
+
|
13
|
+
SelfData.add_converter :yaml do |data, _options|
|
14
|
+
YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(data) : YAML.load(data)
|
15
|
+
end
|
data/lib/self_data/errors.rb
CHANGED
data/lib/self_data/version.rb
CHANGED
data/lib/self_data.rb
CHANGED
@@ -1,21 +1,31 @@
|
|
1
|
-
|
2
|
-
require "json"
|
3
|
-
require "active_support/core_ext/module/delegation.rb"
|
4
|
-
require "active_support/core_ext/class/attribute.rb"
|
1
|
+
# frozen_string_literal: true
|
5
2
|
|
6
3
|
class SelfData
|
7
|
-
class_attribute :default_formats, :default_options, :filters, :converters
|
8
|
-
|
9
4
|
class << self
|
10
|
-
|
5
|
+
attr_accessor :default_formats, :default_options
|
6
|
+
|
7
|
+
def read(*args, **kargs)
|
8
|
+
new.read(*args, **kargs)
|
9
|
+
end
|
10
|
+
|
11
|
+
def load(*args, **kargs)
|
12
|
+
new.load(*args, **kargs)
|
13
|
+
end
|
14
|
+
|
15
|
+
def filters
|
16
|
+
@filters ||= []
|
17
|
+
end
|
11
18
|
|
12
19
|
def add_filter(&block)
|
13
20
|
filters << block
|
14
21
|
end
|
15
22
|
|
16
|
-
def
|
17
|
-
|
18
|
-
|
23
|
+
def converters
|
24
|
+
@converters ||= {}
|
25
|
+
end
|
26
|
+
|
27
|
+
def add_converter(name, proc = nil, &block)
|
28
|
+
converters[name] = proc || block
|
19
29
|
end
|
20
30
|
end
|
21
31
|
|
@@ -26,33 +36,33 @@ class SelfData
|
|
26
36
|
end
|
27
37
|
|
28
38
|
def load(*formats, **options)
|
29
|
-
formats = default_formats if formats.empty?
|
30
|
-
options = default_options if options.empty?
|
39
|
+
formats = self.class.default_formats if formats.empty?
|
40
|
+
options = self.class.default_options if options.empty?
|
31
41
|
|
32
42
|
formats.reduce(read) do |data, format|
|
33
|
-
|
43
|
+
raise ConverterNotFound, format unless self.class.converters[format]
|
34
44
|
begin
|
35
|
-
converters[format].call(data, options)
|
36
|
-
rescue =>
|
37
|
-
raise ConversionError.new(format,
|
45
|
+
self.class.converters[format].call(data, options)
|
46
|
+
rescue => error
|
47
|
+
raise ConversionError.new(format, error)
|
38
48
|
end
|
39
49
|
end
|
40
50
|
end
|
41
51
|
|
42
52
|
def read
|
43
|
-
|
53
|
+
File.read(file).scan(/\n__END__\n(.*)/m).flatten.first or raise NoDataFound, file
|
44
54
|
end
|
45
55
|
|
46
56
|
private
|
47
57
|
|
48
58
|
def caller_file
|
49
59
|
calls = caller.lazy
|
50
|
-
.map { |call_string| call_string.split(
|
51
|
-
.
|
52
|
-
.select
|
60
|
+
.map { |call_string| call_string.split(":").first }
|
61
|
+
.reject { |file| file == __FILE__ }
|
62
|
+
.select { |x| File.exist?(x) }
|
53
63
|
|
54
|
-
filters.each do |filter|
|
55
|
-
calls = calls.select
|
64
|
+
self.class.filters.each do |filter|
|
65
|
+
calls = calls.select { |x| filter.call(x) }
|
56
66
|
end
|
57
67
|
|
58
68
|
calls.first
|
data/self_data.gemspec
CHANGED
@@ -1,29 +1,35 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
5
|
+
require "self_data/version"
|
6
|
+
|
7
|
+
files_regexp = %r{^(test|spec|features)/}
|
5
8
|
|
6
9
|
Gem::Specification.new do |spec|
|
10
|
+
spec.required_ruby_version = ">= 2.6.0"
|
11
|
+
|
7
12
|
spec.name = "self_data"
|
8
13
|
spec.version = SelfData::VERSION
|
9
14
|
spec.authors = ["Umbrellio"]
|
10
15
|
spec.email = ["info@umbrellio.biz"]
|
11
16
|
|
12
|
-
spec.summary = ""
|
17
|
+
spec.summary = "It's like DATA but better"
|
13
18
|
spec.description = "It's like DATA but better"
|
14
19
|
spec.homepage = "https://github.com/umbrellio/self_data"
|
15
|
-
spec.license =
|
20
|
+
spec.license = "MIT"
|
16
21
|
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(
|
22
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(files_regexp) }
|
18
23
|
spec.bindir = "exe"
|
19
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
25
|
spec.require_paths = ["lib"]
|
26
|
+
spec.metadata = { "rubygems_mfa_required" => "false" }
|
21
27
|
|
22
|
-
spec.
|
23
|
-
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.10"
|
25
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
-
spec.add_development_dependency "rspec", "~> 3.4"
|
27
|
-
spec.add_development_dependency "rubocop", "~> 0.35"
|
28
|
+
spec.add_development_dependency "bundler"
|
29
|
+
spec.add_development_dependency "coveralls"
|
28
30
|
spec.add_development_dependency "pry"
|
31
|
+
spec.add_development_dependency "rake"
|
32
|
+
spec.add_development_dependency "rspec"
|
33
|
+
spec.add_development_dependency "rubocop-config-umbrellio"
|
34
|
+
spec.add_development_dependency "simplecov"
|
29
35
|
end
|
metadata
CHANGED
@@ -1,87 +1,101 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: self_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Umbrellio
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: coveralls
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - "
|
59
|
+
- - ">="
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
61
|
+
version: '0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - "
|
66
|
+
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rspec
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - "
|
73
|
+
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
75
|
+
version: '0'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
84
|
+
name: rubocop-config-umbrellio
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
89
|
+
version: '0'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
98
|
+
name: simplecov
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - ">="
|
@@ -101,16 +115,19 @@ executables: []
|
|
101
115
|
extensions: []
|
102
116
|
extra_rdoc_files: []
|
103
117
|
files:
|
118
|
+
- ".github/workflows/ci.yml"
|
104
119
|
- ".gitignore"
|
105
120
|
- ".rspec"
|
106
121
|
- ".rubocop.yml"
|
107
|
-
-
|
122
|
+
- CHANGELOG.md
|
108
123
|
- Gemfile
|
124
|
+
- Gemfile.lock
|
109
125
|
- LICENSE.txt
|
110
126
|
- README.md
|
111
127
|
- Rakefile
|
112
128
|
- bin/console
|
113
129
|
- bin/rspec
|
130
|
+
- bin/rubocop
|
114
131
|
- bin/setup
|
115
132
|
- lib/self_data.rb
|
116
133
|
- lib/self_data/config.rb
|
@@ -120,8 +137,9 @@ files:
|
|
120
137
|
homepage: https://github.com/umbrellio/self_data
|
121
138
|
licenses:
|
122
139
|
- MIT
|
123
|
-
metadata:
|
124
|
-
|
140
|
+
metadata:
|
141
|
+
rubygems_mfa_required: 'false'
|
142
|
+
post_install_message:
|
125
143
|
rdoc_options: []
|
126
144
|
require_paths:
|
127
145
|
- lib
|
@@ -129,17 +147,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
147
|
requirements:
|
130
148
|
- - ">="
|
131
149
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
150
|
+
version: 2.6.0
|
133
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
152
|
requirements:
|
135
153
|
- - ">="
|
136
154
|
- !ruby/object:Gem::Version
|
137
155
|
version: '0'
|
138
156
|
requirements: []
|
139
|
-
|
140
|
-
|
141
|
-
signing_key:
|
157
|
+
rubygems_version: 3.3.5
|
158
|
+
signing_key:
|
142
159
|
specification_version: 4
|
143
|
-
summary: '
|
160
|
+
summary: It's like DATA but better
|
144
161
|
test_files: []
|
145
|
-
has_rdoc:
|
data/.travis.yml
DELETED