timewizard 0.3.4.pre.alpha.pre.78 → 0.3.4.pre.alpha.pre.79

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDQxZmVlMjE1MTJmYTUzNDliNmZlNGQ0MzU5YTRhZDBhODFkZmI3NA==
4
+ ODE5NTFmMzAyYmE5MmUwMmU4ZjJiMmNjOTk1YmZjOTVkMjRhZGVjMA==
5
5
  data.tar.gz: !binary |-
6
- YWMxOTI0YzUwZTRlZWNhYzJkMGU1MTVkY2Q3ZTk1OGM5ZTRhZTFmZg==
6
+ YzcxYTI5N2U5YmU2MTFmMmU5ZjA4ZjhiN2YxYzY5ZTJlMGNkZjI3Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmFlYTVmYjRjZjZlYzU3MDI4ZGJiMmFiZDI2Mzg0ZGY4MjQ1N2U4YTExMWVi
10
- ZDJmOGRiNzZiNGFmMmVhYzAyZjc5ZjFmNmQ4NDE2YjVhNWZkMDMyZGE0MjU4
11
- NWZkMzZjZTZmMTkyNmIxOTg0MTIzMjIwZjVlYzcyMjVhZTFjZmE=
9
+ MTVlNDE1NGY3MTU0YzgwYzk3Yjc1NzQyYTkzN2Q5M2M5MGQxOGM0NDk3NWRk
10
+ NmU3MjAyOWZlMTVmMzgyMTU5YTIxNjhhNmE1ZTQxYTZjMzRmNzA1Y2VlY2M3
11
+ MWRhMmRlZThkZjhkYmMwOTc2ODM1MTAzZWY3YWU4MjZmYzA5Nzk=
12
12
  data.tar.gz: !binary |-
13
- ODhhYWYwZWYzMmRjZWM0MjFjMzQ2MGE2YTQ3ZmIwYTZjOGE3Y2E5OTE5MzI4
14
- NGYyYjRjZjI5NmY5MDEyYmRmZmM5Mjk1MTEwMzcxYWY2M2JhYmFiNzFhYTdm
15
- MjE2YTYzNmJhMTM3MGI5OTAyZmFiODUyNDZiODg5YTEwMTA2Yjc=
13
+ Njk1YmRjYjgxNzg2ODdjZmNmMDFiNGY2NzBlYzk5NDlhMDhkNGE4NmI4NDhj
14
+ NTQwZGIxMDQ1MGE4OTQ5YzNjOTI1YTY1NTc1ODZlYmMyYmQ3YThhZjNiYjRk
15
+ ZjI4ODM3Y2M0OWMxNTlkNjAwMzkxOTI0ODkyMzgxMGMzNGEzNzA=
data/timewizard.gemspec CHANGED
@@ -1,10 +1,10 @@
1
1
  # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'timewizard/version'
2
5
 
3
6
  Gem::Specification.new do |gem|
4
7
  gem.name = 'timewizard'
5
- lib_dir = File.join(File.dirname(__FILE__), 'lib')
6
- $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
7
- require 'timewizard/version'
8
8
  gem.version = Timewizard::VERSION
9
9
  if ENV.fetch('TRAVIS_BRANCH', 'development') != 'master'
10
10
  gem.version = "#{gem.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}"
@@ -19,8 +19,10 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  glob = lambda { |patterns| gem.files & Dir[*patterns] }
21
21
 
22
- gem.files = `git ls-files`.split($/)
23
-
22
+ gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ gem.require_paths = ['lib']
24
+ gem.bindir = 'exe'
25
+ gem.executables = gem.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
26
  gem.test_files = glob['{spec/{**/}*_spec.rb']
25
27
  gem.extra_rdoc_files = glob['*.{txt,rdoc}']
26
28
 
@@ -32,5 +34,6 @@ Gem::Specification.new do |gem|
32
34
  gem.add_development_dependency 'rspec', '~> 3.3'
33
35
  gem.add_development_dependency 'yard', '~> 0.8'
34
36
  gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
37
+ gem.add_development_dependency 'gem-release', '~> 0.7'
35
38
  gem.add_development_dependency 'abide', '0.0.3'
36
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timewizard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4.pre.alpha.pre.78
4
+ version: 0.3.4.pre.alpha.pre.79
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Harrah
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: versionomy
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.4'
111
+ - !ruby/object:Gem::Dependency
112
+ name: gem-release
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '0.7'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: '0.7'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: abide
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -166,12 +180,6 @@ files:
166
180
  - resources/apple/TestApp/TestAppTests/Info.plist
