meetup_orbit 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbc753203183aaba02954bca4c979f8b6d82a146dc2e538f55faa00c7b9a90fd
4
- data.tar.gz: 5e55cd5d2c4af97c24188bbcc4166946a6fdfacd849f487d8a9bddea4936661d
3
+ metadata.gz: 9f342083b64d6dd8fbe40eb08aafa29a732b7fe5bca958c47e554957ca8d4ae3
4
+ data.tar.gz: 7cc8ca1c89b59bddc8383b521d0acfb457c9b20b365c3a5bb33277bfdb56b69d
5
5
  SHA512:
6
- metadata.gz: 68d7c11ecc2a9bad11b415cda11d77d45afcccdf8374370eca3c80c95807b1e03890803091276b99e6eae278881a67d2eee0798794dd0a22908c5dcae86fee36
7
- data.tar.gz: 0421e61aa08e40b720f8be0a677984cbc965e2f1e363f24b2becdf34967ce61d67e066a5e7c5dcf1cde9afae7a2baeac978ad0a5ed3c2643267115dcf22e3d24
6
+ metadata.gz: 5747d74dde8cc4b798317990d4579f0b822ba85700542c1c50cebb189c35277052989c0411a107e09561e3b0567fb2e30ef0e8397d05ab53b793b561211597d2
7
+ data.tar.gz: e46d39b728acaffabb585ea8fe524324c5ce8ee9297c539029d3c593c5d98b222d9f8c1cc58d59c3e4b3c497ab6ea5a8ad461e120b23443a95665d290e016a62
data/Gemfile.lock CHANGED
@@ -13,24 +13,24 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (6.1.3.2)
16
+ activesupport (6.1.4)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 1.6, < 2)
19
19
  minitest (>= 5.1)
20
20
  tzinfo (~> 2.0)
21
21
  zeitwerk (~> 2.3)
22
- addressable (2.7.0)
22
+ addressable (2.8.0)
23
23
  public_suffix (>= 2.0.2, < 5.0)
24
24
  ast (2.4.2)
25
25
  byebug (11.1.3)
26
- concurrent-ruby (1.1.8)
26
+ concurrent-ruby (1.1.9)
27
27
  crack (0.4.5)
28
28
  rexml
29
29
  diff-lcs (1.4.4)
30
30
  domain_name (0.5.20190701)
31
31
  unf (>= 0.0.5, < 1.0.0)
32
32
  dotenv (2.7.6)
33
- ffi (1.15.1)
33
+ ffi (1.15.3)
34
34
  ffi-compiler (1.0.1)
35
35
  ffi (>= 1.0.0)
36
36
  rake
@@ -40,7 +40,7 @@ GEM
40
40
  http-cookie (~> 1.0)
41
41
  http-form_data (~> 2.2)
42
42
  http-parser (~> 1.2.0)
43
- http-cookie (1.0.3)
43
+ http-cookie (1.0.4)
44
44
  domain_name (~> 0.5)
45
45
  http-form_data (2.3.0)
46
46
  http-parser (1.2.3)
@@ -49,17 +49,17 @@ GEM
49
49
  concurrent-ruby (~> 1.0)
50
50
  json (2.5.1)
51
51
  minitest (5.14.4)
52
- orbit_activities (0.1.0)
52
+ orbit_activities (0.2.2)
53
53
  http (~> 4.4)
54
54
  json (~> 2.5)
55
55
  rake (~> 13.0)
56
56
  zeitwerk (~> 2.4)
57
57
  parallel (1.20.1)
58
- parser (3.0.1.1)
58
+ parser (3.0.2.0)
59
59
  ast (~> 2.4.1)
60
60
  public_suffix (4.0.6)
61
61
  rainbow (3.0.0)
62
- rake (13.0.3)
62
+ rake (13.0.6)
63
63
  regexp_parser (2.1.1)
64
64
  rexml (3.2.5)
65
65
  rspec (3.10.0)
@@ -75,16 +75,16 @@ GEM
75
75
  diff-lcs (>= 1.2.0, < 2.0)
76
76
  rspec-support (~> 3.10.0)
