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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 777e42fd6adb45e6c539485b8c81e8b5f3b12d15c61abd2555b4bb977468c88e
4
- data.tar.gz: 04c66358c5aed1f2b67acab86f8f82c1fb79311e1b82f68f7d41aa016948524e
3
+ metadata.gz: 628110db876f85de4fd98168d840580c1c3aade4d2f8631d51fe9a8d84b57f1b
4
+ data.tar.gz: 010e9d52c99e3e187c5c9da530e9ade2829a06d94a5b0cec0a92f99514bb3e5e
5
5
  SHA512:
6
- metadata.gz: 46b7748b98b6dce7d3cb58ec744e5483361826c7804e1fc26d191ae82b0c7e6ce51c141a4e37f016988acfcd8d6333bc1830d476729b7098b2ec00aeb6636b71
7
- data.tar.gz: 7e2d425e3dd4e92dd5f82b0af4c8e4232ec4315b624406322b1f2078c7cc6648f4023779bcfee50c0b28d60c64604c3f5e71f759c0aa95b83a58a9a1d0021abf
6
+ metadata.gz: 2801078134f854e0bcdce6dde470bb9d7d139d3704e41510635f71920b18164aae9191bdf5c9edcab24005935a86ba9a42c2048c4df52a6fbc95f82a05505132
7
+ data.tar.gz: d1e12993f9324612acfb9eef3dd12eb14edd9a145f1b0bb8d6d58caef8b031662b8277e92c62854f98870a0bca3d407e9edaec9c343db993ed552f765dba994a
data/Gemfile CHANGED
@@ -1,6 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'yaml'
4
- gem 'json'
5
- # Specify your gem's dependencies in config.gemspec
3
+ # Specify your gem's dependencies in sb-config.gemspec
6
4
  gemspec
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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "config"
4
+ require "sb/config"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -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 Config
6
- class Error < StandardError; end
7
- # Your code goes here...
8
- # class << self
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
@@ -0,0 +1,5 @@
1
+ module Sb
2
+ module Config
3
+ VERSION = "0.3.0"
4
+ end
5
+ 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.2.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-12 00:00:00.000000000 Z
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.gemspec
85
- - lib/config.rb
86
- - lib/config/version.rb
54
+ - lib/sb/config.rb
55
+ - lib/sb/config/version.rb
56
+ - sb-config.gemspec
87
57
  homepage:
88
58
  licenses: []
89
59
  metadata: {}
@@ -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
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "config"
5
-
6
- Config.load './test/c.yaml'
7
- puts Config.store
@@ -1,3 +0,0 @@
1
- module Config
2
- VERSION = "0.2.0"
3
- end