lapis-minecraft-versioning 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fe1219f00dea98ce8e396a939ccf023f4f6d412
4
- data.tar.gz: 4cf496cc2d864e771e584ed1edafca65c08928f1
3
+ metadata.gz: d147548434ed958ccd507bf3f974c397e11558cb
4
+ data.tar.gz: ed082fbd9e27220dfb2c84fbe28efd8f7c7eed17
5
5
  SHA512:
6
- metadata.gz: 4e40c8f79903f2d489f26874245774d5d76ef3d3bee27650a69824fa0e09f6cd4f60017af87198cf022e0b5024cbf20c9f8bbebe668313707121087dd735b67c
7
- data.tar.gz: fa3aa2d4359dc5a5de4d1456edba4aaa3451faa698daef581573a4ace4bedcfc630995e922078b258dd9c556ad926f2e647feb2dc001409b4c547401d3a08242
6
+ metadata.gz: 2605eb26e8fd663ce625a064a6c1d574fd11cfd5d8459ec141a81c3bf50efcfd4bc00e42917fa912585a33eb933086dce140e95d958f8e22dc4d06cf787cf764
7
+ data.tar.gz: 4a5d39bc8fb2fd4745706cd1530e283cb24eb924d58a36034e4c1902c95fbefbc8fae1e6a4695091418d62e42e53299e5831989c4c11bc31dccde412bb49ef61
File without changes
data/bin/setup CHANGED
File without changes
@@ -1,7 +1,7 @@
1
1
  module Lapis
2
2
  module Minecraft
3
3
  module Versioning
4
- VERSION = '0.6.2'
4
+ VERSION = '0.6.3'
5
5
  end
6
6
  end
7
7
  end
@@ -16,6 +16,26 @@ FactoryGirl.define do
16
16
  paths { build_list(:library_path, exclude_path_count) }
17
17
  end
18
18
 
19
+ trait :generic do
20
+ resources { build(:resource_set, :generic) }
21
+ rules { [] }
22
+ end
23
+
24
+ trait :windows do
25
+ resources { build(:resource_set, :windows) }
26
+ rules { [build(:os_rule, :windows, :no_version)] }
27
+ end
28
+
29
+ trait :linux do
30
+ resources { build(:resource_set, :linux) }
31
+ rules { [build(:os_rule, :linux, :no_version)] }
32
+ end
33
+
34
+ trait :osx do
35
+ resources { build(:resource_set, :osx) }
36
+ rules { [build(:os_rule, :osx, :no_version)] }
37
+ end
38
+
19
39
  initialize_with { new(name, resources, rules, paths) }
20
40
  end
21
41
  end
@@ -11,6 +11,31 @@ FactoryGirl.define do
11
11
  resources { [artifact, windows, linux, osx] }
12
12
  end
13
13
 
14
+ trait :generic do
15
+ resources { [artifact] }
16
+ windows_classifier nil
17
+ linux_classifier nil
18
+ osx_classifier nil
19
+ end
20
+
21
+ trait :windows do
22
+ resources { [windows, artifact] }
23
+ linux_classifier nil
24
+ osx_classifier nil
25
+ end
26
+
27
+ trait :linux do
28
+ resources { [linux, artifact] }
29
+ windows_classifier nil
30
+ osx_classifier nil
31
+ end
32
+
33
+ trait :osx do
34
+ resources { [osx, artifact] }
35
+ windows_classifier nil
36
+ linux_classifier nil
37
+ end
38
+
14
39
  initialize_with { new(resources, windows_classifier, linux_classifier, osx_classifier) }
15
40
  end
16
41
  end
@@ -70,6 +70,7 @@ RSpec.describe Lapis::Minecraft::Versioning::CLI do
70
70
 
71
71
  context 'with release type' do
72
72
  let(:argv) { %w(list release) }
73
+ let(:other_versions) { snapshots + betas + alphas }
73
74
 
74
75
  it 'outputs all release versions' do
75
76
  regexp = any_order_regexp(releases.map(&:id))
@@ -77,14 +78,14 @@ RSpec.describe Lapis::Minecraft::Versioning::CLI do
77
78
  end
78
79
 
79
80
  it 'does not output non-release versions' do
80
- versions = snapshots + betas + alphas
81
- regexp = any_order_regexp(versions.map(&:id))
81
+ regexp = any_order_regexp(other_versions.map(&:id))
82
82
  expect { cli }.to_not output(regexp).to_stdout
83
83
  end
84
84
  end
85
85
 
86
86
  context 'with snapshot type' do
87
87
  let(:argv) { %w(list snapshot) }
88
+ let(:other_versions) { releases + betas + alphas }
88
89
 
89
90
  it 'outputs all snapshot versions' do
90
91
  regexp = any_order_regexp(snapshots.map(&:id))
@@ -92,14 +93,14 @@ RSpec.describe Lapis::Minecraft::Versioning::CLI do
92
93
  end
93
94
 
94
95
  it 'does not output non-snapshot versions' do
95
- versions = releases + betas + alphas
96
- regexp = any_order_regexp(versions.map(&:id))
96
+ regexp = any_order_regexp(other_versions.map(&:id))
97
97
  expect { cli }.to_not output(regexp).to_stdout
98
98
  end
99
99
  end
100
100
 
101
101
  context 'with beta type' do
102
102
  let(:argv) { %w(list beta) }
103
+ let(:other_versions) { releases + snapshots + alphas }
103
104
 
104
105
  it 'outputs all beta versions' do
105
106
  regexp = any_order_regexp(betas.map(&:id))
@@ -107,14 +108,14 @@ RSpec.describe Lapis::Minecraft::Versioning::CLI do
107
108
  end
108
109
 
109
110
  it 'does not output non-beta versions' do
110
- versions = releases + snapshots + alphas
111
- regexp = any_order_regexp(versions.map(&:id))
111
+ regexp = any_order_regexp(other_versions.map(&:id))
112
112
  expect { cli }.to_not output(regexp).to_stdout
113
113
  end
114
114
  end
115
115
 
116
116
  context 'with alpha type' do
117
117
  let(:argv) { %w(list alpha) }
118
+ let(:other_versions) { releases + snapshots + betas }
118
119
 
119
120
  it 'outputs all alpha versions' do
120
121
  regexp = any_order_regexp(alphas.map(&:id))
@@ -122,8 +123,7 @@ RSpec.describe Lapis::Minecraft::Versioning::CLI do
122
123
  end
123
124
 
124
125
  it 'does not output non-release versions' do
125
- versions = releases + snapshots + betas
126
- regexp = any_order_regexp(versions.map(&:id))
126
+ regexp = any_order_regexp(other_versions.map(&:id))
127
127
  expect { cli }.to_not output(regexp).to_stdout
128
128
  end
129
129
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lapis-minecraft-versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Miller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-07 00:00:00.000000000 Z
11
+ date: 2016-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
264
  version: '0'
265
265
  requirements: []
266
266
  rubyforge_project:
267
- rubygems_version: 2.5.1
267
+ rubygems_version: 2.4.8
268
268
  signing_key:
269
269
  specification_version: 4
270
270
  summary: Retrieves and processes information about versions of Minecraft.