right_scraper 3.2.4 → 3.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,8 @@ module RightScraper
30
30
  # Otherwise pass the arguments on to ::Logger.
31
31
  def initialize(*args)
32
32
  if args.empty?
33
- super('/dev/null')
33
+ is_windows = !!(RUBY_PLATFORM =~ /mswin|win32|dos|mingw|cygwin/)
34
+ super((is_windows ? 'nul' : '/dev/null'))
34
35
  self.level = ::Logger::ERROR
35
36
  else
36
37
  super
@@ -41,9 +41,8 @@ module RightScraper
41
41
  do_update
42
42
  end
43
43
  rescue Exception => e
44
- @logger.note_error(e, :updating, "switching to using checkout")
45
- FileUtils.remove_entry_secure basedir
46
- @logger.operation(:checkout) do
44
+ FileUtils.remove_entry_secure @basedir
45
+ @logger.operation(:checkout, "switching to using checkout") do
47
46
  do_checkout
48
47
  end
49
48
  end
@@ -107,6 +107,7 @@ module RightScraper
107
107
  # @return [Array] lines of output or empty
108
108
  def run_svn_with(initial_directory, output_handler, *args)
109
109
  @output = ::RightScale::RightPopen::SafeOutputBuffer.new
110
+ @output_handler = output_handler
110
111
  cmd = ['svn', args, svn_arguments].flatten
