enju_event 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2012 YOURNAME
1
+ Copyright 2012 Kosuke Tanabe
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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)
@@ -1,3 +1,3 @@
1
1
  module EnjuEvent
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
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.1.8
4
+ version: 0.1.9
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-28 00:00:00.000000000 Z
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/segments_2k
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/segments_2k
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
@@ -1,5 +0,0 @@
1
- "name" "category" "library_shortname" "start_at" "end_at" "dummy"
2
- "イベント名" "カテゴリ。休館日の場合はclosed" "図書館名" "開始日" "終了日" "インポート省略"
3
- "hogehoge" "おはなし会" "kamata" "2009-04-01" "2009-04-03"
4
- "hogehoge" "hachioji"
5
- "休館日" "closed" "kamata" "2011-04-01" "2011-04-03"
@@ -1,3 +0,0 @@
1
- "name" "library_shortname" "start_at" "end_at"
2
- "���{��̍Â���" "kamata" "2011-03-26" "2011-03-27"
3
- "���{��̍Â���2" "kamata" "2011-03-26" "2011-03-27"
@@ -1,4 +0,0 @@
1
- ����idtype
2
- class_name created_at_d updated_at_drequired_role_id_ipatron_type_id_i name_text
3
- position_idisplay_name_text address_text library_id_i
4
- start_at_dend_at_d note_text
@@ -1 +0,0 @@
1
- NRM�xxvx|u|||||||||||||||||||||||||�|ut�u��|||||