omnijack 0.1.1 → 0.1.2

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: 5638f033cac40057697fd82308130205bd707e4d
4
- data.tar.gz: e323ed7ecdcb6b3e2e6aec4efc0931a606c62201
3
+ metadata.gz: 4b2ea25f171c43615082dfb66ccd2bfd0f346a0e
4
+ data.tar.gz: d4de55724f7cb930ad934fb54e4fdd6a0f0d324a
5
5
  SHA512:
6
- metadata.gz: eaabc4a15602a381e633f609373bafd6e73f3c0a2cc6acd38e0fa6b97414cc2516fa95b5c19d5f2c8e3a2561b544d058c3aa3c64b52927f74dea34b6a0c977ee
7
- data.tar.gz: 6b446ddc2fa4ee35f7adde80f51341cf5ae020eb7967891028dd874490b4e0cae204cf4ccfecf121dbb0a52f31bd5b4a6731b7979e9777a04495d93c42545fea
6
+ metadata.gz: 190febeaa0f43effe2c66abe12531be60527a3a30331fc6e8d380bfaf7393ee70cf1b46a4f46df86f8a50b441565442bf0f15ea465b1280e13c95f38b70d0698
7
+ data.tar.gz: 647e33c31230fa4a2079da35dd1aff2ce70574ae1bc48d1518e54237e1fb97297f254d267f0f32d53796a68e6c68acbead9a0ee2551ff5a030d8b5c80c20e04c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Omnijack Gem CHANGELOG
2
2
  ======================
3
3
 
4
+ v0.1.2 (2014-09-17)
5
+ -------------------
6
+ - Fix encoding issue with incorrect filename for nightly build packages
7
+
4
8
  v0.1.1 (2014-09-12)
5
9
  -------------------
6
10
  - Don't load vendored Chef classes if Chef itself is already loaded
data/README.md CHANGED
@@ -86,6 +86,20 @@ Omnijack::Project::ChefDk.new(
86
86
  )
87
87
  ```
88
88
 
89
+ Getting the Chef project's list of packages:
90
+
91
+ ```ruby
92
+ list = Omnijack::Project::Chef.new.list
93
+ puts list.to_h
94
+ ```
95
+
96
+ Getting the Chef project's platform mappings:
97
+
98
+ ```ruby
99
+ platforms = Omnijack::Project::Chef.new.platforms
100
+ puts platforms.to_h
101
+ ```
102
+
89
103
  Getting AngryChef project data:
90
104
 
91
105
  ```ruby
