randomuser-local-rails 0.4.0.1 → 0.4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cad2b4220b38f2399b2ebe922e602fa8696450a
4
- data.tar.gz: 870b1f87db88f1bd08bce2edfc6af3a133e0e494
3
+ metadata.gz: e309cfe5256e830359af0c7ab96b585178195338
4
+ data.tar.gz: 252c32a3d43c40361dab084aae7ab4a7762cd6da
5
5
  SHA512:
6
- metadata.gz: 93ea77d49045ed9ba264d6a89bb9abe3b11ddfa714bb5898527063b4179e6fafe880ffeb97add8864ece75f8ee24579bec4c87056dd97a20e9f47ab260159cef
7
- data.tar.gz: b294e8b182e56a426f1823c1e6c6636c43db74902e4abb0d70efa11339ce66b8eecda7dc6b96c25257548aa7ec8a93c41b6e12b619e22e1ecec33efe6b91279d
6
+ metadata.gz: da35bf3949e21345b1c32b0f514f2bee7c06d8af6cc44fb96cf4383b258ffdc14dfb3862e41e9efd1bd8c9dccd9d034616d39ec18520daca16193b3ca01099f3
7
+ data.tar.gz: 65e6949793d67a089366229851f68ef81def1f34aa8f9c5eccb54c5b16b540601298ea300602070675256951dfaa6efb40643b2f25c408ba30c0842a12dbd908
@@ -28,11 +28,11 @@ 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] = asset_path "/assets/portraits/women/#{rand(0..95)}.jpg"
31
+ user[:picture] = "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
35
- user[:picture] = "/assets/randomuser_local/portraits/men/#{rand(0..99)}.jpg"
35
+ user[:picture] = "portraits/men/#{rand(0..99)}.jpg"
36
36
  user[:name][:first] = random_user_element('male_first_names')
37
37
  user[:name][:title] = 'mr'
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module RandomuserLocal
2
- VERSION = "0.4.0.1"
2
+ VERSION = "0.4.0.2"
3
3
  end
@@ -572,3 +572,75 @@ NavigationTest: test_male_headshots_are_served_with_the_asset_pipeline
572
572
  ----------------------------------------------------------------------
573
573
  Started GET "/assets/randomuser_local/portraits/men/9.jpg" for 127.0.0.1 at 2014-07-28 19:40:39 -0400
574
574
   (0.1ms) rollback transaction
