squash_java 1.0.2 → 1.0.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.
- data/README.md +6 -0
- data/bin/squash_release +5 -2
- metadata +8 -6
data/README.md
CHANGED
@@ -96,3 +96,9 @@ In addition to using the rename map with Squash, you can also use the gem as
|
|
96
96
|
a library, to perform deobfuscation for your own purposes (even unrelated to
|
97
97
|
Squash). See the {Squash::Java::Namespace} class documentation for more
|
98
98
|
information.
|
99
|
+
|
100
|
+
You will need to add this gem to your Gemfile to use it as a library:
|
101
|
+
|
102
|
+
```` ruby
|
103
|
+
gem 'squash_java', :require => 'squash/java'
|
104
|
+
````
|
data/bin/squash_release
CHANGED
@@ -29,7 +29,8 @@ end
|
|
29
29
|
|
30
30
|
project_dir = Dir.getwd
|
31
31
|
revision = nil
|
32
|
-
|
32
|
+
version = nil
|
33
|
+
options = {:success => [Net::HTTPSuccess, 422]}
|
33
34
|
|
34
35
|
parser = OptionParser.new do |parser|
|
35
36
|
parser.banner = "Usage: squash_release [options] YOUR_SQUASH_HOST YOUR_API_KEY ENVIRONMENT BUILD_NUMBER"
|
@@ -39,6 +40,7 @@ parser = OptionParser.new do |parser|
|
|
39
40
|
|
40
41
|
parser.on('-p', '--project-dir F', "Specify a custom project directory (default current directory)") { |pd| project_dir = pd }
|
41
42
|
parser.on('-r', '--revision R', "Specify a code revision that was deployed (default current revision)") { |r| revision = r }
|
43
|
+
parser.on('-v', '--product-version V', "Specify a human-readable version that was deployed") { |v| version = v }
|
42
44
|
|
43
45
|
parser.on('-h', '--help', "Show this message") { puts parser; exit }
|
44
46
|
parser.on('--version', "Display version number of this program") { puts "1.0.0"; exit }
|
@@ -63,6 +65,7 @@ Squash::Uploader.new(host, options).transmit '/api/1.0/deploy.json',
|
|
63
65
|
'deploy' => {
|
64
66
|
'deployed_at' => Time.now,
|
65
67
|
'revision' => revision,
|
66
|
-
'build' => build
|
68
|
+
'build' => build,
|
69
|
+
'version' => version
|
67
70
|
}
|
68
71
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squash_java
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Morgan
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-01-
|
18
|
+
date: 2013-01-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|
@@ -37,10 +37,12 @@ dependencies:
|
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
hash:
|
40
|
+
hash: 21
|
41
41
|
segments:
|
42
|
+
- 1
|
42
43
|
- 0
|
43
|
-
|
44
|
+
- 1
|
45
|
+
version: 1.0.1
|
44
46
|
version_requirements: *id002
|
45
47
|
name: squash_uploader
|
46
48
|
prerelease: false
|