has_vcards 0.12.4 → 0.12.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails/all'
|
4
|
+
|
5
|
+
# If you have a Gemfile, require the gems listed there, including any gems
|
6
|
+
# you've limited to :test, :development, or :production.
|
7
|
+
Bundler.require *Rails.groups(:assets) if defined?(Bundler)
|
8
|
+
|
9
|
+
module HasVcards
|
10
|
+
class Application < Rails::Application
|
11
|
+
# Configure generators values. Many other options are available, be sure to check the documentation.
|
12
|
+
config.generators do |g|
|
13
|
+
g.stylesheets false
|
14
|
+
g.test_framework :rspec
|
15
|
+
g.template_engine :haml
|
16
|
+
g.fixture_replacement :factory_girl
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/config/boot.rb
ADDED
data/lib/has_vcards/railtie.rb
CHANGED
data/lib/has_vcards/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_vcards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 37
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 0.12.
|
9
|
+
- 5
|
10
|
+
version: 0.12.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Simon H\xC3\xBCrlimann (CyT)"
|
@@ -15,10 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-19 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
|
-
description:
|
21
|
+
description: vCard like contact and address models and helpers for Rails.
|
22
22
|
email: simon.huerlimann@cyt.ch
|
23
23
|
executables: []
|
24
24
|
|
@@ -39,17 +39,17 @@ files:
|
|
39
39
|
- app/views/vcards/_address.html.haml
|
40
40
|
- app/views/vcards/_form.html.haml
|
41
41
|
- app/views/vcards/_show.html.haml
|
42
|
+
- config/application.rb
|
43
|
+
- config/boot.rb
|
42
44
|
- config/locales/has_vcards.de.yml
|
43
45
|
- config/routes.rb
|
44
|
-
- lib/generators/has_vcards/migration_generator.rb
|
45
|
-
- lib/generators/has_vcards/templates/migration.rb
|
46
46
|
- lib/has_vcards.rb
|
47
47
|
- lib/has_vcards/railtie.rb
|
48
48
|
- lib/has_vcards/version.rb
|
49
49
|
- README.markdown
|
50
|
-
homepage: https://github.com/huerlisi/
|
51
|
-
licenses:
|
52
|
-
|
50
|
+
homepage: https://github.com/huerlisi/has_vcards
|
51
|
+
licenses:
|
52
|
+
- MIT
|
53
53
|
post_install_message:
|
54
54
|
rdoc_options: []
|
55
55
|
|
@@ -79,7 +79,7 @@ rubyforge_project:
|
|
79
79
|
rubygems_version: 1.8.10
|
80
80
|
signing_key:
|
81
81
|
specification_version: 3
|
82
|
-
summary:
|
82
|
+
summary: vCard plugin for Rails
|
83
83
|
test_files: []
|
84
84
|
|
85
85
|
has_rdoc:
|
@@ -1,27 +0,0 @@
|
|
1
|
-
require 'rails/generators/base'
|
2
|
-
require 'rails/generators/migration'
|
3
|
-
|
4
|
-
module HasVcards
|
5
|
-
class MigrationGenerator < Rails::Generators::Base
|
6
|
-
include Rails::Generators::Migration
|
7
|
-
|
8
|
-
def self.source_root
|
9
|
-
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
10
|
-
end
|
11
|
-
|
12
|
-
# Implement the required interface for Rails::Generators::Migration.
|
13
|
-
# taken from http://github.com/rails/rails/blob/master/activerecord/lib/generators/active_record.rb
|
14
|
-
def self.next_migration_number(dirname)
|
15
|
-
if ActiveRecord::Base.timestamped_migrations
|
16
|
-
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
17
|
-
else
|
18
|
-
"%.3d" % (current_migration_number(dirname) + 1)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
def create_migration_file
|
23
|
-
migration_template 'migration.rb', 'db/migrate/create_has_vcards.rb'
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
class CreateHasVcards < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table 'addresses', :force => true do |t|
|
4
|
-
t.string 'post_office_box', :limit => 50
|
5
|
-
t.string 'extended_address', :limit => 50
|
6
|
-
t.string 'street_address', :limit => 50
|
7
|
-
t.string 'locality', :limit => 50
|
8
|
-
t.string 'region', :limit => 50
|
9
|
-
t.string 'postal_code', :limit => 50
|
10
|
-
t.string 'country_name', :limit => 50
|
11
|
-
t.integer 'vcard_id'
|
12
|
-
t.string 'address_type'
|
13
|
-
end
|
14
|
-
|
15
|
-
add_index 'addresses', ['vcard_id'], :name => 'addresses_vcard_id_index'
|
16
|
-
|
17
|
-
create_table 'phone_numbers', :force => true do |t|
|
18
|
-
t.string 'number', :limit => 50
|
19
|
-
t.string 'phone_number_type', :limit => 50
|
20
|
-
t.integer 'vcard_id'
|
21
|
-
t.integer 'object_id'
|
22
|
-
t.string 'object_type'
|
23
|
-
end
|
24
|
-
|
25
|
-
add_index 'phone_numbers', ['object_id', 'object_type'], :name => 'index_phone_numbers_on_object_id_and_object_type'
|
26
|
-
add_index 'phone_numbers', ['phone_number_type'], :name => 'index_phone_numbers_on_phone_number_type'
|
27
|
-
add_index 'phone_numbers', ['vcard_id'], :name => 'phone_numbers_vcard_id_index'
|
28
|
-
|
29
|
-
create_table 'vcards', :force => true do |t|
|
30
|
-
t.string 'full_name', :limit => 50
|
31
|
-
t.string 'nickname', :limit => 50
|
32
|
-
t.string 'family_name', :limit => 50
|
33
|
-
t.string 'given_name', :limit => 50
|
34
|
-
t.string 'additional_name', :limit => 50
|
35
|
-
t.string 'honorific_prefix', :limit => 50
|
36
|
-
t.string 'honorific_suffix', :limit => 50
|
37
|
-
t.boolean 'active', :default => true
|
38
|
-
t.string 'type'
|
39
|
-
t.integer 'object_id'
|
40
|
-
t.string 'object_type'
|
41
|
-
end
|
42
|
-
|
43
|
-
add_index 'vcards', ['object_id', 'object_type'], :name => 'index_vcards_on_object_id_and_object_type'
|
44
|
-
end
|
45
|
-
|
46
|
-
def self.down
|
47
|
-
drop_table :vcards, :phone_numbers, :addresses
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|