socialcast-git-extensions 4.0.3 → 4.1.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: 3767f1d18028006484c0399aacf57067ae198ce5
4
- data.tar.gz: 09f38ffe0daf1e52ba7e0c242da0520be3191f91
3
+ metadata.gz: 15c1ec40dbe8a2b80701e60dcad382fc1d151a70
4
+ data.tar.gz: e3ddfaa87901257a06a9aeb846c406e1e7cd9ea6
5
5
  SHA512:
6
- metadata.gz: be5541c5509cbd74353435416f2eab6c327b595ade0bf45a09721d2bd9a8b9370271f8192ffef1b9019ba4bc4c05255e63a5580afca57af7c73664acd77557b7
7
- data.tar.gz: 78ff784cef68a76418fd9a05f98fc609c554482d6339ec77fca4a921922045ec53bb641a9ff263054a2498c8759caae57d05b9ce684be37435cbfdb100a2124a
6
+ metadata.gz: e2bddfe8501060bcc653d6f2492b5565020424189690f79f9fb72e99bd3379de2b548d179e8dece8cea81a758aa71f91ae710a57756dd4cbe89dabd6dab7e8da
7
+ data.tar.gz: 3685ff147e5ec0ac69d172d1450e028321de02bf72df3a0b3441af4285676ed42af86a7f624cdfff4367057e9db79c19f4e80696d1eff75091ca167dee2a30cb
@@ -1,6 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.1
5
3
  - 2.2.4
6
4
  - 2.3.1
data/README.md CHANGED
@@ -98,7 +98,7 @@ specialty_reviewers:
98
98
 
99
99
  release the current feature branch to master
100
100
 
101
- = Extra Git Extensions
101
+ # Extra Git Extensions
102
102
 
103
103
  ## git cleanup
104
104
 
@@ -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
- ActiveResource::Base.logger = Logger.new(STDOUT) if options[:trace]
352
- Socialcast::CommandLine::Message.configure_from_credentials
353
- response = Socialcast::CommandLine::Message.create params.merge(:body => message)
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
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module Gitx
3
- VERSION = "4.0.3"
3
+ VERSION = "4.1.0"
4
4
  end
5
5
  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', '~> 1.3.0'
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'
@@ -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 => "{\"message\":{\"url\":\"https://github.com/socialcast/socialcast-git-extensions/pulls/60\",\"message_type\":\"review_request\",\"body\":\"#reviewrequest backport #59 to v1.x in socialcast/socialcast-git-extensions #scgitx\\n\\n/cc @SocialcastDevelopers\"}}")
990
- .to_return(:status => 200, :body => "", :headers => {})
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.3
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-07 00:00:00.000000000 Z
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.3.0
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.3.0
40
+ version: 1.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement