meetup-generator 0.0.20210128 → 1.2.84

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,213 +1,216 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meetup-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20210128
4
+ version: 1.2.84
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-28 00:00:00.000000000 Z
11
+ date: 2018-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: puma
14
+ name: sinatra
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.1'
19
+ version: '2.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '5.1'
29
+ version: '2.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.0.1
27
33
  - !ruby/object:Gem::Dependency
28
- name: sinatra
34
+ name: slim
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '2.1'
39
+ version: '3.0'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.0.0
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
47
  - - "~>"
39
48
  - !ruby/object:Gem::Version
40
- version: '2.1'
49
+ version: '3.0'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.0.0
41
53
  - !ruby/object:Gem::Dependency
42
- name: slim
54
+ name: puma
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
45
57
  - - "~>"
46
58
  - !ruby/object:Gem::Version
47
- version: '4.1'
59
+ version: '3.11'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 3.11.0
48
63
  type: :runtime
49
64
  prerelease: false
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
52
67
  - - "~>"
53
68
  - !ruby/object:Gem::Version
54
- version: '4.1'
69
+ version: '3.11'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 3.11.0
55
73
  - !ruby/object:Gem::Dependency
56
74
  name: bundler
57
75
  requirement: !ruby/object:Gem::Requirement
58
76
  requirements:
59
77
  - - "~>"
60
78
  - !ruby/object:Gem::Version
61
- version: '2.0'
79
+ version: '1.3'
62
80
  type: :development
63
81
  prerelease: false
64
82
  version_requirements: !ruby/object:Gem::Requirement
65
83
  requirements:
66
84
  - - "~>"
67
85
  - !ruby/object:Gem::Version
68
- version: '2.0'
86
+ version: '1.3'
69
87
  - !ruby/object:Gem::Dependency
70
88
  name: minitest
71
89
  requirement: !ruby/object:Gem::Requirement
72
90
  requirements:
73
91
  - - "~>"
74
92
  - !ruby/object:Gem::Version
75
- version: '5.14'
93
+ version: '5.11'
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 5.11.0
76
97
  type: :development
77
98
  prerelease: false
78
99
  version_requirements: !ruby/object:Gem::Requirement
79
100
  requirements:
80
101
  - - "~>"
81
102
  - !ruby/object:Gem::Version
82
- version: '5.14'
103
+ version: '5.11'
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 5.11.0
83
107
  - !ruby/object:Gem::Dependency
84
108
  name: nokogiri
85
109
  requirement: !ruby/object:Gem::Requirement
86
110
  requirements:
87
111
  - - "~>"
88
112
  - !ruby/object:Gem::Version
89
- version: '1.10'
113
+ version: '1.8'
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 1.8.0
90
117
  type: :development
91
118
  prerelease: false
92
119
  version_requirements: !ruby/object:Gem::Requirement
93
120
  requirements:
94
121
  - - "~>"
95
122
  - !ruby/object:Gem::Version
96
- version: '1.10'
123
+ version: '1.8'
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 1.8.0
97
127
  - !ruby/object:Gem::Dependency
98
128
  name: rack-test
99
129
  requirement: !ruby/object:Gem::Requirement
100
130
  requirements:
101
131
  - - "~>"
102
132
  - !ruby/object:Gem::Version
103
- version: '1.1'
133
+ version: '0.8'
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 0.8.0
104
137
  type: :development
105
138
  prerelease: false
106
139
  version_requirements: !ruby/object:Gem::Requirement
107
140
  requirements:
108
141
  - - "~>"
109
142
  - !ruby/object:Gem::Version
110
- version: '1.1'
143
+ version: '0.8'
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 0.8.0
111
147
  - !ruby/object:Gem::Dependency
112
148
  name: rake
113
149
  requirement: !ruby/object:Gem::Requirement
114
150
  requirements:
115
151
  - - "~>"
116
152
  - !ruby/object:Gem::Version
117
- version: '13.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
153
+ version: '12.3'
154
+ - - ">="
123
155
  - !ruby/object:Gem::Version
124
- version: '13.0'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1.9'
156
+ version: 12.3.0
132
157
  type: :development
133
158
  prerelease: false
134
159
  version_requirements: !ruby/object:Gem::Requirement
135
160
  requirements:
136
161
  - - "~>"
137
162
  - !ruby/object:Gem::Version
138
- version: '1.9'
139
- - !ruby/object:Gem::Dependency
140
- name: rubocop-minitest
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '0.10'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
163
+ version: '12.3'
164
+ - - ">="
151
165
  - !ruby/object:Gem::Version
152
- version: '0.10'
166
+ version: 12.3.0
153
167
  - !ruby/object:Gem::Dependency
