mingle_events 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MGFjZmRmMTUzNDBmYmMyMjZkOGFjZTQwNmQwZGJkYmI3ZWJkM2U3Nw==
5
+ data.tar.gz: !binary |-
6
+ Y2U5ZjVlNDQ0NDRlMTAxNjE3MGY2ZWVlYjgyNTgzODA2YzBjYWU1ZQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MjYwN2U0MzZiZmNkMzk5NzljZmY0NGRmMWJkNjZiNzY2NjBlY2JiNjk1N2E5
10
+ NTBiNzMyYmViYThkNzA3NTUzNjE0ZWRkNTA4MjA2NDczZDFmMmNjOTc4NTk4
11
+ OTIxNDA0ZjE3MGRhYzc3NDYwNTBkYjZlYmI3MzVjZWQxZWI2NzQ=
12
+ data.tar.gz: !binary |-
13
+ NmFlNDE0N2ViZTQ4NmFlY2ZhZGU4ZTRkYjQzMzY4ODVmODAyMjdlNDUzMzRm
14
+ ODFiY2JiYzM4OTdhZDNmMTY5OWYxNTg1NmZjNzFhYzVkZjc5YjEyYjNiZGMz
15
+ NTc0MjMzNjJkNDAwN2VjM2RlMDE1YTRlYTUzYjZiZmRiMTI1YTc=
data/README.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. Mingle Events
2
2
 
3
+ h3. Build Status
4
+
5
+ !https://snap-ci.com/8utfe_6tNgFNhsHe8hj8ptOpiQKrqsWOEAptUj7ez70/build_image!:https://snap-ci.com/projects/ThoughtWorksStudios/mingle_events/build_history
6
+
3
7
  h3. Overview
4
8
 
5
9
  Mingle 3.3 introduced a new Events API in the form of an "Atom feed":http://www.thoughtworks-studios.com/mingle/3.3/help/mingle_api_events.html. The Mingle team and ThoughtWorks Studios are big believers in the use of Atom for exposing events. Atom is a widely used standard, and this event API style puts the issue of robust event delivery in the hands of the consumer, where it belongs. In fact, we'd argue this is the only feasible means of robust, scalable event delivery, short of spending hundreds of thousands or millions of dollars on enterprise buses and such. Atom-delivered events are cheap, scalable, standards-based, and robust.
data/lib/mingle_events.rb CHANGED
@@ -20,6 +20,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'mingle_events', 'htt
20
20
  require File.expand_path(File.join(File.dirname(__FILE__), 'mingle_events', 'mingle_basic_auth_access'))
21
21
  require File.expand_path(File.join(File.dirname(__FILE__), 'mingle_events', 'mingle_oauth_access'))
22
22
  require File.expand_path(File.join(File.dirname(__FILE__), 'mingle_events', 'mingle_hmac_auth_access'))
23
+ require File.expand_path(File.join(File.dirname(__FILE__), 'mingle_events', 'mingle_api_key_access'))
23
24
  require File.expand_path(File.join(File.dirname(__FILE__), 'mingle_events', 'processors'))
24
25
  require File.expand_path(File.join(File.dirname(__FILE__), 'mingle_events', 'project_custom_properties'))
25
26
  require File.expand_path(File.join(File.dirname(__FILE__), 'mingle_events', 'zip_directory'))
@@ -0,0 +1,19 @@
1
+ module MingleEvents
2
+
3
+ # Client for Mingle's API Key access.
4
+ class MingleApiKeyAccess
5
+ attr_reader :base_url
6
+
7
+ def initialize(base_url, api_key)
8
+ @base_url = base_url
9
+ @api_key = api_key
10
+ end
11
+
12
+ def fetch_page(location)
13
+ location = @base_url + location if location[0..0] == '/'
14
+ Http.get(location) do |req|
15
+ req["MINGLE_API_KEY"] = @api_key
16
+ end
17
+ end
18
+ end
19
+ end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mingle_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
5
- prerelease:
4
+ version: 0.1.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Rice
@@ -14,7 +13,6 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: activesupport
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: minitar
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: api-auth
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -123,6 +112,7 @@ files:
123
112
  - lib/mingle_events/feed.rb
124
113
  - lib/mingle_events/http.rb
125
114
  - lib/mingle_events/http_error.rb
115
+ - lib/mingle_events/mingle_api_key_access.rb
126
116
  - lib/mingle_events/mingle_basic_auth_access.rb
127
117
  - lib/mingle_events/mingle_hmac_auth_access.rb
128
118
  - lib/mingle_events/mingle_oauth_access.rb
@@ -172,6 +162,7 @@ files:
172
162
  - test/web_hook_server/web_hook_server.rb
173
163
  homepage: https://github.com/ThoughtWorksStudios/mingle_events
174
164
  licenses: []
165
+ metadata: {}
175
166
  post_install_message:
176
167
  rdoc_options:
177
168
  - --line-numbers
@@ -183,23 +174,18 @@ rdoc_options:
183
174
  require_paths:
184
175
  - lib
185
176
  required_ruby_version: !ruby/object:Gem::Requirement
186
- none: false
187
177
  requirements:
188
178
  - - ! '>='
189
179
  - !ruby/object:Gem::Version
190
180
  version: '0'
191
- segments:
192
- - 0
193
- hash: -4185250361768813849
194
181
  required_rubygems_version: !ruby/object:Gem::Requirement
195
- none: false
196
182
  requirements:
197
183
  - - ! '>='
198
184
  - !ruby/object:Gem::Version
199
185
  version: '1.2'
200
186
  requirements: []
201
187
  rubyforge_project: mingle_events
202
- rubygems_version: 1.8.23
188
+ rubygems_version: 2.0.6
203
189
  signing_key:
204
190
  specification_version: 3
205
191
  summary: A gem that lets you process Mingle events in a pipes and filters style.