timewizard 0.3.0.pre.alpha.pre.54 → 0.3.0.pre.alpha.pre.55
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 +8 -8
- data/README.md +1 -0
- data/README.rdoc +6 -5
- data/lib/timewizard/version.rb +0 -1
- data/lib/timewizard/versioner/android.rb +5 -28
- data/lib/timewizard/versioner/apple.rb +3 -27
- data/lib/timewizard/versioner.rb +56 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2RlMzM1YjY5MmM5MGNhMzA3NGYzODllNWVjMjJhYzY0MWE4ZGUwMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTk2NDFkODU0YjEyMTI1YzJkYjhiN2IwM2JhNjkyN2VmYzg3MzVjYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWZlYzViMmI2ZDNjNTg5M2M1N2M2ODBmNWMyZDRmYjA4MDM2YWI1MTZiYTg0
|
10
|
+
NzQzYmZkNWY2ZGU5NDY2NDk4YmM0ZDZiMzEwYzc1MWQyNTk3ZTBiOTA5NjY3
|
11
|
+
ODhlMGNmZjYxZDk4Y2ExNWE3OTllNjEzZDA5MWE3MzNkNjYwMGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWExOTg4ZTcwZjlmYmNmMmQ0YzdjYWY2OTFjMTc0M2IxZjVkNDFmNGM4MjJm
|
14
|
+
OWFmMzNlZDAyYzA1NmI2NmQ1MDgyYzMyZjA0ZjljN2IxNzdmOGM2MDhjZDA0
|
15
|
+
ZDg3MTc4OGZlNzRhM2VmMmFmNGE3MmY4NTQ2OTlmZjZmNzBmOGE=
|
data/README.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
[](https://travis-ci.org/Nunnery/timewizard)
|
6
6
|
[](https://gemnasium.com/Nunnery/timewizard)
|
7
7
|
[](https://rubygems.org/gems/timewizard)
|
8
|
+
[](http://inch-ci.org/github/Nunnery/timewizard)
|
8
9
|
|
9
10
|
## Installation
|
10
11
|
|
data/README.rdoc
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
= timewizard
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
{<img src="https://img.shields.io/codeclimate/github/Nunnery/timewizard.svg?style=flat-square" alt="Code Climate" />}[https://codeclimate.com/github/Nunnery/timewizard]
|
4
|
+
{<img src="https://img.shields.io/codeclimate/coverage/github/Nunnery/timewizard.svg?style=flat-square" alt="Code Coverage" />}[https://codeclimate.com/github/Nunnery/timewizard/coverage]
|
5
|
+
{<img src="https://img.shields.io/travis/Nunnery/timewizard.svg?style=flat-square" alt="Build Status" />}[https://travis-ci.org/Nunnery/timewizard]
|
6
|
+
{<img src="https://img.shields.io/gemnasium/Nunnery/timewizard.svg?style=flat-square" alt="Dependency Status" />}[https://gemnasium.com/Nunnery/timewizard]
|
7
|
+
{<img src="https://img.shields.io/gem/v/timewizard.svg?style=flat-square" alt="RubyGems" />}[https://rubygems.org/gems/timewizard]
|
8
|
+
{<img src="http://inch-ci.org/github/Nunnery/timewizard.svg?branch=master&style=flat-square" alt="Doc Coverage" />}[http://inch-ci.org/github/Nunnery/timewizard]
|
8
9
|
|
9
10
|
== Description
|
10
11
|
|
data/lib/timewizard/version.rb
CHANGED
@@ -1,35 +1,12 @@
|
|
1
1
|
require 'timewizard/versioner'
|
2
|
-
require 'timewizard/utils/wizardry'
|
3
2
|
|
4
3
|
module Timewizard
|
5
4
|
module Versioner
|
5
|
+
# Represents the Android implementation of the versioner spec.
|
6
|
+
# @author Richard Harrah
|
7
|
+
# @since 0.1.0
|
6
8
|
class Android < Timewizard::Versioner::Base
|
7
9
|
|
8
|
-
#
|
9
|
-
# Public functions (inherited from parent)
|
10
|
-
#
|
11
|
-
public
|
12
|
-
|
13
|
-
def read_build_numbers
|
14
|
-
read_file
|
15
|
-
find_build_numbers
|
16
|
-
end
|
17
|
-
|
18
|
-
def read_version_numbers
|
19
|
-
read_file
|
20
|
-
find_version_numbers
|
21
|
-
end
|
22
|
-
|
23
|
-
def write_build_numbers
|
24
|
-
change_build_number
|
25
|
-
write_file
|
26
|
-
end
|
27
|
-
|
28
|
-
def write_version_numbers
|
29
|
-
change_version_number
|
30
|
-
write_file
|
31
|
-
end
|
32
|
-
|
33
10
|
#
|
34
11
|
# Private functions (implementation specific)
|
35
12
|
#
|
@@ -92,7 +69,7 @@ module Timewizard
|
|
92
69
|
self
|
93
70
|
end
|
94
71
|
|
95
|
-
def
|
72
|
+
def change_build_numbers
|
96
73
|
if @file_contents.nil?
|
97
74
|
read_file
|
98
75
|
end
|
@@ -102,7 +79,7 @@ module Timewizard
|
|
102
79
|
@file_contents.gsub!(@old_build_number.to_s, @new_build_number.to_s)
|
103
80
|
end
|
104
81
|
|
105
|
-
def
|
82
|
+
def change_version_numbers
|
106
83
|
if @file_contents.nil?
|
107
84
|
read_file
|
108
85
|
end
|
@@ -1,37 +1,13 @@
|
|
1
1
|
require 'xcodeproj'
|
2
|
-
require 'versionomy'
|
3
2
|
require 'timewizard/versioner'
|
4
|
-
require 'timewizard/utils/wizardry'
|
5
3
|
|
6
4
|
module Timewizard
|
7
5
|
module Versioner
|
6
|
+
# Represents the Apple implementation of the versioner spec.
|
7
|
+
# @author Richard Harrah
|
8
|
+
# @since 0.2.3
|
8
9
|
class Apple < Timewizard::Versioner::Base
|
9
10
|
|
10
|
-
#
|
11
|
-
# Public functions (inherited from parent)
|
12
|
-
#
|
13
|
-
public
|
14
|
-
|
15
|
-
def read_build_numbers
|
16
|
-
read_file
|
17
|
-
find_build_numbers
|
18
|
-
end
|
19
|
-
|
20
|
-
def read_version_numbers
|
21
|
-
read_file
|
22
|
-
find_version_numbers
|
23
|
-
end
|
24
|
-
|
25
|
-
def write_build_numbers
|
26
|
-
change_build_numbers
|
27
|
-
write_file
|
28
|
-
end
|
29
|
-
|
30
|
-
def write_version_numbers
|
31
|
-
change_version_numbers
|
32
|
-
write_file
|
33
|
-
end
|
34
|
-
|
35
11
|
#
|
36
12
|
# Private functions (implementation specific)
|
37
13
|
#
|
data/lib/timewizard/versioner.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'versionomy'
|
2
|
+
require 'timewizard/utils/wizardry'
|
3
|
+
|
1
4
|
module Timewizard
|
2
5
|
# Contains the various OS implementations of the RubyGem version spec.
|
3
6
|
# @author Richard Harrah
|
@@ -9,19 +12,21 @@ module Timewizard
|
|
9
12
|
# @since 0.2.4
|
10
13
|
class Base
|
11
14
|
|
12
|
-
|
15
|
+
public
|
16
|
+
|
17
|
+
# @return [String] File that is going to be parsed.
|
13
18
|
attr_reader :file
|
14
19
|
|
15
|
-
# Build number currently contained in the parsed file.
|
20
|
+
# @return [String] Build number currently contained in the parsed file.
|
16
21
|
attr_reader :old_build_number
|
17
22
|
|
18
|
-
# Version number currently contained in the parsed file.
|
23
|
+
# @return [String] Version number currently contained in the parsed file.
|
19
24
|
attr_reader :old_version_number
|
20
25
|
|
21
|
-
#
|
26
|
+
# @return [String] build number to write to the parsed file
|
22
27
|
attr_accessor :new_build_number
|
23
28
|
|
24
|
-
#
|
29
|
+
# @return [String] version number to write to the parsed file.
|
25
30
|
attr_accessor :new_version_number
|
26
31
|
|
27
32
|
def initialize(path_to_file)
|
@@ -31,27 +36,62 @@ module Timewizard
|
|
31
36
|
@file = path_to_file
|
32
37
|
end
|
33
38
|
|
34
|
-
# Reads the build numbers from {file}.
|
35
|
-
# @
|
39
|
+
# Reads the build numbers from {Timewizard::Versioner::Base.file}.
|
40
|
+
# @return [self] mutated versioner instance
|
36
41
|
def read_build_numbers
|
37
|
-
|
42
|
+
read_file
|
43
|
+
find_build_numbers
|
44
|
+
self
|
38
45
|
end
|
39
46
|
|
40
|
-
# Reads the version numbers from {file}.
|
41
|
-
# @
|
47
|
+
# Reads the version numbers from {Timewizard::Versioner::Base.file}.
|
48
|
+
# @return [self] mutated versioner instance
|
42
49
|
def read_version_numbers
|
43
|
-
|
50
|
+
read_file
|
51
|
+
find_version_numbers
|
44
52
|
end
|
45
53
|
|
46
|
-
# Writes the build numbers to {file}.
|
47
|
-
# @
|
54
|
+
# Writes the build numbers to {Timewizard::Versioner::Base.file}.
|
55
|
+
# @return [self] mutated versioner instance
|
48
56
|
def write_build_numbers
|
49
|
-
|
57
|
+
change_build_numbers
|
58
|
+
write_file
|
50
59
|
end
|
51
60
|
|
52
|
-
# Writes the
|
53
|
-
# @
|
61
|
+
# Writes the version numbers to {Timewizard::Versioner::Base.file}.
|
62
|
+
# @return [self] mutated versioner instance
|
54
63
|
def write_version_numbers
|
64
|
+
change_version_numbers
|
65
|
+
write_file
|
66
|
+
end
|
67
|
+
|
68
|
+
private
|
69
|
+
|
70
|
+
def read_file
|
71
|
+
raise NotImplementedError
|
72
|
+
end
|
73
|
+
|
74
|
+
def write_file
|
75
|
+
raise NotImplementedError
|
76
|
+
end
|
77
|
+
|
78
|
+
def find_build_numbers
|
79
|
+
raise NotImplementedError
|
80
|
+
end
|
81
|
+
|
82
|
+
def find_version_numbers
|
83
|
+
raise NotImplementedError
|
84
|
+
end
|
85
|
+
|
86
|
+
def find_build_and_version_numbers
|
87
|
+
raise NotImplementedError
|
88
|
+
end
|
89
|
+
|
90
|
+
def change_build_numbers
|
91
|
+
raise NotImplementedError
|
92
|
+
end
|
93
|
+
|
94
|
+
def change_version_numbers
|
55
95
|
raise NotImplementedError
|
56
96
|
end
|
57
97
|
|
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.0.pre.alpha.pre.
|
4
|
+
version: 0.3.0.pre.alpha.pre.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Harrah
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: versionomy
|