enju_event 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/lib/enju_event.rb +17 -0
- data/lib/enju_event/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- metadata +4 -26
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample1.tsv +0 -5
- data/spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample2.tsv +0 -3
- data/spec/dummy/solr/data/test/index/_2s.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_2s.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_2s.fnm +0 -4
- data/spec/dummy/solr/data/test/index/_2s.frq +0 -0
- data/spec/dummy/solr/data/test/index/_2s.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_2s.prx +0 -0
- data/spec/dummy/solr/data/test/index/_2s.tii +0 -0
- data/spec/dummy/solr/data/test/index/_2s.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments_2k +0 -0
data/MIT-LICENSE
CHANGED
data/lib/enju_event.rb
CHANGED
@@ -2,4 +2,21 @@ require "enju_event/engine"
|
|
2
2
|
require 'event_calendar'
|
3
3
|
|
4
4
|
module EnjuEvent
|
5
|
+
def self.included(base)
|
6
|
+
base.extend(ClassMethods)
|
7
|
+
end
|
8
|
+
|
9
|
+
module ClassMethods
|
10
|
+
def enju_event
|
11
|
+
include EnjuEvent::InstanceMethods
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module InstanceMethods
|
16
|
+
def get_event
|
17
|
+
@event = Event.find(params[:event_id]) if params[:event_id]
|
18
|
+
end
|
19
|
+
end
|
5
20
|
end
|
21
|
+
|
22
|
+
ActionController::Base.send(:include, EnjuEvent)
|
data/lib/enju_event/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -477,7 +477,6 @@ files:
|
|
477
477
|
- spec/dummy/config/locales/en.yml
|
478
478
|
- spec/dummy/config/routes.rb
|
479
479
|
- spec/dummy/config.ru
|
480
|
-
- spec/dummy/db/development.sqlite3
|
481
480
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
482
481
|
- spec/dummy/db/migrate/059_create_libraries.rb
|
483
482
|
- spec/dummy/db/migrate/069_create_shelves.rb
|
@@ -504,8 +503,6 @@ files:
|
|
504
503
|
- spec/dummy/lib/enju_leaf/master_model.rb
|
505
504
|
- spec/dummy/lib/enju_leaf/url_validator.rb
|
506
505
|
- spec/dummy/lib/enju_leaf.rb
|
507
|
-
- spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample1.tsv
|
508
|
-
- spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample2.tsv
|
509
506
|
- spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_destroy_file.tsv
|
510
507
|
- spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample1.tsv
|
511
508
|
- spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample2.tsv
|
@@ -530,16 +527,8 @@ files:
|
|
530
527
|
- spec/dummy/solr/conf/spellings.txt
|
531
528
|
- spec/dummy/solr/conf/stopwords.txt
|
532
529
|
- spec/dummy/solr/conf/synonyms.txt
|
533
|
-
- spec/dummy/solr/data/test/index/_2s.fdt
|
534
|
-
- spec/dummy/solr/data/test/index/_2s.fdx
|
535
|
-
- spec/dummy/solr/data/test/index/_2s.fnm
|
536
|
-
- spec/dummy/solr/data/test/index/_2s.frq
|
537
|
-
- spec/dummy/solr/data/test/index/_2s.nrm
|
538
|
-
- spec/dummy/solr/data/test/index/_2s.prx
|
539
|
-
- spec/dummy/solr/data/test/index/_2s.tii
|
540
|
-
- spec/dummy/solr/data/test/index/_2s.tis
|
541
530
|
- spec/dummy/solr/data/test/index/segments.gen
|
542
|
-
- spec/dummy/solr/data/test/index/
|
531
|
+
- spec/dummy/solr/data/test/index/segments_1
|
543
532
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
544
533
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
545
534
|
- spec/factories/country.rb
|
@@ -644,7 +633,6 @@ test_files:
|
|
644
633
|
- spec/dummy/config/locales/en.yml
|
645
634
|
- spec/dummy/config/routes.rb
|
646
635
|
- spec/dummy/config.ru
|
647
|
-
- spec/dummy/db/development.sqlite3
|
648
636
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
649
637
|
- spec/dummy/db/migrate/059_create_libraries.rb
|
650
638
|
- spec/dummy/db/migrate/069_create_shelves.rb
|
@@ -671,8 +659,6 @@ test_files:
|
|
671
659
|
- spec/dummy/lib/enju_leaf/master_model.rb
|
672
660
|
- spec/dummy/lib/enju_leaf/url_validator.rb
|
673
661
|
- spec/dummy/lib/enju_leaf.rb
|
674
|
-
- spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample1.tsv
|
675
|
-
- spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample2.tsv
|
676
662
|
- spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_destroy_file.tsv
|
677
663
|
- spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample1.tsv
|
678
664
|
- spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample2.tsv
|
@@ -697,16 +683,8 @@ test_files:
|
|
697
683
|
- spec/dummy/solr/conf/spellings.txt
|
698
684
|
- spec/dummy/solr/conf/stopwords.txt
|
699
685
|
- spec/dummy/solr/conf/synonyms.txt
|
700
|
-
- spec/dummy/solr/data/test/index/_2s.fdt
|
701
|
-
- spec/dummy/solr/data/test/index/_2s.fdx
|
702
|
-
- spec/dummy/solr/data/test/index/_2s.fnm
|
703
|
-
- spec/dummy/solr/data/test/index/_2s.frq
|
704
|
-
- spec/dummy/solr/data/test/index/_2s.nrm
|
705
|
-
- spec/dummy/solr/data/test/index/_2s.prx
|
706
|
-
- spec/dummy/solr/data/test/index/_2s.tii
|
707
|
-
- spec/dummy/solr/data/test/index/_2s.tis
|
708
686
|
- spec/dummy/solr/data/test/index/segments.gen
|
709
|
-
- spec/dummy/solr/data/test/index/
|
687
|
+
- spec/dummy/solr/data/test/index/segments_1
|
710
688
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
711
689
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
712
690
|
- spec/factories/country.rb
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
NRM�xxvx|u|||||||||||||||||||||||||�|ut�u��|||||
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|