gdshowsdb 1.0.1 → 1.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
  SHA1:
3
- metadata.gz: a8ef250fda7cc55bb048b94c54b675c85dab6cfb
4
- data.tar.gz: ecfb9e53a052b7f75cec58c236046047601b5aec
3
+ metadata.gz: 204e6bfe83bc876a7e8f24e6505a713282b514a5
4
+ data.tar.gz: 44fefdc05dd3cfbf478f70095a31cb1183978ad7
5
5
  SHA512:
6
- metadata.gz: d4bc6024440d54a810f0bd10c7802d7dfb3ee0be9a1fbd04acc545e5378f7e68c7b67f8300056f3dba460f16702693e4ae71a426ee0c41cc86a81306ce5a0937
7
- data.tar.gz: d108638d343cfb0e317fbd4deb8c81bff2f8989e316beb84c49218b4c0ab421392d4c1d8d57c3c3795be6218617ff844a720a0ceadf6c1a1f7a67c2f3d120d73
6
+ metadata.gz: 1c424e4ea492f010c23fdc925ab0e658f2efeb7c8dab045de5c5b636a74617667e454fcd9beadd9ec51d7f18c935f1b15c9b392d2120043d8659113ee46ad298
7
+ data.tar.gz: c6aea358db76ea2eaee6aed1565ccae86e14541da76620a49b9ad8913e29bbaeb30f3dd58819f63341a48900a94087a71ac5ab4419bb9713e9126dbb3e8255d1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gdshowsdb (1.0.1)
4
+ gdshowsdb (1.0.2)
5
5
  friendly_id
6
6
  rails (~> 5.1)
7
7
 
@@ -59,6 +59,13 @@
59
59
  - :uuid: 03f3ee40-c993-42a8-8d50-645fd8688c84
60
60
  :name: Good Morning Little Schoolgirl
61
61
  :segued: false
62
+ 1968/01/17:
63
+ :uuid: 92b5edae-d6d8-4014-909e-719ad0dfaa0e
64
+ :venue: Carousel Ballroom
65
+ :city: San Francisco
66
+ :state: CA
67
+ :country: US
68
+ :sets: []
62
69
  1968/01/20:
63
70
  :uuid: 307814d5-509e-4115-93b7-1f5165304d00
64
71
  :venue: Eureka Municipal Auditorium
@@ -73,6 +80,13 @@
73
80
  :state: WA
74
81
  :country: US
75
82
  :sets: []
83
+ 1968/01/23:
84
+ :uuid: 6570a1e1-3eea-43c8-a30c-31af5e3fc29b
85
+ :venue: Eagles Auditorium
86
+ :city: Seattle
87
+ :state: WA
88
+ :country: US
89
+ :sets: []
76
90
  1968/01/26:
77
91
  :uuid: 61c2d049-e08c-4e81-bb9d-7094d325a5d0
78
92
  :venue: Eagles Auditorium
@@ -109,7 +123,14 @@
109
123
  :country: US
110
124
  :sets: []
111
125
  1968/02/03:
112
- :uuid: 53c06266-c58b-46b3-93dc-dcb38f61f1f9
126
+ :uuid: a2ed27b6-bf53-489d-ab0d-d9b956e34a8a
127
+ :venue: Crystal Ballroom
128
+ :city: Portland
129
+ :state: OR
130
+ :country: US
131
+ :sets: []
132
+ 1968/02/04:
133
+ :uuid: b6e8b6f2-2f59-4175-8729-118c95df9d31
113
134
  :venue: South Oregon College Gym
114
135
  :city: Ashland
115
136
  :state: OR
@@ -173,6 +194,13 @@
173
194
  - :uuid: c8c4bcb5-9c33-4928-aa78-4f29c8d6411f
174
195
  :name: In The Midnight Hour
175
196
  :segued: false
197
+ 1969/02/15:
198
+ :uuid: fae07860-6984-4729-a3b1-21752bd66c01
199
+ :venue: San Quentin State Prison
200
+ :city: San Quentin
201
+ :state: CA
202
+ :country: US
203
+ :sets: []
176
204
  1968/02/17:
177
205
  :uuid: f28ec4c8-5752-4e3b-b190-8ca5a954078d
178
206
  :venue: Selland Arena
@@ -350,6 +378,13 @@
350
378
  - :uuid: fd1912f9-5426-48b0-b35a-af2efa81d919
351
379
  :name: And We Bid You Good Night
352
380
  :segued: false