167
181
  - resources/apple/TestApp/TestAppTests/TestAppTests.m
168
182
  - scripts/gemnasium_update.rb
169
- - spec/spec_helper.rb
170
- - spec/timewizard_spec.rb
171
- - spec/utils/wizardry_spec.rb
172
- - spec/versioner/android_spec.rb
173
- - spec/versioner/apple_spec.rb
174
- - spec/versioner_spec.rb
175
183
  - timewizard.gemspec
176
184
  homepage: https://nunnery.github.io/timewizard
177
185
  licenses:
data/spec/spec_helper.rb DELETED
@@ -1,33 +0,0 @@
1
- require 'timewizard'
2
- require 'codeclimate-test-reporter'
3
- CodeClimate::TestReporter.start
4
-
5
- RSpec.configure do |config|
6
-
7
- config.expect_with :rspec do |expectations|
8
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
9
- end
10
-
11
- config.mock_with :rspec do |mocks|
12
- mocks.verify_partial_doubles = true
13
- end
14
-
15
- config.filter_run :focus
16
- config.run_all_when_everything_filtered = true
17
-
18
- config.example_status_persistence_file_path = "spec/examples.txt"
19
-
20
- config.disable_monkey_patching!
21
-
22
- config.warnings = true
23
-
24
- if config.files_to_run.one?
25
- config.default_formatter = 'doc'
26
- end
27
-
28
- config.profile_examples = 10
29
-
30
- config.order = :random
31
-
32
- Kernel.srand config.seed
33
- end
@@ -1,5 +0,0 @@
1
- RSpec.describe Timewizard do
2
- it 'should have a VERSION constant' do
3
- expect(Timewizard::VERSION).to_not be_nil
4
- end
5
- end
@@ -1,36 +0,0 @@
1
- require 'timewizard/utils/wizardry'
2
-
3
- RSpec.describe 'Timewizard::Utils::Wizardry' do
4
- context '.only_version' do
5
- it 'should raise an error when arg is nil' do
6
- expect { Timewizard::Utils::Wizardry.only_version nil }.to raise_error('stringy cannot be null')
7
- end
8
-
9
- it 'should return the same value when given a proper version number' do
10
- base = '0.0.1'
11
-
12
- expected = '0.0.1'
13
- actual = Timewizard::Utils::Wizardry.only_version base
14
-
15
- expect(actual).to eq(expected)
16
- end
17
-
18
- it 'should return a version number when given a text string containing a version number' do
19
- base = 'this is version 0.0.1'
20
-
21
- expected = '0.0.1'
22
- actual = Timewizard::Utils::Wizardry.only_version base
23
-
24
- expect(actual).to eq(expected)
25
- end
26
-
27
- it 'should return a version number when version number is in the middle of the string' do
28
- base = 'this, 0.0.1, is the version being test'
29
-
30
- expected = '0.0.1'
31
- actual = Timewizard::Utils::Wizardry.only_version base
32
-
33
- expect(actual).to eq(expected)
34
- end
35
- end
36
- end
@@ -1,158 +0,0 @@
1
- require 'timewizard/versioner/android'
2
-
3
- RSpec.describe 'Timewizard::Versioner::Android' do
4
-
5
- before(:example) do
6
- pwd = Dir.pwd.to_s
7
-
8
- FileUtils.rm_rf Dir["#{pwd}/tmp"]
9
- FileUtils.rm_rf Dir["#{pwd}/pkg"]
10
-
11
- pwd = Dir.pwd.to_s
12
- FileUtils.cp_r("#{pwd}/resources/.", "#{pwd}/tmp")
13
-
14
- @versioner = Timewizard::Versioner::Android.new "#{pwd}/tmp/android/AndroidManifest.xml"
15
- end
16
-
17
- context '.new' do
18
- it 'should raise error if arg is nil' do
19
- expect { Timewizard::Versioner::Android.new nil }.to raise_error("passed in file cannot be nil")
20
- end
21
-
22
- it 'should not raise error if arg is not nil' do
23
- expect { Timewizard::Versioner::Android.new '' }.not_to raise_error
24
- end
25
- end
26
-
27
- context '#file' do
28
- it 'should be an AndroidManifest.xml' do
29
- expect(@versioner.file).to eq("#{Dir.pwd.to_s}/tmp/android/AndroidManifest.xml")
30
- end
31
- end
32
-
33
- context '#old_build_number' do
34
- it 'should be nil' do
35
- expect(@versioner.old_build_number).to be_nil
36
- end
37
- end
38
-
39
- context '#old_version_number' do
40
- it 'should be nil' do
41
- expect(@versioner.old_version_number).to be_nil
42
- end
43
- end
44
-
45
- context '#new_build_number' do
46
- it 'should be nil' do
47
- expect(@versioner.new_build_number).to be_nil
48
- end
49
- end
50
-
51
- context '#new_build_number=' do
52
- it 'should change instance variable' do
53
- @versioner.new_build_number = '1'
54
- expect(@versioner.new_build_number).not_to be_nil
55
- @versioner.new_build_number = nil
56
- expect(@versioner.new_build_number).to be_nil
57
- end
58
- end
59
-
60
- context '#new_version_number' do
61
- it 'should be nil' do
62
- expect(@versioner.new_version_number).to be_nil
63
- end
64
- end
65
-
66
- context '#new_version_number=' do
67
- it 'should change instance variable' do
68
- @versioner.new_version_number = '1'
69
- expect(@versioner.new_version_number).not_to be_nil
70
- @versioner.new_version_number = nil
71
- expect(@versioner.new_version_number).to be_nil
72
- end
73
- end
74
-
75
- context '#read_build_numbers' do
76
- it 'should not raise an error' do
77
- expect { @versioner.read_build_numbers }.to_not raise_error
78
- end
79
-
80
- it 'should change instance variables' do
81
- expect(@versioner.old_build_number).to be_nil
82
- expect(@versioner.new_build_number).to be_nil
83
- @versioner.read_build_numbers
84
- expect(@versioner.old_build_number).to eq('200')
85
- expect(@versioner.new_build_number).to eq('201')
86
- end
87
- end
88
-
89
- context '#read_version_numbers' do
90
- it 'should not raise an error' do
91
- expect { @versioner.read_version_numbers }.to_not raise_error
92
- end
93
-
94
- it 'should change instance variables' do
95
- expect(@versioner.old_version_number).to be_nil
96
- expect(@versioner.new_version_number).to be_nil
97
- @versioner.read_version_numbers
98
- expect(@versioner.old_version_number).to eq('0.0.1')
99
- expect(@versioner.new_version_number).to eq('0.0.1')
100
- end
101
- end
102
-
103
- context '#write_build_numbers' do
104
- before(:example) do
105
- @versioner.read_build_numbers
106
- end
107
-
108
- it 'should not raise an error' do
109
- expect { @versioner.write_version_numbers }.to_not raise_error
110
- end
111
-
112
- it 'should not change instance variables' do
113
- expect(@versioner.old_build_number).to eq('200')
114
- expect(@versioner.new_build_number).to eq('201')
115
- @versioner.write_build_numbers
116
- expect(@versioner.old_build_number).to eq('200')
117
- expect(@versioner.new_build_number).to eq('201')
118
- end
119
-
120
- it 'should change contents of parsed file' do
121
- expect(@versioner.old_build_number).to eq('200')
122
- expect(@versioner.new_build_number).to eq('201')
123
- @versioner.write_build_numbers
124
- @versioner.read_build_numbers
125
- expect(@versioner.old_build_number).to eq('201')
126
- expect(@versioner.new_build_number).to eq('202')
127
- end
128
- end
129
-
130
- context '#write_version_numbers' do
131
- before(:example) do
132
- @versioner.read_version_numbers
133
- end
134
-
135
- it 'should not raise an error' do
136
- expect { @versioner.write_version_numbers }.to_not raise_error
137
- end
138
-
139
- it 'should not change instance variables' do
140
- expect(@versioner.old_version_number).to eq('0.0.1')
141
- expect(@versioner.new_version_number).to eq('0.0.1')
142
- @versioner.write_version_numbers
143
- expect(@versioner.old_version_number).to eq('0.0.1')
144
- expect(@versioner.new_version_number).to eq('0.0.1')
145
- end
146
-
147
- it 'should change contents of parsed file' do
148
- expect(@versioner.old_version_number).to eq('0.0.1')
149
- expect(@versioner.new_version_number).to eq('0.0.1')
150
- @versioner.new_version_number = '0.0.2'
151
- @versioner.write_version_numbers
152
- @versioner.read_version_numbers
153
- expect(@versioner.old_version_number).to eq('0.0.2')
154
- expect(@versioner.new_version_number).to eq('0.0.2')
155
- end
156
- end
157
-
158
- end
@@ -1,157 +0,0 @@
1
- require 'timewizard/versioner/apple'
2
-
3
- RSpec.describe 'Timewizard::Versioner::Apple' do
4
-
5
- context '.new' do
6
- it 'should raise error if arg is nil' do
7
- expect { Timewizard::Versioner::Apple.new nil }.to raise_error("passed in file cannot be nil")
8
- end
9
-
10
- it 'should not raise error if arg is not nil' do
11
- expect { Timewizard::Versioner::Apple.new '' }.not_to raise_error
12
- end
13
- end
14
-
15
- before(:example) do
16
- pwd = Dir.pwd.to_s
17
- @directory = pwd
18
-
19
- FileUtils.rm_rf Dir["#{pwd}/tmp"]
20
-
21
- FileUtils.cp_r("#{pwd}/resources/.", "#{pwd}/tmp")
22
-
23
- @versioner = Timewizard::Versioner::Apple.new "#{pwd}/tmp/apple/TestApp/TestApp/Info.plist"
24
- end
25
-
26
- context '#file' do
27
- it 'should be an Info.plist' do
28
- expect(@versioner.file).to eq("#{@directory}/tmp/apple/TestApp/TestApp/Info.plist")
29
- end
30
- end
31
-
32
- context '#old_build_number' do
33
- it 'should be nil' do
34
- expect(@versioner.old_build_number).to be_nil
35
- end
36
- end
37
-
38
- context '#old_version_number' do
39
- it 'should be nil' do
40
- expect(@versioner.old_version_number).to be_nil
41
- end
42
- end
43
-
44
- context '#new_build_number' do
45
- it 'should be nil' do
46
- expect(@versioner.new_build_number).to be_nil
47
- end
48
- end
49
-
50
- context '#new_build_number=' do
51
- it 'should change instance variable' do
52
- @versioner.new_build_number = '1'
53
- expect(@versioner.new_build_number).not_to be_nil
54
- @versioner.new_build_number = nil
55
- expect(@versioner.new_build_number).to be_nil
56
- end
57
- end
58
-
59
- context '#new_version_number' do
60
- it 'should be nil' do
61
- expect(@versioner.new_version_number).to be_nil
62
- end
63
- end
64
-
65
- context '#new_version_number=' do
66
- it 'should change instance variable' do
67
- @versioner.new_version_number = '1'
68
- expect(@versioner.new_version_number).not_to be_nil
69
- @versioner.new_version_number = nil
70
- expect(@versioner.new_version_number).to be_nil
71
- end
72
- end
73
-
74
- context '#read_build_numbers' do
75
- it 'should not raise an error' do
76
- expect { @versioner.read_build_numbers }.to_not raise_error
77
- end
78
-
79
- it 'should change instance variables' do
80
- expect(@versioner.old_build_number).to be_nil
81
- expect(@versioner.new_build_number).to be_nil
82
- @versioner.read_build_numbers
83
- expect(@versioner.old_build_number).to eq('200')
84
- expect(@versioner.new_build_number).to eq('201')
85
- end
86
- end
87
-
88
- context '#read_version_numbers' do
89
- it 'should not raise an error' do
90
- expect { @versioner.read_version_numbers }.to_not raise_error
91
- end
92
-
93
- it 'should change instance variables' do
94
- expect(@versioner.old_version_number).to be_nil
95
- expect(@versioner.new_version_number).to be_nil
96
- @versioner.read_version_numbers
97
- expect(@versioner.old_version_number).to eq('0.0.1')
98
- expect(@versioner.new_version_number).to eq('0.0.1')
99
- end
100
- end
101
-
102
- context '#write_build_numbers' do
103
- before(:example) do
104
- @versioner.read_build_numbers
105
- end
106
-
107
- it 'should not raise an error' do
108
- expect { @versioner.write_version_numbers }.to_not raise_error
109
- end
110
-
111
- it 'should not change instance variables' do
112
- expect(@versioner.old_build_number).to eq('200')
113
- expect(@versioner.new_build_number).to eq('201')
114
- @versioner.write_build_numbers
115
- expect(@versioner.old_build_number).to eq('200')
116
- expect(@versioner.new_build_number).to eq('201')
117
- end
118
-
119
- it 'should change contents of parsed file' do
120
- expect(@versioner.old_build_number).to eq('200')
121
- expect(@versioner.new_build_number).to eq('201')
122
- @versioner.write_build_numbers
123
- @versioner.read_build_numbers
124
- expect(@versioner.old_build_number).to eq('201')
125
- expect(@versioner.new_build_number).to eq('202')
126
- end
127
- end
128
-
129
- context '#write_version_numbers' do
130
- before(:example) do
131
- @versioner.read_version_numbers
132
- end
133
-
134
- it 'should not raise an error' do
135
- expect { @versioner.write_version_numbers }.to_not raise_error
136
- end
137
-
138
- it 'should not change instance variables' do
139
- expect(@versioner.old_version_number).to eq('0.0.1')
140
- expect(@versioner.new_version_number).to eq('0.0.1')
141
- @versioner.write_version_numbers
142
- expect(@versioner.old_version_number).to eq('0.0.1')
143
- expect(@versioner.new_version_number).to eq('0.0.1')
144
- end
145
-
146
- it 'should change contents of parsed file' do
147
- expect(@versioner.old_version_number).to eq('0.0.1')
148
- expect(@versioner.new_version_number).to eq('0.0.1')
149
- @versioner.new_version_number = '0.0.2'
150
- @versioner.write_version_numbers
151
- @versioner.read_version_numbers
152
- expect(@versioner.old_version_number).to eq('0.0.2')
153
- expect(@versioner.new_version_number).to eq('0.0.2')
154
- end
155
- end
156
-
157
- end
@@ -1,91 +0,0 @@
1
- require 'timewizard/versioner'
2
-
3
- RSpec.describe 'Timewizard::Versioner::Base' do
4
-
5
- context '.new' do
6
- it 'should raise error if arg is nil' do
7
- expect { Timewizard::Versioner::Base.new nil }.to raise_error("passed in file cannot be nil")
8
- end
9
-
10
- it 'should not raise error if arg is not nil' do
11
- expect { Timewizard::Versioner::Base.new '' }.not_to raise_error
12
- end
13
- end
14
-
15
- before(:context) do
16
- @versioner = Timewizard::Versioner::Base.new ''
17
- end
18
-
19
- context '#file' do
20
- it 'should be empty string' do
21
- expect(@versioner.file).to eq('')
22
- end
23
- end
24
-
25
- context '#old_build_number' do
26
- it 'should be nil' do
27
- expect(@versioner.old_build_number).to be_nil
28
- end
29
- end
30
-
31
- context '#old_version_number' do
32
- it 'should be nil' do
33
- expect(@versioner.old_version_number).to be_nil
34
- end
35
- end
36
-
37
- context '#new_build_number' do
38
- it 'should be nil' do
39
- expect(@versioner.new_build_number).to be_nil
40
- end
41
- end
42
-
43
- context '#new_build_number=' do
44
- it 'should change instance variable' do
45
- @versioner.new_build_number = '1'
46
- expect(@versioner.new_build_number).not_to be_nil
47
- @versioner.new_build_number = nil
48
- expect(@versioner.new_build_number).to be_nil
49
- end
50
- end
51
-
52
- context '#new_version_number' do
53
- it 'should be nil' do
54
- expect(@versioner.new_version_number).to be_nil
55
- end
56
- end
57
-
58
- context '#new_version_number=' do
59
- it 'should change instance variable' do
60
- @versioner.new_version_number = '1'
61
- expect(@versioner.new_version_number).not_to be_nil
62
- @versioner.new_version_number = nil
63
- expect(@versioner.new_version_number).to be_nil
64
- end
65
- end
66
-
67
- context '#read_build_numbers' do
68
- it 'should not be implemented' do
69
- expect { @versioner.read_build_numbers }.to raise_error(NotImplementedError)
70
- end
71
- end
72
-
73
- context '#read_version_numbers' do
74
- it 'should not be implemented' do
75
- expect { @versioner.read_version_numbers }.to raise_error(NotImplementedError)
76
- end
77
- end
78
-
79
- context '#write_build_numbers' do
80
- it 'should not be implemented' do
81
- expect { @versioner.write_build_numbers }.to raise_error(NotImplementedError)
82
- end
83
- end
84
-
85
- context '#write_version_numbers' do
86
- it 'should not be implemented' do
87
- expect { @versioner.write_version_numbers }.to raise_error(NotImplementedError)
88
- end
89
- end
90
-
91
- end