sb-config 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -3
- data/README.md +5 -5
- data/bin/console +1 -1
- data/lib/{config.rb → sb/config.rb} +6 -8
- data/lib/sb/config/version.rb +5 -0
- data/{config.gemspec → sb-config.gemspec} +3 -5
- metadata +5 -35
- data/Gemfile.lock +0 -24
- data/bin/config +0 -7
- data/lib/config/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 628110db876f85de4fd98168d840580c1c3aade4d2f8631d51fe9a8d84b57f1b
|
4
|
+
data.tar.gz: 010e9d52c99e3e187c5c9da530e9ade2829a06d94a5b0cec0a92f99514bb3e5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2801078134f854e0bcdce6dde470bb9d7d139d3704e41510635f71920b18164aae9191bdf5c9edcab24005935a86ba9a42c2048c4df52a6fbc95f82a05505132
|
7
|
+
data.tar.gz: d1e12993f9324612acfb9eef3dd12eb14edd9a145f1b0bb8d6d58caef8b031662b8277e92c62854f98870a0bca3d407e9edaec9c343db993ed552f765dba994a
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Config
|
1
|
+
# Sb::Config
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/config`. To experiment with that code, run `bin/console` for an interactive prompt.
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sb/config`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
4
|
|
5
5
|
TODO: Delete this and the text above, and describe your gem
|
6
6
|
|
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'config'
|
12
|
+
gem 'sb-config'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -18,7 +18,7 @@ And then execute:
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
$ gem install config
|
21
|
+
$ gem install sb-config
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
@@ -32,4 +32,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
32
|
|
33
33
|
## Contributing
|
34
34
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/config.
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sb-config.
|
data/bin/console
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
require 'json'
|
3
|
-
require "config/version"
|
3
|
+
require "sb/config/version"
|
4
4
|
|
5
|
-
module
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
# attr_accessor :
|
10
|
-
# end
|
5
|
+
module Sb
|
6
|
+
module Config
|
7
|
+
class Error < StandardError; end
|
8
|
+
# Your code goes here...
|
11
9
|
|
12
10
|
@@store = {}
|
13
11
|
|
@@ -43,7 +41,7 @@ module Config
|
|
43
41
|
|
44
42
|
def self.load_json path
|
45
43
|
c = File.read path
|
46
|
-
puts c
|
47
44
|
JSON.parse c
|
48
45
|
end
|
46
|
+
end
|
49
47
|
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
lib = File.expand_path("lib", __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "config/version"
|
3
|
+
require "sb/config/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "sb-config"
|
7
|
-
spec.version = Config::VERSION
|
7
|
+
spec.version = Sb::Config::VERSION
|
8
8
|
spec.authors = ["iodevel"]
|
9
9
|
spec.email = ["cbrandt92@gmail.com"]
|
10
10
|
|
11
|
-
spec.summary =
|
11
|
+
spec.summary = "..."
|
12
12
|
# spec.description = %q{TODO: Write a longer description or delete this line.}
|
13
13
|
# spec.homepage = "TODO: Put your gem's website or public repo URL here."
|
14
14
|
|
@@ -29,6 +29,4 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 2.0"
|
31
31
|
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
-
spec.add_development_dependency "json", "~> 2.3.0"
|
33
|
-
spec.add_development_dependency "yaml", "~> 3.0.3"
|
34
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sb-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iodevel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,34 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: json
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 2.3.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 2.3.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: yaml
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 3.0.3
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 3.0.3
|
69
41
|
description:
|
70
42
|
email:
|
71
43
|
- cbrandt92@gmail.com
|
@@ -75,15 +47,13 @@ extra_rdoc_files: []
|
|
75
47
|
files:
|
76
48
|
- ".gitignore"
|
77
49
|
- Gemfile
|
78
|
-
- Gemfile.lock
|
79
50
|
- README.md
|
80
51
|
- Rakefile
|
81
|
-
- bin/config
|
82
52
|
- bin/console
|
83
53
|
- bin/setup
|
84
|
-
- config.
|
85
|
-
- lib/config.rb
|
86
|
-
-
|
54
|
+
- lib/sb/config.rb
|
55
|
+
- lib/sb/config/version.rb
|
56
|
+
- sb-config.gemspec
|
87
57
|
homepage:
|
88
58
|
licenses: []
|
89
59
|
metadata: {}
|
data/Gemfile.lock
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
sb-config (0.1.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
json (2.3.0)
|
10
|
-
rake (10.5.0)
|
11
|
-
yaml (0.1.0)
|
12
|
-
|
13
|
-
PLATFORMS
|
14
|
-
ruby
|
15
|
-
|
16
|
-
DEPENDENCIES
|
17
|
-
bundler (~> 2.0)
|
18
|
-
json
|
19
|
-
rake (~> 10.0)
|
20
|
-
sb-config!
|
21
|
-
yaml
|
22
|
-
|
23
|
-
BUNDLED WITH
|
24
|
-
2.0.2
|
data/bin/config
DELETED
data/lib/config/version.rb
DELETED