fastlane-plugin-sharethemeal 0.1.6.pre.alpha.pre.23 → 0.1.6.pre.alpha.pre.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Mjg0MmRlZTQ2NWZjNjc4ZjI1Mzg0YTgxZTM4NTUzOWRjY2UwNDNlMg==
4
+ ZTI1MGI0ZDFiMDk4ZDI2ZjYyYzc5NTM2Yzg0ZDU3ZjAzMTY4Nzc3Zg==
5
5
  data.tar.gz: !binary |-
6
- YjFjOGM4ZWU0ZGZlZWYwYTNmNmM0YzFmZDY1YmI0N2Q5ODkwYmM1NA==
6
+ OTM0MmYyYTVmYzFiOTM4YzUzZGNlNzk1MjFlZDAyOWEyODJjY2VhMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmI1ZmMyNDRmN2Y2YzEzN2MyOWY4M2Q0Zjk3OWJjMWFlN2FkNDYwZTZhYTIz
10
- YTkyYzFkY2VmMjM4MTFjMDIxZWU2MDMyMWFmYWJjZWYwYWNhMGZmNGIyYjVk
11
- MjJlOWE3YzI0YmM4MWVlMmQ1NDg0NzU4NDdhYzFjMDg2ZmVmZWY=
9
+ NWFhNTEyYTdhNzUwZDA2NWE3MjBmNWI4N2E3Mjg3OWM0ZWE0NzNmODVmYjAy
10
+ MzFmZTIwZmM5YTg1ODBkNTRjYWNmMmM1NTI2ODUyNzEwZTU5M2M2ZWNkM2Yy
11
+ ZDIwYjYxM2NmZWRiOTg5MjQwZTY1ODk1M2IzMjBiNGYyNmVlMzk=
12
12
  data.tar.gz: !binary |-
13
- MjJiYTJkMjUxNWQ4NTgyNDY4ZTU3MjNmZGI1YmRhOWJkZjQ2ZjI1NGEwZjNm
14
- MzUzYWY2MzM1OTQ4MjAyMWQ5YWFkZmFiMTMyZjA2NTIyZDYzODIyY2E5NmVk
15
- NWJlNjJiZGZjNTU5YzgwM2I4NmU4ZDUxZTU5ODMxYzM3Yjk3MjI=
13
+ ZmM2NjI0N2EyNzU0ZGM3MzUzNTYyMzRjYTlkZDAzYzU2YzUzMDAwMTE3ZjNh
14
+ ZmVlZWFkZWM0OGY1YmNmYjdmYTBlZDI5ODYwZWU1MjE0NGZkNTAzZmU3N2E4
15
+ ZmNlN2M1MTkxYjU2OTFjYTFkYjRiODNhZjFkOTJlNDI0MDdkODM=
data/README.md CHANGED
@@ -6,39 +6,46 @@
6
6
  ![Screenshot](assets/screen1.png)
7
7
 
8
8
  ## About
9
- > This Plugin Enables unattended automated Donations of any size to the ShareTheMeal Inititative from the World-Food-Program
10
9
 
