singlettings 0.0.6 → 0.0.7

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
2
  SHA1:
3
- metadata.gz: 54dd853a69592f0aa3838864c6305f58653876c6
4
- data.tar.gz: cc2de0bc777ad4dd736a9ac3821ed9656e7b2ac6
3
+ metadata.gz: fee5ad2c7ab83f5f7ee3c3a0ea93701d9da0ab4e
4
+ data.tar.gz: ae379e7bf4f453fd949dd039def1bd6ca4cd40a6
5
5
  SHA512:
6
- metadata.gz: 279009b1c1f7dae7da3310754711d618591b53595528c7c1fe6519ae469ae9f7b000476561c76cbe4da583abb9f50b648eb0af357ae37684a7528a6e5728cfa0
7
- data.tar.gz: 4372a48cfa202070a35ed2e2c1ff4748024822318ac5d0761b0d712559be9af45519b42923c43981872a33df28591c47b8f355b2b6e5e3c39f09f7b8fdbd9fe9
6
+ metadata.gz: 9536993247317c3530e20e0c29f1e1b18326349b7feee5679cd7156dab1aaa1cb95ca175fa611f8cfe1c3bb1a4d7732195b7edd16163c508f8ea1ae6b55accc4
7
+ data.tar.gz: e61282390981045ea1707d62b872c18ab77c9d3dbffee837ee68b5e2e892dec7d686b09474d202acd1183e8536e6339dbbf45d8441c8c43ec84a027729ba388f
data/README.md CHANGED
@@ -8,7 +8,7 @@ It greatly inspired from [Yettings](https://github.com/charlotte-ruby/yettings).
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- gem 'singlettings', git: "git@github.com:mycolorway/singlettings.git"
11
+ gem 'singlettings', git: "git@github.com:jaxi/singlettings.git"
12
12
 
13
13
  And then execute:
14
14
 
@@ -4,7 +4,7 @@ module Singlettings
4
4
  def self.hook_rails!
5
5
  if defined?(::Rails)
6
6
  config_path = "#{::Rails.root.to_s}/config/"
7
- Singlettings.load_yaml_files! config_path
7
+ self.load_yaml_files! config_path
8
8
  end
9
9
  end
10
10
 
@@ -39,7 +39,7 @@ module Singlettings
39
39
  files += Dir.glob("#{load_path}singlettings/**/*.yml")
40
40
 
41
41
  files.each do |file|
42
- Singlettings.eval_yaml file
42
+ self.eval_yaml file
43
43
  end
44
44
  end
45
45
 
@@ -51,7 +51,7 @@ module Singlettings
51
51
  else
52
52
  klass_name = "Singletting#{base_name}"
53
53
  end
54
- Object.const_set(klass_name, Singlettings.eval_yaml_class(file))
54
+ Object.const_set(klass_name, self.eval_yaml_class(file))
55
55
  end
56
56
 
57
57
  # Return specified anonymous class
@@ -1,3 +1,3 @@
1
1
  module Singlettings
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/singlettings.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["jaxihe@gmail.com"]
11
11
  spec.description = %q{A simple YML to singleton class solution for ruby programming language.}
12
12
  spec.summary = %q{A simple YML to singleton class solution for ruby programming language.}
13
- spec.homepage = "https://github.com/mycolorway/singlettings"
13
+ spec.homepage = "https://github.com/jaxi/singlettings"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singlettings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jingkai He
@@ -123,7 +123,7 @@ files:
123
123
  - spec/sample.yml
124
124
  - spec/singletting_spec.rb
125
125
  - spec/spec_helper.rb
126
- homepage: https://github.com/mycolorway/singlettings
126
+ homepage: https://github.com/jaxi/singlettings
127
127
  licenses:
128
128
  - MIT
129
129
  metadata: {}