@@ -7,7 +7,7 @@ Then(/^the metadata (has|doesn't have) a(n)? (\w+) attribute$/) do |has, _, a|
7
7
  when 'url'
8
8
  %r{^https://opscode-omnibus-packages\.s3\.amazonaws\.com.*$}
9
9
  when 'filename'
10
- /^[A-Za-z0-9_\.\-%]+\.(rpm|deb|pkg|msi)$/
10
+ /^[A-Za-z0-9_\.\-\+]+\.(rpm|deb|pkg|msi)$/
11
11
  when 'md5'
12
12
  /^\w{32}$/
13
13
  when 'sha256'
@@ -66,7 +66,7 @@ class Omnijack
66
66
  else line.split[1]
67
67
  end
68
68
  hsh[key] = val
69
- hsh[:filename] = val.split('/')[-1] if key == :url
69
+ hsh[:filename] = URI.decode(val).split('/')[-1] if key == :url
70
70
  end
71
71
  end
72
72
 
@@ -20,5 +20,5 @@
20
20
  #
21
21
  # @author Jonathan Hartman <j@p4nt5.com>
22
22
  class Omnijack
23
- VERSION = '0.1.1'
23
+ VERSION = '0.1.2'
24
24
  end
data/omnijack.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = %w(j@p4nt5.com)
12
12
  spec.summary = 'A pallet jack to unload data from the Omnitruck'
13
13
  spec.description = 'A pallet jack to unload data from the Omnitruck'
14
- spec.homepage = 'https://rubygems.org/gems/omnijack'
14
+ spec.homepage = 'https://github.com/RoboticCheese/omnijack-ruby'
15
15
  spec.license = 'Apache v2.0'
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0")
@@ -42,7 +42,7 @@ describe Omnijack::Config do
42
42
  # Some endpoints aren't available on Chef's public Omnitruck API
43
43
  if [:angry_chef, :chef_dk, :chef_container].include?(project) && \
44
44
  [:package_list, :platform_names].include?(name)
45
- expected = 404
45
+ expected = 301
46
46
  else
47
47
  expected = 200
48
48
  end
@@ -5,10 +5,10 @@
5
5
  "prerelease": false,
6
6
  "nightlies": false,
7
7
  "expected": {
8
- "url": "https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.2.1-1_amd64.deb",
9
- "filename": "chefdk_0.2.1-1_amd64.deb",
10
- "md5": "2decbcacd464371704f008380a876ef8",
11
- "sha256": "ec6f27af170e55d3510904f745d778bbf245dbd14034cacecf2aab8992936733"
8
+ "url": "https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.2.2-1_amd64.deb",
9
+ "filename": "chefdk_0.2.2-1_amd64.deb",
10
+ "md5": "1b097776840aa10f092063d1579bf155",
11
+ "sha256": "a6384851473779d3b0d0bedc509607b924751ea3b356e7df4b9c7ab16dd25788"
12
12
  }
13
13
  },
14
14
  {
@@ -36,95 +36,95 @@
36
36
  "prerelease": false,
37
37
  "nightlies": true,
38
38
  "expected": {
39
- "url": "https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.2.1%2B20140902085112-1_amd64.deb",
40
- "filename": "chefdk_0.2.1%2B20140902085112-1_amd64.deb",
41
- "md5": "c2cc9eea58e89609a37c0cea559ead02",
42
- "sha256": "f6a56d1f4f876bbe2509711b275e6b468ed0e48632b8c134f1e07280639c7983"
39
+ "url": "https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.2.2%2B20140917085111.git.23.997cf31-1_amd64.deb",
40
+ "filename": "chefdk_0.2.2+20140917085111.git.23.997cf31-1_amd64.deb",
41
+ "md5": "03af55494419a3b3b32617fb76141ffc",
42
+ "sha256": "e16c8d8cb594fe0fa82489d348af258f94e3e68ad8392bec31e3f12b5fd80285"
43
43
  }
44
44
  },
45
45
  {
46
46
  "platform": {"name": "ubuntu", "version": "13.10" },
47
- "version": "0.2.1",
47
+ "version": "0.2.2",
48
48
  "prerelease": false,
49
49
  "nightlies": false,
50
50
  "expected": {
51
- "url": "https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.2.1-1_amd64.deb",
52
- "filename": "chefdk_0.2.1-1_amd64.deb",
53
- "md5": "2decbcacd464371704f008380a876ef8",
54
- "sha256": "ec6f27af170e55d3510904f745d778bbf245dbd14034cacecf2aab8992936733"
51
+ "url": "https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.2.2-1_amd64.deb",
52
+ "filename": "chefdk_0.2.2-1_amd64.deb",
53
+ "md5": "1b097776840aa10f092063d1579bf155",
54
+ "sha256": "a6384851473779d3b0d0bedc509607b924751ea3b356e7df4b9c7ab16dd25788"
55
55
  }
56
56
  },
57
57
  {
58
58
  "platform": {"name": "mac_os_x", "version": "10.8" },
59
- "version": "0.2.1",
59
+ "version": "0.2.2",
60
60
  "prerelease": false,
61
61
  "nightlies": false,
62
62
  "expected": {
63
- "url": "https://opscode-omnibus-packages.s3.amazonaws.com/mac_os_x/10.8/x86_64/chefdk-0.2.1-1.dmg",
64
- "filename": "chefdk-0.2.1-1.dmg",
65
- "md5": "4374d8f8f290b3efab6d02b5cedb48d7",
66
- "sha256": "d4a6023e21c2c3cfb6773382ae7d6111e2de44ac1064aa2b1c0faddcd3bc1d13"
63
+ "url": "https://opscode-omnibus-packages.s3.amazonaws.com/mac_os_x/10.8/x86_64/chefdk-0.2.2-1.dmg",
64
+ "filename": "chefdk-0.2.2-1.dmg",
65
+ "md5": "2d0d8881ef6b0cdcbaedfacac2d5129d",
66
+ "sha256": "4922390a2dc08c26947fe8ed94a3a1777bd820e0e409e4072b2fb1315f4425d5"
67
67
  }
68
68
  },
69
69
  {
70
70
  "platform": {"name": "mac_os_x", "version": "10.9" },
71
- "version": "0.2.1",
71
+ "version": "0.2.2",
72
72
  "prerelease": false,
73
73
  "nightlies": false,
74
74
  "expected": {
75
- "url": "https://opscode-omnibus-packages.s3.amazonaws.com/mac_os_x/10.8/x86_64/chefdk-0.2.1-1.dmg",
76
- "filename": "chefdk-0.2.1-1.dmg",
77
- "md5": "4374d8f8f290b3efab6d02b5cedb48d7",
78
- "sha256": "d4a6023e21c2c3cfb6773382ae7d6111e2de44ac1064aa2b1c0faddcd3bc1d13"
75
+ "url": "https://opscode-omnibus-packages.s3.amazonaws.com/mac_os_x/10.8/x86_64/chefdk-0.2.2-1.dmg",
76
+ "filename": "chefdk-0.2.2-1.dmg",
77
+ "md5": "2d0d8881ef6b0cdcbaedfacac2d5129d",
78
+ "sha256": "4922390a2dc08c26947fe8ed94a3a1777bd820e0e409e4072b2fb1315f4425d5"
79
79
  }
80
80
  },
81
81
  {
82
82
  "platform": {"name": "centos", "version": "6.5" },
83
- "version": "0.2.1",
83
+ "version": "0.2.2",
84
84
  "prerelease": false,
85
85
  "nightlies": false,
86
86
  "expected": {
87
- "url": "https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.2.1-1.el6.x86_64.rpm",
88
- "filename": "chefdk-0.2.1-1.el6.x86_64.rpm",
89
- "md5": "feb2e06fdecae3bae79f8ec8d32d6ab6",
90
- "sha256": "afd487ab6f0cd0286a0a3d2808a041c784c064eddb6193d688edfb6741065b56"
87
+ "url": "https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.2.2-1.x86_64.rpm",
88
+ "filename": "chefdk-0.2.2-1.x86_64.rpm",
89
+ "md5": "5da3f329f7e6d51e778212dea4dae73f",
90
+ "sha256": "2bc4c5c6f82ee7abed385d837e526fd40777ddc47ad939e4f3ecea625b43a245"
91
91
  }
92
92
  },
93
93
  {
94
94
  "platform": {"name": "centos", "version": "7.0" },
95
- "version": "0.2.1",
95
+ "version": "0.2.2",
96
96
  "prerelease": false,
97
97
  "nightlies": false,
98
98
  "expected": {
99
- "url": "https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.2.1-1.el6.x86_64.rpm",
100
- "filename": "chefdk-0.2.1-1.el6.x86_64.rpm",
101
- "md5": "feb2e06fdecae3bae79f8ec8d32d6ab6",
102
- "sha256": "afd487ab6f0cd0286a0a3d2808a041c784c064eddb6193d688edfb6741065b56",
99
+ "url": "https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.2.2-1.x86_64.rpm",
100
+ "filename": "chefdk-0.2.2-1.x86_64.rpm",
101
+ "md5": "5da3f329f7e6d51e778212dea4dae73f",
102
+ "sha256": "2bc4c5c6f82ee7abed385d837e526fd40777ddc47ad939e4f3ecea625b43a245",
103
103
  "yolo": true
104
104
  }
105
105
  },
106
106
  {
107
107
  "platform": {"name": "windows", "version": "2008r2" },
108
- "version": "0.2.1",
108
+ "version": "0.2.2",
109
109
  "prerelease": false,
110
110
  "nightlies": false,
111
111
  "expected": {
112
- "url": "https://opscode-omnibus-packages.s3.amazonaws.com/windows/2008r2/x86_64/chefdk-windows-0.2.1-1.windows.msi",
113
- "filename": "chefdk-windows-0.2.1-1.windows.msi",
114
- "md5": "218a9d79bcea5c2f8493cd6b7f020224",
115
- "sha256": "acdb91228d21dca93d3c67f70f8f7580522e78aaaced2a9f7bf8f2c19e5864d6"
112
+ "url": "https://opscode-omnibus-packages.s3.amazonaws.com/windows/2008r2/x86_64/chefdk-0.2.2-1.msi",
113
+ "filename": "chefdk-0.2.2-1.msi",
114
+ "md5": "21f9af35451a0116b72531f06e93eb05",
115
+ "sha256": "76038621bad5333b9ceee4dc32325cf2a880fa69ef64a9225d91ab1788c37a53"
116
116
  }
117
117
  },
118
118
  {
119
119
  "platform": {"name": "windows", "version": "2012" },
120
- "version": "0.2.1",
120
+ "version": "0.2.2",
121
121
  "prerelease": false,
122
122
  "nightlies": false,
123
123
  "expected": {
124
- "url": "https://opscode-omnibus-packages.s3.amazonaws.com/windows/2008r2/x86_64/chefdk-windows-0.2.1-1.windows.msi",
125
- "filename": "chefdk-windows-0.2.1-1.windows.msi",
126
- "md5": "218a9d79bcea5c2f8493cd6b7f020224",
127
- "sha256": "acdb91228d21dca93d3c67f70f8f7580522e78aaaced2a9f7bf8f2c19e5864d6",
124
+ "url": "https://opscode-omnibus-packages.s3.amazonaws.com/windows/2008r2/x86_64/chefdk-0.2.2-1.msi",
125
+ "filename": "chefdk-0.2.2-1.msi",
126
+ "md5": "21f9af35451a0116b72531f06e93eb05",
127
+ "sha256": "76038621bad5333b9ceee4dc32325cf2a880fa69ef64a9225d91ab1788c37a53",
128
128
  "yolo": true
129
129
  }
130
130
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnijack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Hartman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-12 00:00:00.000000000 Z
11
+ date: 2014-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ohai
@@ -227,7 +227,7 @@ files:
227
227
  - vendor/chef/NOTICE
228
228
  - vendor/chef/lib/chef/exceptions.rb
229
229
  - vendor/chef/lib/chef/mixin/params_validate.rb
230
- homepage: https://rubygems.org/gems/omnijack
230
+ homepage: https://github.com/RoboticCheese/omnijack-ruby
231
231
  licenses:
232
232
  - Apache v2.0
233
233
  metadata: {}