575
+  (0.1ms) begin transaction
576
+ ------------------------------------------------------------------------
577
+ NavigationTest: test_female_headshots_are_served_with_the_asset_pipeline
578
+ ------------------------------------------------------------------------
579
+ Started GET "/assets/randomuser_local/portraits/women/9.jpg" for 127.0.0.1 at 2014-07-28 19:50:45 -0400
580
+  (0.1ms) rollback transaction
581
+  (0.0ms) begin transaction
582
+ ----------------------------------------------------------------------
583
+ NavigationTest: test_male_headshots_are_served_with_the_asset_pipeline
584
+ ----------------------------------------------------------------------
585
+ Started GET "/assets/randomuser_local/portraits/men/9.jpg" for 127.0.0.1 at 2014-07-28 19:50:45 -0400
586
+  (0.1ms) rollback transaction
587
+  (0.1ms) begin transaction
588
+ ------------------------------------------------------------------------
589
+ NavigationTest: test_female_headshots_are_served_with_the_asset_pipeline
590
+ ------------------------------------------------------------------------
591
+ Started GET "/assets/randomuser_local/portraits/women/9.jpg" for 127.0.0.1 at 2014-07-28 19:51:58 -0400
592
+  (0.1ms) rollback transaction
593
+  (0.0ms) begin transaction
594
+ ----------------------------------------------------------------------
595
+ NavigationTest: test_male_headshots_are_served_with_the_asset_pipeline
596
+ ----------------------------------------------------------------------
597
+ Started GET "/assets/randomuser_local/portraits/men/9.jpg" for 127.0.0.1 at 2014-07-28 19:51:58 -0400
598
+  (0.0ms) rollback transaction
599
+  (0.1ms) begin transaction
600
+ ------------------------------------------------------------------------
601
+ NavigationTest: test_female_headshots_are_served_with_the_asset_pipeline
602
+ ------------------------------------------------------------------------
603
+ Started GET "/randomuser_local/portraits/women/9.jpg" for 127.0.0.1 at 2014-07-28 19:52:29 -0400
604
+  (0.1ms) rollback transaction
605
+  (0.0ms) begin transaction
606
+ ----------------------------------------------------------------------
607
+ NavigationTest: test_male_headshots_are_served_with_the_asset_pipeline
608
+ ----------------------------------------------------------------------
609
+ Started GET "/assets/randomuser_local/portraits/men/9.jpg" for 127.0.0.1 at 2014-07-28 19:52:29 -0400
610
+  (0.0ms) rollback transaction
611
+  (0.1ms) begin transaction
612
+ ------------------------------------------------------------------------
613
+ NavigationTest: test_female_headshots_are_served_with_the_asset_pipeline
614
+ ------------------------------------------------------------------------
615
+ Started GET "/assets/randomuser_local/portraits/women/191.jpg" for 127.0.0.1 at 2014-07-28 19:52:48 -0400
616
+  (0.1ms) rollback transaction
617
+  (0.0ms) begin transaction
618
+ ----------------------------------------------------------------------
619
+ NavigationTest: test_male_headshots_are_served_with_the_asset_pipeline
620
+ ----------------------------------------------------------------------
621
+ Started GET "/assets/randomuser_local/portraits/men/9.jpg" for 127.0.0.1 at 2014-07-28 19:52:48 -0400
622
+  (0.0ms) rollback transaction
623
+  (0.1ms) begin transaction
624
+ ------------------------------------------------------------------------
625
+ NavigationTest: test_female_headshots_are_served_with_the_asset_pipeline
626
+ ------------------------------------------------------------------------
627
+ Started GET "/assets/randomuser_local/portraits/women/9.jpg" for 127.0.0.1 at 2014-07-28 19:52:56 -0400
628
+  (0.1ms) rollback transaction
629
+  (0.1ms) begin transaction
630
+ ----------------------------------------------------------------------
631
+ NavigationTest: test_male_headshots_are_served_with_the_asset_pipeline
632
+ ----------------------------------------------------------------------
633
+ Started GET "/assets/randomuser_local/portraits/men/9.jpg" for 127.0.0.1 at 2014-07-28 19:52:56 -0400
634
+  (0.0ms) rollback transaction
635
+  (0.1ms) begin transaction
636
+ ------------------------------------------------------------------------
637
+ NavigationTest: test_female_headshots_are_served_with_the_asset_pipeline
638
+ ------------------------------------------------------------------------
639
+ Started GET "/assets/randomuser_local/portraits/women/9.jpg" for 127.0.0.1 at 2014-07-28 19:53:42 -0400
640
+  (0.2ms) rollback transaction
641
+  (0.2ms) begin transaction
642
+ ----------------------------------------------------------------------
643
+ NavigationTest: test_male_headshots_are_served_with_the_asset_pipeline
644
+ ----------------------------------------------------------------------
645
+ Started GET "/assets/randomuser_local/portraits/men/9.jpg" for 127.0.0.1 at 2014-07-28 19:53:42 -0400
646
+  (0.1ms) rollback transaction
@@ -30,7 +30,7 @@ describe RandomuserLocal do
30
30
  let(:user) { RandomuserLocal.generate_female }
31
31
 
32
32
  it 'returns a female headshot path' do
33
- user[:picture].must_match /^\/assets\/randomuser_local\/portraits\/women/
33
+ user[:picture].must_match /portraits\/women/
34
34
  end
35
35
  end
36
36
 
@@ -39,7 +39,7 @@ describe RandomuserLocal do
39
39
  let(:user) { RandomuserLocal.generate_male }
40
40
 
41
41
  it 'returns a male headshot path' do
42
- user[:picture].must_match /^\/assets\/randomuser_local\/portraits\/men/
42
+ user[:picture].must_match /portraits\/men/
43
43
  end
44
44
 
45
45
  end
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.1
4
+ version: 0.4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Poydar