154
- name: rubocop-performance
168
+ name: rubocop
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: '1.3'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '1.3'
167
- - !ruby/object:Gem::Dependency
168
- name: rubocop-rake
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
173
+ version: '0.52'
174
+ - - ">="
172
175
  - !ruby/object:Gem::Version
173
- version: '0.5'
176
+ version: 0.52.0
174
177
  type: :development
175
178
  prerelease: false
176
179
  version_requirements: !ruby/object:Gem::Requirement
177
180
  requirements:
178
181
  - - "~>"
179
182
  - !ruby/object:Gem::Version
180
- version: '0.5'
183
+ version: '0.52'
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: 0.52.0
181
187
  description: Generates a website advertising a fictional DevOps meetup, using all
182
188
  the latest buzzwords, new-shiny, and clichés
183
- email: rob@sysdef.xyz
184
- executables:
185
- - meetup-generator.rb
186
- - locate_meetup-generator
189
+ email: slackboy@gmail.com
190
+ executables: []
187
191
  extensions: []
188
192
  extra_rdoc_files: []
189
193
  files:
194
+ - ".gitignore"
195
+ - ".travis.yml"
190
196
  - Gemfile
191
- - Gemfile.lock
192
197
  - LICENSE.txt
193
198
  - README.md
194
199
  - Rakefile
195
- - bin/locate_meetup-generator
196
200
  - bin/meetup-generator.rb
197
201
  - config.ru
198
202
  - lib/all_the_things.yaml
199
- - lib/locator.rb
200
- - lib/meetup_generator.rb
201
- - lib/words.gz
203
+ - lib/build_helpers.rb
204
+ - lib/meetup-generator.rb
205
+ - lib/version.rb
202
206
  - meetup-generator.gemspec
203
- - package/meetup-generator.xml
204
207
  - public/css/main.css
205
208
  - public/favicon.ico
206
209
  - public/zxspectr.woff
207
210
  - spec/acceptance_spec.rb
208
- - spec/meetup_generator_spec.rb
211
+ - spec/unit_spec.rb
209
212
  - views/default.slim
210
- - views/partial_talk.slim
213
+ - website.xml
211
214
  homepage: https://github.com/snltd/meetup-generator
212
215
  licenses:
213
216
  - BSD-2-Clause
@@ -220,17 +223,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
223
  requirements:
221
224
  - - ">="
222
225
  - !ruby/object:Gem::Version
223
- version: 2.5.0
226
+ version: 2.2.0
224
227
  required_rubygems_version: !ruby/object:Gem::Requirement
225
228
  requirements:
226
229
  - - ">="
227
230
  - !ruby/object:Gem::Version
228
231
  version: '0'
229
232
  requirements: []
230
- rubygems_version: 3.0.8
233
+ rubyforge_project:
234
+ rubygems_version: 2.7.6
231
235
  signing_key:
232
236
  specification_version: 4
233
237
  summary: Stupid fatuous random string generatpr
234
238
  test_files:
235
239
  - spec/acceptance_spec.rb
