enju_message 0.1.14.pre5 → 0.1.14.pre6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c04c804795763d2becd15270ff5e5f9380a728ee
4
- data.tar.gz: 9a2a3e651b3038e5e94323ea697ad980b0ed94c7
3
+ metadata.gz: 3202b6d3a9e4f803f11ba7b2d13b0018c8911273
4
+ data.tar.gz: 46caddbb58b53ac7cfbbd58f93e01355f5094a25
5
5
  SHA512:
6
- metadata.gz: 6647e1a50929259696f2743ee95aff21ddd882aca0b4a057e0c4a8764403db24ed13fbe6f060ec539b49becbeedf97bd78438741da76e864d15c9eada9adc0ec
7
- data.tar.gz: f9d1e3bb737ad18779b253ef1f7c56cc92e03418356b8d475008673b5fd0b9b3586966e496fafcdae3cfc831ebd7669181623c8d8c6d1fc1708107d6ba147cfd
6
+ metadata.gz: 3e3629d45d29d9667eb4a0dcf5f96afacbdedcc3360d94588f3d06925276f74b716ab1505e1a6873d9c3d8276ede85b2b904c85f1ce28a8d932a94481b7b1bc6
7
+ data.tar.gz: acc007abf041ebd9edbd7e8310e1320ec3a8e16e95f8fb7541d2548274fbab7be14c3a7cde9e5d09ede800a36d4b3aa60a74fdf53c563e2560765b018b89f370
@@ -1,3 +1,3 @@
1
1
  module EnjuMessage
2
- VERSION = "0.1.14.pre5"
2
+ VERSION = "0.1.14.pre6"
3
3
  end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate setup Thing
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,8 @@
1
+ class EnjuMessage::SetupGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def copy_setup_files
5
+ directory("db/fixtures", "db/fixtures/enju_message")
6
+ rake("enju_message_engine:install:migrations")
7
+ end
8
+ end
@@ -0,0 +1,84 @@
1
+ message_template_00001:
2
+ id: 1
3
+ status: reservation_accepted_for_patron
4
+ title: Reservation accepted
5
+ body: Reservation accepted
6
+ position: 1
7
+ locale: ja
8
+ message_template_00002:
9
+ id: 2
10
+ status: item_received_for_patron
11
+ title: Item received
12
+ body: Item received
13
+ position: 2
14
+ locale: ja
15
+ message_template_00003:
16
+ id: 3
17
+ status: reservation_expired_for_patron
18
+ title: Reservation expired
19
+ body: Reservation expired
20
+ position: 3
21
+ locale: ja
22
+ message_template_00004:
23
+ id: 4
24
+ status: reservation_expired_for_library
25
+ title: Reservation expired
26
+ body: Reservation expired
27
+ position: 4
28
+ locale: ja
29
+ message_template_00005:
30
+ id: 5
31
+ status: reservation_canceled_for_patron
32
+ title: Reservation canceled
33
+ body: Reservation canceled
34
+ position: 5
35
+ locale: ja
36
+ message_template_00006:
37
+ id: 6
38
+ status: reservation_canceled_for_library
39
+ title: Reservation canceled
40
+ body: Reservation canceled
41
+ position: 6
42
+ locale: ja
43
+ message_template_00007:
44
+ id: 7
45
+ status: recall_item
46
+ title: Recall item
47
+ body: Recall item
48
+ position: 7
49
+ locale: ja
50
+ message_template_00008:
51
+ id: 8
52
+ status: recall_overdue_item
53
+ title: Recall overdue item
54
+ body: Recall overdue item
55
+ position: 8
56
+ locale: ja
57
+ message_template_00009:
58
+ id: 9
59
+ status: reservation_accepted_for_library
60
+ title: Reservation accepted
61
+ body: Reservation accepted
62
+ position: 9
63
+ locale: ja
64
+ message_template_00010:
65
+ id: 10
66
+ status: item_received_for_library
67
+ title: Item received
68
+ body: Item received
69
+ position: 10
70
+ locale: ja
71
+ message_template_00011:
72
+ id: 11
73
+ status: reservation_postponed_for_patron
74
+ title: Reservation postponed
75
+ body: Reservation postponed
76
+ position: 11
77
+ locale: ja
78
+ message_template_00012:
79
+ id: 12
80
+ status: reservation_postponed_for_library
81
+ title: Reservation postponed
82
+ body: Reservation postponed
83
+ position: 12
84
+ locale: ja
@@ -1,5 +1,9 @@
1
1
  require 'active_record/fixtures'
2
- desc "copy fixtures for enju_message"
3
- task :enju_message => :environment do
4
- ActiveRecord::Fixtures.create_fixtures(File.expand_path(File.dirname(__FILE__)) + '/../../db/fixtures/', File.basename('message_templates', '.yml'))
2
+ desc "create initial records for enju_message"
3
+ namespace :enju_message do
4
+ task :setup => :environment do
5
+ Dir.glob(Rails.root.to_s + '/db/fixtures/enju_message/*.yml').each do |file|
6
+ ActiveRecord::Fixtures.create_fixtures('db/fixtures/enju_message', File.basename(file, '.*'))
7
+ end
8
+ end
5
9
  end
