socialcast-git-extensions 4.0.3 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/README.md +1 -1
- data/lib/socialcast-git-extensions/cli.rb +4 -3
- data/lib/socialcast-git-extensions/version.rb +1 -1
- data/socialcast-git-extensions.gemspec +1 -1
- data/spec/cli_spec.rb +17 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15c1ec40dbe8a2b80701e60dcad382fc1d151a70
|
4
|
+
data.tar.gz: e3ddfaa87901257a06a9aeb846c406e1e7cd9ea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2bddfe8501060bcc653d6f2492b5565020424189690f79f9fb72e99bd3379de2b548d179e8dece8cea81a758aa71f91ae710a57756dd4cbe89dabd6dab7e8da
|
7
|
+
data.tar.gz: 3685ff147e5ec0ac69d172d1450e028321de02bf72df3a0b3441af4285676ed42af86a7f624cdfff4367057e9db79c19f4e80696d1eff75091ca167dee2a30cb
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -348,9 +348,10 @@ module Socialcast
|
|
348
348
|
# skip sharing message if CLI quiet option is present
|
349
349
|
def post(message, params = {})
|
350
350
|
return if options[:quiet]
|
351
|
-
|
352
|
-
Socialcast::CommandLine::Message.
|
353
|
-
|
351
|
+
|
352
|
+
response = Socialcast::CommandLine::Message.with_debug(options[:trace]) do
|
353
|
+
Socialcast::CommandLine::Message.create params.merge(:body => message)
|
354
|
+
end
|
354
355
|
say "Message has been posted: #{response.permalink_url}"
|
355
356
|
end
|
356
357
|
end
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rubyforge_project = "socialcast-git-extensions"
|
16
16
|
|
17
17
|
s.add_runtime_dependency 'rugged', '>= 0.23'
|
18
|
-
s.add_runtime_dependency 'socialcast', '
|
18
|
+
s.add_runtime_dependency 'socialcast', '>= 1.4.0'
|
19
19
|
s.add_runtime_dependency 'activesupport', '>= 4.0'
|
20
20
|
s.add_runtime_dependency 'rest-client', '~> 1.7'
|
21
21
|
s.add_runtime_dependency 'thor', '~> 0.19.1'
|
data/spec/cli_spec.rb
CHANGED
@@ -985,9 +985,24 @@ describe Socialcast::Gitx::CLI do
|
|
985
985
|
.to_return(:status => 200, :body => "{}", :headers => {})
|
986
986
|
end
|
987
987
|
let!(:socialcast_message_create) do
|
988
|
+
message_request_data = {
|
989
|
+
'message' => {
|
990
|
+
'url' => 'https://github.com/socialcast/socialcast-git-extensions/pulls/60',
|
991
|
+
'message_type' => 'review_request',
|
992
|
+
'body' => "#reviewrequest backport #59 to v1.x in socialcast/socialcast-git-extensions #scgitx\n\n/cc @SocialcastDevelopers"
|
993
|
+
}
|
994
|
+
}
|
995
|
+
|
996
|
+
message_response_data = {
|
997
|
+
'message' => message_request_data['message'].merge(
|
998
|
+
'id' => 123,
|
999
|
+
'permalink_url' => 'https://testdomain/messages/123'
|
1000
|
+
)
|
1001
|
+
}
|
1002
|
+
|
988
1003
|
stub_request(:post, "https://testuser:testpassword@testdomain/api/messages.json")
|
989
|
-
.with(:body =>
|
990
|
-
.to_return(:status => 200, :body =>
|
1004
|
+
.with(:body => message_request_data.to_json)
|
1005
|
+
.to_return(:status => 200, :body => message_response_data.to_json, :headers => {})
|
991
1006
|
end
|
992
1007
|
before do
|
993
1008
|
expect_any_instance_of(Socialcast::Gitx::CLI).to receive(:backportpr).and_call_original
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast-git-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Socialcast
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: socialcast
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.4.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|