Package: ruby-influxdb / 0.2.3-2

no-cause-for-ruby-2.1.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Bug: https://github.com/influxdata/influxdb-ruby/issues/126

Index: ruby-influxdb/influxdb.gemspec
===================================================================
--- ruby-influxdb.orig/influxdb.gemspec
+++ ruby-influxdb/influxdb.gemspec
@@ -19,10 +19,13 @@ Gem::Specification.new do |spec|
   spec.require_paths = ["lib"]
 
   spec.add_runtime_dependency "json"
-  spec.add_runtime_dependency "cause"
 
   spec.add_development_dependency "bundler", "~> 1.3"
   spec.add_development_dependency "rake"
   spec.add_development_dependency "rspec", "~> 3.0.0"
   spec.add_development_dependency "webmock", "~> 1.21.0"
+
+  if RUBY_VERSION < '2.1'
+    spec.add_runtime_dependency "cause"
+  end
 end
Index: ruby-influxdb/metadata.yml
===================================================================
--- ruby-influxdb.orig/metadata.yml
+++ ruby-influxdb/metadata.yml
@@ -25,20 +25,6 @@ dependencies:
       - !ruby/object:Gem::Version
         version: '0'
 - !ruby/object:Gem::Dependency
-  name: cause
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - ">="
-      - !ruby/object:Gem::Version
-        version: '0'
-  type: :runtime
-  prerelease: false
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - ">="
-      - !ruby/object:Gem::Version
-        version: '0'
-- !ruby/object:Gem::Dependency
   name: bundler
   requirement: !ruby/object:Gem::Requirement
     requirements:
Index: ruby-influxdb/lib/influxdb/client.rb
===================================================================
--- ruby-influxdb.orig/lib/influxdb/client.rb
+++ ruby-influxdb/lib/influxdb/client.rb
@@ -1,5 +1,4 @@
 require 'json'
-require 'cause'
 
 module InfluxDB
   # rubocop:disable Metrics/MethodLength