ruby-remote-config 0 → 1.0.1

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: 218bc6b45534d1be0e739ef91be83cb07c8d9e3719400e257b79a35e6ea9054a
4
- data.tar.gz: c12fe18ef627610dd86355bba639b69fea33b5f31015523fee9b040149167688
3
+ metadata.gz: 0a44504aa1ec85d3f3b7634aba02f6ebfc13fc1609273515d7fd49b847a9a3fe
4
+ data.tar.gz: 7de4cef1901e0a1039fea2ee1a3a9475f630f5513d034ec046c9184bd0521690
5
5
  SHA512:
6
- metadata.gz: ac119e509c4c704a4bcb01ea7720e150a55805450b90c745924c4aa05a3c60fa960845f7115102b4462aab9d268a5f4503f9c4c671d508744a8c0e8df23b761f
7
- data.tar.gz: 297a2cc4f7cb01fa4d67f65577a06af3ee16d7754bb203a3e3430c4a035784f4e04650299f4d4cb44d615d79c684531dbf613db9a0ce0877eed587fcadcf3d55
6
+ metadata.gz: 1324e9089fde6ad235c6f8f053f84da5d75da48bdedb3ba5928ec8d3fc9f949dd1871572a5b76ef553749aace09fc0ddfcb7802a620e6ed001f821e45cc083ae
7
+ data.tar.gz: 2088236bacf28aeed925f08ae6ea36a4b597c49bb34d0564d03e3c638707d4c3b1d6ad9246ba21dfca7db8c90b1178103463f9ddbe1e5db22a299083386f41fb
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = ruby-remote-config
2
2
 
3
- Description goes here.
3
+ 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.
4
4
 
5
5
  == Contributing to ruby-remote-config
6
6
 
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.1
@@ -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.1 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "ruby-remote-config".freeze
9
+ s.version = "1.0.1"
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: '0'
4
+ version: 1.0.1
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