Binary file
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14.pre5
4
+ version: 0.1.14.pre6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-13 00:00:00.000000000 Z
11
+ date: 2013-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: enju_core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: 0.1.1.pre4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '3.2'
26
+ version: 0.1.1.pre4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: simple_form
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: enju_core
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ~>
88
- - !ruby/object:Gem::Version
89
- version: 0.1.1.pre3
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ~>
95
- - !ruby/object:Gem::Version
96
- version: 0.1.1.pre3
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: resque_mailer
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -211,6 +197,9 @@ files:
211
197
  - lib/enju_message/user.rb
212
198
  - lib/enju_message/version.rb
213
199
  - lib/enju_message.rb
200
+ - lib/generators/enju_message/setup/setup_generator.rb
201
+ - lib/generators/enju_message/setup/templates/db/fixtures/message_templates.yml
202
+ - lib/generators/enju_message/setup/USAGE
214
203
  - lib/generators/enju_message/views_generator.rb
215
204
  - lib/tasks/enju_message_tasks.rake
216
205
  - MIT-LICENSE
@@ -296,16 +285,16 @@ files:
296
285
  - spec/dummy/solr/conf/spellings.txt
297
286
  - spec/dummy/solr/conf/stopwords.txt
298
287
  - spec/dummy/solr/conf/synonyms.txt
299
- - spec/dummy/solr/data/test/index/_2f.fdt
300
- - spec/dummy/solr/data/test/index/_2f.fdx
301
- - spec/dummy/solr/data/test/index/_2f.fnm
302
- - spec/dummy/solr/data/test/index/_2f.frq
303
- - spec/dummy/solr/data/test/index/_2f.nrm
304
- - spec/dummy/solr/data/test/index/_2f.prx
305
- - spec/dummy/solr/data/test/index/_2f.tii
306
- - spec/dummy/solr/data/test/index/_2f.tis
288
+ - spec/dummy/solr/data/test/index/_2n.fdt
289
+ - spec/dummy/solr/data/test/index/_2n.fdx
290
+ - spec/dummy/solr/data/test/index/_2n.fnm
291
+ - spec/dummy/solr/data/test/index/_2n.frq
292
+ - spec/dummy/solr/data/test/index/_2n.nrm
293
+ - spec/dummy/solr/data/test/index/_2n.prx
294
+ - spec/dummy/solr/data/test/index/_2n.tii
295
+ - spec/dummy/solr/data/test/index/_2n.tis
307
296
  - spec/dummy/solr/data/test/index/segments.gen
308
- - spec/dummy/solr/data/test/index/segments_4x
297
+ - spec/dummy/solr/data/test/index/segments_5d
309
298
  - spec/dummy/solr/data/test/spellchecker/segments.gen
310
299
  - spec/dummy/solr/data/test/spellchecker/segments_1
311
300
  - spec/factories/message.rb
@@ -431,16 +420,16 @@ test_files:
431
420
  - spec/dummy/solr/conf/spellings.txt
432
421
  - spec/dummy/solr/conf/stopwords.txt
433
422
  - spec/dummy/solr/conf/synonyms.txt
434
- - spec/dummy/solr/data/test/index/_2f.fdt
435
- - spec/dummy/solr/data/test/index/_2f.fdx
436
- - spec/dummy/solr/data/test/index/_2f.fnm
437
- - spec/dummy/solr/data/test/index/_2f.frq
438
- - spec/dummy/solr/data/test/index/_2f.nrm
439
- - spec/dummy/solr/data/test/index/_2f.prx
440
- - spec/dummy/solr/data/test/index/_2f.tii
441
- - spec/dummy/solr/data/test/index/_2f.tis
423
+ - spec/dummy/solr/data/test/index/_2n.fdt
424
+ - spec/dummy/solr/data/test/index/_2n.fdx
425
+ - spec/dummy/solr/data/test/index/_2n.fnm
426
+ - spec/dummy/solr/data/test/index/_2n.frq
427
+ - spec/dummy/solr/data/test/index/_2n.nrm
428
+ - spec/dummy/solr/data/test/index/_2n.prx
429
+ - spec/dummy/solr/data/test/index/_2n.tii
430
+ - spec/dummy/solr/data/test/index/_2n.tis
442
431
  - spec/dummy/solr/data/test/index/segments.gen
443
- - spec/dummy/solr/data/test/index/segments_4x
432
+ - spec/dummy/solr/data/test/index/segments_5d
444
433
  - spec/dummy/solr/data/test/spellchecker/segments.gen
445
434
  - spec/dummy/solr/data/test/spellchecker/segments_1
446
435
  - spec/factories/message.rb