event_girl_client 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +3 -0
- data/event_girl_client.gemspec +1 -1
- data/lib/event_girl_client.rb +13 -2
- metadata +11 -27
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 338c8438e3e0c9128e741b38c68ce235c17cb684
|
4
|
+
data.tar.gz: 063bde9c78788f8c75cda59f2e9174da3a7fd54d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 46fb409415e99b7d8a47dca6c6fffbf0f646717747b04c742742bd5c94455133343a86d09b883229796e7d0594e27e3189253c40925cee3f4b000522cdc9204e
|
7
|
+
data.tar.gz: 8ce5481f54d9d111508ebdc6fe2ce5d10c950ec95443369cdbc67e0ded17022e80e9716e63bb0ed58038999262e223a43bb38e5137a3847fe767fa4333c5d3b2
|
data/CHANGELOG.md
CHANGED
data/event_girl_client.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["susanne.dewein@gmail.com", "tam.eastley@gmail.com", "cz@aegisnet.de"]
|
11
11
|
spec.description = %q{Ruby client library to connect to event_girl app}
|
12
12
|
spec.summary = %q{Ruby client library to connect to event_girl app}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/Absolventa/event_girl_client"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
data/lib/event_girl_client.rb
CHANGED
@@ -6,7 +6,7 @@ require 'rubygems'
|
|
6
6
|
module EventGirl
|
7
7
|
class Client
|
8
8
|
|
9
|
-
VERSION = '1.1.
|
9
|
+
VERSION = '1.1.1'
|
10
10
|
|
11
11
|
# Class-wide configuration
|
12
12
|
@@api_token = nil
|
@@ -36,7 +36,12 @@ module EventGirl
|
|
36
36
|
|
37
37
|
# The request is sent via HTTP to the host and port. You also get a response
|
38
38
|
# ex: 201 (it worked)
|
39
|
-
Net::HTTP.new(uri.host, uri.port)
|
39
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
40
|
+
|
41
|
+
http.use_ssl = ssl?
|
42
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
43
|
+
|
44
|
+
http.request(req)
|
40
45
|
end
|
41
46
|
|
42
47
|
def self.configure
|
@@ -53,5 +58,11 @@ module EventGirl
|
|
53
58
|
end
|
54
59
|
end
|
55
60
|
|
61
|
+
private
|
62
|
+
|
63
|
+
def ssl?
|
64
|
+
!!/^https:/.match(url)
|
65
|
+
end
|
66
|
+
|
56
67
|
end
|
57
68
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: event_girl_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Susanne Dewein
|
@@ -16,7 +15,6 @@ dependencies:
|
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: bundler
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
19
|
- - ~>
|
22
20
|
- !ruby/object:Gem::Version
|
@@ -24,7 +22,6 @@ dependencies:
|
|
24
22
|
type: :development
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
26
|
- - ~>
|
30
27
|
- !ruby/object:Gem::Version
|
@@ -32,7 +29,6 @@ dependencies:
|
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: rspec
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
33
|
- - ~>
|
38
34
|
- !ruby/object:Gem::Version
|
@@ -40,7 +36,6 @@ dependencies:
|
|
40
36
|
type: :development
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
40
|
- - ~>
|
46
41
|
- !ruby/object:Gem::Version
|
@@ -48,33 +43,29 @@ dependencies:
|
|
48
43
|
- !ruby/object:Gem::Dependency
|
49
44
|
name: rake
|
50
45
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
46
|
requirements:
|
53
|
-
- -
|
47
|
+
- - '>='
|
54
48
|
- !ruby/object:Gem::Version
|
55
49
|
version: '0'
|
56
50
|
type: :development
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
53
|
requirements:
|
61
|
-
- -
|
54
|
+
- - '>='
|
62
55
|
- !ruby/object:Gem::Version
|
63
56
|
version: '0'
|
64
57
|
- !ruby/object:Gem::Dependency
|
65
58
|
name: webmock
|
66
59
|
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
60
|
requirements:
|
69
|
-
- -
|
61
|
+
- - '>='
|
70
62
|
- !ruby/object:Gem::Version
|
71
63
|
version: '0'
|
72
64
|
type: :development
|
73
65
|
prerelease: false
|
74
66
|
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
67
|
requirements:
|
77
|
-
- -
|
68
|
+
- - '>='
|
78
69
|
- !ruby/object:Gem::Version
|
79
70
|
version: '0'
|
80
71
|
description: Ruby client library to connect to event_girl app
|
@@ -101,36 +92,29 @@ files:
|
|
101
92
|
- lib/event_girl_client.rb
|
102
93
|
- spec/client_spec.rb
|
103
94
|
- spec/spec_helper.rb
|
104
|
-
homepage:
|
95
|
+
homepage: https://github.com/Absolventa/event_girl_client
|
105
96
|
licenses:
|
106
97
|
- MIT
|
98
|
+
metadata: {}
|
107
99
|
post_install_message:
|
108
100
|
rdoc_options: []
|
109
101
|
require_paths:
|
110
102
|
- lib
|
111
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
104
|
requirements:
|
114
|
-
- -
|
105
|
+
- - '>='
|
115
106
|
- !ruby/object:Gem::Version
|
116
107
|
version: '0'
|
117
|
-
segments:
|
118
|
-
- 0
|
119
|
-
hash: 90694944730678737
|
120
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
109
|
requirements:
|
123
|
-
- -
|
110
|
+
- - '>='
|
124
111
|
- !ruby/object:Gem::Version
|
125
112
|
version: '0'
|
126
|
-
segments:
|
127
|
-
- 0
|
128
|
-
hash: 90694944730678737
|
129
113
|
requirements: []
|
130
114
|
rubyforge_project:
|
131
|
-
rubygems_version:
|
115
|
+
rubygems_version: 2.0.3
|
132
116
|
signing_key:
|
133
|
-
specification_version:
|
117
|
+
specification_version: 4
|
134
118
|
summary: Ruby client library to connect to event_girl app
|
135
119
|
test_files:
|
136
120
|
- spec/client_spec.rb
|