addressbook 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +21 -0
- data/app/assets/images/addressbook/default.png +0 -0
- data/app/assets/javascripts/addressbook/application.js +15 -0
- data/app/assets/stylesheets/addressbook/application.css +15 -0
- data/app/controllers/addressbook/application_controller.rb +11 -0
- data/app/controllers/addressbook/contacts_controller.rb +96 -0
- data/app/controllers/addressbook/groups_controller.rb +53 -0
- data/app/helpers/addressbook/application_helper.rb +25 -0
- data/app/models/concerns/addressbook_owner.rb +29 -0
- data/app/views/addressbook/contacts/_address.html.erb +35 -0
- data/app/views/addressbook/contacts/_email.html.erb +15 -0
- data/app/views/addressbook/contacts/_form.html.erb +97 -0
- data/app/views/addressbook/contacts/_phone.html.erb +19 -0
- data/app/views/addressbook/contacts/destroy.js.erb +1 -0
- data/app/views/addressbook/contacts/edit.html.erb +3 -0
- data/app/views/addressbook/contacts/index.html.erb +115 -0
- data/app/views/addressbook/contacts/new.html.erb +3 -0
- data/app/views/addressbook/groups/_form.html.erb +25 -0
- data/app/views/addressbook/groups/destroy.js.erb +1 -0
- data/app/views/addressbook/groups/edit.html.erb +3 -0
- data/app/views/addressbook/groups/index.html.erb +29 -0
- data/app/views/addressbook/groups/new.html.erb +3 -0
- data/app/views/layouts/addressbook/application.html.erb +24 -0
- data/config/initializers/addressbook.rb +1 -0
- data/config/locales/en.yml +73 -0
- data/config/routes.rb +10 -0
- data/db/migrate/20141110080715_add_addressbook_account_id_to_user_table.rb +11 -0
- data/lib/addressbook.rb +23 -0
- data/lib/addressbook/account.rb +27 -0
- data/lib/addressbook/base_uploader.rb +33 -0
- data/lib/addressbook/contact.rb +128 -0
- data/lib/addressbook/engine.rb +10 -0
- data/lib/addressbook/group.rb +18 -0
- data/lib/addressbook/import_file_uploader.rb +7 -0
- data/lib/addressbook/photo_uploader.rb +27 -0
- data/lib/addressbook/resource.rb +24 -0
- data/lib/addressbook/version.rb +3 -0
- data/lib/generators/addressbook/controllers/controllers_generator.rb +42 -0
- data/lib/generators/addressbook/initializer/initializer_generator.rb +9 -0
- data/lib/generators/addressbook/views/views_generator.rb +42 -0
- data/lib/tasks/addressbook_tasks.rake +4 -0
- data/spec/controllers/addressbook/contacts_controller_spec.rb +169 -0
- data/spec/controllers/addressbook/groups_controller_spec.rb +106 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/account.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +29 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +78 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/addressbook.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20141119152457_create_accounts.rb +11 -0
- data/spec/dummy/db/migrate/20141119152801_add_addressbook_account_id_to_user_table.addressbook.rb +12 -0
- data/spec/dummy/db/schema.rb +27 -0
- data/spec/dummy/db/seeds.rb +1 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +13510 -0
- data/spec/dummy/log/test.log +1468 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/uploads/addressbook/contact/imported/test.csv +10 -0
- data/spec/dummy/public/uploads/addressbook/contact/imported/test.vcf +23 -0
- data/spec/dummy/spec/factories/accounts.rb +9 -0
- data/spec/dummy/spec/models/account_spec.rb +5 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/006961e21c4f6a44101d2e9587f863f4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/032ca99c7bed652dbad8de691558648d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/06b00b7743f1b8c8020fabbb5c63e13a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0765e86c020fb088284e8f45c584f8c6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1648d5d40aa02876f2cbb311ab2c4712 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/17405e31165e7d8129c846ceabaafec0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1dcb75c883fc0e57d08de7a76f0ada73 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/30f5fe3df78dce04aa1f998f6d790113 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4b14ea7024b3a7934c5cf77c17cc92aa +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/604356b7aab9d373aa02548bf52b266b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/69fcb234f5e891fcb7fbeb727a703968 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6ec3857048c9b608a152271ff3991df6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/786158650544be3da3cd56983ff6540f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/790fb0d33aad92cb9a1745822d4668aa +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7954e67edaec86854ad0d70dfdc1df99 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/816240bd34b73344a7ac901c29906f1d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8a8a4eebb0809e6e5a1d1dc83dafb50d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8e844acaef03b740a1d21aafa3030124 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/91d3ad598e6e79937286c98b2b259cee +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/98e43302695126215ff9abe4b05eda56 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aa5e472ff34ac18d968ac316ca9caff2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aa9a9307e1b4596e0b92b403107a2cfb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aee3f8a82c799313c63b922ed8b0f975 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c1f56035111b730c0c3807bf5ca35251 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c497b90d7dd45d368ec4e83d97d0a2b9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d23b864a4a8239210d53e50644405687 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/dee437547d5fb5fab72af8a8d8582d4d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e9553c97dc4fe95dc10736ee0475dc45 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ec3c091506a3d1ea73ac726b7ee9b3c2 +0 -0
- data/spec/fixtures/test.csv +10 -0
- data/spec/fixtures/test.vcf +23 -0
- data/spec/model/addressbook/account_spec.rb +33 -0
- data/spec/model/addressbook/contact_spec.rb +79 -0
- data/spec/model/addressbook/group_spec.rb +11 -0
- data/spec/model/addressbook/resource_spec.rb +10 -0
- data/spec/spec_helper.rb +65 -0
- metadata +517 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Addressbook
|
4
|
+
describe Resource do
|
5
|
+
|
6
|
+
it { Addressbook::Resource.site.to_s.should eq 'http://localhost:3001/api/v1/' }
|
7
|
+
it { Addressbook::Resource.user.should eq 'addressbook' }
|
8
|
+
it { Addressbook::Resource.password.should eq 'defaultpw' }
|
9
|
+
end
|
10
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
3
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'ffaker'
|
6
|
+
require 'factory_girl_rails'
|
7
|
+
require 'active_resource_response/http_mock'
|
8
|
+
require 'rspec-activemodel-mocks'
|
9
|
+
|
10
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
11
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
12
|
+
# run as spec files by default. This means that files in spec/support that end
|
13
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
14
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
15
|
+
# end with _spec.rb. You can configure this pattern with with the --pattern
|
16
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
17
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
18
|
+
|
19
|
+
# Checks for pending migrations before tests are run.
|
20
|
+
# If you are not using ActiveRecord, you can remove this line.
|
21
|
+
ActiveRecord::Migration.maintain_test_schema!
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
# ## Mock Framework
|
25
|
+
#
|
26
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
27
|
+
#
|
28
|
+
# config.mock_with :mocha
|
29
|
+
# config.mock_with :flexmock
|
30
|
+
# config.mock_with :rr
|
31
|
+
|
32
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
33
|
+
config.fixture_path = "spec/fixtures"
|
34
|
+
|
35
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
36
|
+
# examples within a transaction, remove the following line or assign false
|
37
|
+
# instead of true.
|
38
|
+
config.use_transactional_fixtures = true
|
39
|
+
|
40
|
+
# If true, the base class of anonymous controllers will be inferred
|
41
|
+
# automatically. This will be the default behavior in future versions of
|
42
|
+
# rspec-rails.
|
43
|
+
config.infer_base_class_for_anonymous_controllers = false
|
44
|
+
|
45
|
+
# Run specs in random order to surface order dependencies. If you find an
|
46
|
+
# order dependency and want to debug it, you can fix the order by providing
|
47
|
+
# the seed, which is printed after each run.
|
48
|
+
# --seed 1234
|
49
|
+
config.order = "random"
|
50
|
+
|
51
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
52
|
+
# based on their file location, for example enabling you to call `get` and
|
53
|
+
# `post` in specs under `spec/controllers`.
|
54
|
+
#
|
55
|
+
# You can disable this behaviour by removing the line below, and instead
|
56
|
+
# explictly tag your specs with their type, e.g.:
|
57
|
+
#
|
58
|
+
# describe UsersController, :type => :controller do
|
59
|
+
# # ...
|
60
|
+
# end
|
61
|
+
#
|
62
|
+
# The different available types are documented in the features, such as in
|
63
|
+
# https://relishapp.com/rspec/rspec-rails/v/3-0/docs
|
64
|
+
config.infer_spec_type_from_file_location!
|
65
|
+
end
|
metadata
ADDED
@@ -0,0 +1,517 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: addressbook
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gommy Lee
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.1.5
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.1'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 4.1.5
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: jquery-rails
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '3.1'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 3.1.1
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '3.1'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 3.1.1
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: activeresource
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '4.0'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 4.0.0
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '4.0'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 4.0.0
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: activeresource-response
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '1.1'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.1.1
|
83
|
+
type: :runtime
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.1'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.1.1
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: carrierwave
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0.10'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 0.10.0
|
103
|
+
type: :runtime
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0.10'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 0.10.0
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: fog
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '1.23'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 1.23.0
|
123
|
+
type: :runtime
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '1.23'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 1.23.0
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: mini_magick
|
135
|
+
requirement: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '3.7'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 3.7.0
|
143
|
+
type: :runtime
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '3.7'
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 3.7.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: kaminari
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.15'
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 0.15.1
|
163
|
+
type: :runtime
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0.15'
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 0.15.1
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: sqlite3
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '1.3'
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 1.3.9
|
183
|
+
type: :development
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '1.3'
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 1.3.9
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: factory_girl_rails
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '4.4'
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 4.4.1
|
203
|
+
type: :development
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - "~>"
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '4.4'
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: 4.4.1
|
213
|
+
- !ruby/object:Gem::Dependency
|
214
|
+
name: ffaker
|
215
|
+
requirement: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - "~>"
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: 1.24.0
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 1.24.0
|
223
|
+
type: :development
|
224
|
+
prerelease: false
|
225
|
+
version_requirements: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 1.24.0
|
230
|
+
- - ">="
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: 1.24.0
|
233
|
+
- !ruby/object:Gem::Dependency
|
234
|
+
name: rspec-rails
|
235
|
+
requirement: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - "~>"
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '2.99'
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: 2.99.0
|
243
|
+
type: :development
|
244
|
+
prerelease: false
|
245
|
+
version_requirements: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - "~>"
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '2.99'
|
250
|
+
- - ">="
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: 2.99.0
|
253
|
+
- !ruby/object:Gem::Dependency
|
254
|
+
name: rspec-activemodel-mocks
|
255
|
+
requirement: !ruby/object:Gem::Requirement
|
256
|
+
requirements:
|
257
|
+
- - "~>"
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: '1.0'
|
260
|
+
- - ">="
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: 1.0.1
|
263
|
+
type: :development
|
264
|
+
prerelease: false
|
265
|
+
version_requirements: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
267
|
+
- - "~>"
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '1.0'
|
270
|
+
- - ">="
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: 1.0.1
|
273
|
+
description: Addressbook cloud interface.
|
274
|
+
email:
|
275
|
+
- sieraruo@gmail.com
|
276
|
+
executables: []
|
277
|
+
extensions: []
|
278
|
+
extra_rdoc_files: []
|
279
|
+
files:
|
280
|
+
- MIT-LICENSE
|
281
|
+
- Rakefile
|
282
|
+
- app/assets/images/addressbook/default.png
|
283
|
+
- app/assets/javascripts/addressbook/application.js
|
284
|
+
- app/assets/stylesheets/addressbook/application.css
|
285
|
+
- app/controllers/addressbook/application_controller.rb
|
286
|
+
- app/controllers/addressbook/contacts_controller.rb
|
287
|
+
- app/controllers/addressbook/groups_controller.rb
|
288
|
+
- app/helpers/addressbook/application_helper.rb
|
289
|
+
- app/models/concerns/addressbook_owner.rb
|
290
|
+
- app/views/addressbook/contacts/_address.html.erb
|
291
|
+
- app/views/addressbook/contacts/_email.html.erb
|
292
|
+
- app/views/addressbook/contacts/_form.html.erb
|
293
|
+
- app/views/addressbook/contacts/_phone.html.erb
|
294
|
+
- app/views/addressbook/contacts/destroy.js.erb
|
295
|
+
- app/views/addressbook/contacts/edit.html.erb
|
296
|
+
- app/views/addressbook/contacts/index.html.erb
|
297
|
+
- app/views/addressbook/contacts/new.html.erb
|
298
|
+
- app/views/addressbook/groups/_form.html.erb
|
299
|
+
- app/views/addressbook/groups/destroy.js.erb
|
300
|
+
- app/views/addressbook/groups/edit.html.erb
|
301
|
+
- app/views/addressbook/groups/index.html.erb
|
302
|
+
- app/views/addressbook/groups/new.html.erb
|
303
|
+
- app/views/layouts/addressbook/application.html.erb
|
304
|
+
- config/initializers/addressbook.rb
|
305
|
+
- config/locales/en.yml
|
306
|
+
- config/routes.rb
|
307
|
+
- db/migrate/20141110080715_add_addressbook_account_id_to_user_table.rb
|
308
|
+
- lib/addressbook.rb
|
309
|
+
- lib/addressbook/account.rb
|
310
|
+
- lib/addressbook/base_uploader.rb
|
311
|
+
- lib/addressbook/contact.rb
|
312
|
+
- lib/addressbook/engine.rb
|
313
|
+
- lib/addressbook/group.rb
|
314
|
+
- lib/addressbook/import_file_uploader.rb
|
315
|
+
- lib/addressbook/photo_uploader.rb
|
316
|
+
- lib/addressbook/resource.rb
|
317
|
+
- lib/addressbook/version.rb
|
318
|
+
- lib/generators/addressbook/controllers/controllers_generator.rb
|
319
|
+
- lib/generators/addressbook/initializer/initializer_generator.rb
|
320
|
+
- lib/generators/addressbook/views/views_generator.rb
|
321
|
+
- lib/tasks/addressbook_tasks.rake
|
322
|
+
- spec/controllers/addressbook/contacts_controller_spec.rb
|
323
|
+
- spec/controllers/addressbook/groups_controller_spec.rb
|
324
|
+
- spec/dummy/README.rdoc
|
325
|
+
- spec/dummy/Rakefile
|
326
|
+
- spec/dummy/app/assets/javascripts/application.js
|
327
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
328
|
+
- spec/dummy/app/controllers/application_controller.rb
|
329
|
+
- spec/dummy/app/helpers/application_helper.rb
|
330
|
+
- spec/dummy/app/models/account.rb
|
331
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
332
|
+
- spec/dummy/bin/bundle
|
333
|
+
- spec/dummy/bin/rails
|
334
|
+
- spec/dummy/bin/rake
|
335
|
+
- spec/dummy/config.ru
|
336
|
+
- spec/dummy/config/application.rb
|
337
|
+
- spec/dummy/config/boot.rb
|
338
|
+
- spec/dummy/config/database.yml
|
339
|
+
- spec/dummy/config/environment.rb
|
340
|
+
- spec/dummy/config/environments/development.rb
|
341
|
+
- spec/dummy/config/environments/production.rb
|
342
|
+
- spec/dummy/config/environments/test.rb
|
343
|
+
- spec/dummy/config/initializers/addressbook.rb
|
344
|
+
- spec/dummy/config/initializers/assets.rb
|
345
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
346
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
347
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
348
|
+
- spec/dummy/config/initializers/inflections.rb
|
349
|
+
- spec/dummy/config/initializers/mime_types.rb
|
350
|
+
- spec/dummy/config/initializers/session_store.rb
|
351
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
352
|
+
- spec/dummy/config/locales/en.yml
|
353
|
+
- spec/dummy/config/routes.rb
|
354
|
+
- spec/dummy/config/secrets.yml
|
355
|
+
- spec/dummy/db/development.sqlite3
|
356
|
+
- spec/dummy/db/migrate/20141119152457_create_accounts.rb
|
357
|
+
- spec/dummy/db/migrate/20141119152801_add_addressbook_account_id_to_user_table.addressbook.rb
|
358
|
+
- spec/dummy/db/schema.rb
|
359
|
+
- spec/dummy/db/seeds.rb
|
360
|
+
- spec/dummy/db/test.sqlite3
|
361
|
+
- spec/dummy/log/development.log
|
362
|
+
- spec/dummy/log/test.log
|
363
|
+
- spec/dummy/public/404.html
|
364
|
+
- spec/dummy/public/422.html
|
365
|
+
- spec/dummy/public/500.html
|
366
|
+
- spec/dummy/public/favicon.ico
|
367
|
+
- spec/dummy/public/uploads/addressbook/contact/imported/test.csv
|
368
|
+
- spec/dummy/public/uploads/addressbook/contact/imported/test.vcf
|
369
|
+
- spec/dummy/spec/factories/accounts.rb
|
370
|
+
- spec/dummy/spec/models/account_spec.rb
|
371
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/006961e21c4f6a44101d2e9587f863f4
|
372
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/032ca99c7bed652dbad8de691558648d
|
373
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/06b00b7743f1b8c8020fabbb5c63e13a
|
374
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/0765e86c020fb088284e8f45c584f8c6
|
375
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1648d5d40aa02876f2cbb311ab2c4712
|
376
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/17405e31165e7d8129c846ceabaafec0
|
377
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1dcb75c883fc0e57d08de7a76f0ada73
|
378
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/30f5fe3df78dce04aa1f998f6d790113
|
379
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/4b14ea7024b3a7934c5cf77c17cc92aa
|
380
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/604356b7aab9d373aa02548bf52b266b
|
381
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/69fcb234f5e891fcb7fbeb727a703968
|
382
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/6ec3857048c9b608a152271ff3991df6
|
383
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/786158650544be3da3cd56983ff6540f
|
384
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/790fb0d33aad92cb9a1745822d4668aa
|
385
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/7954e67edaec86854ad0d70dfdc1df99
|
386
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/816240bd34b73344a7ac901c29906f1d
|
387
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/8a8a4eebb0809e6e5a1d1dc83dafb50d
|
388
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/8e844acaef03b740a1d21aafa3030124
|
389
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/91d3ad598e6e79937286c98b2b259cee
|
390
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/98e43302695126215ff9abe4b05eda56
|
391
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/aa5e472ff34ac18d968ac316ca9caff2
|
392
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/aa9a9307e1b4596e0b92b403107a2cfb
|
393
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/aee3f8a82c799313c63b922ed8b0f975
|
394
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/c1f56035111b730c0c3807bf5ca35251
|
395
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/c497b90d7dd45d368ec4e83d97d0a2b9
|
396
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d23b864a4a8239210d53e50644405687
|
397
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/dee437547d5fb5fab72af8a8d8582d4d
|
398
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/e9553c97dc4fe95dc10736ee0475dc45
|
399
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ec3c091506a3d1ea73ac726b7ee9b3c2
|
400
|
+
- spec/fixtures/test.csv
|
401
|
+
- spec/fixtures/test.vcf
|
402
|
+
- spec/model/addressbook/account_spec.rb
|
403
|
+
- spec/model/addressbook/contact_spec.rb
|
404
|
+
- spec/model/addressbook/group_spec.rb
|
405
|
+
- spec/model/addressbook/resource_spec.rb
|
406
|
+
- spec/spec_helper.rb
|
407
|
+
homepage: ''
|
408
|
+
licenses:
|
409
|
+
- MIT
|
410
|
+
metadata: {}
|
411
|
+
post_install_message:
|
412
|
+
rdoc_options: []
|
413
|
+
require_paths:
|
414
|
+
- lib
|
415
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
416
|
+
requirements:
|
417
|
+
- - ">="
|
418
|
+
- !ruby/object:Gem::Version
|
419
|
+
version: '0'
|
420
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
421
|
+
requirements:
|
422
|
+
- - ">="
|
423
|
+
- !ruby/object:Gem::Version
|
424
|
+
version: '0'
|
425
|
+
requirements: []
|
426
|
+
rubyforge_project:
|
427
|
+
rubygems_version: 2.4.1
|
428
|
+
signing_key:
|
429
|
+
specification_version: 4
|
430
|
+
summary: Addressbook
|
431
|
+
test_files:
|
432
|
+
- spec/controllers/addressbook/contacts_controller_spec.rb
|
433
|
+
- spec/controllers/addressbook/groups_controller_spec.rb
|
434
|
+
- spec/dummy/app/assets/javascripts/application.js
|
435
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
436
|
+
- spec/dummy/app/controllers/application_controller.rb
|
437
|
+
- spec/dummy/app/helpers/application_helper.rb
|
438
|
+
- spec/dummy/app/models/account.rb
|
439
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
440
|
+
- spec/dummy/bin/bundle
|
441
|
+
- spec/dummy/bin/rails
|
442
|
+
- spec/dummy/bin/rake
|
443
|
+
- spec/dummy/config/application.rb
|
444
|
+
- spec/dummy/config/boot.rb
|
445
|
+
- spec/dummy/config/database.yml
|
446
|
+
- spec/dummy/config/environment.rb
|
447
|
+
- spec/dummy/config/environments/development.rb
|
448
|
+
- spec/dummy/config/environments/production.rb
|
449
|
+
- spec/dummy/config/environments/test.rb
|
450
|
+
- spec/dummy/config/initializers/addressbook.rb
|
451
|
+
- spec/dummy/config/initializers/assets.rb
|
452
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
453
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
454
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
455
|
+
- spec/dummy/config/initializers/inflections.rb
|
456
|
+
- spec/dummy/config/initializers/mime_types.rb
|
457
|
+
- spec/dummy/config/initializers/session_store.rb
|
458
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
459
|
+
- spec/dummy/config/locales/en.yml
|
460
|
+
- spec/dummy/config/routes.rb
|
461
|
+
- spec/dummy/config/secrets.yml
|
462
|
+
- spec/dummy/config.ru
|
463
|
+
- spec/dummy/db/development.sqlite3
|
464
|
+
- spec/dummy/db/migrate/20141119152457_create_accounts.rb
|
465
|
+
- spec/dummy/db/migrate/20141119152801_add_addressbook_account_id_to_user_table.addressbook.rb
|
466
|
+
- spec/dummy/db/schema.rb
|
467
|
+
- spec/dummy/db/seeds.rb
|
468
|
+
- spec/dummy/db/test.sqlite3
|
469
|
+
- spec/dummy/log/development.log
|
470
|
+
- spec/dummy/log/test.log
|
471
|
+
- spec/dummy/public/404.html
|
472
|
+
- spec/dummy/public/422.html
|
473
|
+
- spec/dummy/public/500.html
|
474
|
+
- spec/dummy/public/favicon.ico
|
475
|
+
- spec/dummy/public/uploads/addressbook/contact/imported/test.csv
|
476
|
+
- spec/dummy/public/uploads/addressbook/contact/imported/test.vcf
|
477
|
+
- spec/dummy/Rakefile
|
478
|
+
- spec/dummy/README.rdoc
|
479
|
+
- spec/dummy/spec/factories/accounts.rb
|
480
|
+
- spec/dummy/spec/models/account_spec.rb
|
481
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/006961e21c4f6a44101d2e9587f863f4
|
482
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/032ca99c7bed652dbad8de691558648d
|
483
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/06b00b7743f1b8c8020fabbb5c63e13a
|
484
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/0765e86c020fb088284e8f45c584f8c6
|
485
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1648d5d40aa02876f2cbb311ab2c4712
|
486
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/17405e31165e7d8129c846ceabaafec0
|
487
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1dcb75c883fc0e57d08de7a76f0ada73
|
488
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/30f5fe3df78dce04aa1f998f6d790113
|
489
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/4b14ea7024b3a7934c5cf77c17cc92aa
|
490
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/604356b7aab9d373aa02548bf52b266b
|
491
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/69fcb234f5e891fcb7fbeb727a703968
|
492
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/6ec3857048c9b608a152271ff3991df6
|
493
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/786158650544be3da3cd56983ff6540f
|
494
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/790fb0d33aad92cb9a1745822d4668aa
|
495
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/7954e67edaec86854ad0d70dfdc1df99
|
496
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/816240bd34b73344a7ac901c29906f1d
|
497
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/8a8a4eebb0809e6e5a1d1dc83dafb50d
|
498
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/8e844acaef03b740a1d21aafa3030124
|
499
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/91d3ad598e6e79937286c98b2b259cee
|
500
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/98e43302695126215ff9abe4b05eda56
|
501
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/aa5e472ff34ac18d968ac316ca9caff2
|
502
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/aa9a9307e1b4596e0b92b403107a2cfb
|
503
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/aee3f8a82c799313c63b922ed8b0f975
|
504
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/c1f56035111b730c0c3807bf5ca35251
|
505
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/c497b90d7dd45d368ec4e83d97d0a2b9
|
506
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d23b864a4a8239210d53e50644405687
|
507
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/dee437547d5fb5fab72af8a8d8582d4d
|
508
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/e9553c97dc4fe95dc10736ee0475dc45
|
509
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ec3c091506a3d1ea73ac726b7ee9b3c2
|
510
|
+
- spec/fixtures/test.csv
|
511
|
+
- spec/fixtures/test.vcf
|
512
|
+
- spec/model/addressbook/account_spec.rb
|
513
|
+
- spec/model/addressbook/contact_spec.rb
|
514
|
+
- spec/model/addressbook/group_spec.rb
|
515
|
+
- spec/model/addressbook/resource_spec.rb
|
516
|
+
- spec/spec_helper.rb
|
517
|
+
has_rdoc:
|