236
- - spec/meetup_generator_spec.rb
240
+ - spec/unit_spec.rb
data/Gemfile.lock DELETED
@@ -1,84 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- meetup-generator (0.0.20210128)
5
- puma (~> 5.1)
6
- sinatra (~> 2.1)
7
- slim (~> 4.1)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- ast (2.4.2)
13
- mini_portile2 (2.5.0)
14
- minitest (5.14.3)
15
- mustermann (1.1.1)
16
- ruby2_keywords (~> 0.0.1)
17
- nio4r (2.5.4)
18
- nokogiri (1.11.1)
19
- mini_portile2 (~> 2.5.0)
20
- racc (~> 1.4)
21
- parallel (1.20.1)
22
- parser (3.0.0.0)
23
- ast (~> 2.4.1)
24
- puma (5.2.0)
25
- nio4r (~> 2.0)
26
- racc (1.5.2)
27
- rack (2.2.3)
28
- rack-protection (2.1.0)
29
- rack
30
- rack-test (1.1.0)
31
- rack (>= 1.0, < 3)
32
- rainbow (3.0.0)
33
- rake (13.0.3)
34
- regexp_parser (2.0.3)
35
- rexml (3.2.4)
36
- rubocop (1.9.0)
37
- parallel (~> 1.10)
38
- parser (>= 3.0.0.0)
39
- rainbow (>= 2.2.2, < 4.0)
40
- regexp_parser (>= 1.8, < 3.0)
41
- rexml
42
- rubocop-ast (>= 1.2.0, < 2.0)
43
- ruby-progressbar (~> 1.7)
44
- unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.4.1)
46
- parser (>= 2.7.1.5)
47
- rubocop-minitest (0.10.3)
48
- rubocop (>= 0.87, < 2.0)
49
- rubocop-performance (1.9.2)
50
- rubocop (>= 0.90.0, < 2.0)
51
- rubocop-ast (>= 0.4.0)
52
- rubocop-rake (0.5.1)
53
- rubocop
54
- ruby-progressbar (1.11.0)
55
- ruby2_keywords (0.0.4)
56
- sinatra (2.1.0)
57
- mustermann (~> 1.0)
58
- rack (~> 2.2)
59
- rack-protection (= 2.1.0)
60
- tilt (~> 2.0)
61
- slim (4.1.0)
62
- temple (>= 0.7.6, < 0.9)
63
- tilt (>= 2.0.6, < 2.1)
64
- temple (0.8.2)
65
- tilt (2.0.10)
66
- unicode-display_width (2.0.0)
67
-
68
- PLATFORMS
69
- ruby
70
-
71
- DEPENDENCIES
72
- bundler (~> 2.0)
73
- meetup-generator!
74
- minitest (~> 5.14)
75
- nokogiri (~> 1.10)
76
- rack-test (~> 1.1)
77
- rake (~> 13.0)
78
- rubocop (~> 1.9)
79
- rubocop-minitest (~> 0.10)
80
- rubocop-performance (~> 1.3)
81
- rubocop-rake (~> 0.5)
82
-
83
- BUNDLED WITH
84
- 2.2.3
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require_relative '../lib/locator'
5
-
6
- puts locate_config_ru
data/lib/locator.rb DELETED
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'pathname'
4
-
5
- def locate_config_ru
6
- Pathname.new(__FILE__).dirname.parent + 'config.ru'
7
- end
@@ -1,106 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'yaml'
4
- require 'date'
5
- require 'zlib'
6
-
7
- LIB = Pathname.new(__dir__)
8
-
9
- # Everything needed for a meetup generator
10
- #
11
- class MeetupGenerator
12
- attr_reader :words, :lib
13
-
14
- def initialize
15
- @words = Zlib::GzipReader.open(LIB + 'words.gz').readlines.map(&:strip)
16
- @lib = YAML.safe_load(IO.read(LIB + 'all_the_things.yaml'),
17
- symbolize_names: true)
18
- end
19
-
20
- # @param num [Integer] how many talks you want
21
- # @return [Hash] full meetup agenda
22
- #
23
- def agenda(num = 5)
24
- { talks: lib[:template].sample(num).map { |t| talk(t) },
25
- refreshment: refreshment,
26
- location: location,
27
- date: date }
28
- end
29
-
30
- # @param templates [Array[String]] array of templates
31
- #
32
- def talk(template = random_template)
33
- { title: title(template),
34
- talker: talker,
35
- role: role,
36
- company: company }
37
- end
38
-
39
- def location
40
- 'Shoreditch, probably'
41
- end
42
-
43
- def date
44
- (Date.today + 1).strftime('%d/%m/%Y')
45
- end
46
-
47
- def title(template = random_template)
48
- replace_word(replace_number(replace_ops(replace_things(template))))
49
- end
50
-
51
- def random_template(number = 1)
52
- lib[:template].sample(number).first
53
- end
54
-
55
- def talker
56
- pair(:first_name, :last_name)
57
- end
58
-
59
- def role
60
- pair(:job_role, :job_title)
61
- end
62
-
63
- def refreshment
64
- pair(:food_style, :food)
65
- end
66
-
67
- def company
68
- format('%<word>s.io', word: words.sample.sub(/([^aeiou])er$/, '\\1r'))
69
- end
70
-
71
- def something_ops
72
- (lib[:something_ops] * 4).sample(rand(2..4)).join + 'Ops'
73
- end
74
-
75
- def pair(list1, list2)
76
- [lib[list1].sample, lib[list2].sample].join(' ')
77
- end
78
-
79
- def replace_things(template)
80
- return template unless template =~ /%[a-z_]+%/
81
-
82
- replace_things(template.sub(/%([a-z_]+)%/) do
83
- lib[Regexp.last_match(1).to_sym].sample
84
- end)
85
- end
86
-
87
- def replace_word(template)
88
- return template unless template.include?('%WORD%')
89
-
90
- replace_word(template.sub('%WORD%', words.sample.capitalize))
91
- end
92
-
93
- def replace_ops(template)
94
- return template unless template.include?('%FNOPS%')
95
-
96
- replace_ops(template.sub('%FNOPS%', something_ops))
97
- end
98
-
99
- def replace_number(template)
100
- return template unless template =~ /%RAND\d+%/
101
-
102
- replace_number(template.sub(/%RAND(\d+)%/) do
103
- rand(2..Regexp.last_match(1).to_i).to_s
104
- end)
105
- end
106
- end