fastlane-plugin-sharethemeal 0.1.5 → 0.1.6.pre.alpha.pre.16

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: 694b92cd8e7265be9b3bb248a409b6b5b8b49ec9
4
- data.tar.gz: 1582aeae13337a25e4a3da4217feea8fcd643fe5
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YzM4OTU1OThhZGFkNzJhNzZhNmY4MGYyMzIzY2RiZDM1NmU2NjEzNQ==
5
+ data.tar.gz: !binary |-
6
+ ZTBlYzZkOTU0NGRjNDg4YjQ4OWZjNTllN2RkYzU3YjVlZDEwNjIyMQ==
5
7
  SHA512:
6
- metadata.gz: f67c59a2d11956c0d2f9db877cc65fdb37d492fef6395f22c5c6a61dbb642b7c7cc6bddaa4529f813650ca51e40494fbd84aa03e9b63c27ff7543141159e7ba8
7
- data.tar.gz: 86566c94ffbca9b66a9d12a296df5e2c596e58dc9bb0dfa38cc1664f4aeea72baf8dc95a99f29b47f29d0aeae9d7a1431c780e52bddee2896994d3468d92141c
8
+ metadata.gz: !binary |-
9
+ MDkzMTQyODEwNDlmZTA4MzZiZWZhZGM2YjBlYmE0YzAzYTYxM2Q2YTczNTNm
10
+ MmNhNWE0YWYzODMxYWJmZjBkMjU4ZjA4ZTUzMjc4NTc0ZDEzODgwZGRkZjAw
11
+ ZTcwNDJlYzY4ODc3ODM1ODE5NDlmOWM0MzZjMTY4ZDlhN2M0NDU=
12
+ data.tar.gz: !binary |-
13
+ NTc0MWIyNjAxMDVmNzBkNzY3MjU1ZjM0OWJkNTZhYWYxODlkMjJjNjJkZjAw
14
+ NTk0ZjQwMDY5OTkzMDYzMGFhZjhiZDY0NGRkMzcxYmZhNmM5NjljNmYzMzlh
15
+ MjMwYTU1OTdiOTE4NjQyMjEyNWU5MGM3NGVhNDA3MjNlY2EyMzg=
data/README.md CHANGED
@@ -3,7 +3,7 @@
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](screen.png)
6
+ ![Screenshot](assets/screen.png)
7
7
 
8
8
  ## About
9
9
  > This Plugin Enables unattended automated Donations of any size to the ShareTheMeal Inititative from the World-Food-Program
@@ -25,16 +25,21 @@ fastlane add_plugin sharethemeal
25
25
 
26
26
  ### Get your UserHash
27
27
  In Order to automate donation you require to store your payment method (preffered PayPal)
28
- So do a single donation, on iOS this opens a Safari instance, look at the url and extract your `userHash`
28
+ Download The App to your Mobile, and configure it.
29
29
 
30
- Download The App to your Mobile.
30
+ | | Step |
31
+ |----------|:-------------|
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 |
35
+ | 📱 | 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**) |
31
38
 
32
- | Platform | Link |
33
- |----------|:-------------:|
34
- | IOS | [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) |
35
- | ANDROID | [PlayStore](https://play.google.com/store/apps/details?id=org.sharethemeal.app&referrer=utm_source%3Dstmwebsite%26utm_medium%3Dwebsite%26utm_campaign%3Dpermanent) |
36
39
 
37
- **Donate Once**, in the Safari instance that opens - you'll find your `userHash` - this is required to automate the donation.
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)
42
+
38
43
 
39
44
  ## Example
40
45
 
@@ -49,18 +54,10 @@ lane :donate do
49
54
  end
50
55
  ```
51
56
 
52
-
53
- ## Issues and Feedback
54
-
55
- For any other issues and feedback about this plugin, please submit it to this repository.
56
-
57
57
  ## Troubleshooting
58
58
 
59
59
  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
60
 
61
- ## Using `fastlane` Plugins
62
-
63
- For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Plugins.md).
64
61
 
65
62
  ## About `fastlane`
66
63
 
@@ -10,11 +10,25 @@ module Fastlane
10
10
  FastlaneCore::PrintTable.print_values(config: params, hide_keys: [:userhash], title: "Summary for ShareTheMeal")
11
11
  api = StmApi::Donation.new(params)
12
12
  result = api.donate(amount: params[:amount])
13
+
13
14
  if result == true
14
15
  UI.success "Successfully Donated #{params[:amount]} #{params[:currency]} to ShareTheMeal 🍔 "
16
+
17
+ rows = []
18
+ team = api.find_one_team("fastlane")
19
+ rows << [team["teamId"], team["numberOfMembers"], team["numberOfMeals"], team["teamPower"]]
20
+ puts ""
21
+ puts Terminal::Table.new(
22
+ title: "Team Status".green,
23
+ headings: ["Name", "Members 👨👨👧", "Meals 🍕", "Power ⚡️"],
24
+ rows: rows
25
+ )
26
+ puts ""
27
+
15
28
  else
16
29
  UI.important 'Donation was not successfully accepted, maybe card is invalid or something else'
17
30
  end
31
+
18
32
  rescue => err
19
33
  puts err.backtrace
20
34
  UI.error "Donation failed, be sure that you have done atleast one manual donation with a stored payment option: #{err.backtrace}"
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Sharethemeal
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
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.5
4
+ version: 0.1.6.pre.alpha.pre.16
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-11 00:00:00.000000000 Z
11
+ date: 2016-10-13 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:
@@ -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