puppet-blacksmith 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/puppet_blacksmith/rake_tasks.rb +9 -2
- metadata +68 -75
@@ -56,9 +56,16 @@ password: mypassword")
|
|
56
56
|
# TODO check response body for errors
|
57
57
|
|
58
58
|
# upload the file
|
59
|
-
RestClient.post("#{forge}/#{m.username}/#{m.name}/upload",
|
59
|
+
response = RestClient.post("#{forge}/#{m.username}/#{m.name}/upload",
|
60
60
|
{:notes => "Auto uploaded", :tarball => File.new("pkg/#{m.username}-#{m.name}-#{m.version}.tar.gz", 'rb') },
|
61
|
-
{:cookies => response.cookies})
|
61
|
+
{:cookies => response.cookies}){
|
62
|
+
|response, request, result, &block|
|
63
|
+
if [301, 302, 307].include? response.code
|
64
|
+
response
|
65
|
+
else
|
66
|
+
response.return!(request, result, &block)
|
67
|
+
end
|
68
|
+
}
|
62
69
|
# TODO check response body for errors
|
63
70
|
end
|
64
71
|
end
|
metadata
CHANGED
@@ -1,138 +1,131 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-blacksmith
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
4
5
|
prerelease:
|
5
|
-
version: 1.0.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- MaestroDev
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-01-30 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: rake
|
17
|
-
requirement: &
|
16
|
+
requirement: &16053360 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
26
|
-
- !ruby/object:Gem::Dependency
|
24
|
+
version_requirements: *16053360
|
25
|
+
- !ruby/object:Gem::Dependency
|
27
26
|
name: rest-client
|
28
|
-
requirement: &
|
27
|
+
requirement: &16052940 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
37
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *16052940
|
36
|
+
- !ruby/object:Gem::Dependency
|
38
37
|
name: puppet
|
39
|
-
requirement: &
|
38
|
+
requirement: &16052440 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
44
43
|
version: 2.7.16
|
45
44
|
type: :runtime
|
46
45
|
prerelease: false
|
47
|
-
version_requirements: *
|
48
|
-
- !ruby/object:Gem::Dependency
|
46
|
+
version_requirements: *16052440
|
47
|
+
- !ruby/object:Gem::Dependency
|
49
48
|
name: puppetlabs_spec_helper
|
50
|
-
requirement: &
|
49
|
+
requirement: &16051980 !ruby/object:Gem::Requirement
|
51
50
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
55
54
|
version: 0.3.0
|
56
55
|
type: :runtime
|
57
56
|
prerelease: false
|
58
|
-
version_requirements: *
|
59
|
-
- !ruby/object:Gem::Dependency
|
57
|
+
version_requirements: *16051980
|
58
|
+
- !ruby/object:Gem::Dependency
|
60
59
|
name: cucumber
|
61
|
-
requirement: &
|
60
|
+
requirement: &16051600 !ruby/object:Gem::Requirement
|
62
61
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version:
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
67
66
|
type: :development
|
68
67
|
prerelease: false
|
69
|
-
version_requirements: *
|
70
|
-
- !ruby/object:Gem::Dependency
|
68
|
+
version_requirements: *16051600
|
69
|
+
- !ruby/object:Gem::Dependency
|
71
70
|
name: aruba
|
72
|
-
requirement: &
|
71
|
+
requirement: &16051180 !ruby/object:Gem::Requirement
|
73
72
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version:
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
78
77
|
type: :development
|
79
78
|
prerelease: false
|
80
|
-
version_requirements: *
|
81
|
-
- !ruby/object:Gem::Dependency
|
79
|
+
version_requirements: *16051180
|
80
|
+
- !ruby/object:Gem::Dependency
|
82
81
|
name: rspec
|
83
|
-
requirement: &
|
82
|
+
requirement: &16050680 !ruby/object:Gem::Requirement
|
84
83
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
88
87
|
version: 2.7.0
|
89
88
|
type: :development
|
90
89
|
prerelease: false
|
91
|
-
version_requirements: *
|
90
|
+
version_requirements: *16050680
|
92
91
|
description: Puppet module tools for development and Puppet Forge management
|
93
|
-
email:
|
92
|
+
email:
|
94
93
|
- info@maestrodev.com
|
95
94
|
executables: []
|
96
|
-
|
97
95
|
extensions: []
|
98
|
-
|
99
96
|
extra_rdoc_files: []
|
100
|
-
|
101
|
-
files:
|
97
|
+
files:
|
102
98
|
- lib/puppet_blacksmith/rake_tasks.rb
|
103
99
|
- LICENSE
|
104
100
|
- spec/puppet_blacksmith/rake_tasks_spec.rb
|
105
101
|
- spec/data/Modulefile
|
106
102
|
homepage: http://github.com/maestrodev/puppet-blacksmith
|
107
103
|
licenses: []
|
108
|
-
|
109
104
|
post_install_message:
|
110
105
|
rdoc_options: []
|
111
|
-
|
112
|
-
require_paths:
|
106
|
+
require_paths:
|
113
107
|
- lib
|
114
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
109
|
none: false
|
116
|
-
requirements:
|
117
|
-
- -
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
|
120
|
-
segments:
|
110
|
+
requirements:
|
111
|
+
- - ! '>='
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
segments:
|
121
115
|
- 0
|
122
|
-
|
123
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
hash: 1461008180163004591
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
118
|
none: false
|
125
|
-
requirements:
|
126
|
-
- -
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version:
|
119
|
+
requirements:
|
120
|
+
- - ! '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
129
123
|
requirements: []
|
130
|
-
|
131
124
|
rubyforge_project:
|
132
125
|
rubygems_version: 1.8.6
|
133
126
|
signing_key:
|
134
127
|
specification_version: 3
|
135
128
|
summary: Tasks to manage Puppet module builds
|
136
|
-
test_files:
|
129
|
+
test_files:
|
137
130
|
- spec/puppet_blacksmith/rake_tasks_spec.rb
|
138
131
|
- spec/data/Modulefile
|