socialcast-git-extensions 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,8 @@ require 'json'
4
4
  module Socialcast
5
5
  module Github
6
6
  def create_pull_request(username, password, branch)
7
- response = RestClient.post "https://#{username}:#{password}@api.github.com/repos/socialcast/socialcast/pulls", {:title => branch, :base => 'master', :head => branch}.to_json, :accept => :json, :content_type => :json
7
+ payload = {:title => branch, :base => 'master', :head => branch}.to_json
8
+ response = RestClient::Request.new(:url => "https://api.github.com/repos/socialcast/socialcast/pulls", :method => "POST", :user => username, :password => password, :payload => payload, :headers => {:accept => :json, :content_type => :json}).execute
8
9
  data = JSON.parse response.body
9
10
  url = data['html_url']
10
11
  end
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module Gitx
3
- VERSION = "2.2.3"
3
+ VERSION = "2.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialcast-git-extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 3
10
- version: 2.2.3
9
+ - 4
10
+ version: 2.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek
@@ -15,12 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-24 00:00:00 Z
18
+ date: 2011-10-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: grit
22
22
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
26
  - - ">="
@@ -29,12 +29,12 @@ dependencies:
29
29
  segments:
30
30
  - 0
31
31
  version: "0"
32
+ requirement: *id001
32
33
  type: :runtime
33
- version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: git_remote_branch
36
36
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
38
38
  none: false
39
39
  requirements:
40
40
  - - ">="
@@ -43,12 +43,12 @@ dependencies:
43
43
  segments:
44
44
  - 0
45
45
  version: "0"
46
+ requirement: *id002
46
47
  type: :runtime
47
- version_requirements: *id002
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: highline
50
50
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
51
+ version_requirements: &id003 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ">="
@@ -57,12 +57,12 @@ dependencies:
57
57
  segments:
58
58
  - 0
59
59
  version: "0"
60
+ requirement: *id003
60
61
  type: :runtime
61
- version_requirements: *id003
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: socialcast
64
64
  prerelease: false
65
- requirement: &id004 !ruby/object:Gem::Requirement
65
+ version_requirements: &id004 !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
68
68
  - - ">="
@@ -73,12 +73,12 @@ dependencies:
73
73
  - 3
74
74
  - 4
75
75
  version: 0.3.4
76
+ requirement: *id004
76
77
  type: :runtime
77
- version_requirements: *id004
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: rest-client
80
80
  prerelease: false
81
- requirement: &id005 !ruby/object:Gem::Requirement
81
+ version_requirements: &id005 !ruby/object:Gem::Requirement
82
82
  none: false
83
83
  requirements:
84
84
  - - ">="
@@ -89,12 +89,12 @@ dependencies:
89
89
  - 4
90
90
  - 0
91
91
  version: 1.4.0
92
+ requirement: *id005
92
93
  type: :runtime
93
- version_requirements: *id005
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: json_pure
96
96
  prerelease: false
97
- requirement: &id006 !ruby/object:Gem::Requirement
97
+ version_requirements: &id006 !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
100
100
  - - ">="
@@ -103,12 +103,12 @@ dependencies:
103
103
  segments:
104
104
  - 0
105
105
  version: "0"
106
+ requirement: *id006
106
107
  type: :runtime
107
- version_requirements: *id006
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: rake
110
110
  prerelease: false
111
- requirement: &id007 !ruby/object:Gem::Requirement
111
+ version_requirements: &id007 !ruby/object:Gem::Requirement
112
112
  none: false
113
113
  requirements:
114
114
  - - "="
@@ -119,8 +119,8 @@ dependencies:
119
119
  - 9
120
120
  - 2
121
121
  version: 0.9.2
122
+ requirement: *id007
122
123
  type: :development
123
- version_requirements: *id007
124
124
  description: GIT it done!
125
125
  email:
126
126
  - ryan@socialcast.com
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  requirements: []
197
197
 
198
198
  rubyforge_project: socialcast-git-extensions
199
- rubygems_version: 1.8.10
199
+ rubygems_version: 1.8.5
200
200
  signing_key:
201
201
  specification_version: 3
202
202
  summary: git extension scripts for socialcast workflow