ruby-remote-config 0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -0
- data/ruby-remote-config.gemspec +73 -0
- data/spec/ruby_remote_config_spec.rb +9 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 551b57643242d6adc2bbedfcdd3209509c2b0fb2191ad2fa285991dfbe181cd9
|
4
|
+
data.tar.gz: ee8f32b2695515e81d807c7dc03d25bbe025fbfd7e8b503b5d065459be997cf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 740cb6569296c40c110e1df5650e762671afcd06e8f0dc37540d7096eae160d8dc5b32865c86bd1f6f2009b64aaefabf2a5d49709edda987cc78ae8fdccb3530
|
7
|
+
data.tar.gz: 6fdc1a9eefe2e7fc766285179b5b694cd16c393cd9fdd3d44ddf1532322924eedef9386e0ec1d66572c2fa3765286d139ad3c7f392c0c7a8799f034613733211
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.0
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# Generated by juwelier
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: ruby-remote-config 1.0.0 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "ruby-remote-config".freeze
|
9
|
+
s.version = "1.0.0"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["divakarmanoj".freeze]
|
14
|
+
s.date = "2023-08-01"
|
15
|
+
s.description = "this is a simple gem that implements a remote config. It can accept different types of remote source and can be used to fetch config from them.".freeze
|
16
|
+
s.email = "manoj.prithvee@gmail.com".freeze
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.rdoc"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
".idea/.gitignore",
|
24
|
+
".idea/misc.xml",
|
25
|
+
".idea/modules.xml",
|
26
|
+
".idea/ruby-remote-config.iml",
|
27
|
+
".idea/vcs.xml",
|
28
|
+
".rspec",
|
29
|
+
"Gemfile",
|
30
|
+
"Gemfile.lock",
|
31
|
+
"LICENSE.txt",
|
32
|
+
"README.rdoc",
|
33
|
+
"Rakefile",
|
34
|
+
"VERSION",
|
35
|
+
"lib/file_repository.rb",
|
36
|
+
"lib/gcp_storage_repository.rb",
|
37
|
+
"lib/repository.rb",
|
38
|
+
"lib/ruby_remote_config.rb",
|
39
|
+
"lib/web_repository.rb",
|
40
|
+
"ruby-remote-config.gemspec",
|
41
|
+
"spec/file_repository_spec.rb",
|
42
|
+
"spec/gcp_storage_repository_spec.rb",
|
43
|
+
"spec/ruby_remote_config_spec.rb",
|
44
|
+
"spec/spec_helper.rb",
|
45
|
+
"spec/test.yaml",
|
46
|
+
"spec/web_repository_spec.rb"
|
47
|
+
]
|
48
|
+
s.homepage = "http://github.com/divakarmanoj/ruby-remote-config".freeze
|
49
|
+
s.licenses = ["MIT".freeze]
|
50
|
+
s.rubygems_version = "3.2.33".freeze
|
51
|
+
s.summary = "this is a simple gem that implements a remote config".freeze
|
52
|
+
|
53
|
+
if s.respond_to? :specification_version then
|
54
|
+
s.specification_version = 4
|
55
|
+
end
|
56
|
+
|
57
|
+
if s.respond_to? :add_runtime_dependency then
|
58
|
+
s.add_runtime_dependency(%q<google-cloud-storage>.freeze, ["~> 1.44"])
|
59
|
+
s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
|
60
|
+
s.add_development_dependency(%q<bundler>.freeze, ["~> 2.2"])
|
61
|
+
s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
|
62
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
63
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
64
|
+
else
|
65
|
+
s.add_dependency(%q<google-cloud-storage>.freeze, ["~> 1.44"])
|
66
|
+
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
67
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 2.2"])
|
68
|
+
s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
|
69
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
70
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
@@ -10,5 +10,14 @@ describe RubyRemoteConfig do
|
|
10
10
|
expect(client.repository.get_data("test")).to eq("test")
|
11
11
|
client.stop
|
12
12
|
end
|
13
|
+
it "Change the data in the file and check if the data is updated" do
|
14
|
+
client = RubyRemoteConfig::Client.new(
|
15
|
+
repository: Source::FileRepository.new(name: "test", path: "spec/test.yaml"),
|
16
|
+
refresh_interval: 1)
|
17
|
+
expect(client.repository.get_data("test")).to eq("test")
|
18
|
+
File.open("spec/test.yaml", "w") { |file| file.write("test: test1") }
|
19
|
+
expect(client.repository.get_data("test")).to eq("test1")
|
20
|
+
client.stop
|
21
|
+
end
|
13
22
|
end
|
14
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-remote-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- divakarmanoj
|
@@ -115,11 +115,13 @@ files:
|
|
115
115
|
- LICENSE.txt
|
116
116
|
- README.rdoc
|
117
117
|
- Rakefile
|
118
|
+
- VERSION
|
118
119
|
- lib/file_repository.rb
|
119
120
|
- lib/gcp_storage_repository.rb
|
120
121
|
- lib/repository.rb
|
121
122
|
- lib/ruby_remote_config.rb
|
122
123
|
- lib/web_repository.rb
|
124
|
+
- ruby-remote-config.gemspec
|
123
125
|
- spec/file_repository_spec.rb
|
124
126
|
- spec/gcp_storage_repository_spec.rb
|
125
127
|
- spec/ruby_remote_config_spec.rb
|