pkgwat 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9a1b8484453c63b829a0089c912d41037fffb70c
4
+ data.tar.gz: f3b52ad6fc53ae81123097c344c242e8fadffde9
5
+ SHA512:
6
+ metadata.gz: 8c9d5b7820e30dadcc8ae2c84147661a3b6c6bc81bc7d7bdb66a07886b61a0f55cfc9ec696fa2b773d73fce9ed9c180197e7da40fd4a7a641abb91c0a81a0812
7
+ data.tar.gz: 55096887efef61336a4cab94eb114c104caef9f8c099a72fad0fafbde47334b524365e44f6203966332602c95e48746b4be390fa089675f2d27fc064d88abf77
@@ -1 +1 @@
1
- ruby-1.9.3-p448
1
+ 2.4.0
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.9.3
4
+ - 2.4.0
5
5
 
6
6
  branches:
7
7
  only:
@@ -15,8 +15,8 @@ module Pkgwat
15
15
  CONTENT_URL = "https://apps.fedoraproject.org/packages/fcomm_connector/yum/get_file_tree"
16
16
  UPDATES_URL = "https://apps.fedoraproject.org/packages/fcomm_connector/bodhi/query/query_updates"
17
17
  KOJI_BUILD_STATES = ["all" => "", "f19" =>"19", "f18" => "18", "f20" => "20", "e16" => "16", "e15" => "15"]
18
- BUGZILLA_RELEASEA = ["all" => "", "building" =>"0", "success" => "1", "failed" => "2", "cancelled" => "3", "deleted" => "4"]
19
- BODHI_REALEASE = ["all", "f19", "f18", "f20", "e16", "e15"]
18
+ BUGZILLA_RELEASE = ["all" => "", "building" =>"0", "success" => "1", "failed" => "2", "cancelled" => "3", "deleted" => "4"]
19
+ BODHI_RELEASE = ["all", "f19", "f18", "f20", "e16", "e15"]
20
20
  BODHI_ARCH = ["x86_64", "i686"]
21
21
 
22
22
  class << self
@@ -70,25 +70,25 @@ module Pkgwat
70
70
  # this function just queries for and returns a single package
71
71
  def self.get_package(pattern)
72
72
  get_packages(pattern, 0, 1).first
73
- end
73
+ end
74
74
 
75
75
  #this function queries for and returns a list of then open BUGS
76
76
  def self.get_bugs(pattern, version='all', num=nil, start =0)
77
- if BUGZILLA_RELEASEA[0][version].nil?
78
- version = BUGZILLA_RELEASEA[0]['all']
77
+ if BUGZILLA_RELEASE[0][version].nil?
78
+ version = BUGZILLA_RELEASE[0]['all']
79
79
  else
80
- version = BUGZILLA_RELEASEA[0][version]
80
+ version = BUGZILLA_RELEASE[0][version]
81
81
  end
82
82
  num ||= total_rows(pattern, "bugs", BUGS_URL)
83
83
 
84
84
  query = {"filters"=> {"package"=> pattern, "version"=> version}, "rows_per_page"=> num, "start_row"=> start}
85
85
  url = BUGS_URL + "/" + query.to_json
86
- uri = URI.parse(URI.escape(url))
86
+ uri = URI.parse(URI.escape(url))
87
87
  response = submit_request(uri)
88
- parse_results(response.body)
88
+ parse_results(response.body)
89
89
  end
90
90
 
91
- #this function queries for and returns a list of the BUILDS
91
+ #this function queries for and returns a list of the BUILDS
92
92
  def self.get_builds(pattern, state='all', num=nil, start =0)
93
93
  if KOJI_BUILD_STATES[0][state].nil?
94
94
  state = KOJI_BUILD_STATES[0]['all']
@@ -117,7 +117,7 @@ module Pkgwat
117
117
  if !BODHI_ARCH.include? arch
118
118
  return "Invalid yum arch."
119
119
  end
120
- if !BODHI_REALEASE.include? release
120
+ if !BODHI_RELEASE.include? release
121
121
  return "Invalid bodhi release."