381
+ 1968/03/16:
382
+ :uuid: 0b2a9d1f-0e3f-46af-839e-9bdf9f1993ac
383
+ :venue: Carousel Ballroom
384
+ :city: San Francisco
385
+ :state: CA
386
+ :country: US
387
+ :sets: []
353
388
  1968/03/17:
354
389
  :uuid: 7c4ef0fa-d065-4f33-a9d7-c9ee0fa2fc90
355
390
  :venue: Carousel Ballroom
@@ -408,6 +443,13 @@
408
443
  - :uuid: d1a65c61-2dac-4aec-9296-ab94ccc052b4
409
444
  :name: Born Cross Eyed
410
445
  :segued: false
446
+ 1968/03/29:
447
+ :uuid: abf95adf-ab59-4b9d-9fc8-a51b86a8ecc3
448
+ :venue: Carousel Ballroom
449
+ :city: San Francisco
450
+ :state: CA
451
+ :country: US
452
+ :sets: []
411
453
  1968/03/30:
412
454
  :uuid: 07679958-7e25-4d7e-b792-928f7e93babe
413
455
  :venue: Carousel Ballroom
@@ -490,8 +532,22 @@
490
532
  - :uuid: 31bbc873-60b8-414c-a0bd-9b76045fd302
491
533
  :name: Morning Dew
492
534
  :segued: false
493
- 1968/05/07:
494
- :uuid: 57934069-3ab6-4445-ae6b-7c33abceec37
535
+ 1968/05/05:
536
+ :uuid: 446e3f4e-6886-4985-9366-20973ae0da08
537
+ :venue: Central Park
538
+ :city: New York
539
+ :state: NY
540
+ :country: US
541
+ :sets: []
542
+ 1968/05/07/0:
543
+ :uuid: bd8fe189-2345-4d59-a283-49924a224b8c
544
+ :venue: Electric Circus
545
+ :city: New York
546
+ :state: NY
547
+ :country: US
548
+ :sets: []
549
+ 1968/05/07/1:
550
+ :uuid: e5ae83f1-00c1-4cad-8db2-10b08875c812
495
551
  :venue: Electric Circus
496
552
  :city: New York
497
553
  :state: NY
@@ -599,6 +655,13 @@
599
655
  :state: MO
600
656
  :country: US
601
657
  :sets: []
658
+ 1968/05/25:
659
+ :uuid: db7fbcd8-af81-4e62-be1d-3b5f75878ffd
660
+ :venue: National Guard Armory
661
+ :city: St. Louis
662
+ :state: MO
663
+ :country: US
664
+ :sets: []
602
665
  1968/05/30:
603
666
  :uuid: 6874b663-2f33-4d71-97eb-795ee9c0db2a
604
667
  :venue: Carousel Ballroom
@@ -728,13 +791,13 @@
728
791
  :state: CA
729
792
  :country: US
730
793
  :sets: []
731
- 1968/06/24:
732
- :uuid: 4ac5fda4-85f9-4c2a-b216-44f77aeb6826
733
- :venue: National Guard Armory
734
- :city: St. Louis
735
- :state: MO
794
+ 1968/06/22:
795
+ :uuid: 03a5dfe3-0ceb-43cb-861d-86c7607a3b97
796
+ :venue: Phoenix Travelodge Theater
797
+ :city: Phoenix
798
+ :state: AZ
736
799
  :country: US
737
- :sets: []
800
+ :set: []
738
801
  1968/07/11:
739
802
  :uuid: 0606bd8e-5b2a-4c11-8e1a-93e3125abb18
740
803
  :venue: Shrine Exhibition Hall
@@ -897,6 +960,13 @@
897
960
  - :uuid: 61bd51c5-2fc4-43c1-9ac3-0a629954bcc0
898
961
  :name: And We Bid You Good Night
899
962
  :segued: false
963
+ 1968/08/21:
964
+ :uuid: 910b09c6-4c64-41b3-941c-231fb98aa20f
965
+ :venue: Fillmore West
966
+ :city: San Francisco
967
+ :state: CA
968
+ :country: US
969
+ :sets: []
900
970
  1968/08/23:
901
971
  :uuid: 37e6fc9e-e13a-4fe0-ae84-ce0b1b1c2237
902
972
  :venue: Shrine Exhibition Hall
@@ -1075,6 +1145,13 @@
1075
1145
  - :uuid: 1ead4df4-6d60-49a5-9e0e-803b24e0bc5a
1076
1146
  :name: Dark Star Jam
1077
1147
  :segued: false