111
112
  ::RightScale::RightPopen.popen3_sync(
112
113
  cmd,
@@ -24,7 +24,7 @@ require 'rubygems'
24
24
 
25
25
  Gem::Specification.new do |spec|
26
26
  spec.name = 'right_scraper'
27
- spec.version = '3.2.4'
27
+ spec.version = '3.2.6'
28
28
  spec.authors = ['Graham Hughes', 'Raphael Simon', 'Scott Messier']
29
29
  spec.email = 'raphael@rightscale.com'
30
30
  spec.homepage = 'https://github.com/rightscale/right_scraper'
metadata CHANGED
@@ -1,165 +1,160 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: right_scraper
3
- version: !ruby/object:Gem::Version
4
- hash: 7
5
- prerelease: false
6
- segments:
7
- - 3
8
- - 2
9
- - 4
10
- version: 3.2.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.2.6
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Graham Hughes
14
9
  - Raphael Simon
15
10
  - Scott Messier
16
11
  autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
-
20
- date: 2013-08-13 00:00:00 -07:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
14
+ date: 2013-11-20 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: json
18
+ requirement: !ruby/object:Gem::Requirement
25
19
  none: false
26
- requirements:
20
+ requirements:
27
21
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 1
32
- - 4
33
- version: "1.4"
34
- requirement: *id001
22
+ - !ruby/object:Gem::Version
23
+ version: '1.4'
35
24
  type: :runtime
36
- name: json
37
25
  prerelease: false
38
- - !ruby/object:Gem::Dependency
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: !ruby/object:Gem::Requirement
40
27
  none: false
41
- requirements:
28
+ requirements:
42
29
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 17
45
- segments:
46
- - 1
47
- - 2
48
- - 7
30
+ - !ruby/object:Gem::Version
31
+ version: '1.4'
32
+ - !ruby/object:Gem::Dependency
33
+ name: blackwinter-git
34
+ requirement: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ~>
38
+ - !ruby/object:Gem::Version
49
39
  version: 1.2.7
50
- requirement: *id002
51
40
  type: :runtime
52
- name: blackwinter-git
53
41
  prerelease: false
54
- - !ruby/object:Gem::Dependency
55
- version_requirements: &id003 !ruby/object:Gem::Requirement
42
+ version_requirements: !ruby/object:Gem::Requirement
56
43
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 2
63
- - 0
64
- version: "2.0"
65
- requirement: *id003
66
- type: :runtime
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 1.2.7
48
+ - !ruby/object:Gem::Dependency
67
49
  name: right_aws
50
+ requirement: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '2.0'
56
+ type: :runtime
68
57
  prerelease: false
69
- - !ruby/object:Gem::Dependency
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '2.0'
64
+ - !ruby/object:Gem::Dependency
65
+ name: right_popen
66
+ requirement: !ruby/object:Gem::Requirement
71
67
  none: false
72
- requirements:
68
+ requirements:
73
69
  - - ~>
74
- - !ruby/object:Gem::Version
75
- hash: 17
76
- segments:
77
- - 1
78
- - 1
79
- - 1
70
+ - !ruby/object:Gem::Version
80
71
  version: 1.1.1
81
- requirement: *id004
82
72
  type: :runtime
83
- name: right_popen
84
73
  prerelease: false
85
- - !ruby/object:Gem::Dependency
86
- version_requirements: &id005 !ruby/object:Gem::Requirement
74
+ version_requirements: !ruby/object:Gem::Requirement
87
75
  none: false
88
- requirements:
76
+ requirements:
89
77
  - - ~>
90
- - !ruby/object:Gem::Version
91
- hash: 15
92
- segments:
93
- - 2
94
- - 6
95
- version: "2.6"
96
- requirement: *id005
97
- type: :runtime
78
+ - !ruby/object:Gem::Version
79
+ version: 1.1.1
80
+ - !ruby/object:Gem::Dependency
98
81
  name: right_support
82
+ requirement: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: '2.6'
88
+ type: :runtime
99
89
  prerelease: false
100
- - !ruby/object:Gem::Dependency
101
- version_requirements: &id006 !ruby/object:Gem::Requirement
90
+ version_requirements: !ruby/object:Gem::Requirement
102
91
  none: false
103
- requirements:
92
+ requirements:
104
93
  - - ~>
105
- - !ruby/object:Gem::Version
106
- hash: 3
107
- segments:
108
- - 2
109
- - 0
110
- version: "2.0"
111
- requirement: *id006
112
- type: :development
94
+ - !ruby/object:Gem::Version
95
+ version: '2.6'
96
+ - !ruby/object:Gem::Dependency
113
97
  name: rspec
114
- prerelease: false
115
- - !ruby/object:Gem::Dependency
116
- version_requirements: &id007 !ruby/object:Gem::Requirement
98
+ requirement: !ruby/object:Gem::Requirement
117
99
  none: false
118
- requirements:
100
+ requirements:
119
101
  - - ~>
120
- - !ruby/object:Gem::Version
121
- hash: 25
122
- segments:
123
- - 0
124
- - 9
125
- version: "0.9"
126
- requirement: *id007
102
+ - !ruby/object:Gem::Version
103
+ version: '2.0'
127
104
  type: :development
128
- name: flexmock
129
105
  prerelease: false
130
- - !ruby/object:Gem::Dependency
131
- version_requirements: &id008 !ruby/object:Gem::Requirement
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: '2.0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: flexmock
114
+ requirement: !ruby/object:Gem::Requirement
132
115
  none: false
133
- requirements:
116
+ requirements:
134
117
  - - ~>
135
- - !ruby/object:Gem::Version
136
- hash: 201
137
- segments:
138
- - 0
139
- - 97
140
- version: "0.97"
141
- requirement: *id008
118
+ - !ruby/object:Gem::Version
119
+ version: '0.9'
142
120
  type: :development
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ~>
126
+ - !ruby/object:Gem::Version
127
+ version: '0.9'
128
+ - !ruby/object:Gem::Dependency
143
129
  name: rtags
130
+ requirement: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ~>
134
+ - !ruby/object:Gem::Version
135
+ version: '0.97'
136
+ type: :development
144
137
  prerelease: false
145
- description: |
146
- RightScraper provides a simple interface to download and keep local copies of remote
147
- repositories up-to-date using the following protocols:
148
- * git: RightScraper will clone then pull repos from git
149
- * SVN: RightScraper will checkout then update SVN repositories
150
- * tarballs: RightScraper will download, optionally uncompress and expand a given tar file
151
- On top of retrieving remote repositories, right_scraper also include "scrapers" that
152
- will analyze the repository content and instantiate "resources" as a result. Currently
153
- supported resources are Chef cookbooks and RightScale workflow definitions.
154
-
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ~>
142
+ - !ruby/object:Gem::Version
143
+ version: '0.97'
144
+ description: ! "RightScraper provides a simple interface to download and keep local
145
+ copies of remote\nrepositories up-to-date using the following protocols:\n * git:
146
+ RightScraper will clone then pull repos from git\n * SVN: RightScraper will checkout
147
+ then update SVN repositories\n * tarballs: RightScraper will download, optionally
148
+ uncompress and expand a given tar file\nOn top of retrieving remote repositories,
149
+ right_scraper also include \"scrapers\" that\nwill analyze the repository content
150
+ and instantiate \"resources\" as a result. Currently\nsupported resources are Chef
151
+ cookbooks and RightScale workflow definitions.\n"
155
152
  email: raphael@rightscale.com
156
153
  executables: []
157
-
158
154
  extensions: []
159
-
160
- extra_rdoc_files:
155
+ extra_rdoc_files:
161
156
  - README.rdoc
162
- files:
157
+ files:
163
158
  - Gemfile
164
159
  - LICENSE
165
160
  - README.rdoc
@@ -237,46 +232,38 @@ files:
237
232
  - spec/svn/svn_retriever_spec_helper.rb
238
233
  - spec/svn/url_spec.rb
239
234
  - spec/url_spec.rb
240
- has_rdoc: true
241
235
  homepage: https://github.com/rightscale/right_scraper
242
236
  licenses: []
243
-
244
237
  post_install_message:
245
- rdoc_options:
238
+ rdoc_options:
246
239
  - --main
247
240
  - README.rdoc
248
241
  - --title
249
242
  - RightScraper
250
- require_paths:
243
+ require_paths:
251
244
  - lib
252
- required_ruby_version: !ruby/object:Gem::Requirement
245
+ required_ruby_version: !ruby/object:Gem::Requirement
253
246
  none: false
254
- requirements:
255
- - - ">="
256
- - !ruby/object:Gem::Version
257
- hash: 57
258
- segments:
259
- - 1
260
- - 8
261
- - 7
247
+ requirements:
248
+ - - ! '>='
249
+ - !ruby/object:Gem::Version
262
250
  version: 1.8.7
263
- required_rubygems_version: !ruby/object:Gem::Requirement
251
+ required_rubygems_version: !ruby/object:Gem::Requirement
264
252
  none: false
265
- requirements:
266
- - - ">="
267
- - !ruby/object:Gem::Version
268
- hash: 3
269
- segments:
253
+ requirements:
254
+ - - ! '>='
255
+ - !ruby/object:Gem::Version
256
+ version: '0'
257
+ segments:
270
258
  - 0
271
- version: "0"
272
- requirements:
259
+ hash: -1166164135191250403
260
+ requirements:
273
261
  - curl command line client
274
262
  - git command line client
275
263
  - Subversion command line client
276
264
  rubyforge_project: right_scraper
277
- rubygems_version: 1.3.7
265
+ rubygems_version: 1.8.26
278
266
  signing_key:
279
267
  specification_version: 3
280
268
  summary: Download and update remote repositories
281
269
  test_files: []
282
-