codes 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -7
- data/bin/codes +1 -1
- data/lib/codes/codes_runner.rb +1 -1
- data/lib/codes/itunes_connect.rb +2 -2
- data/lib/codes/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 296b323fb308e0f918f676e6c97bb5421b547908
|
4
|
+
data.tar.gz: faa009d9e5586d2300a5694ab40e8f816670e880
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6b6f656d796dab3d47848af6ca814f1d61a7745cb7f742994b9659af8a30256e8ebb438517410c34060fa94703a5ef5804cbd89bb91b6ab0ee6973e533f9fcd
|
7
|
+
data.tar.gz: f0d82bc0efe24a5192556504e33782958e5e383360309607ac4c8efc0d7d203f229d72555d4e84632e40b9c838337bcdc3d94a5cfedd8f9985765c38267e67d2
|
data/README.md
CHANGED
@@ -49,32 +49,38 @@ Get in contact with the developers of `codes` on Twitter: [@KrauseFx](https://tw
|
|
49
49
|
|
50
50
|
-------
|
51
51
|
|
52
|
-
<h5 align="center"><code>codes</code> is part of <a href="
|
52
|
+
<h5 align="center"><code>codes</code> is part of <a href="https://fastlane.tools">fastlane</a>: connect all deployment tools into one streamlined workflow.</h5>
|
53
53
|
|
54
54
|
|
55
55
|
|
56
56
|
# Installation
|
57
57
|
sudo gem install codes
|
58
58
|
|
59
|
+
Make sure, you have the latest version of the Xcode command line tools installed:
|
60
|
+
|
61
|
+
xcode-select --install
|
62
|
+
|
59
63
|
# Why?
|
60
64
|
|
61
65
|
`codes` can help you automate sending promo codes to journalists and create promo codes for tons of apps with the press of a button.
|
62
66
|
|
63
67
|
# Usage
|
64
68
|
|
65
|
-
|
69
|
+
codes [num] [-a app_identifier] [-u user_name] [-i app_id] [-o output_file]
|
66
70
|
|
67
71
|
All parameters are optional.
|
68
72
|
|
69
|
-
`
|
73
|
+
`codes` will print out the promo codes and store them in a file called `codes_[your app identifier].txt` in the current directory by default.
|
70
74
|
|
71
75
|
Example:
|
72
76
|
|
73
|
-
|
77
|
+
codes 3 -a com.example.myApp
|
74
78
|
|
75
79
|
Will generate 3 promo codes for the the App with the Bundle Identifier `com.example.myApp`.
|
76
80
|
|
77
|
-
If you don't pass any paramaters, `
|
81
|
+
If you don't pass any paramaters, `codes` will generate a single promo code and print it on the command line.
|
82
|
+
|
83
|
+
![assets/codes.gif](assets/codes.gif)
|
78
84
|
|
79
85
|
##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
|
80
86
|
|
@@ -87,9 +93,9 @@ In case you prefer environment variables:
|
|
87
93
|
|
88
94
|
# Tips
|
89
95
|
|
90
|
-
## [`fastlane`](
|
96
|
+
## [`fastlane`](https://fastlane.tools) Toolchain
|
91
97
|
|
92
|
-
- [`fastlane`](
|
98
|
+
- [`fastlane`](https://fastlane.tools): Connect all deployment tools into one streamlined workflow
|
93
99
|
- [`deliver`](https://github.com/KrauseFx/deliver): Upload screenshots, metadata and your app to the App Store using a single command
|
94
100
|
- [`snapshot`](https://github.com/KrauseFx/snapshot): Automate taking localized screenshots of your iOS app on every device
|
95
101
|
- [`frameit`](https://github.com/KrauseFx/frameit): Quickly put your screenshots into the right device frames
|
data/bin/codes
CHANGED
@@ -16,7 +16,7 @@ class CodesApplication
|
|
16
16
|
program :version, Codes::VERSION
|
17
17
|
program :description, 'CLI for \'codes\' - Create promo codes for iOS Apps using the command line'
|
18
18
|
program :help, 'Author', 'Felix Krause <codes@krausefx.com>'
|
19
|
-
program :help, 'Website', '
|
19
|
+
program :help, 'Website', 'https://fastlane.tools'
|
20
20
|
program :help, 'GitHub', 'https://github.com/krausefx/codes'
|
21
21
|
program :help_formatter, :compact
|
22
22
|
|
data/lib/codes/codes_runner.rb
CHANGED
data/lib/codes/itunes_connect.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'fastlane_core/itunes_connect/itunes_connect'
|
2
2
|
|
3
|
-
module
|
4
|
-
class ItunesConnect
|
3
|
+
module Codes
|
4
|
+
class ItunesConnect < FastlaneCore::ItunesConnect
|
5
5
|
|
6
6
|
PROMO_URL = "https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wa/LCAppPage/viewPromoCodes?adamId="
|
7
7
|
|
data/lib/codes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.2.0
|
20
20
|
type: :runtime
|
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: 0.
|
26
|
+
version: 0.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,7 +138,7 @@ files:
|
|
138
138
|
- lib/codes/dependency_checker.rb
|
139
139
|
- lib/codes/itunes_connect.rb
|
140
140
|
- lib/codes/version.rb
|
141
|
-
homepage:
|
141
|
+
homepage: https://fastlane.tools
|
142
142
|
licenses:
|
143
143
|
- MIT
|
144
144
|
metadata: {}
|