1148
+ 1968/10/30:
1149
+ :uuid: 2d24feea-265e-457d-959b-4c6dd17e5ee3
1150
+ :venue: The Matrix
1151
+ :city: San Francisco
1152
+ :state: CA
1153
+ :country: US
1154
+ :sets: []
1078
1155
  1968/10/31:
1079
1156
  :uuid: 2abd97a6-2166-44ee-8ff4-570bd5086a0a
1080
1157
  :venue: The Matrix
@@ -1138,8 +1215,8 @@
1138
1215
  :state: WA
1139
1216
  :country: US
1140
1217
  :sets: []
1141
- 1968/11/21:
1142
- :uuid: e7faf2bc-fc88-47a1-b516-d753086bdb48
1218
+ 1968/11/22:
1219
+ :uuid: 1fe2ac3d-6f71-4f5a-99b1-09cc7202432f
1143
1220
  :venue: Veterans Hall
1144
1221
  :city: Columbus
1145
1222
  :state: OH
@@ -1215,8 +1292,8 @@
1215
1292
  :state: CA
1216
1293
  :country: US
1217
1294
  :sets: []
1218
- 1968/12/19:
1219
- :uuid: 425ebdac-3a08-4f17-b4bc-753407cf4e91
1295
+ 1968/12/20:
1296
+ :uuid: 53c6d2ed-3cc9-46a0-8334-f75b6afb3a23
1220
1297
  :venue: Shrine Exhibition Hall
1221
1298
  :city: Los Angeles
1222
1299
  :state: CA
@@ -1229,6 +1306,20 @@
1229
1306
  :state: CA
1230
1307
  :country: US
1231
1308
  :sets: []
1309
+ 1968/12/23:
1310
+ :uuid: f1f4dec9-e2b9-4323-b1fc-aadacac668e1
1311
+ :venue: The Matrix
1312
+ :city: San Francisco
1313
+ :state: CA
1314
+ :country: US
1315
+ :sets: []
1316
+ 1968/12/24:
1317
+ :uuid: 1bb9229d-eaf3-4252-853d-a54db4b3a4bb
1318
+ :venue: The Matrix
1319
+ :city: San Francisco
1320
+ :state: CA
1321
+ :country: US
1322
+ :sets: []
1232
1323
  1968/12/28:
1233
1324
  :uuid: 8ff4a076-405a-4945-a6e5-09d2c594137a
1234
1325
  :venue: Houston
@@ -20,7 +20,8 @@ class Show < ActiveRecord::Base
20
20
  end
21
21
 
22
22
  def self.remove_from(spec)
23
- Show.find_by_uuid(spec[:uuid]).delete
23
+ show = Show.find_by_uuid(spec[:uuid])
24
+ show.delete if show
24
25
  end
25
26
 
26
27
  def self.parse_date(readable_date)
@@ -34,24 +34,22 @@ class Song < ActiveRecord::Base
34
34
 
35
35
  def self.remove_from(spec)
36
36
  remove_song_relationships(spec)
37
- Song.find_by_uuid(spec[:uuid]).delete
37
+ song = Song.find_by_uuid(spec[:uuid])
38
+ song.delete if song
38
39
  end
39
40
 
40
41
  def self.remove_song_relationships(spec)
41
42
  song_ref = SongRef.find_by_name(spec[:name])
42
- song_ref.songs.delete(Song.find_by_uuid(spec[:uuid]))
43
- show_set = ShowSet.find_by_uuid(spec[:show_set_uuid])
44
-
45
- if show_set.nil?
46
- puts "%%%%%%%%%%%%%%%%%%%%%"
47
- puts spec.inspect
48
- puts spec[:show_set_uuid]
49
- end
43
+ return unless song_ref
44
+
45
+ song = Song.find_by_uuid(spec[:uuid])
46
+ return unless song
50
47
 
48
+ song_ref.songs.delete(song) if song_ref.songs
49
+ show_set = ShowSet.find_by_uuid(spec[:show_set_uuid])
50
+
51
51
  show = ShowSet.find_by_uuid(spec[:show_set_uuid]).show
52
52
 
53
-
54
-
55
53
  song_ref.song_occurences.where('show_uuid = ? and song_ref_uuid = ?', show.uuid, song_ref.uuid).each do | occurence|
56
54
  song_ref.song_occurences.delete(occurence)
57
55
  occurence.delete
@@ -1,3 +1,3 @@
1
1
  module Gdshowsdb
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdshowsdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-08 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails