randomuser-local-rails 0.4.0.0 → 0.4.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.
- checksums.yaml +4 -4
- data/app/assets/images/74.jpg +0 -0
- data/lib/randomuser_local/version.rb +1 -1
- data/lib/randomuser_local.rb +1 -1
- data/test/dummy/log/test.log +12 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cad2b4220b38f2399b2ebe922e602fa8696450a
|
4
|
+
data.tar.gz: 870b1f87db88f1bd08bce2edfc6af3a133e0e494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93ea77d49045ed9ba264d6a89bb9abe3b11ddfa714bb5898527063b4179e6fafe880ffeb97add8864ece75f8ee24579bec4c87056dd97a20e9f47ab260159cef
|
7
|
+
data.tar.gz: b294e8b182e56a426f1823c1e6c6636c43db74902e4abb0d70efa11339ce66b8eecda7dc6b96c25257548aa7ec8a93c41b6e12b619e22e1ecec33efe6b91279d
|
Binary file
|
data/lib/randomuser_local.rb
CHANGED
@@ -28,7 +28,7 @@ private
|
|
28
28
|
gender = %w(female male).shuffle.first if gender.nil?
|
29
29
|
user[:gender] = gender
|
30
30
|
if gender == 'female'
|
31
|
-
user[:picture] = "/assets/
|
31
|
+
user[:picture] = asset_path "/assets/portraits/women/#{rand(0..95)}.jpg"
|
32
32
|
user[:name][:first] = random_user_element('female_first_names')
|
33
33
|
user[:name][:title] = %w(ms mrs).shuffle.first
|
34
34
|
else
|
data/test/dummy/log/test.log
CHANGED
@@ -560,3 +560,15 @@ NavigationTest: test_male_headshots_are_served_with_the_asset_pipeline
|
|
560
560
|
----------------------------------------------------------------------
|
561
561
|
Started GET "/assets/randomuser_local/portraits/men/9.jpg" for 127.0.0.1 at 2014-07-28 18:09:16 -0400
|
562
562
|
[1m[35m (0.1ms)[0m rollback transaction
|
563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
564
|
+
------------------------------------------------------------------------
|
565
|
+
NavigationTest: test_female_headshots_are_served_with_the_asset_pipeline
|
566
|
+
------------------------------------------------------------------------
|
567
|
+
Started GET "/assets/randomuser_local/portraits/women/9.jpg" for 127.0.0.1 at 2014-07-28 19:40:39 -0400
|
568
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
569
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
570
|
+
----------------------------------------------------------------------
|
571
|
+
NavigationTest: test_male_headshots_are_served_with_the_asset_pipeline
|
572
|
+
----------------------------------------------------------------------
|
573
|
+
Started GET "/assets/randomuser_local/portraits/men/9.jpg" for 127.0.0.1 at 2014-07-28 19:40:39 -0400
|
574
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: randomuser-local-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.0.
|
4
|
+
version: 0.4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henry Poydar
|
@@ -47,6 +47,7 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- MIT-LICENSE
|
49
49
|
- Rakefile
|
50
|
+
- app/assets/images/74.jpg
|
50
51
|
- app/assets/images/randomuser_local/portraits/men/0.jpg
|
51
52
|
- app/assets/images/randomuser_local/portraits/men/1.jpg
|
52
53
|
- app/assets/images/randomuser_local/portraits/men/10.jpg
|