headdesk 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: baa239641bcf15d4fada12d0909b5f9e6e3bf006
4
- data.tar.gz: '082b47e0e4093a7deffda1ad64034f41e091f718'
2
+ SHA256:
3
+ metadata.gz: ef292cb33738292c0903bdcbbccbd1c12ed51c7cd0a858ac41defb7255b40a1e
4
+ data.tar.gz: a8db685d6882021657c0cb9ffdb7f44105b31bc9ba98cab98158a13e50ea66c9
5
5
  SHA512:
6
- metadata.gz: b9a255eda983eac233626efd5edd88cc72b027200937abf7466e7cccaf8f2b54f2f7663543f57a22f078396197eb2b2d39f53f8ac8a44c0e532b364d296c4c26
7
- data.tar.gz: 4af639f3ac6e3cc687b8d810eba3f1854b124ecc718215d377fd2ae8ac7e4f9a81a79cf5188695f58119dd3b6bed8cec6a002b9dd6e0a02669052d5cf5404540
6
+ metadata.gz: 8d08759d26284ba8dd3bac5222e255ddd1f6ffb05d26d95bec1b5e97ccb8b557099946ad2d76b57535b11968703c38b0fa138e80d4512af0f3606655e36750db
7
+ data.tar.gz: e693156614a569c0a26d5ba51f4de4a64e2933cbed17c0ce4e07bcd003bcfd7e28c26a52b4359f2192c60443a5349ddcd1297ffcaf35166df37b1a02467e1ef7
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.4
1
+ ruby-2.5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- headdesk (0.5.0)
4
+ headdesk (0.5.1)
5
5
  awesome_print (~> 1.8)
6
6
  nokogiri (~> 1.10)
7
7
  thor (~> 0.20)
@@ -24,7 +24,7 @@ GEM
24
24
  diff-lcs (1.3)
25
25
  equalizer (0.0.11)
26
26
  ice_nine (0.11.2)
27
- jaro_winkler (1.5.1)
27
+ jaro_winkler (1.5.2)
28
28
  kwalify (0.7.2)
29
29
  mini_portile2 (2.4.0)
30
30
  nokogiri (1.10.1)
@@ -33,12 +33,14 @@ GEM
33
33
  parser (2.5.3.0)
34
34
  ast (~> 2.4.0)
35
35
  powerpack (0.1.2)
36
+ psych (3.1.0)
36
37
  rainbow (3.0.0)
37
38
  rake (10.5.0)
38
- reek (5.2.0)
39
+ reek (5.3.0)
39
40
  codeclimate-engine-rb (~> 0.4.0)
40
41
  kwalify (~> 0.7.0)
41
42
  parser (>= 2.5.0.0, < 2.6, != 2.5.1.1)
43
+ psych (~> 3.1.0)
42
44
  rainbow (>= 2.0, < 4.0)
43
45
  rspec (3.8.0)
44
46
  rspec-core (~> 3.8.0)
@@ -53,7 +55,7 @@ GEM
53
55
  diff-lcs (>= 1.2.0, < 2.0)
54
56
  rspec-support (~> 3.8.0)
55
57
  rspec-support (3.8.0)
56
- rubocop (0.60.0)
58
+ rubocop (0.62.0)
57
59
  jaro_winkler (~> 1.5.1)
58
60
  parallel (~> 1.10)
59
61
  parser (>= 2.5, != 2.5.1.1)
@@ -64,7 +66,7 @@ GEM
64
66
  ruby-progressbar (1.10.0)
65
67
  thor (0.20.3)
66
68
  thread_safe (0.3.6)
67
- unicode-display_width (1.4.0)
69
+ unicode-display_width (1.4.1)
68
70
  virtus (1.0.5)
69
71
  axiom-types (~> 0.1)
70
72
  coercible (~> 1.0)
@@ -75,7 +77,7 @@ PLATFORMS
75
77
  ruby
76
78
 
77
79
  DEPENDENCIES
78
- bundler (~> 1.16)
80
+ bundler (~> 2.0)
79
81
  headdesk!
80
82
  rake (~> 10.0)
81
83
  reek (~> 5.2)
@@ -83,4 +85,4 @@ DEPENDENCIES
83
85
  rubocop
84
86
 
85
87
  BUNDLED WITH
86
- 1.17.1
88
+ 2.0.1
data/README.md CHANGED
@@ -6,12 +6,13 @@ Because we've all been there with Android.
6
6
 
