muck-profiles 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +4 -4
- data/Rakefile +8 -3
- data/VERSION +1 -1
- data/lib/muck-profiles.rb +10 -0
- data/lib/{muck_profiles → muck-profiles}/config.rb +0 -0
- data/lib/{muck_profiles → muck-profiles}/engine.rb +3 -3
- data/lib/{muck_profiles → muck-profiles}/models/profile.rb +1 -1
- data/lib/{muck_profiles → muck-profiles}/models/user.rb +0 -0
- data/muck-profiles.gemspec +8 -12
- data/test/rails_test/Gemfile +10 -7
- data/test/rails_test/Gemfile.lock +60 -46
- data/test/rails_test/config/application.rb +1 -1
- data/test/rails_test/public/javascripts/tiny_mce/templates/country.htm +1 -1
- data/test/rails_test/spec/models/profile_spec.rb +18 -0
- data/test/rails_test/spec/spec_helper.rb +1 -25
- metadata +10 -14
- data/lib/muck_profiles.rb +0 -7
- data/test/rails_test/test/performance/browsing_test.rb +0 -9
- data/test/rails_test/test/test_helper.rb +0 -13
data/README.rdoc
CHANGED
@@ -7,9 +7,9 @@ total customization of the user's profile information including privacy settings
|
|
7
7
|
Muck profile relies upon the muck-engine and muck-users gems as well as paperclip. Add the following lines to your Gemfile:
|
8
8
|
|
9
9
|
gem 'paperclip'
|
10
|
-
gem 'muck-engine'
|
11
|
-
gem 'muck-users'
|
12
|
-
gem 'muck-profiles'
|
10
|
+
gem 'muck-engine'
|
11
|
+
gem 'muck-users'
|
12
|
+
gem 'muck-profiles'
|
13
13
|
gem 'geokit' # Only needed if you want to add location to your profiles. MuckProfiles uses geokit to determine a users
|
14
14
|
# location and to make it possible to find users that are within a given proximity.
|
15
15
|
|
@@ -33,7 +33,7 @@ secrets.yml file and then add the following to environment.rb right above Rails:
|
|
33
33
|
|
34
34
|
require 'ostruct'
|
35
35
|
require 'yaml'
|
36
|
-
::Secrets = OpenStruct.new(YAML.load_file(File.expand_path('../secrets.yml', __FILE__))[Rails.env
|
36
|
+
::Secrets = OpenStruct.new(YAML.load_file(File.expand_path('../secrets.yml', __FILE__))[Rails.env])
|
37
37
|
|
38
38
|
Omit secrets.yml from your version control system and use it to keep sensitive data like email server credentials
|
39
39
|
|
data/Rakefile
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/testtask'
|
3
3
|
require 'rake/rdoctask'
|
4
|
+
require 'rspec/core/rake_task'
|
4
5
|
|
5
|
-
desc 'Default: run
|
6
|
+
desc 'Default: run specs.'
|
6
7
|
task :default => :spec
|
8
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
9
|
+
t.rspec_opts = ["--color", "-c", "-f progress", "-r test/rails_test/spec/spec_helper.rb"]
|
10
|
+
t.pattern = 'test/rails_test/spec/**/*_spec.rb'
|
11
|
+
end
|
7
12
|
|
8
13
|
begin
|
9
14
|
require 'rcov/rcovtask'
|
@@ -21,7 +26,7 @@ rescue LoadError
|
|
21
26
|
end
|
22
27
|
end
|
23
28
|
|
24
|
-
desc 'Generate documentation for the
|
29
|
+
desc 'Generate documentation for the muck-profiles plugin.'
|
25
30
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
26
31
|
rdoc.rdoc_dir = 'rdoc'
|
27
32
|
rdoc.title = 'MuckProfiles'
|
@@ -42,7 +47,7 @@ begin
|
|
42
47
|
gemspec.name = "muck-profiles"
|
43
48
|
gemspec.summary = "Profile engine for the muck system"
|
44
49
|
gemspec.email = "justin@tatemae.com"
|
45
|
-
gemspec.homepage = "http://github.com/tatemae/
|
50
|
+
gemspec.homepage = "http://github.com/tatemae/muck-profiles"
|
46
51
|
gemspec.description = "Profile engine for the muck system."
|
47
52
|
gemspec.authors = ["Justin Ball", "Joel Duffin"]
|
48
53
|
gemspec.rubyforge_project = 'muck-profiles'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'paperclip'
|
2
|
+
require 'sanitize'
|
3
|
+
require 'muck-engine'
|
4
|
+
require 'muck-users'
|
5
|
+
require 'muck-contents'
|
6
|
+
|
7
|
+
require 'muck-profiles/config'
|
8
|
+
require 'muck-profiles/models/profile'
|
9
|
+
require 'muck-profiles/models/user'
|
10
|
+
require 'muck-profiles/engine'
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'muck-profiles'
|
2
2
|
require 'rails'
|
3
3
|
|
4
4
|
module MuckProfiles
|
@@ -8,13 +8,13 @@ module MuckProfiles
|
|
8
8
|
'muck-profiles'
|
9
9
|
end
|
10
10
|
|
11
|
-
initializer '
|
11
|
+
initializer 'muck-profiles.helpers' do |app|
|
12
12
|
ActiveSupport.on_load(:action_view) do
|
13
13
|
include MuckProfilesHelper
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
initializer '
|
17
|
+
initializer 'muck-profiles.i18n' do |app|
|
18
18
|
ActiveSupport.on_load(:i18n) do
|
19
19
|
I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', '..', 'config', 'locales', '*.{rb,yml}') ]
|
20
20
|
end
|
@@ -65,7 +65,7 @@ module MuckProfiles
|
|
65
65
|
if MuckProfiles.configuration.enable_guess_location && self.user.current_login_ip
|
66
66
|
location = Geokit::Geocoders::MultiGeocoder.geocode(self.user.current_login_ip)
|
67
67
|
state = State.find_by_abbreviation(location.state)
|
68
|
-
country = Country.find_by_abbreviation(location.
|
68
|
+
country = Country.find_by_abbreviation(location.country_code)
|
69
69
|
self.update_attributes(
|
70
70
|
:location => "#{location.city}, #{location.state || location.province} #{location.country_code}",
|
71
71
|
:lat => location.lat,
|
File without changes
|
data/muck-profiles.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-profiles}
|
8
|
-
s.version = "3.0.
|
8
|
+
s.version = "3.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-18}
|
13
13
|
s.description = %q{Profile engine for the muck system.}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -82,11 +82,11 @@ Gem::Specification.new do |s|
|
|
82
82
|
"db/migrate/20091124203137_add_location_to_profiles.rb",
|
83
83
|
"db/migrate/20091124205819_add_fields_to_profiles.rb",
|
84
84
|
"db/migrate/20100206000906_remove_name_fields.rb",
|
85
|
-
"lib/
|
86
|
-
"lib/
|
87
|
-
"lib/
|
88
|
-
"lib/
|
89
|
-
"lib/
|
85
|
+
"lib/muck-profiles.rb",
|
86
|
+
"lib/muck-profiles/config.rb",
|
87
|
+
"lib/muck-profiles/engine.rb",
|
88
|
+
"lib/muck-profiles/models/profile.rb",
|
89
|
+
"lib/muck-profiles/models/user.rb",
|
90
90
|
"lib/tasks/muck_profiles.rake",
|
91
91
|
"muck-profiles.gemspec",
|
92
92
|
"test/rails_test/.gitignore",
|
@@ -2194,8 +2194,6 @@ Gem::Specification.new do |s|
|
|
2194
2194
|
"test/rails_test/spec/models/profile_spec.rb",
|
2195
2195
|
"test/rails_test/spec/models/user_spec.rb",
|
2196
2196
|
"test/rails_test/spec/spec_helper.rb",
|
2197
|
-
"test/rails_test/test/performance/browsing_test.rb",
|
2198
|
-
"test/rails_test/test/test_helper.rb",
|
2199
2197
|
"test/rails_test/vendor/plugins/.gitkeep",
|
2200
2198
|
"test/rails_test/vendor/plugins/geokit-rails/CHANGELOG.rdoc",
|
2201
2199
|
"test/rails_test/vendor/plugins/geokit-rails/MIT-LICENSE",
|
@@ -2240,7 +2238,7 @@ Gem::Specification.new do |s|
|
|
2240
2238
|
"test/rails_test/vendor/plugins/geokit-rails/test/tasks.rake",
|
2241
2239
|
"test/rails_test/vendor/plugins/geokit-rails/test/test_helper.rb"
|
2242
2240
|
]
|
2243
|
-
s.homepage = %q{http://github.com/tatemae/
|
2241
|
+
s.homepage = %q{http://github.com/tatemae/muck-profiles}
|
2244
2242
|
s.rdoc_options = ["--charset=UTF-8"]
|
2245
2243
|
s.require_paths = ["lib"]
|
2246
2244
|
s.rubyforge_project = %q{muck-profiles}
|
@@ -2311,8 +2309,6 @@ Gem::Specification.new do |s|
|
|
2311
2309
|
"test/rails_test/spec/models/profile_spec.rb",
|
2312
2310
|
"test/rails_test/spec/models/user_spec.rb",
|
2313
2311
|
"test/rails_test/spec/spec_helper.rb",
|
2314
|
-
"test/rails_test/test/performance/browsing_test.rb",
|
2315
|
-
"test/rails_test/test/test_helper.rb",
|
2316
2312
|
"test/rails_test/vendor/plugins/geokit-rails/init.rb",
|
2317
2313
|
"test/rails_test/vendor/plugins/geokit-rails/install.rb",
|
2318
2314
|
"test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/acts_as_mappable.rb",
|
data/test/rails_test/Gemfile
CHANGED
@@ -6,24 +6,27 @@ gem "mysql"
|
|
6
6
|
# gem "authlogic"
|
7
7
|
# TODO this is temporary until the official authlogic gem is updated for rails 3
|
8
8
|
gem "authlogic", :git => "git://github.com/odorcicd/authlogic.git", :branch => "rails3"
|
9
|
-
|
9
|
+
|
10
10
|
|
11
11
|
gem "disguise"
|
12
12
|
gem "bcrypt-ruby", :require => "bcrypt"
|
13
13
|
gem "overlord"
|
14
14
|
|
15
|
-
gem "muck-engine", :
|
16
|
-
gem "muck-users", :
|
17
|
-
gem "muck-shares", :
|
15
|
+
gem "muck-engine", :path => "~/projects/muck-engine"
|
16
|
+
gem "muck-users", :path => "~/projects/muck-users"
|
17
|
+
gem "muck-shares", :path => "~/projects/muck-shares"
|
18
18
|
gem 'muck-solr', :require => 'acts_as_solr', :path => "~/projects/acts_as_solr"
|
19
|
-
gem "muck-
|
19
|
+
gem "muck-contents", :path => "~/projects/muck-contents"
|
20
|
+
gem 'muck-comments', :path => "~/projects/muck-comments"
|
21
|
+
gem 'muck-activities', :path => "~/projects/muck-activities"
|
22
|
+
gem "muck-profiles", :path => "../../"
|
20
23
|
|
21
24
|
if RUBY_VERSION < "1.9"
|
22
25
|
gem "ruby-debug"
|
23
26
|
end
|
24
27
|
|
25
28
|
group :test, :development do
|
26
|
-
gem "rspec-rails", ">=2.0.0
|
29
|
+
gem "rspec-rails", ">=2.0.0"
|
27
30
|
gem "cucumber-rails"
|
28
31
|
end
|
29
32
|
|
@@ -35,7 +38,7 @@ group :test do
|
|
35
38
|
gem "factory_girl"
|
36
39
|
gem "cucumber"
|
37
40
|
gem "rcov"
|
38
|
-
gem "rspec", ">=2.0.0
|
41
|
+
gem "rspec", ">=2.0.0"
|
39
42
|
gem "database_cleaner"
|
40
43
|
gem "spork"
|
41
44
|
gem "launchy"
|
@@ -11,13 +11,45 @@ PATH
|
|
11
11
|
specs:
|
12
12
|
muck-solr (0.4.7)
|
13
13
|
|
14
|
+
PATH
|
15
|
+
remote: /Users/jbasdf/projects/muck-activities
|
16
|
+
specs:
|
17
|
+
muck-activities (3.0.0)
|
18
|
+
muck-comments
|
19
|
+
muck-engine
|
20
|
+
muck-users
|
21
|
+
|
22
|
+
PATH
|
23
|
+
remote: /Users/jbasdf/projects/muck-comments
|
24
|
+
specs:
|
25
|
+
muck-comments (3.0.1)
|
26
|
+
muck-engine
|
27
|
+
muck-users
|
28
|
+
nested_set
|
29
|
+
sanitize
|
30
|
+
|
31
|
+
PATH
|
32
|
+
remote: /Users/jbasdf/projects/muck-contents
|
33
|
+
specs:
|
34
|
+
muck-contents (3.0.0)
|
35
|
+
acts-as-taggable-on
|
36
|
+
awesome_nested_set
|
37
|
+
babelphish
|
38
|
+
friendly_id
|
39
|
+
muck-comments
|
40
|
+
muck-engine
|
41
|
+
muck-users
|
42
|
+
sanitize
|
43
|
+
tiny_mce
|
44
|
+
uploader
|
45
|
+
|
14
46
|
PATH
|
15
47
|
remote: /Users/jbasdf/projects/muck-engine
|
16
48
|
specs:
|
17
49
|
muck-engine (3.0.1)
|
18
50
|
overlord
|
19
|
-
validation_reflection
|
20
|
-
will_paginate
|
51
|
+
validation_reflection
|
52
|
+
will_paginate (~> 3.0.beta)
|
21
53
|
|
22
54
|
PATH
|
23
55
|
remote: /Users/jbasdf/projects/muck-profiles
|
@@ -99,7 +131,6 @@ GEM
|
|
99
131
|
mime-types
|
100
132
|
xml-simple
|
101
133
|
babelphish (0.2.8)
|
102
|
-
json
|
103
134
|
ya2yaml
|
104
135
|
babosa (0.2.0)
|
105
136
|
bcrypt-ruby (2.1.2)
|
@@ -111,10 +142,12 @@ GEM
|
|
111
142
|
rack (>= 1.0.0)
|
112
143
|
rack-test (>= 0.5.4)
|
113
144
|
selenium-webdriver (>= 0.0.3)
|
145
|
+
childprocess (0.0.7)
|
146
|
+
ffi (~> 0.6.3)
|
114
147
|
columnize (0.3.1)
|
115
148
|
configuration (1.1.0)
|
116
149
|
crack (0.1.8)
|
117
|
-
cucumber (0.9.
|
150
|
+
cucumber (0.9.2)
|
118
151
|
builder (~> 2.1.2)
|
119
152
|
diff-lcs (~> 1.1.2)
|
120
153
|
gherkin (~> 2.2.5)
|
@@ -134,10 +167,9 @@ GEM
|
|
134
167
|
friendly_id (3.1.7)
|
135
168
|
babosa (~> 0.2.0)
|
136
169
|
geokit (1.5.0)
|
137
|
-
gherkin (2.2.
|
170
|
+
gherkin (2.2.8)
|
138
171
|
json (~> 1.4.6)
|
139
172
|
term-ansicolor (~> 1.0.5)
|
140
|
-
trollop (~> 1.16.2)
|
141
173
|
httparty (0.6.1)
|
142
174
|
crack (= 0.1.8)
|
143
175
|
i18n (0.4.1)
|
@@ -147,31 +179,11 @@ GEM
|
|
147
179
|
configuration (>= 0.0.5)
|
148
180
|
rake (>= 0.8.1)
|
149
181
|
linecache (0.43)
|
150
|
-
mail (2.2.
|
182
|
+
mail (2.2.7)
|
151
183
|
activesupport (>= 2.3.6)
|
152
184
|
mime-types
|
153
185
|
treetop (>= 1.4.5)
|
154
186
|
mime-types (1.16)
|
155
|
-
muck-activities (3.0.0)
|
156
|
-
muck-comments
|
157
|
-
muck-engine
|
158
|
-
muck-users
|
159
|
-
muck-comments (3.0.1)
|
160
|
-
muck-engine
|
161
|
-
muck-users
|
162
|
-
nested_set
|
163
|
-
sanitize
|
164
|
-
muck-contents (3.0.0)
|
165
|
-
acts-as-taggable-on
|
166
|
-
awesome_nested_set
|
167
|
-
babelphish
|
168
|
-
friendly_id
|
169
|
-
muck-comments
|
170
|
-
muck-engine
|
171
|
-
muck-users
|
172
|
-
sanitize
|
173
|
-
tiny_mce
|
174
|
-
uploader
|
175
187
|
muck-raker (0.3.18)
|
176
188
|
mysql (2.8.1)
|
177
189
|
nested_set (1.5.2)
|
@@ -204,18 +216,18 @@ GEM
|
|
204
216
|
thor (~> 0.14.0)
|
205
217
|
rake (0.8.7)
|
206
218
|
rcov (0.9.9)
|
207
|
-
rspec (2.0.0
|
208
|
-
rspec-core (= 2.0.0
|
209
|
-
rspec-expectations (= 2.0.0
|
210
|
-
rspec-mocks (= 2.0.0
|
211
|
-
rspec-core (2.0.0
|
212
|
-
rspec-expectations (2.0.0
|
219
|
+
rspec (2.0.0)
|
220
|
+
rspec-core (= 2.0.0)
|
221
|
+
rspec-expectations (= 2.0.0)
|
222
|
+
rspec-mocks (= 2.0.0)
|
223
|
+
rspec-core (2.0.0)
|
224
|
+
rspec-expectations (2.0.0)
|
213
225
|
diff-lcs (>= 1.1.2)
|
214
|
-
rspec-mocks (2.0.0
|
215
|
-
rspec-core (= 2.0.0
|
216
|
-
rspec-expectations (= 2.0.0
|
217
|
-
rspec-rails (2.0.0
|
218
|
-
rspec (= 2.0.0
|
226
|
+
rspec-mocks (2.0.0)
|
227
|
+
rspec-core (= 2.0.0)
|
228
|
+
rspec-expectations (= 2.0.0)
|
229
|
+
rspec-rails (2.0.0)
|
230
|
+
rspec (= 2.0.0)
|
219
231
|
ruby-debug (0.10.3)
|
220
232
|
columnize (>= 0.1)
|
221
233
|
ruby-debug-base (~> 0.10.3.0)
|
@@ -224,19 +236,19 @@ GEM
|
|
224
236
|
rubyzip (0.9.4)
|
225
237
|
sanitize (1.2.1)
|
226
238
|
nokogiri (~> 1.4.1)
|
227
|
-
selenium-webdriver (0.0.
|
228
|
-
|
239
|
+
selenium-webdriver (0.0.29)
|
240
|
+
childprocess (>= 0.0.7)
|
241
|
+
ffi (~> 0.6.3)
|
229
242
|
json_pure
|
230
243
|
rubyzip
|
231
244
|
spork (0.8.4)
|
232
245
|
term-ansicolor (1.0.5)
|
233
|
-
thor (0.14.
|
246
|
+
thor (0.14.3)
|
234
247
|
tiny_mce (0.1.4)
|
235
248
|
treetop (1.4.8)
|
236
249
|
polyglot (>= 0.3.1)
|
237
|
-
trollop (1.16.2)
|
238
250
|
tzinfo (0.3.23)
|
239
|
-
uploader (3.0.
|
251
|
+
uploader (3.0.2)
|
240
252
|
aws-s3
|
241
253
|
mime-types
|
242
254
|
paperclip
|
@@ -260,6 +272,9 @@ DEPENDENCIES
|
|
260
272
|
disguise
|
261
273
|
factory_girl
|
262
274
|
launchy
|
275
|
+
muck-activities!
|
276
|
+
muck-comments!
|
277
|
+
muck-contents!
|
263
278
|
muck-engine!
|
264
279
|
muck-profiles!
|
265
280
|
muck-shares!
|
@@ -269,9 +284,8 @@ DEPENDENCIES
|
|
269
284
|
overlord
|
270
285
|
rails (= 3.0.0)
|
271
286
|
rcov
|
272
|
-
rspec (>= 2.0.0
|
273
|
-
rspec-rails (>= 2.0.0
|
287
|
+
rspec (>= 2.0.0)
|
288
|
+
rspec-rails (>= 2.0.0)
|
274
289
|
ruby-debug
|
275
290
|
shoulda!
|
276
291
|
spork
|
277
|
-
will_paginate (~> 3.0.pre2)
|
@@ -9,7 +9,7 @@ Bundler.require(:default, Rails.env) if defined?(Bundler)
|
|
9
9
|
require 'ostruct'
|
10
10
|
require 'yaml'
|
11
11
|
|
12
|
-
::Secrets = OpenStruct.new(YAML.load_file(File.expand_path('../secrets.yml', __FILE__))[Rails.env
|
12
|
+
::Secrets = OpenStruct.new(YAML.load_file(File.expand_path('../secrets.yml', __FILE__))[Rails.env])
|
13
13
|
|
14
14
|
module RailsTest
|
15
15
|
class Application < Rails::Application
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<div class="country">
|
14
14
|
|
15
15
|
<h1>{Country Name}</h1>
|
16
|
-
<img class="alignnone" src="<%=
|
16
|
+
<img class="alignnone" src="<%=MuckEngine.configuration.application_url%>/wp-content/uploads/2008/08/boy-on-tire1.jpg" border="0" title="boy-on-tire1" width="210" height="300" />
|
17
17
|
|
18
18
|
<h2>Background</h2>
|
19
19
|
<p>{Provide background about the country.}</p>
|
@@ -66,6 +66,24 @@ describe Profile do
|
|
66
66
|
|
67
67
|
end
|
68
68
|
|
69
|
+
describe "guess_and_assign_location_via_ip" do
|
70
|
+
before(:each) do
|
71
|
+
@user = Factory(:user, :current_login_ip => '129.123.54.100')
|
72
|
+
@profile = @user.profile
|
73
|
+
@state = Factory(:state, :abbreviation => 'UT')
|
74
|
+
@country = Factory(:country, :abbreviation => 'US')
|
75
|
+
end
|
76
|
+
it "should find a location for the given IP" do
|
77
|
+
@profile.guess_and_assign_location_via_ip
|
78
|
+
@profile.location.should include('Logan')
|
79
|
+
@profile.lat.should_not be_blank
|
80
|
+
@profile.lng.should_not be_blank
|
81
|
+
@profile.city.should_not be_blank
|
82
|
+
@profile.state.should == @state
|
83
|
+
@profile.country.should == @country
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
69
87
|
def get_fields_string(profile, fields)
|
70
88
|
fields.collect{ |f| profile.send(f) }.join(' ')
|
71
89
|
end
|
@@ -1,29 +1,5 @@
|
|
1
1
|
$:.reject! { |e| e.include? 'TextMate' }
|
2
2
|
ENV["RAILS_ENV"] ||= 'test'
|
3
3
|
require File.expand_path("../../config/environment", __FILE__)
|
4
|
-
require 'rspec/rails'
|
5
|
-
require 'muck_test_helper'
|
6
4
|
|
7
|
-
|
8
|
-
# in spec/support/ and its subdirectories.
|
9
|
-
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
10
|
-
|
11
|
-
RSpec.configure do |config|
|
12
|
-
# == Mock Framework
|
13
|
-
#
|
14
|
-
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
15
|
-
#
|
16
|
-
# config.mock_with :mocha
|
17
|
-
# config.mock_with :flexmock
|
18
|
-
# config.mock_with :rr
|
19
|
-
config.mock_with :rspec
|
20
|
-
|
21
|
-
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
22
|
-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
23
|
-
|
24
|
-
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
25
|
-
# examples within a transaction, remove the following line or assign false
|
26
|
-
# instead of true.
|
27
|
-
config.use_transactional_fixtures = true
|
28
|
-
|
29
|
-
end
|
5
|
+
require 'muck_test_helper'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-profiles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 1
|
10
|
+
version: 3.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-10-
|
19
|
+
date: 2010-10-18 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -248,11 +248,11 @@ files:
|
|
248
248
|
- db/migrate/20091124203137_add_location_to_profiles.rb
|
249
249
|
- db/migrate/20091124205819_add_fields_to_profiles.rb
|
250
250
|
- db/migrate/20100206000906_remove_name_fields.rb
|
251
|
-
- lib/
|
252
|
-
- lib/
|
253
|
-
- lib/
|
254
|
-
- lib/
|
255
|
-
- lib/
|
251
|
+
- lib/muck-profiles.rb
|
252
|
+
- lib/muck-profiles/config.rb
|
253
|
+
- lib/muck-profiles/engine.rb
|
254
|
+
- lib/muck-profiles/models/profile.rb
|
255
|
+
- lib/muck-profiles/models/user.rb
|
256
256
|
- lib/tasks/muck_profiles.rake
|
257
257
|
- muck-profiles.gemspec
|
258
258
|
- test/rails_test/.gitignore
|
@@ -2360,8 +2360,6 @@ files:
|
|
2360
2360
|
- test/rails_test/spec/models/profile_spec.rb
|
2361
2361
|
- test/rails_test/spec/models/user_spec.rb
|
2362
2362
|
- test/rails_test/spec/spec_helper.rb
|
2363
|
-
- test/rails_test/test/performance/browsing_test.rb
|
2364
|
-
- test/rails_test/test/test_helper.rb
|
2365
2363
|
- test/rails_test/vendor/plugins/.gitkeep
|
2366
2364
|
- test/rails_test/vendor/plugins/geokit-rails/CHANGELOG.rdoc
|
2367
2365
|
- test/rails_test/vendor/plugins/geokit-rails/MIT-LICENSE
|
@@ -2406,7 +2404,7 @@ files:
|
|
2406
2404
|
- test/rails_test/vendor/plugins/geokit-rails/test/tasks.rake
|
2407
2405
|
- test/rails_test/vendor/plugins/geokit-rails/test/test_helper.rb
|
2408
2406
|
has_rdoc: true
|
2409
|
-
homepage: http://github.com/tatemae/
|
2407
|
+
homepage: http://github.com/tatemae/muck-profiles
|
2410
2408
|
licenses: []
|
2411
2409
|
|
2412
2410
|
post_install_message:
|
@@ -2504,8 +2502,6 @@ test_files:
|
|
2504
2502
|
- test/rails_test/spec/models/profile_spec.rb
|
2505
2503
|
- test/rails_test/spec/models/user_spec.rb
|
2506
2504
|
- test/rails_test/spec/spec_helper.rb
|
2507
|
-
- test/rails_test/test/performance/browsing_test.rb
|
2508
|
-
- test/rails_test/test/test_helper.rb
|
2509
2505
|
- test/rails_test/vendor/plugins/geokit-rails/init.rb
|
2510
2506
|
- test/rails_test/vendor/plugins/geokit-rails/install.rb
|
2511
2507
|
- test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/acts_as_mappable.rb
|
data/lib/muck_profiles.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
ENV["RAILS_ENV"] = "test"
|
2
|
-
require File.expand_path('../../config/environment', __FILE__)
|
3
|
-
require 'rails/test_help'
|
4
|
-
|
5
|
-
class ActiveSupport::TestCase
|
6
|
-
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
7
|
-
#
|
8
|
-
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
9
|
-
# -- they do not yet inherit this setting
|
10
|
-
fixtures :all
|
11
|
-
|
12
|
-
# Add more helper methods to be used by all tests here...
|
13
|
-
end
|