capkin 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +18 -0
- data/README.md +26 -12
- data/Rakefile +15 -0
- data/lib/capkin/robot.rb +6 -1
- data/lib/capkin/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc56cefd98005237ace17ecf0a32843a5432ccac
|
4
|
+
data.tar.gz: eed3f69ea3d85eee6bfe0cbfd6482958cd27b9ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92a532caf240bf94331d4a3f7808afefcbba52d39e12e051ed1bed45c8817411d509d802c3960adbeeeea5e5756eaee83579f13c62837981529c01909bf5e753
|
7
|
+
data.tar.gz: c543b5bd893d665b0054eb77a6749070443706e1b61847f8b28551b76e341767c34cb0d6631d5c28cbd4f8ff2a6c758d60d86ada67c5aff6a07de321ff2a749f
|
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
source 'http://rubygems.org'
|
2
|
+
|
3
|
+
gemspec # Specify gem's dependencies in mongoid_geospatial.gemspec
|
4
|
+
|
5
|
+
group :test do
|
6
|
+
gem 'pry'
|
7
|
+
gem 'yard'
|
8
|
+
|
9
|
+
gem 'rspec'
|
10
|
+
|
11
|
+
gem 'rubocop'
|
12
|
+
gem 'fuubar'
|
13
|
+
gem 'guard'
|
14
|
+
gem 'guard-rubocop'
|
15
|
+
gem 'guard-rspec'
|
16
|
+
|
17
|
+
gem 'coveralls', require: false if ENV['CI']
|
18
|
+
end
|
data/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
Capkin
|
2
2
|
======
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/capkin.svg)](http://badge.fury.io/rb/capkin)
|
5
|
+
[![Dependency Status](https://gemnasium.com/fireho/capkin.svg)](https://gemnasium.com/fireho/capkin)
|
6
|
+
|
7
|
+
|
8
|
+
* Uploads your `Android Apps` ➔ `Google Play`
|
9
|
+
* Choose upload to Alpha, Beta or Production stage.
|
6
10
|
* Promote apk from stages.
|
7
11
|
|
8
12
|
|
@@ -16,24 +20,29 @@ Capkin
|
|
16
20
|
|
17
21
|
To upload a new `.apk`:
|
18
22
|
|
19
|
-
|
20
|
-
|
21
|
-
capkin
|
22
|
-
capkin
|
23
|
-
|
23
|
+
|
24
|
+
|
25
|
+
capkin production
|
26
|
+
capkin beta
|
27
|
+
capkin # defaults to 'alpha'
|
28
|
+
|
29
|
+
|
24
30
|
|
25
31
|
To move current version to another stage:
|
26
32
|
|
33
|
+
|
27
34
|
**TODO**
|
28
35
|
|
36
|
+
|
29
37
|
## Capkin
|
30
38
|
|
31
|
-
Config file:
|
39
|
+
Config file (just run `capkin` to generate):
|
40
|
+
|
32
41
|
|
33
42
|
```
|
34
|
-
|
35
|
-
|
36
|
-
build: 'build/'
|
43
|
+
app: 'Foo' # App name
|
44
|
+
name: 'com.your.app' # App namespace
|
45
|
+
build: 'build/' # App apk folder
|
37
46
|
```
|
38
47
|
|
39
48
|
|
@@ -62,7 +71,12 @@ export GOOGLE_APPLICATION_CREDENTIALS='/path/to/googs.json'
|
|
62
71
|
|
63
72
|
> APIs & auth > Credentials > Add credential > OAuth 2.0 client ID > Other
|
64
73
|
|
74
|
+
|
65
75
|
**TODO**
|
66
76
|
|
67
77
|
|
68
|
-
##
|
78
|
+
## Cordova Rake
|
79
|
+
|
80
|
+
If you're using cordova/phonegap/ionic, also check out:
|
81
|
+
|
82
|
+
https://github.com/nofxx/cordova-rake
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
|
4
|
+
require 'rspec/core'
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
7
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
8
|
+
end
|
9
|
+
|
10
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
11
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
12
|
+
spec.rcov = true
|
13
|
+
end
|
14
|
+
|
15
|
+
task default: :spec
|
data/lib/capkin/robot.rb
CHANGED
@@ -10,6 +10,11 @@ module Capkin
|
|
10
10
|
# 'access_token' => ENV['CAPKIN_CLIENT']
|
11
11
|
# }
|
12
12
|
# auth.apply(headers)
|
13
|
+
#
|
14
|
+
# https://developers.google.com/android-publisher/api-ref/edits
|
15
|
+
#
|
16
|
+
# https://github.com/google/google-api-ruby-client/issues/140
|
17
|
+
#
|
13
18
|
class Robot
|
14
19
|
SCOPE = ['https://www.googleapis.com/auth/androidpublisher']
|
15
20
|
STAGE = 'alpha'
|
@@ -61,7 +66,7 @@ module Capkin
|
|
61
66
|
# Update the alpha track to point to this APK
|
62
67
|
# You need to use a track object to change this
|
63
68
|
def track!
|
64
|
-
puts Paint["Pushing APK ➔ '#{
|
69
|
+
puts Paint["Pushing APK ➔ '#{track.track}'", :blue]
|
65
70
|
track.update!(version_codes: [apk.version_code])
|
66
71
|
|
67
72
|
# Save the modified track object
|
data/lib/capkin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcos Piccinini
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-09-
|
12
|
+
date: 2015-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -75,7 +75,9 @@ extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
77
|
- ".gitignore"
|
78
|
+
- Gemfile
|
78
79
|
- README.md
|
80
|
+
- Rakefile
|
79
81
|
- bin/capkin
|
80
82
|
- capkin.gemspec
|
81
83
|
- lib/capkin.rb
|