strings_from_apk 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +2 -0
- data/LICENSE-2.0.txt +202 -0
- data/Rakefile +134 -0
- data/lib/strings_from_apk/resource.rb +22 -0
- data/lib/strings_from_apk/version.rb +6 -0
- data/lib/strings_from_apk.rb +16 -0
- data/readme.md +31 -0
- data/release_notes.md +20 -0
- data/strings_from_apk.gemspec +30 -0
- data/strings_from_apk.jar +0 -0
- metadata +68 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NzEzMjQ0MTAxYjk1Yzg0YTJlY2I1OTViYTkyYWJjZGVlOGJmM2M0ZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZDIxMzllMGNhMmRiOWVhOWM4NDBiNjI0NjBlZmZlMTg2ZTU5ZTBlZg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDM3YzM4MzQyZGIxY2UzMGFmNDRjODA0OTFlNGI3YjJjMGIyY2Y5OTliNmU1
|
10
|
+
NDk0YjEwNDc5MGJmMWM5NDFmYjFmZjM3M2Q2NmRmZmM3NmM1ODcxMTgzN2Y5
|
11
|
+
MWNmZTYyOTZjY2FhNTEzNTI0NGUwMGUyYTQwYTU1YTM4ZTZhMmM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MTM4YjBmMTYzZDc4MGRiMmE0MzU4YWNjMzY4N2FmN2E3MTk1NmM3M2VlM2Yx
|
14
|
+
M2ZmOGNmZDgxNmYyMjIzNDI1YTVkN2MyYTRhZWY4MGJlY2ExYjFhOTQ1YTU2
|
15
|
+
NjFkYWRiMmY1Yjg4YTQ1MTUzM2E3ZDYzMDYzMDU4YmFkOWU0NDk=
|
data/Gemfile
ADDED
data/LICENSE-2.0.txt
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/Rakefile
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'rubygems'
|
3
|
+
require 'rake'
|
4
|
+
require 'date'
|
5
|
+
|
6
|
+
# Defines gem name.
|
7
|
+
def repo_name; 'strings_from_apk' end # published on ruby gems as strings_from_apk
|
8
|
+
def gh_name; 'strings_from_apk_gem' end # github.com name is: strings_from_apk_gem
|
9
|
+
def version_file; "lib/#{repo_name}/version.rb" end
|
10
|
+
def version_rgx; /VERSION = '([^']+)'/m end
|
11
|
+
|
12
|
+
def version
|
13
|
+
@version = @version || File.read(version_file).match(version_rgx)[1]
|
14
|
+
end
|
15
|
+
|
16
|
+
def bump
|
17
|
+
data = File.read version_file
|
18
|
+
|
19
|
+
v_line = data.match version_rgx
|
20
|
+
d_line = data.match /DATE = '([^']+)'/m
|
21
|
+
|
22
|
+
old_v = v_line[0]
|
23
|
+
old_d = d_line[0]
|
24
|
+
|
25
|
+
old_num = v_line[1]
|
26
|
+
new_num = old_num.split('.')
|
27
|
+
new_num[-1] = new_num[-1].to_i + 1
|
28
|
+
new_num = new_num.join '.'
|
29
|
+
|
30
|
+
new_v = old_v.sub old_num, new_num
|
31
|
+
puts "#{old_num} -> #{new_num}"
|
32
|
+
|
33
|
+
old_date = d_line[1]
|
34
|
+
new_date = Date.today.to_s
|
35
|
+
new_d = old_d.sub old_date, new_date
|
36
|
+
puts "#{old_date} -> #{new_date}" unless old_date == new_date
|
37
|
+
|
38
|
+
data.sub! old_v, new_v
|
39
|
+
data.sub! old_d, new_d
|
40
|
+
|
41
|
+
File.write version_file, data
|
42
|
+
end
|
43
|
+
|
44
|
+
desc 'Bump the version number and update the date.'
|
45
|
+
task :bump do
|
46
|
+
bump
|
47
|
+
end
|
48
|
+
|
49
|
+
# Inspired by Gollum's Rakefile
|
50
|
+
desc 'Build and release a new gem to rubygems.org'
|
51
|
+
task :release => :gem do
|
52
|
+
unless `git branch`.include? '* master'
|
53
|
+
puts 'Master branch required to release.'
|
54
|
+
exit!
|
55
|
+
end
|
56
|
+
|
57
|
+
# Commit then pull before pushing.
|
58
|
+
sh "git commit --allow-empty -am 'Release #{version}'"
|
59
|
+
sh 'git pull'
|
60
|
+
sh "git tag v#{version}"
|
61
|
+
# update notes now that there's a new tag
|
62
|
+
Rake::Task['notes'].execute
|
63
|
+
sh "git commit --allow-empty -am 'Update release notes'"
|
64
|
+
sh 'git push origin master'
|
65
|
+
sh "git push origin v#{version}"
|
66
|
+
sh "gem push #{repo_name}-#{version}.gem"
|
67
|
+
end
|
68
|
+
|
69
|
+
desc 'Build and release a new gem to rubygems.org (same as release)'
|
70
|
+
task :publish => :release do
|
71
|
+
end
|
72
|
+
|
73
|
+
desc 'Build a new gem'
|
74
|
+
task :gem do
|
75
|
+
`chmod 0600 ~/.gem/credentials`
|
76
|
+
sh "gem build #{repo_name}.gemspec"
|
77
|
+
end
|
78
|
+
|
79
|
+
desc 'Build a new gem (same as gem task)'
|
80
|
+
task :build => :gem do
|
81
|
+
end
|
82
|
+
|
83
|
+
desc 'Uninstall gem'
|
84
|
+
task :uninstall do
|
85
|
+
cmd = "gem uninstall -aIx #{repo_name}"
|
86
|
+
puts cmd
|
87
|
+
# rescue on gem not installed error.
|
88
|
+
begin; `cmd`; rescue; end
|
89
|
+
end
|
90
|
+
|
91
|
+
desc 'Install gem'
|
92
|
+
task :install => [ :gem, :uninstall ] do
|
93
|
+
sh "gem install --no-rdoc --no-ri --local #{repo_name}-#{version}.gem"
|
94
|
+
end
|
95
|
+
|
96
|
+
desc 'Update release notes'
|
97
|
+
task :notes do
|
98
|
+
tags = `git tag`.split "\n"
|
99
|
+
pairs = []
|
100
|
+
tags.each_index { |a| pairs.push tags[a] + '...' + tags[a+1] unless tags[a+1].nil? }
|
101
|
+
|
102
|
+
notes = ''
|
103
|
+
|
104
|
+
dates = `git log --tags --simplify-by-decoration --pretty="format:%d %ad" --date=short`.split "\n"
|
105
|
+
pairs.reverse! # pairs are in reverse order.
|
106
|
+
|
107
|
+
tag_date = []
|
108
|
+
pairs.each do |pair|
|
109
|
+
tag = pair.split('...').last
|
110
|
+
dates.each do |line|
|
111
|
+
# regular tag, or tag on master.
|
112
|
+
if line.include?('(' + tag + ')') || line.include?(tag + ',')
|
113
|
+
tag_date.push tag + ' ' + line.match(/\d{4}-\d{2}-\d{2}/)[0]
|
114
|
+
break
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
pairs.each_index do |a|
|
120
|
+
data =`git log --pretty=oneline #{pairs[a]}`
|
121
|
+
new_data = ''
|
122
|
+
data.split("\n").each do |line|
|
123
|
+
hex = line.match(/[a-zA-Z0-9]+/)[0]
|
124
|
+
# use first 7 chars to match GitHub
|
125
|
+
new_data += "- [#{hex[0...7]}](https://github.com/bootstraponline/#{gh_name}/commit/#{hex}) #{line.gsub(hex, '').strip}\n"
|
126
|
+
end
|
127
|
+
data = new_data + "\n"
|
128
|
+
|
129
|
+
# last pair is the released version.
|
130
|
+
notes += "#### #{tag_date[a]}\n\n" + data + "\n"
|
131
|
+
end
|
132
|
+
|
133
|
+
File.open('release_notes.md', 'w') { |f| f.write notes.to_s.strip }
|
134
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module StringsFromApk
|
3
|
+
# load apk
|
4
|
+
class Resource
|
5
|
+
attr_reader :json
|
6
|
+
@@jar = File.expand_path '../' * 3 + 'strings_from_apk.jar', __FILE__
|
7
|
+
def initialize apk_path
|
8
|
+
json_folder = Dir::Tmpname.make_tmpname '/tmp/', nil
|
9
|
+
json_file = File.join json_folder, 'strings.json'
|
10
|
+
cmd = %Q(java -jar "#{@@jar}" "#{apk_path}" "#{json_folder}")
|
11
|
+
`#{cmd}`
|
12
|
+
@json = JSON.parse(File.read(json_file), max_nesting: 9999)
|
13
|
+
|
14
|
+
# Remove the tmp folder after parsing.
|
15
|
+
FileUtils.rm_rf json_folder
|
16
|
+
end
|
17
|
+
|
18
|
+
def get_string string
|
19
|
+
@json[string]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module StringsFromApk
|
2
|
+
def self.add_to_path file, path=false
|
3
|
+
path = path ? "../#{path}/" : '..'
|
4
|
+
path = File.expand_path path, file
|
5
|
+
|
6
|
+
$:.unshift path unless $:.include? path
|
7
|
+
end
|
8
|
+
|
9
|
+
add_to_path __FILE__
|
10
|
+
|
11
|
+
require 'rubygems'
|
12
|
+
require 'json'
|
13
|
+
|
14
|
+
require 'strings_from_apk/version'
|
15
|
+
require 'strings_from_apk/resource'
|
16
|
+
end
|
data/readme.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#### strings_from_apk
|
2
|
+
|
3
|
+
Strings from APK enables looking up strings by Android ID. This is useful for uiautomator which is normally not allowed to look up by ID.
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
gem uninstall -aIx strings_from_apk; gem install strings_from_apk
|
7
|
+
```
|
8
|
+
|
9
|
+
[strings_from_apk](https://rubygems.org/gems/strings_from_apk) is on RubyGems.
|
10
|
+
|
11
|
+
#### System requirements
|
12
|
+
|
13
|
+
- Linux or OS X
|
14
|
+
- Ruby 1.9.x+
|
15
|
+
- Does not work on Windows or Ruby 1.8
|
16
|
+
|
17
|
+
#### Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'rubygems'
|
21
|
+
require 'strings_from_apk'
|
22
|
+
|
23
|
+
r = StringsFromApk::Resource.new '/tmp/apk/apk.apk'
|
24
|
+
|
25
|
+
r.get_string 'title_message_2'
|
26
|
+
# => "Welcome to this application!"
|
27
|
+
|
28
|
+
r.json # the full JSON object
|
29
|
+
```
|
30
|
+
|
31
|
+
The conversion logic is in [strings_from_apk.jar](https://github.com/bootstraponline/strings_from_apk)
|
data/release_notes.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#### v0.0.4 2013-05-01
|
2
|
+
|
3
|
+
- [c305cd3](https://github.com/bootstraponline/strings_from_apk_gem/commit/c305cd3e1cde275df5578022231af4480a1b7c50) Release 0.0.4
|
4
|
+
- [2fcf498](https://github.com/bootstraponline/strings_from_apk_gem/commit/2fcf498bef2eec99e8994a8aa700edf0b099305e) Fix release notes
|
5
|
+
- [887e4d4](https://github.com/bootstraponline/strings_from_apk_gem/commit/887e4d48537908a40e607fc1efacaace1cc5eaeb) Fix release notes link
|
6
|
+
- [980d122](https://github.com/bootstraponline/strings_from_apk_gem/commit/980d122c275c0d9df7ea09f4a083663f2044543d) Update readme.md
|
7
|
+
- [78899a7](https://github.com/bootstraponline/strings_from_apk_gem/commit/78899a7346f20072cad5b6e370a3b4382db4daee) Update readme.md
|
8
|
+
- [8a6cf5b](https://github.com/bootstraponline/strings_from_apk_gem/commit/8a6cf5ba9f61261cb409303d1ccdf6984562f0dd) Update readme.md
|
9
|
+
- [6144efa](https://github.com/bootstraponline/strings_from_apk_gem/commit/6144efacc6388578ba516ac8589a1c5e4791d833) Update readme.md
|
10
|
+
- [39097d5](https://github.com/bootstraponline/strings_from_apk_gem/commit/39097d5242e7b27963664c9dcd77402a84137a0d) Add supported software
|
11
|
+
- [dc72cc1](https://github.com/bootstraponline/strings_from_apk_gem/commit/dc72cc1696a1369594e2f79749bca1119d57c389) Update release notes
|
12
|
+
|
13
|
+
|
14
|
+
#### v0.0.3 2013-05-01
|
15
|
+
|
16
|
+
- [50ae3f6](https://github.com/bootstraponline/strings_from_apk_gem/commit/50ae3f6628b115e07c0fe9364b7ea560a5090df1) Release 0.0.3
|
17
|
+
- [4e089cb](https://github.com/bootstraponline/strings_from_apk_gem/commit/4e089cba549eb4d8add414da2132bced579604d9) Remove tmp folder once complete
|
18
|
+
- [5aab5a1](https://github.com/bootstraponline/strings_from_apk_gem/commit/5aab5a17353dc80f6ee796b51bc244820498d97f) Add .json example
|
19
|
+
- [dc88639](https://github.com/bootstraponline/strings_from_apk_gem/commit/dc88639befd13fb582ab9c4c8a1fcbb904a7a054) Add RubyGems link
|
20
|
+
- [279af4e](https://github.com/bootstraponline/strings_from_apk_gem/commit/279af4e88e7b48e38fbbae596ec8583c4f3b94e6) Update release notes
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
def self.add_to_path path
|
4
|
+
path = File.expand_path "../#{path}/", __FILE__
|
5
|
+
|
6
|
+
$:.unshift path unless $:.include? path
|
7
|
+
end
|
8
|
+
|
9
|
+
add_to_path 'lib'
|
10
|
+
|
11
|
+
require 'strings_from_apk/version'
|
12
|
+
|
13
|
+
Gem::Specification.new do |s|
|
14
|
+
# 1.8.x is not supported
|
15
|
+
s.required_ruby_version = '>= 1.9.3'
|
16
|
+
|
17
|
+
s.name = 'strings_from_apk'
|
18
|
+
s.version = StringsFromApk::VERSION
|
19
|
+
s.date = StringsFromApk::DATE
|
20
|
+
s.license = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
21
|
+
s.description = s.summary = 'Ruby lib for extracting strings from APK'
|
22
|
+
s.description += '.' # avoid identical warning
|
23
|
+
s.authors = s.email = [ 'code@bootstraponline.com' ]
|
24
|
+
s.homepage = 'https://github.com/bootstraponline/strings_from_apk_gem' # published as appium_lib
|
25
|
+
s.require_paths = [ 'lib' ]
|
26
|
+
|
27
|
+
s.add_runtime_dependency 'json', '~> 1.7.7'
|
28
|
+
|
29
|
+
s.files = `git ls-files`.split "\n"
|
30
|
+
end
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: strings_from_apk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- code@bootstraponline.com
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-05-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: json
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.7.7
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.7.7
|
27
|
+
description: Ruby lib for extracting strings from APK.
|
28
|
+
email:
|
29
|
+
- code@bootstraponline.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- Gemfile
|
35
|
+
- LICENSE-2.0.txt
|
36
|
+
- Rakefile
|
37
|
+
- lib/strings_from_apk.rb
|
38
|
+
- lib/strings_from_apk/resource.rb
|
39
|
+
- lib/strings_from_apk/version.rb
|
40
|
+
- readme.md
|
41
|
+
- release_notes.md
|
42
|
+
- strings_from_apk.gemspec
|
43
|
+
- strings_from_apk.jar
|
44
|
+
homepage: https://github.com/bootstraponline/strings_from_apk_gem
|
45
|
+
licenses:
|
46
|
+
- http://www.apache.org/licenses/LICENSE-2.0.txt
|
47
|
+
metadata: {}
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.9.3
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 2.0.3
|
65
|
+
signing_key:
|
66
|
+
specification_version: 4
|
67
|
+
summary: Ruby lib for extracting strings from APK
|
68
|
+
test_files: []
|