122
122
  end
123
123
  url = CONTENT_URL + "?package=#{pattern}&arch=#{arch}&repo=#{release}"
@@ -137,10 +137,10 @@ module Pkgwat
137
137
 
138
138
  def self.get_updates(pattern, status, release, num=nil, start=0)
139
139
  num ||= total_rows(pattern, "updates", UPDATES_URL)
140
- if !BODHI_REALEASE.include? status
140
+ if !BODHI_RELEASE.include? status
141
141
  return "Invalid bodhi state."
142
142
  end
143
- if !BODHI_REALEASE.include? release
143
+ if !BODHI_RELEASE.include? release
144
144
  return "Invalid bodhi release."
145
145
  end
146
146
  if status == "all"
@@ -195,7 +195,7 @@ module Pkgwat
195
195
  query = {"rows_per_page"=> 10, "start_row"=> 0, "filters"=> {"package"=> pattern, "release" => "all", "state"=> "all"}}
196
196
  end
197
197
  url = type_url + "/" + query.to_json
198
- uri = URI.parse(URI.escape(url))
198
+ uri = URI.parse(URI.escape(url))
199
199
  response = submit_request(uri)
200
200
  JSON.parse(response.body)["total_rows"]
201
201
  end
@@ -1,3 +1,3 @@
1
1
  module Pkgwat
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -8,23 +8,24 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["David Davis"]
9
9
  s.email = ["daviddavis@redhat.com"]
10
10
  s.homepage = "https://github.com/daviddavis/pkgwat"
11
- s.summary = %q{pkgwat checks your gems to against Fedora/EPEL.}
11
+ s.summary = %q{pkgwat checks your gems against Fedora/EPEL.}
12
12
  s.description = %q{pkgwat checks your Gemfile.lock to make sure all your gems
13
13
  are packaged in Fedora/EPEL. Eventually we hope to support
14
14
  Gemfiles and bundle list as well.}
15
15
 
16
16
  s.rubyforge_project = "pkgwat"
17
17
 
18
+ s.required_ruby_version = '~> 2.0'
19
+
18
20
  s.add_dependency("nokogiri", "~> 1.4")
19
21
  s.add_dependency("rake")
20
- s.add_dependency("thor")
21
- s.add_dependency("json", "~> 1.4")
22
+ s.add_dependency("json", ">= 1.7")
22
23
  s.add_dependency("sanitize")
23
24
 
24
25
  s.add_development_dependency("vcr", "~> 2.4.0")
25
26
  s.add_development_dependency("webmock", "~> 1.9.0")
26
27
  s.add_development_dependency("minitest", "~> 4.4")
27
- s.add_development_dependency("debugger")
28
+ s.add_development_dependency("byebug")
28
29
 
29
30
  s.files = `git ls-files`.split("\n")
30
31
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,173 +1,141 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkgwat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Davis
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-13 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.4'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.4'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: thor
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
38
+ - - ">="
60
39
  - !ruby/object:Gem::Version
61
40
  version: '0'
62
41
  - !ruby/object:Gem::Dependency
63
42
  name: json
64
43
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
44
  requirements:
67
- - - ~>
45
+ - - ">="
68
46
  - !ruby/object:Gem::Version
69
- version: '1.4'
47
+ version: '1.7'
70
48
  type: :runtime
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
- - - ~>
52
+ - - ">="
76
53
  - !ruby/object:Gem::Version
77
- version: '1.4'
54
+ version: '1.7'
78
55
  - !ruby/object:Gem::Dependency
79
56
  name: sanitize
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
- - - ! '>='
59
+ - - ">="
84
60
  - !ruby/object:Gem::Version
85
61
  version: '0'
86
62
  type: :runtime
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
- - - ! '>='
66
+ - - ">="
92
67
  - !ruby/object:Gem::Version
93
68
  version: '0'
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: vcr
96
71
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
72
  requirements:
99
- - - ~>
73
+ - - "~>"
100
74
  - !ruby/object:Gem::Version
101
75
  version: 2.4.0
