fastlane-plugin-sharethemeal 0.1.6 → 0.1.7.pre.alpha.pre.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d366699fbb985892ee915f36e7da0eb1145a45ba
4
- data.tar.gz: dc1e8af3f1abfc3e9ce370c7cbfbdfd3ccdca4e2
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NWJkNjgxZWE1ZmE1ZGU0MjAyZjIxOTM2ZTkwYTYyZmY5MGY1ZTdlOA==
5
+ data.tar.gz: !binary |-
6
+ Nzg5NGE1OTgyOGJlZmU2YzNmNmJmMzdmNTMyNWRmY2UxNWRmNWUzNg==
5
7
  SHA512:
6
- metadata.gz: fd3505abc2cad322213a7a96565b60b339621b0821b294b0bc2f16b4fcf2ceb237666293b56509a6021f4b82ea73d5ab9035999e80770f71361c4425b4c85666
7
- data.tar.gz: f1136b303a54034d08f38a711231a8c08bd0d518523d4e82a76d05e57c1b9549b25c4a9b8a257496a93b5eb02e7518bcdb63ccc5df67c0dadf6807e558308919
8
+ metadata.gz: !binary |-
9
+ YTMwM2E2MmQ5NTEwMWViY2VhY2U5NTUwMjM4YTBhNmRkNTNhNTNlYjEyMTlh
10
+ ZjQ5ZDI1NjU2YmU4N2UyZjJmNDcwYjI4NGNiOTQyNjliNDQxZjEwYjlhM2Y2
11
+ MjgzYTdhZTEyNWE3NTI2MjVmNjViNDI2MzJkOGM2NjVjNGU1ZmE=
12
+ data.tar.gz: !binary |-
13
+ ZGRmNmM3YzczZDUzNmVkYTZjNTY5YTFlMjdjYTQxYjQwZDQwMDVlNjZjMTNj
14
+ NjNkZDc3ZTI5ODcxN2FlZTlkNzY5ZTEwNTQ2MWI2YTEzYjY1ZDI2ZmY5MTU4
15
+ MjQyMGUyOTAwOWZjMWQ0ZDU5NTkwYWU5NTZmYzI1ZjAwN2M3YmE=
data/README.md CHANGED
@@ -3,42 +3,49 @@
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-sharethemeal)
4
4
 
5
5
  <img src='https://sharethemeal.org/assets/img/apps-de@2x-c5fe00ca10.png' height=250>
6
- ![Screenshot](assets/screen.png)
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 | &nbsp; |
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Sharethemeal
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sharethemeal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7.pre.alpha.pre.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helmut Januschka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-13 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '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
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: stm_api
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: fastlane
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.104.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.104.0
125
125
  description:
@@ -134,7 +134,7 @@ files:
134
134
  - lib/fastlane/plugin/sharethemeal/actions/sharethemeal_action.rb
135
135
  - lib/fastlane/plugin/sharethemeal/helper/sharethemeal_helper.rb
136
136
  - lib/fastlane/plugin/sharethemeal/version.rb
137
- homepage:
137
+ homepage: https://github.com/hjanuschka/fastlane-plugin-sharethemeal
138
138
  licenses:
139
139
  - MIT
140
140
  metadata: {}
@@ -144,17 +144,17 @@ require_paths:
144
144
  - lib
145
145
  required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - ">="
147
+ - - ! '>='
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ">="
152
+ - - ! '>'
153
153
  - !ruby/object:Gem::Version
154
- version: '0'
154
+ version: 1.3.1
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.4.8
157
+ rubygems_version: 2.4.5
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: ShareTheMeal