bullet-train-client 0.0.1 → 1.0.0

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
- SHA1:
3
- metadata.gz: 83febba5a52e7d5602a6f1ffe57254707e930e9f
4
- data.tar.gz: 2429172817181761da746db54512eebfa0e234d2
2
+ SHA256:
3
+ metadata.gz: 1ff1a949e769f61e808e8a814ee7d543329f4fc9a52ae897ca7a53c6c207bd26
4
+ data.tar.gz: bfe93bbfc25b22daa972d142290803753bd5550cb07b18020b1836b573afff33
5
5
  SHA512:
6
- metadata.gz: acdd435953e9112efae4ec8c1e8f98b08ecd2c04474ea4373efbfc04f3df112023d9fd5a5ae54ab6f21e1ac3682e476df52e35478c1fc928e43c2b9b1f0aacd9
7
- data.tar.gz: 1fcf557da0d03cbe3d1bb588e1652f85d43df2d75612af660e931c866c30bd7cb3859309787fb58693aaf4ecfffc3702f0711498eadb3c8909abca7bcb28b353
6
+ metadata.gz: 618706b32e1535e913e0438075940c8ef0b89b7aaecbdb6ffd94b8e68afe1ffad09a67ac04e0b8c8f96e81b671fb89a7ec6223e47b095aa588aa97e28e8200d5
7
+ data.tar.gz: 16afdddb0b80d25a2e97a5ef8edf8a72aba7d1b5998db69d53eaca9c8fb6f64bf61c15fddfe5323aff183bee230bc92703adf6250a80ec55e84b675382db9109
data/README.md CHANGED
@@ -19,7 +19,7 @@ These instructions will get you a copy of the project up and running on your loc
19
19
  ```ruby
20
20
  require "bullet-train-ruby-client"
21
21
 
22
- bt = BulletTrain.new(<<Your API KEY>>")
22
+ bt = BulletTrain.new("<<Your API KEY>>")
23
23
 
24
24
  if bt.getValue("font_size")
25
25
  # Do something awesome with the font size
@@ -70,4 +70,14 @@ If you encounter a bug or feature request we would like to hear about it. Before
70
70
 
71
71
  ## Get in touch
72
72
 
73
- If you have any questions about our projects you can email <a href="mailto:projects@solidstategroup.com">projects@solidstategroup.com</a>.
73
+ If you have any questions about our projects you can email <a href="mailto:projects@solidstategroup.com">projects@solidstategroup.com</a>.
74
+
75
+ ## Useful links
76
+
77
+ [Website](https://bullet-train.io)
78
+
79
+ [Documentation](https://docs.bullet-train.io/)
80
+
81
+ [Code Examples](https://github.com/SolidStateGroup/bullet-train-docs)
82
+
83
+ [Youtube Tutorials](https://www.youtube.com/channel/UCki7GZrOdZZcsV9rAIRchCw)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "bullet-train-client"
3
- spec.version = "0.0.1"
3
+ spec.version = "1.0.0"
4
4
  spec.authors = ["Tom Stuart"]
5
5
  spec.email = ["tom@solidstategroup.com"]
6
6
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -25,8 +25,6 @@ class BulletTrainClient
25
25
  enabled = feature["enabled"]
26
26
  state = feature["feature_state_value"]
27
27
  flags[featureName] = {"enabled" => enabled, "value" => state}
28
-
29
- return flags
30
28
  end
31
29
 
32
30
  return flags
@@ -37,7 +35,7 @@ class BulletTrainClient
37
35
  end
38
36
 
39
37
  def getFlags()
40
- processFlags(getJSON("flags"))
38
+ processFlags(getJSON("flags/"))
41
39
  end
42
40
 
43
41
  def getValue(key, userId = nil)
@@ -69,8 +67,3 @@ class BulletTrainClient
69
67
  end
70
68
  end
71
69
  end
72
-
73
- # bt = BulletTrain.new("QjgYur4LQTwe5HpvbvhpzK")
74
- # print bt.getFlags()
75
- # print bt.getValue("font_size")
76
- # print bt.hasFeature("font_size")
data/test.rb CHANGED
@@ -1,14 +1,7 @@
1
- require "bullet-train"
1
+ require "./lib/bullet-train.rb"
2
2
 
3
- bt = BulletTrain.new("QjgYur4LQTwe5HpvbvhpzK")
4
3
 
5
- if bt.getValue("font_size")
6
- # Do something awesome with the font size
7
- puts bt.getValue("font_size")
8
- end
9
-
10
- if bt.hasFeature("does_not_exist")
11
- #do something
12
- else
13
- #do nothing, or something else
14
- end
4
+ bt = BulletTrainClient.new("TijpMX6ajA7REC4bf5suYg")
5
+ puts("freeze_delinquent_accounts:" + bt.hasFeature("freeze_delinquent_accounts").to_s)
6
+ puts("twilio_import_days_to_process:" + bt.getValue("twilio_import_days_to_process").to_s)
7
+ puts("freeze_delinquent_accounts for user bullet_train_sample_user:" + bt.hasFeature("freeze_delinquent_accounts", "bullet_train_sample_user").to_s)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet-train-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Stuart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-18 00:00:00.000000000 Z
11
+ date: 2019-08-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby Client for Bullet-Train. Ship features with confidence using feature
14
14
  flags and remote config. Host yourself or use our hosted version at https://bullet-train.io
@@ -44,8 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
46
  requirements: []
47
- rubyforge_project:
48
- rubygems_version: 2.5.2
47
+ rubygems_version: 3.0.4
49
48
  signing_key:
50
49
  specification_version: 4
51
50
  summary: Bullet Train - Ship features with confidence