prefab-cloud-ruby 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 9a9979df2d96ea510b54c6b479cba724e0ef1ae7
4
- data.tar.gz: 8a73500c4c42dac6f4955b6bd6ff395ddf43511f
3
+ metadata.gz: fdb826fa9bd3dbf5065b53a26733403d48543501
4
+ data.tar.gz: ed337751023887f8fea7debd7e23bd9b3e02e4b7
5
5
  SHA512:
6
- metadata.gz: '0937e68bf543c496e25e9dff6ab471b5f73bc626a95899c930251dfa9cc5ccd193414e9b9aa88557dbf7716d93af569d09caf6d7be7f686a64f5a7bc6b2c68f3'
7
- data.tar.gz: c92bb4500b4321334be5d288f99baeaba8d19ffd7d1af3b7a7e84d6b6d96e052ca88f91030498558e2af3438a168e434d333d89e2722e2a23f6fcb3637d27e0d
6
+ metadata.gz: efec7dd4b2d847682ebfe307e9bf3f9323c33234bb88f794a962f3c732c8cacdb0198b59858bfc8e67e6ac025ad73abc19351d32f00332dbe803854932989b1d
7
+ data.tar.gz: e63c414a412484692590778ea08a614f9e0af0235c307242d5c97a42f3aeacb8219cac73c0852ee6c2c15a3bcd695520e008b582ec1470d8da9f5621295a400e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/lib/prefab_client.rb CHANGED
@@ -4,32 +4,15 @@ require 'bundler'
4
4
  Bundler.require(:default, :development)
5
5
  require "concurrent/atomics"
6
6
  require 'concurrent'
7
- require_relative 'prefab/prefab_pb'
8
- require_relative 'prefab/prefab_services_pb'
9
- require_relative 'prefab/ratelimit_pb'
10
- require_relative 'prefab/config_loader'
11
- require_relative 'prefab/config_resolver'
12
- require_relative 'prefab/client'
13
- require_relative 'prefab/ratelimit_client'
14
- require_relative 'prefab/config_client'
15
- require_relative 'prefab/auth_interceptor'
16
- require_relative 'prefab/noop_cache'
17
- require_relative 'prefab/noop_stats'
7
+ require 'prefab_pb'
8
+ require 'prefab_services_pb'
9
+ require 'ratelimit_pb'
10
+ require 'prefab/config_loader'
11
+ require 'prefab/config_resolver'
12
+ require 'prefab/client'
13
+ require 'prefab/ratelimit_client'
14
+ require 'prefab/config_client'
15
+ require 'prefab/auth_interceptor'
16
+ require 'prefab/noop_cache'
17
+ require 'prefab/noop_stats'
18
18
 
19
-
20
- client = Prefab::Client.new(api_key: ENV["RATELIMIT_API_KEY"], local: false)
21
-
22
- start = Time.now
23
- puts "pass? #{client.ratelimit_client.pass? "hubtest.secondly"}"
24
- puts "pass? #{client.ratelimit_client.pass? "hubtest.secondly"}"
25
- puts "pass? #{client.ratelimit_client.pass? "hubtest.secondly"}"
26
- puts "pass? #{client.ratelimit_client.pass? "hubtest.secondly"}"
27
- puts "pass? #{client.ratelimit_client.pass? "hubtest.secondly"}"
28
- puts "pass? #{client.ratelimit_client.pass? "hubtest.secondly"}"
29
- puts "pass? #{client.ratelimit_client.pass? "hubtest.secondly"}"
30
- puts "pass? #{client.ratelimit_client.pass? "hubtest.secondly"}"
31
-
32
- puts "took #{Time.now - start}"
33
-
34
- # @@prefab = Prefab::Client.new(api_key: ENV["RATELIMIT_API_KEY"], local: true)
35
- # @@prefab.rate_limits.check()
File without changes
File without changes
@@ -0,0 +1,80 @@
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: prefab-cloud-ruby 0.0.2 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "prefab-cloud-ruby".freeze
9
+ s.version = "0.0.2"
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 = ["Jeff Dwyer".freeze]
14
+ s.date = "2017-12-17"
15
+ s.description = "RateLimits & Config as a service".freeze
16
+ s.email = "jdwyer@prefab.cloud".freeze
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt"
19
+ ]
20
+ s.files = [
21
+ ".ruby-version",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/prefab/auth_interceptor.rb",
28
+ "lib/prefab/client.rb",
29
+ "lib/prefab/config_client.rb",
30
+ "lib/prefab/config_loader.rb",
31
+ "lib/prefab/config_resolver.rb",
32
+ "lib/prefab/noop_cache.rb",
33
+ "lib/prefab/noop_stats.rb",
34
+ "lib/prefab/ratelimit_client.rb",
35
+ "lib/prefab/store.rb",
36
+ "lib/prefab_client.rb",
37
+ "lib/prefab_pb.rb",
38
+ "lib/prefab_services_pb.rb",
39
+ "lib/ratelimit_pb.rb",
40
+ "prefab-cloud-ruby.gemspec"
41
+ ]
42
+ s.homepage = "http://github.com/prefab-cloud/prefab-cloud-ruby".freeze
43
+ s.licenses = ["MIT".freeze]
44
+ s.rubygems_version = "2.6.14".freeze
45
+ s.summary = "Prefab Ruby Infrastructure".freeze
46
+
47
+ if s.respond_to? :specification_version then
48
+ s.specification_version = 4
49
+
50
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
+ s.add_runtime_dependency(%q<grpc>.freeze, [">= 0"])
52
+ s.add_runtime_dependency(%q<concurrent-ruby>.freeze, [">= 0"])
53
+ s.add_development_dependency(%q<grpc-tools>.freeze, [">= 0"])
54
+ s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
55
+ s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
56
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
57
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
58
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
59
+ else
60
+ s.add_dependency(%q<grpc>.freeze, [">= 0"])
61
+ s.add_dependency(%q<concurrent-ruby>.freeze, [">= 0"])
62
+ s.add_dependency(%q<grpc-tools>.freeze, [">= 0"])
63
+ s.add_dependency(%q<shoulda>.freeze, [">= 0"])
64
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
65
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
66
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
67
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
68
+ end
69
+ else
70
+ s.add_dependency(%q<grpc>.freeze, [">= 0"])
71
+ s.add_dependency(%q<concurrent-ruby>.freeze, [">= 0"])
72
+ s.add_dependency(%q<grpc-tools>.freeze, [">= 0"])
73
+ s.add_dependency(%q<shoulda>.freeze, [">= 0"])
74
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
75
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
76
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
77
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
78
+ end
79
+ end
80
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prefab-cloud-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dwyer
@@ -142,12 +142,13 @@ files:
142
142
  - lib/prefab/config_resolver.rb
143
143
  - lib/prefab/noop_cache.rb
144
144
  - lib/prefab/noop_stats.rb
145
- - lib/prefab/prefab_pb.rb
146
- - lib/prefab/prefab_services_pb.rb
147
145
  - lib/prefab/ratelimit_client.rb
148
- - lib/prefab/ratelimit_pb.rb
149
146
  - lib/prefab/store.rb
150
147
  - lib/prefab_client.rb
148
+ - lib/prefab_pb.rb
149
+ - lib/prefab_services_pb.rb
150
+ - lib/ratelimit_pb.rb
151
+ - prefab-cloud-ruby.gemspec
151
152
  homepage: http://github.com/prefab-cloud/prefab-cloud-ruby
152
153
  licenses:
153
154
  - MIT