77
77
  rspec-support (3.10.2)
78
- rubocop (1.15.0)
78
+ rubocop (1.18.3)
79
79
  parallel (~> 1.10)
80
80
  parser (>= 3.0.0.0)
81
81
  rainbow (>= 2.2.2, < 4.0)
82
82
  regexp_parser (>= 1.8, < 3.0)
83
83
  rexml
84
- rubocop-ast (>= 1.5.0, < 2.0)
84
+ rubocop-ast (>= 1.7.0, < 2.0)
85
85
  ruby-progressbar (~> 1.7)
86
86
  unicode-display_width (>= 1.4.0, < 3.0)
87
- rubocop-ast (1.5.0)
87
+ rubocop-ast (1.8.0)
88
88
  parser (>= 3.0.1.1)
89
89
  ruby-progressbar (1.11.0)
90
90
  thor (1.1.0)
data/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  Add your Meetup interactions into your Orbit workspace with this community-built integration.
8
8
 
9
+ ![New RSVP in Orbit screenshot](readme-images/new-rsvp-screenshot.png)
10
+
9
11
  |<p align="left">:sparkles:</p> This is a *community project*. The Orbit team does its best to maintain it and keep it up to date with any recent API changes.<br/><br/>We welcome community contributions to make sure that it stays current. <p align="right">:sparkles:</p>|
10
12
  |-----------------------------------------|
11
13
 
data/bin/meetup_orbit CHANGED
File without changes
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "dotenv/load"
4
- require "net/http"
5
- require "json"
3
+ require 'dotenv/load'
4
+ require 'net/http'
5
+ require 'json'
6
6
 
7
7
  # Create a client to log Meetup activities in your Orbit workspace
8
8
  # Credentials can either be passed in to the instance or be loaded
@@ -29,9 +29,9 @@ module MeetupOrbit
29
29
  attr_accessor :orbit_api_key, :orbit_workspace, :meetup_urlname
30
30
 
31
31
  def initialize(params = {})
32
- @orbit_api_key = params.fetch(:orbit_api_key, ENV["ORBIT_API_KEY"])
33
- @orbit_workspace = params.fetch(:orbit_workspace, ENV["ORBIT_WORKSPACE_ID"])
34
- @meetup_urlname = params.fetch(:meetup_urlname, ENV["MEETUP_URLNAME"])
32
+ @orbit_api_key = params.fetch(:orbit_api_key, ENV['ORBIT_API_KEY'])
33
+ @orbit_workspace = params.fetch(:orbit_workspace, ENV['ORBIT_WORKSPACE_ID'])
34
+ @meetup_urlname = check_urlname(params.fetch(:meetup_urlname, ENV['MEETUP_URLNAME']))
35
35
  end
36
36
 
37
37
  def event_rsvps
@@ -41,5 +41,16 @@ module MeetupOrbit
41
41
  orbit_workspace: @orbit_workspace
42
42
  ).process_event_rsvps
43
43
  end
44
+
45
+ private
46
+
47
+ def check_urlname(urlname)
48
+ if urlname.start_with?('http://') || urlname.start_with?('https://') || urlname.start_with?('www') || urlname.start_with?('meetup.com')
49
+ raise ArgumentError,
50
+ "'meetup_urlname' parameter must only be the unique identifier of your meetup not the entire URL. Please refer to the README for more details."
51
+ end
52
+
53
+ urlname
54
+ end
44
55
  end
45
- end
56
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal = true
2
2
 
3
3
  module MeetupOrbit
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meetup_orbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orbit DevRel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-05-25 00:00:00.000000000 Z
12
+ date: 2021-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -164,6 +164,7 @@ files:
164
164
  - lib/meetup_orbit/orbit.rb
165
165
  - lib/meetup_orbit/version.rb
166
166
  - meetup_orbit.gemspec
167
+ - readme-images/new-rsvp-screenshot.png
167
168
  - readme-images/ways-to-use.png
168
169
  - scripts/check_rsvps.rb
169
170
  homepage: https://github.com/orbit-love/community-ruby-meetup-orbit