11
- [fastlane](https://fastlane.tools) saves us hours of work, which eventually saves us a lot of money.
12
- This is my way of reminding myself to give, on every deploy using [fastlane](https://fastlane.tools).
10
+ > Using this _fastlane_ plugin you can automatically donate food on [ShareTheMeal](https://sharethemeal.org) using _fastlane_.
11
+
12
+ [fastlane](https://fastlane.tools) saves us hours of work, which eventually saves us a lot of money. This is my way of reminding myself to give, on every deploy using [fastlane](https://fastlane.tools).
13
13
 
14
14
 
15
15
  ## ShareTheMeal
16
16
 
17
- ShareTheMeal is a crowdfunding application to fight global hunger launched by the United Nations World Food Programme (WFP) in 2015. It enables users to make small donations to specific WFP projects and to track its progress. As of August 2016, ShareTheMeal has over 600,000 downloads and 7 million meals shared.
17
+ [ShareTheMeal](https://sharethemeal.org) is a crowdfunding application to fight global hunger launched by the United Nations World Food Programme (WFP) in 2015. It enables users to make small donations to specific WFP projects and to track its progress. As of August 2016, ShareTheMeal has over 600,000 downloads and 7 million meals shared.
18
18
 
19
19
 
20
20
  ## Setup
21
+
21
22
  ### Add Plugin
22
23
  ```
23
24
  fastlane add_plugin sharethemeal
24
25
  ```
25
26
 
26
27
  ### Get your UserHash
27
- In Order to automate donation you require to store your payment method (preffered PayPal)
28
- Download The App to your Mobile, and configure it.
28
+
29
+ To get started, you have to provide the payment information on your account
29
30
 
30
31
  | | Step |
31
32
  |----------|:-------------|
32
- | 💾 | Download [Appstore](https://click.google-analytics.com/redirect?tid=UA-58737077-1&url=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fsharethemeal%2Fid977130010&aid=org.sharethemeal.app&idfa=%{idfa}&cs=stmwebsite&cm=website&cn=permanent),[PlayStore](https://play.google.com/store/apps/details?id=org.sharethemeal.app&referrer=utm_source%3Dstmwebsite%26utm_medium%3Dwebsite%26utm_campaign%3Dpermanent) |
33
- | 🚀 | Launch the App |
34
- | 🍕 | Do a Single Donation |
33
+ | 💾 | Download the ShareTheMeal app ([Appstore](https://itunes.apple.com/us/app/sharethemeal/id977130010), [Google Play](https://play.google.com/store/apps/details?id=org.sharethemeal.app) |
34
+ | 🚀 | Open the app |
35
+ | 🍕 | Do a single donation manually to enter your credit card information |
35
36
  | 📱 | Login and go to your profile |
36
- | 🛠 | go to settings |
37
- | 👊 | tap a few times (~10) on the Version label (e.g: **3.0.2(184) Production**) |
37
+ | 🛠 | Open the setting screen |
38
+ | 👊 | Tap the version label at the bottom a few times |
39
+
38
40
 
41
+ | Setup |   |
42
+ |---|---|
43
+ | **Step 1** | **Step 2** |
44
+ | <img src='assets/setup1.png' height=500> | <img src='assets/setup2.png' height=500> |
45
+ | **Step 3** | **Step 4** |
46
+ | <img src='assets/setup3.png' height=500> | <img src='assets/setup4.png' height=500> |
39
47
 
40
-
41
- For a detailed step by step guide on how to obtain your user hash you can see [Step by Step Guide](STEP_BY_STEP.md)
48
+ After this you have your `userhash` in the clipboard.
42
49
 
43
50
 
44
51
  ## Example
@@ -48,17 +55,23 @@ lane :donate do
48
55
  sharethemeal(
49
56
  amount: "0.4",
50
57
  userhash: "XXX",
51
- currency: "EUR",
52
- team_id: "fastlane"
58
+ currency: "EUR"
53
59
  )
54
60
  end
61
+
62
+ lane :deployment do
63
+ gym # Build your app
64
+ deliver # Submit your app
65
+ donate # Call the `donate` lane
66
+ end
55
67
  ```
56
68
 
69
+ You can also pass the userhash in your `SHARETHEMEAL_USERHASH` environment variable.
70
+
57
71
  ## Troubleshooting
58
72
 
59
73
  If you have trouble using plugins, check out the [Plugins Troubleshooting](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/PluginsTroubleshooting.md) doc in the main `fastlane` repo.
60
74
 
61
-
62
75
  ## About `fastlane`
63
76
 
64
- `fastlane` is the easiest way to automate building and releasing your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
77
+ `fastlane` is the easiest way to automate building and releasing your iOS and Android apps. Check out [fastlane.tools](https://fastlane.tools).
@@ -9,6 +9,7 @@ module Fastlane
9
9
  def self.run(params)
10
10
  FastlaneCore::PrintTable.print_values(config: params, hide_keys: [:userhash], title: "Summary for ShareTheMeal")
11
11
  api = StmApi::Donation.new(params)
12
+ UI.user_error!("Please use a . to provide decimales (e.g. 0.5 for 50 cents)") if params[:amount].include?(",")
12
13
  result = api.donate(amount: params[:amount])
13
14
 
14
15
  if result == true
@@ -35,7 +36,7 @@ module Fastlane
35
36
  end
36
37
 
37
38
  def self.description
38
- 'Donate ShareTheMeal'
39
+ 'Donate food via ShareTheMeal'
39
40
  end
40
41
 
41
42
  def self.authors
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sharethemeal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.pre.alpha.pre.23
4
+ version: 0.1.6.pre.alpha.pre.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helmut Januschka