meetalendar 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae3d433c1520818ba3b4ae9234da0d298dca9295a963a44d8c006560101f285a
4
- data.tar.gz: adf92c0d823795fb1c3d7409c6c9f2d48d04fc4e908bca0360c4c4fa6eb4e9e0
3
+ metadata.gz: 9376addb09ff4b8c7916bbbdc40f9a8f0770204f8ca46f6f914bdc9e234578d1
4
+ data.tar.gz: 6c19aa31f79a2791060962f8d0fe3807fccab88318fe5f043c9c8ad939e9e2e6
5
5
  SHA512:
6
- metadata.gz: 238d482fa5cc2eea84f5a7f95c77b583bb9692ecf75ef4c96c19b9d862f0edb1ebbfc173108fd6c1ceab7c145bf10c52bcc18922801990df507b887750f795ab
7
- data.tar.gz: 3399deaac0a1a5f86ec2bdb4fb1bf25e7d03eb971ab6c4df9d7710a76ba05fb2c3959dba52cf28f2f3dfe95adff8cc2b066f4a698263cff3c5320dccdf5b7b7d
6
+ metadata.gz: 223409fad48641dd06ddc8461bf2a9927ca6b288d8164c865c4a1b40ce99b413280005b60c4e88d88a2a839eef3163e723d737378e581f054864a72891f0fa0b
7
+ data.tar.gz: e8c15258875c71f8a0c257347ace59c428d5b5b97de2f75b496db8a772848f76d3d3e706ced75b7455311a5bcb85565eee72016e61c077d9b8f20f34a81df387
data/README.md CHANGED
@@ -44,10 +44,6 @@ $ bundle exec rake db:migrate
44
44
  ## Contributing
45
45
  Just try your best. Maybe you can achieve one of these goals.
46
46
 
47
- - [_] Wenn keine "approved cities" eingetragen sind, (oder wenn ein * oder ähnlich eingetragen ist) dann sollen alle Termine übertragen werden, egal in welcher Stadt sie stattfinden.
48
- - [_] Wenn keine City in der Venue im Event eingetragen ist, dann soll dieser Termin erstmal mit übertragen werden, und sofern bei einer späteren Syncronisation festgestellt wird, dass dieses bereits im GCal eingetragene Event doch nicht hätte übertragen werden sollen, weil es in einer "nicht approvten" Stadt stattfindet, dann soll es wieder aus dem GCal gelöscht werden. (Aber nur für zukünftige Events, nicht rückwirkend auf jene, die schon stattgefunden haben.)
49
- - [_] Wenn die "approvten cities" geändert werden, sollen ebenfalls die Termine, die noch in der Zukunft liegen entweder hinzugefügt oder gelöscht werden im GCal.
50
-
51
47
  - Erweiterung der Admin-Ansicht, sodass auch einzelne bisher ausgeschlossene Events "von Hand" hinzugefügt werden können.
52
48
  - [_] Noch mal darüber sprechen, woher die Events kommen sollen? So eine Art von Suche bei der die bereits selektierten/gespeicherten Gruppen ihre nächsten (für 3 Monate) Events anzeigen und man diese trotz abweichender Städte in den GCal übertregen kann?
53
49
 
@@ -75,11 +71,16 @@ What is the organization name?: HicknHack Software GmbH,
75
71
  Phone number: 0123456789,
76
72
  Description: We use the Meetup API to gather IT-Events in our city and surroundings to display them as part of our Local IT-Event Calendar. Up to now this was done by hand and shall now be replaced by some logic. (The calendar is public and free of cost or commercial interests.),
77
73
  Platform Terms of Service: Yes, I agree.,
74
+ Redirect URI: http://127.0.0.1:3000/admin
78
75
  ```
79
76
  -> The phone number is random, please check [our website](https://www.hicknhack-software.com/) if you want to do buisness with us.
80
77
 
81
78
  With this altered to fit your company and everything setup correctly you might have to wait one or two days until Meetup grants you premission. (When i tried this it seemed to be done by hand.)
82
79
 
80
+ The Redirect URI only needs to have part of your website's adress to be the same. In my example i took the path to the admin interface. As far as i know this is used to restrict who and where one can be redirected to with a certain auth-consumer.
81
+ When the Client sends it's authorization request to meetup it also sends the path to wich meetup is supposed to redirect to after. And if these pathes don't have the same beginning/host then it is probably a fishy request and needs to be ignored.
82
+ (This path is editable after you successfully got your OAuth-Consumer. So if you aren't perfectly sure what path it will be exactly, enter a good guess and test if it works. If not edit it later until it does.)
83
+
83
84
  When the time has come and your credentials are granted you will have to put them in the credentials.json, that will also have the google calendar credentials, like shown below.
84
85
 
85
86
  ### Google OAuth2 Credentials
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Meetalendar
4
4
 
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
 
7
7
  end
@@ -1,14 +1,7 @@
1
1
  namespace :meetalendar do
2
2
  desc 'Syncronize selected meetup groups events with the configured google calendar.'
3
- task :syncronize => :environment do
3
+ task :syncronize, [:google_calendar_id] => :environment do |task, args|
4
4
  require 'comfy/admin/meetalendar/meetups_calendar_syncer'
5
- Comfy::Admin::Meetalendar::MeetupsCalendarSyncer.sync_meetups_to_calendar(Comfy::Admin::Meetalendar::MeetupsCalendarSyncer.gather_selected_events(Time.now), 'andreasrschau@gmail.com', Time.now, Time.now + 1.year)
5
+ Comfy::Admin::Meetalendar::MeetupsCalendarSyncer.sync_meetups_to_calendar(Comfy::Admin::Meetalendar::MeetupsCalendarSyncer.gather_selected_events(Time.now), args[:google_calendar_id], Time.now, Time.now + 1.year)
6
6
  end
7
-
8
-
9
- # desc 'Syncronize selected meetup groups events with the configured google calendar.'
10
- # task :testoncli => :environment do
11
- # require 'comfy/admin/meetalendar/meetups_calendar_syncer'
12
- # Comfy::Admin::Meetalendar::MeetupsCalendarSyncer.gather_selected_events(Time.now)
13
- # end
14
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meetalendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Schau @ HicknHack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-02 00:00:00.000000000 Z
11
+ date: 2019-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails