facteur 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/generators/facteur/install/install_generator.rb +1 -2
- data/spec/spec_helper.rb +2 -3
- metadata +3 -9
- data/spec/db/database.log +0 -0
- data/spec/db/facteur.sqlite3.db +0 -0
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -6,8 +6,6 @@ module Facteur
|
|
6
6
|
class InstallGenerator < Rails::Generators::Base
|
7
7
|
include Rails::Generators::Migration
|
8
8
|
|
9
|
-
desc "Generate the facteur's message and mailbox models"
|
10
|
-
|
11
9
|
def self.source_root
|
12
10
|
@source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
13
11
|
end
|
@@ -16,6 +14,7 @@ module Facteur
|
|
16
14
|
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
17
15
|
end
|
18
16
|
|
17
|
+
desc "Generate the facteur's message and mailbox models"
|
19
18
|
def create_facteur_files
|
20
19
|
template 'message.rb', 'app/models/message.rb'
|
21
20
|
template 'create_messages.rb', "db/migrate/#{self.class.next_migration_number}_create_messages.rb"
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
2
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
-
require 'parchemin'
|
4
3
|
require 'rspec/core'
|
5
4
|
require 'rspec/autorun'
|
6
5
|
require 'active_record'
|
@@ -11,7 +10,7 @@ SPEC_ROOT = File.dirname(__FILE__)
|
|
11
10
|
|
12
11
|
ActiveRecord::Base.establish_connection(
|
13
12
|
:adapter => "sqlite3",
|
14
|
-
:database => "
|
13
|
+
:database => ":memory:"
|
15
14
|
)
|
16
15
|
|
17
16
|
ActiveRecord::Migration.verbose = false
|
@@ -42,7 +41,7 @@ ActiveRecord::Schema.define do
|
|
42
41
|
end
|
43
42
|
end
|
44
43
|
|
45
|
-
ActiveRecord::Base.logger = Logger.new(File.open("#{SPEC_ROOT}/db/database.log", 'a'))
|
44
|
+
#ActiveRecord::Base.logger = Logger.new(File.open("#{SPEC_ROOT}/db/database.log", 'a'))
|
46
45
|
|
47
46
|
class User < ActiveRecord::Base
|
48
47
|
include Facteur::AddresseeModel
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facteur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 21
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Rawane ZOSSOU
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-09-11 00:00:00 +02:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 13
|
30
28
|
segments:
|
31
29
|
- 1
|
32
30
|
- 2
|
@@ -59,8 +57,6 @@ files:
|
|
59
57
|
- lib/generators/facteur/install/templates/create_messages.rb
|
60
58
|
- lib/generators/facteur/install/templates/mailbox.rb
|
61
59
|
- lib/generators/facteur/install/templates/message.rb
|
62
|
-
- spec/db/database.log
|
63
|
-
- spec/db/facteur.sqlite3.db
|
64
60
|
- spec/facteur_spec.rb
|
65
61
|
- spec/spec_helper.rb
|
66
62
|
has_rdoc: true
|
@@ -77,7 +73,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
73
|
requirements:
|
78
74
|
- - ">="
|
79
75
|
- !ruby/object:Gem::Version
|
80
|
-
hash: 3
|
81
76
|
segments:
|
82
77
|
- 0
|
83
78
|
version: "0"
|
@@ -86,7 +81,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
81
|
requirements:
|
87
82
|
- - ">="
|
88
83
|
- !ruby/object:Gem::Version
|
89
|
-
hash: 3
|
90
84
|
segments:
|
91
85
|
- 0
|
92
86
|
version: "0"
|
data/spec/db/database.log
DELETED
File without changes
|
data/spec/db/facteur.sqlite3.db
DELETED
Binary file
|