102
76
  type: :development
103
77
  prerelease: false
104
78
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
79
  requirements:
107
- - - ~>
80
+ - - "~>"
108
81
  - !ruby/object:Gem::Version
109
82
  version: 2.4.0
110
83
  - !ruby/object:Gem::Dependency
111
84
  name: webmock
112
85
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
86
  requirements:
115
- - - ~>
87
+ - - "~>"
116
88
  - !ruby/object:Gem::Version
117
89
  version: 1.9.0
118
90
  type: :development
119
91
  prerelease: false
120
92
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
93
  requirements:
123
- - - ~>
94
+ - - "~>"
124
95
  - !ruby/object:Gem::Version
125
96
  version: 1.9.0
126
97
  - !ruby/object:Gem::Dependency
127
98
  name: minitest
128
99
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
100
  requirements:
131
- - - ~>
101
+ - - "~>"
132
102
  - !ruby/object:Gem::Version
133
103
  version: '4.4'
134
104
  type: :development
135
105
  prerelease: false
136
106
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
107
  requirements:
139
- - - ~>
108
+ - - "~>"
140
109
  - !ruby/object:Gem::Version
141
110
  version: '4.4'
142
111
  - !ruby/object:Gem::Dependency
143
- name: debugger
112
+ name: byebug
144
113
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
114
  requirements:
147
- - - ! '>='
115
+ - - ">="
148
116
  - !ruby/object:Gem::Version
149
117
  version: '0'
150
118
  type: :development
151
119
  prerelease: false
152
120
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
121
  requirements:
155
- - - ! '>='
122
+ - - ">="
156
123
  - !ruby/object:Gem::Version
157
124
  version: '0'
158
- description: ! "pkgwat checks your Gemfile.lock to make sure all your gems\n are
159
- packaged in Fedora/EPEL. Eventually we hope to support\n Gemfiles
160
- and bundle list as well."
125
+ description: |-
126
+ pkgwat checks your Gemfile.lock to make sure all your gems
127
+ are packaged in Fedora/EPEL. Eventually we hope to support
128
+ Gemfiles and bundle list as well.
161
129
  email:
162
130
  - daviddavis@redhat.com
163
131
  executables: []
164
132
  extensions: []
165
133
  extra_rdoc_files: []
166
134
  files:
167
- - .gitignore
168
- - .ruby-gemset
169
- - .ruby-version
170
- - .travis.yml
135
+ - ".gitignore"
136
+ - ".ruby-gemset"
137
+ - ".ruby-version"
138
+ - ".travis.yml"
171
139
  - Gemfile
172
140
  - LICENSE
173
141
  - README.md
@@ -182,28 +150,27 @@ files:
182
150
  - test/test_helper.rb
183
151
  homepage: https://github.com/daviddavis/pkgwat
184
152
  licenses: []
153
+ metadata: {}
185
154
  post_install_message:
186
155
  rdoc_options: []
187
156
  require_paths:
188
157
  - lib
189
158
  required_ruby_version: !ruby/object:Gem::Requirement
190
- none: false
191
159
  requirements:
192
- - - ! '>='
160
+ - - "~>"
193
161
  - !ruby/object:Gem::Version
194
- version: '0'
162
+ version: '2.0'
195
163
  required_rubygems_version: !ruby/object:Gem::Requirement
196
- none: false
197
164
  requirements:
198
- - - ! '>='
165
+ - - ">="
199
166
  - !ruby/object:Gem::Version
200
167
  version: '0'
201
168
  requirements: []
202
169
  rubyforge_project: pkgwat
203
- rubygems_version: 1.8.25
170
+ rubygems_version: 2.6.10
204
171
  signing_key:
205
- specification_version: 3
206
- summary: pkgwat checks your gems to against Fedora/EPEL.
172
+ specification_version: 4
173
+ summary: pkgwat checks your gems against Fedora/EPEL.
207
174
  test_files:
208
175
  - test/fixtures/vcr/pkgwat_check_gem.yml
209
176
  - test/pkgwat_test.rb