octogate 0.3.0 → 0.4.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
2
  SHA1:
3
- metadata.gz: cbbcaafd61153f1ecf484accf96d55714aa639b8
4
- data.tar.gz: f3f71fa90f84e4a3ac33d9f0a6d58cecb83a2a37
3
+ metadata.gz: 7afc5da02620a0bee878f8f17003a70bbab1ae54
4
+ data.tar.gz: 98b5b196c20cd531f7932e5227243059f2f43086
5
5
  SHA512:
6
- metadata.gz: fc15590436c8a4d1b70069268f2799d922ed8e1898e72759c136d4307738b41895f73260fa8184383866cc3d6ce94acbca15705fd6faba76e99bb4b369d16d62
7
- data.tar.gz: cd50a16df5e7af7b537546329156dc82bd06c761b970ec1fa5f85f0096ce9970de8f0066068e8627ae27379a9ae21d43a112918d5ca7f1a56036958944fc34b1
6
+ metadata.gz: c8992af207d2f31f258fbad9fe35af84c74d7f6bb103ddf011e7f55eb11bddc7e28e1f4655dcb5ca479683f0548ad8bf40dabd7058da1ff7ac49f2bb70640ffb
7
+ data.tar.gz: 6fdfc16062cdb1604f1c1e858df7d167a07b99938350b6bf73143659394b37f4356d401cfdc25c47125dd3eaac4afe534cc71cf5e560982cd1e4c594c30b6c36
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  rvm:
3
- - 2.1.1
4
+ - 2.2
5
+ - 2.1
4
6
  - 2.0.0
@@ -5,7 +5,6 @@ require "active_support/core_ext/object"
5
5
  require "active_support/core_ext/string"
6
6
  require "oj"
7
7
  require "hashie"
8
- require "awesome_print"
9
8
 
10
9
  require "octogate/configuration"
11
10
 
@@ -29,7 +29,7 @@ module Octogate
29
29
  if options[:parameter_type] == :json && options[:params]
30
30
  conn.post options[:url] do |req|
31
31
  req.headers['Content-Type'] = 'application/json'
32
- req.body = Oj.dump(options[:params])
32
+ req.body = Oj.dump(options[:params], mode: :compat)
33
33
  end
34
34
  else
35
35
  conn.post options[:url], options[:params]
@@ -1,3 +1,3 @@
1
1
  module Octogate
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -24,12 +24,14 @@ Gem::Specification.new do |spec|
24
24
  spec.add_runtime_dependency "faraday"
25
25
  spec.add_runtime_dependency "hashie"
26
26
  spec.add_runtime_dependency "haml"
27
- spec.add_runtime_dependency "awesome_print"
28
27
 
29
28
  spec.add_development_dependency "bundler", ">= 1.5"
30
29
  spec.add_development_dependency "rake"
31
30
  spec.add_development_dependency "rspec"
31
+ spec.add_development_dependency "rspec-collection_matchers"
32
+ spec.add_development_dependency "awesome_print"
32
33
  spec.add_development_dependency "tapp"
34
+ spec.add_development_dependency "tapp-awesome_print"
33
35
  spec.add_development_dependency "webmock"
34
36
  spec.add_development_dependency "thin"
35
37
  spec.add_development_dependency "coveralls"
@@ -7,19 +7,19 @@ describe Octogate::Target do
7
7
  context "hook_type include Given Event" do
8
8
  subject { target.include_event?(Octogate::Event::Push) }
9
9
 
10
- it { should be_true }
10
+ it { should be_truthy }
11
11
  end
12
12
 
13
13
  context "hook_type not include Given Event" do
14
14
  subject { target.include_event?(Octogate::Event::PullRequest) }
15
15
 
16
- it { should be_false }
16
+ it { should be_falsey }
17
17
  end
18
18
 
19
19
  context "Given event instance" do
20
20
  subject { target.include_event?(Octogate::Event::Push.new()) }
21
21
 
22
- it { should be_true }
22
+ it { should be_truthy }
23
23
  end
24
24
  end
25
25
  end
@@ -4,7 +4,9 @@ Coveralls.wear!
4
4
 
5
5
  require 'octogate'
6
6
  require 'tapp'
7
+ require 'tapp-awesome_print'
7
8
  require 'webmock/rspec'
9
+ require 'rspec/collection_matchers'
8
10
 
9
11
  Tapp.configure do |config|
10
12
  config.default_printer = :awesome_print
@@ -14,7 +16,6 @@ end
14
16
  WebMock.disable_net_connect!
15
17
 
16
18
  RSpec.configure do |config|
17
- config.treat_symbols_as_metadata_keys_with_true_values = true
18
19
  config.run_all_when_everything_filtered = true
19
20
  config.filter_run :focus
20
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octogate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-09 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -95,13 +95,27 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: awesome_print
98
+ name: bundler
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '1.5'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '1.5'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ">="
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
- type: :runtime
118
+ type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
@@ -109,21 +123,21 @@ dependencies:
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
- name: bundler
126
+ name: rspec
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ">="
116
130
  - !ruby/object:Gem::Version
117
- version: '1.5'
131
+ version: '0'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - ">="
123
137
  - !ruby/object:Gem::Version
124
- version: '1.5'
138
+ version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
- name: rake
140
+ name: rspec-collection_matchers
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - ">="
@@ -137,7 +151,7 @@ dependencies:
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
- name: rspec
154
+ name: awesome_print
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - ">="
@@ -164,6 +178,20 @@ dependencies:
164
178
  - - ">="
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: tapp-awesome_print
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
167
195
  - !ruby/object:Gem::Dependency
168
196
  name: webmock
169
197
  requirement: !ruby/object:Gem::Requirement
@@ -302,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
330
  version: '0'
303
331
  requirements: []
304
332
  rubyforge_project:
305
- rubygems_version: 2.2.2
333
+ rubygems_version: 2.4.6
306
334
  signing_key:
307
335
  specification_version: 4
308
336
  summary: Github webhook proxy server