7
7
  This is output from the check that ensures that the version of the Facebook SDK (if present) has not been deprecated:
8
8
 
9
- ✔ Facebook SDK version
10
- ↳ ✔ APK contains class com.facebook.FacebookSdk
11
- ↳ ✔ com.facebook.FacebookSdk contains getSdkVersion method
12
- ↳ ✔ Found Facebook SDK version 4.33.0
13
- ↳ ✔ Facebook SDK was released in the last 2 years (using 4.33.0, released 2018-05-01)
14
- 💾 {"facebook_sdk":{"major":4,"minor":33,"patch":0,"version":"4.33.0","date":"2018-05-01"}}
9
+ ✔ Facebook SDK version (https://github.com/GoCarrot/headdesk/blob/0.5.0/docs/facebook.md)
10
+
11
+ ↳ ✔ APK contains class com.facebook.FacebookSdk
12
+ ↳ ✔ com.facebook.FacebookSdk contains getSdkVersion method
13
+ ↳ ✔ Found Facebook SDK version 4.33.0
14
+ ✔ Facebook SDK was released in the last 2 years (using 4.33.0, released 2018-05-01)
15
+ 💾 {"facebook_sdk":{"major":4,"minor":33,"patch":0,"version":"4.33.0","date":"2018-05-01"}}
15
16
 
16
17
  `headdesk` can also output to JSON.
17
18
 
@@ -51,7 +52,9 @@ Analize an APK
51
52
 
52
53
  $ headdesk analize [APK]
53
54
 
54
- This will unpack the APK to a temporary path, analize and print to STDOUT the results in plaintext. For JSON output pass `--json`.
55
+ This will unpack the APK to a temporary path, analize and print to STDOUT the results in plaintext.
56
+
57
+ For JSON output pass `--json`.
55
58
 
56
59
  $ headdesk analize --path [path to unpacked APK]
57
60
 
@@ -67,6 +70,29 @@ This will unpack an APK to the specified DESTINATION, or to the current working
67
70
 
68
71
  This will unpack an APK to the specified DESTINATION, or to the current working directory, and then perform analysis.
69
72
 
73
+ ## headdesk-lambda
74
+ You can use `headdesk` easily from anywhere, without installing anything, using the hosted version.
75
+
76
+ ### Usage
77
+
78
+ Command line usage instruction:
79
+
80
+ Single Command:
81
+
82
+ $ curl -w "%{url_effective}" --upload-file "PATH_TO_YOUR_APK_FILE" \
83
+ -L "`curl https://headdesk.cli-apps.teak.io/v1/url`" | \
84
+ curl --data @- --retry 10 https://headdesk.cli-apps.teak.io/v1/analize
85
+
86
+ Replace `PATH_TO_YOUR_APK_FILE` with the path to the APK file you want to analize.
87
+
88
+ ### What this Does
89
+ 1. Requests a URL to upload the APK
90
+ * `curl https://headdesk.cli-apps.teak.io/v1/url`
91
+ 2. Upload the APK to that URL, and write to STDOUT the URL it just used to upload
92
+ * `curl -w "%{url_effective}" --upload-file "PATH_TO_YOUR_APK_FILE" -L [Result from Step 1]`
93
+ 3. Invoke the 'analize' endpoint, passing the result from Step 2 as the data (via reading from STDIN)
94
+ * `curl --data @- --retry 10 https://headdesk.cli-apps.teak.io/v1/analize`
95
+
70
96
  ## Development
71
97
 
72
98
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
data/headdesk.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
34
  spec.require_paths = ['lib']
35
35
 
36
- spec.add_development_dependency 'bundler', '~> 1.16'
36
+ spec.add_development_dependency 'bundler', '~> 2.0'
37
37
  spec.add_development_dependency 'rake', '~> 10.0'
38
38
  spec.add_development_dependency 'reek', '~> 5.2'
39
39
  spec.add_development_dependency 'rspec', '~> 3.8'
@@ -21,7 +21,7 @@ module Headdesk
21
21
 
22
22
  describe "APK enables caching of Teak notification content (via 'io_teak_enable_caching')"
23
23
  fail_check unless: apk.resources
24
- .values(v: 21)
24
+ .values
25
25
  .bool
26
26
  .io_teak_enable_caching
27
27
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Headdesk
4
4
  APKTOOL_VERSION = '2.3.4'
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: headdesk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Wilson
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.6.10
181
+ rubygems_version: 2.7.8
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: headdesk helps identify and solve common issues in mobile development by