apollo-ruby 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b8109a5c40706105f9e14020da6983533eb9cbcaf562a44ca0e9707e52cfe527
4
+ data.tar.gz: 22672ddec88c105940dc3ffdf9c3841496a3cc56df24dbdb3ed04b7d597a2fff
5
+ SHA512:
6
+ metadata.gz: 2da4e8aaedfbcc6d77687335cbb68be0af333c8f297b13cd1af6975f0e4ae84d8222c976cbc804c72b2cf8c193256b07f52fe84b1a37272d5c5382055fc15d12
7
+ data.tar.gz: a9498cbac9a9b8d535404de27d895299ab0ac941bb8902416253e837298246fd05770af61ab750cdc80aea11d219b40a48569f14f3e48e577ad475dfbe58a72d
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Released]
2
+
3
+ ## [1.0.2] - 2023-04-17
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at kervinchangyu@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in apollo.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
13
+
14
+ gem "rest-client"
data/Gemfile.lock ADDED
@@ -0,0 +1,78 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ apollo-ruby (1.0.4)
5
+ json
6
+ rest-client
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.2)
12
+ diff-lcs (1.5.0)
13
+ domain_name (0.5.20190701)
14
+ unf (>= 0.0.5, < 1.0.0)
15
+ http-accept (1.7.0)
16
+ http-cookie (1.0.5)
17
+ domain_name (~> 0.5)
18
+ json (2.6.2)
19
+ mime-types (3.4.1)
20
+ mime-types-data (~> 3.2015)
21
+ mime-types-data (3.2023.0218.1)
22
+ netrc (0.11.0)
23
+ parallel (1.22.1)
24
+ parser (3.1.2.1)
25
+ ast (~> 2.4.1)
26
+ rainbow (3.1.1)
27
+ rake (13.0.6)
28
+ regexp_parser (2.6.0)
29
+ rest-client (2.1.0)
30
+ http-accept (>= 1.7.0, < 2.0)
31
+ http-cookie (>= 1.0.2, < 2.0)
32
+ mime-types (>= 1.16, < 4.0)
33
+ netrc (~> 0.8)
34
+ rexml (3.2.5)
35
+ rspec (3.12.0)
36
+ rspec-core (~> 3.12.0)
37
+ rspec-expectations (~> 3.12.0)
38
+ rspec-mocks (~> 3.12.0)
39
+ rspec-core (3.12.0)
40
+ rspec-support (~> 3.12.0)
41
+ rspec-expectations (3.12.0)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.12.0)
44
+ rspec-mocks (3.12.0)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.12.0)
47
+ rspec-support (3.12.0)
48
+ rubocop (1.38.0)
49
+ json (~> 2.3)
50
+ parallel (~> 1.10)
51
+ parser (>= 3.1.2.1)
52
+ rainbow (>= 2.2.2, < 4.0)
53
+ regexp_parser (>= 1.8, < 3.0)
54
+ rexml (>= 3.2.5, < 4.0)
55
+ rubocop-ast (>= 1.23.0, < 2.0)
56
+ ruby-progressbar (~> 1.7)
57
+ unicode-display_width (>= 1.4.0, < 3.0)
58
+ rubocop-ast (1.23.0)
59
+ parser (>= 3.1.1.0)
60
+ ruby-progressbar (1.11.0)
61
+ unf (0.1.4)
62
+ unf_ext
63
+ unf_ext (0.0.8.2)
64
+ unicode-display_width (2.3.0)
65
+
66
+ PLATFORMS
67
+ universal-darwin-21
68
+
69
+ DEPENDENCIES
70
+ apollo-ruby!
71
+ bundler
72
+ rake (~> 13.0)
73
+ rest-client
74
+ rspec (~> 3.0)
75
+ rubocop (~> 1.21)
76
+
77
+ BUNDLED WITH
78
+ 2.3.11
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Kervin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.en.md ADDED
@@ -0,0 +1,47 @@
1
+ # Apollo-Ruby
2
+
3
+ 🚀Ruby client for ctrip/apollo (https://github.com/apolloconfig/apollo)
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the Rails application's Gemfile by executing:
8
+
9
+ $ bundle add apollo-ruby
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install apollo-ruby
14
+
15
+ ## Usage
16
+
17
+ You'll need to configure it in `config/initializers/apollo.rb`:
18
+
19
+ ```ruby
20
+ Apollo.configure do |config|
21
+ config.appid = ENV['APOLLO_APPID']
22
+ config.secret = ENV['APOLLO_SECRET']
23
+ config.server = ENV['APOLLO_SERVER']
24
+ end
25
+ ```
26
+
27
+ Then you can get the configuration from Apollo using the following code:
28
+
29
+ ```ruby
30
+ Apollo.fetch("your configuration key")
31
+ ```
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it
36
+ 2. Create your feature branch (git checkout -b my-new-feature)
37
+ 3. Commit your changes (git commit -am 'Added some feature')
38
+ 4. Push to the branch (git push origin my-new-feature)
39
+ 5. Create new Pull Request
40
+
41
+ ## License
42
+
43
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
44
+
45
+ ## Changelog
46
+
47
+ See the [CHANGELOGS.md](./CHANGELOG.md).
data/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Apollo-Ruby
2
+
3
+ 🚀Ruby client for ctrip/apollo (https://github.com/apolloconfig/apollo)
4
+
5
+ [English](./README.en.md) | [简体中文](./README.zh-CN.md)
data/README.zh-CN.md ADDED
@@ -0,0 +1,47 @@
1
+ # Apollo-Ruby
2
+
3
+ 🚀[携程Apollo配置管理框架](https://github.com/apolloconfig/apollo) 的Ruby客户端
4
+
5
+ ## 安装
6
+
7
+ 通过执行以下命令将gem加入Rails应用程序的Gemfile:
8
+
9
+ $ bundle add apollo-ruby
10
+
11
+ 如果不使用bundler管理依赖,可以通过以下命令安装gem:
12
+
13
+ $ gem install apollo-ruby
14
+
15
+ ## 用法
16
+
17
+ 你需要在`config/initializers/apollo.rb`中进行配置:
18
+
19
+ ```ruby
20
+ Apollo.configure do |config|
21
+ config.appid = ENV['APOLLO_APPID']
22
+ config.secret = ENV['APOLLO_SECRET']
23
+ config.server = ENV['APOLLO_SERVER']
24
+ end
25
+ ```
26
+
27
+ 然后便可以使用以下代码从Apollo获取配置:
28
+
29
+ ```ruby
30
+ Apollo.fetch("你的配置Key")
31
+ ```
32
+
33
+ ## 贡献
34
+
35
+ 1. Fork
36
+ 2. 创建您的特性分支 (`git checkout -b my-new-feature`)
37
+ 3. 提交您的改动 (`git commit -am 'Added some feature'`)
38
+ 4. 将您的修改记录提交到远程 git 仓库 (`git push origin my-new-feature`)
39
+ 5. 然后到 github 网站的该 git 远程仓库的 my-new-feature 分支下发起 Pull Request
40
+
41
+ ## 许可证
42
+
43
+ 本项目基于MIT协议发布,更多细节请参阅 [MIT License](https://opensource.org/licenses/MIT).
44
+
45
+ ## 更新日志
46
+
47
+ 请参阅 [CHANGELOGS.md](./CHANGELOG.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,16 @@
1
+ require "base64"
2
+ require "openssl"
3
+
4
+ module Apollo
5
+ # Authorization
6
+ class Auth
7
+ class << self
8
+ def signature(secret, timestamp, path_with_query)
9
+ return if secret.nil?
10
+
11
+ sign = "#{timestamp}\n#{path_with_query}"
12
+ Base64.encode64(OpenSSL::HMAC.digest("sha1", secret, sign))
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,51 @@
1
+ module Apollo
2
+ # Get configuration data from Apollo server.
3
+ class Client
4
+
5
+ attr_accessor :configuration
6
+
7
+ def initialize(configuration)
8
+ @configuration = configuration
9
+ end
10
+
11
+ def fetch(key, disable_cache)
12
+ if disable_cache
13
+ uncached_http_get(key)
14
+ else
15
+ cached_http_get(key)
16
+ end
17
+ end
18
+
19
+ def cached_http_get(key)
20
+ url = "#{configuration.server}/configfiles/json/#{configuration.appid}/#{configuration.cluster}/#{configuration.namespace}"
21
+ headers = build_http_headers(url)
22
+ code, data, _headers = HTTP.get(url, headers)
23
+ return unless HTTP.response_ok?(code)
24
+
25
+ configurations = Utils.safe_json_parse(data)
26
+ configurations[key]
27
+ end
28
+
29
+ def uncached_http_get(key)
30
+ url = "#{configuration.server}/configs/#{configuration.appid}/#{configuration.cluster}/#{configuration.namespace}"
31
+ headers = build_http_headers(url)
32
+ code, data, _headers = HTTP.get(url, headers)
33
+ return unless HTTP.response_ok?(code)
34
+
35
+ configurations = Utils.safe_json_parse(data)["configurations"]
36
+ configurations[key]
37
+ end
38
+
39
+ def build_http_headers(url)
40
+ timestamp = Time.now.utc.strftime("%s%L")
41
+ uri = Utils.safe_uri_parse(url)
42
+ path_with_query = uri.path
43
+ path_with_query += "?#{uri.query}" unless uri.query.nil?
44
+ signature = Auth.signature(configuration.secret, timestamp, path_with_query)
45
+ {
46
+ "Authorization" => "Apollo #{configuration.appid}:#{signature}",
47
+ "Timestamp" => timestamp
48
+ }
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,66 @@
1
+ module Apollo
2
+ # Set Apollo application configuration.
3
+ class Configuration
4
+
5
+ # Cluster name of Apollo application.
6
+ attr_reader :cluster
7
+
8
+ # Namespace name of Apollo application.
9
+ attr_reader :namespace
10
+
11
+ # Apollo application ID.
12
+ attr_reader :appid
13
+
14
+ # Apollo application secret.
15
+ attr_reader :secret
16
+
17
+ # Apollo server url.
18
+ attr_reader :server
19
+
20
+ def initialize
21
+ self.cluster = "default"
22
+ self.namespace = "application"
23
+ self.appid = ENV["APOLLO_APPID"]
24
+ self.secret = ENV["APOLLO_SECRET"]
25
+ self.server = ENV["APOLLO_SERVER"]
26
+ end
27
+
28
+ def cluster=(value)
29
+ return if value.nil?
30
+
31
+ @cluster = value.to_s
32
+ end
33
+
34
+ alias cluster_name= cluster=
35
+
36
+ def namespace=(value)
37
+ return if value.nil?
38
+
39
+ @namespace = value.to_s
40
+ end
41
+
42
+ alias namespace_name= namespace=
43
+
44
+ def appid=(value)
45
+ return if value.nil?
46
+
47
+ @appid = value.to_s
48
+ end
49
+
50
+ alias app_id= appid=
51
+
52
+ def secret=(value)
53
+ return if value.nil?
54
+
55
+ @secret = value.to_s
56
+ end
57
+
58
+ def server=(value)
59
+ return if value.nil?
60
+
61
+ @server = value.to_s
62
+ end
63
+
64
+ alias dsn= server=
65
+ end
66
+ end
@@ -0,0 +1,25 @@
1
+ require "rest-client"
2
+
3
+ module Apollo
4
+ # HTTP Client.
5
+ module HTTP
6
+ class << self
7
+ def response_ok?(status_code)
8
+ [200, 304].include?(status_code)
9
+ end
10
+
11
+ def get(url, headers, _opts = {})
12
+ response = RestClient.get(url, headers)
13
+ [response.code.to_i, response.body, response.raw_headers]
14
+ rescue StandardError => e
15
+ Log.logger.warn "#{e.message} => Apollo::HTTP.get('#{url}')"
16
+ if e.respond_to?(:response) && e.response.respond_to?(:code)
17
+ return e.response.code, e.response.body, e.response.raw_headers
18
+ end
19
+
20
+ [nil, nil, nil]
21
+ end
22
+ end
23
+ end
24
+ end
25
+
@@ -0,0 +1,29 @@
1
+ module Apollo
2
+ # A copy of Apollo's base module class methods.
3
+ class Instance
4
+ # See Apollo::Client
5
+ attr_writer :client
6
+
7
+ # See Apollo::Configuration
8
+ attr_accessor :configuration
9
+
10
+ def initialize(config = nil)
11
+ self.configuration = config || Configuration.new
12
+ end
13
+
14
+ def client
15
+ @client ||= Client.new(configuration)
16
+ end
17
+
18
+ def configure
19
+ yield(configuration) if block_given?
20
+ self.client = Client.new(configuration)
21
+ client
22
+ end
23
+
24
+ def fetch(key, opts = {})
25
+ opts[:disable_cache] = false unless opts.key?(:disable_cache)
26
+ client.fetch(key, opts[:disable_cache])
27
+ end
28
+ end
29
+ end
data/lib/apollo/log.rb ADDED
@@ -0,0 +1,12 @@
1
+ require "logger"
2
+
3
+ module Apollo
4
+ # Log.
5
+ module Log
6
+ class << self
7
+ def logger
8
+ @logger ||= ::Logger.new($stderr)
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,21 @@
1
+ require "json"
2
+ require "uri"
3
+
4
+ module Apollo
5
+ # Utils.
6
+ module Utils
7
+ class << self
8
+ def safe_json_parse(data)
9
+ JSON.parse(data)
10
+ rescue JSON::ParserError
11
+ {}
12
+ end
13
+
14
+ def safe_uri_parse(url)
15
+ URI.parse(url)
16
+ rescue URI::InvalidURIError
17
+ URI.parse("")
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Apollo
4
+ VERSION = "1.0.4"
5
+ end
@@ -0,0 +1 @@
1
+ require "apollo"
data/lib/apollo.rb ADDED
@@ -0,0 +1,21 @@
1
+ require "apollo/auth"
2
+ require "apollo/client"
3
+ require "apollo/configuration"
4
+ require "apollo/http"
5
+ require "apollo/instance"
6
+ require "apollo/log"
7
+ require "apollo/utils"
8
+ require "apollo/version"
9
+
10
+ # A module encapsulating Apollo server API.
11
+ module Apollo
12
+ class << self
13
+ extend Forwardable
14
+
15
+ def instance
16
+ @instance ||= Apollo::Instance.new
17
+ end
18
+
19
+ def_delegators :instance, :client=, :configuration=, :configuration, :client, :configure, :fetch
20
+ end
21
+ end
data/sig/apollo.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Apollo
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: apollo-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.4
5
+ platform: ruby
6
+ authors:
7
+ - Kervin
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-05-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rest-client
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: "\U0001F680Ruby client for ctrip/apollo (https://github.com/apolloconfig/apollo)"
70
+ email:
71
+ - kervinchangyu@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".rspec"
77
+ - ".rubocop.yml"
78
+ - CHANGELOG.md
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - Gemfile.lock
82
+ - LICENSE.txt
83
+ - README.en.md
84
+ - README.md
85
+ - README.zh-CN.md
86
+ - Rakefile
87
+ - lib/apollo-ruby.rb
88
+ - lib/apollo.rb
89
+ - lib/apollo/auth.rb
90
+ - lib/apollo/client.rb
91
+ - lib/apollo/configuration.rb
92
+ - lib/apollo/http.rb
93
+ - lib/apollo/instance.rb
94
+ - lib/apollo/log.rb
95
+ - lib/apollo/utils.rb
96
+ - lib/apollo/version.rb
97
+ - sig/apollo.rbs
98
+ homepage: https://github.com/kervinchang/apollo-ruby
99
+ licenses:
100
+ - MIT
101
+ metadata: {}
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 2.0.0
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubygems_version: 3.0.3.1
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: "\U0001F680Ruby client for ctrip/apollo (https://github.com/apolloconfig/apollo)"
121
+ test_files: []