140. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/4/2017 2:45:04 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

140.1 Files compared

# Location File Last Modified
1 CUI-Release-v2.2.0-source.zip\CUI-Release-v2.2.0-source\spec\factories users.rb Thu Jun 15 19:04:28 2017 UTC
2 CUI-Release-v2.2.0-source.zip\CUI-Release-v2.2.0-source\spec\factories users.rb Fri Aug 4 17:23:29 2017 UTC

140.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 5 174
Changed 4 16
Inserted 0 0
Removed 0 0

140.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

140.4 Active regular expressions

No regular expressions were active.

140.5 Comparison detail

  1   # == Schem a Informat ion
  2   #
  3   # Table na me: users
  4   #
  5   #  id                       :int eger           not nu ll, primar y key
  6   #  email                    :str ing            defaul t(""), not  null
  7   #  encrypt ed_passwor d     :str ing            defaul t(""), not  null
  8   #  reset_p assword_to ken   :str ing
  9   #  reset_p assword_se nt_at :dat etime
  10   #  remembe r_created_ at    :dat etime
  11   #  sign_in _count           :int eger           defaul t(0), not  null
  12   #  current _sign_in_a t     :dat etime
  13   #  last_si gn_in_at         :dat etime
  14   #  current _sign_in_i p     :ine t
  15   #  last_si gn_in_ip         :ine t
  16   #  created _at              :dat etime
  17   #  updated _at              :dat etime
  18   #  roles                    :tex t
  19   #  first_n ame              :str ing
  20   #  last_na me               :str ing
  21   #  is_unde r_review         :boo lean           defaul t(TRUE)
  22   #  failed_ attempts         :int eger           defaul t(0)
  23   #  unlock_ token            :str ing
  24   #  locked_ at               :dat etime
  25   #  provide r                :str ing
  26   #  uid                      :str ing
  27   #  authori zation_sta te    :str ing            defaul t("none")
  28   #
  29  
  30   # Read abo ut factori es at http s://github .com/thoug htbot/fact ory_girl
  31  
  32   FactoryGir l.define d o
  33     factory  :user do
  34       email  { " PII                                    " }
  35         password " REDACTED "
  36       first_ name "Doc"
  37       last_n ame "Brown "
  38       roles  []
  39       is_und er_review  false
  40   #   author ization "a uthorized"
  41     end
  42  
  43     factory  :admin, cl ass: User  do
  44       sequen ce(:email)  { |n| "ad min#{n}@ex ample.com"  }
  45       sequen ce(:first_ name) { |n | "first_n ame#{n}" }
  46       sequen ce(:last_n ame) { |n|  "last_nam e#{n}" }
  47       passwo rd "passwo rd"
  48       roles  ["app_admi n"]
  49     end
  50  
  51     factory  :medical_a ssistant,  class: Use r do
  52         email { "m a#{SecureR andom.hex( 5)}@ DOMAIN " }
  53         password " REDACTED "
  54       first_ name "Medi cal"
  55       last_n ame "Assis tant"
  56       roles  ["medical_ assistant" ]
  57       is_und er_review  false
  58     end
  59  
  60     factory  :superviso r, class:  User do
  61         email { "s upervisor# {SecureRan dom.hex(5) }@ DOMAIN " }
  62         password " REDACTED "
  63       first_ name "Supe r"
  64       last_n ame "Visor "
  65       roles  ["supervis or"]
  66       is_und er_review  false
  67     end
  68  
  69     factory  :examiner,  class: Us er do
  70         email { "e xaminer#{S ecureRando m.hex(5)}@ DOMAIN " }
  71         password " REDACTED "
  72       first_ name "Exam "
  73       last_n ame "Iner"
  74       roles  ["examiner "]
  75       is_und er_review  false
  76     end
  77  
  78     factory  :vha_user,  class: Us er do
  79       sequen ce(:email)  { |n| "vh a_user#{n} @example.c om" }
  80       sequen ce(:first_ name) { |n | "first_n ame#{n}" }
  81       sequen ce(:last_n ame)  { |n | "last_na me#{n}" }
  82       passwo rd "passwo rd"
  83       roles  ["vha_cc"]
  84     end
  85  
  86     factory  :community _provider,  class: Us er do
  87       npi  {  FactoryGi rl.create( :provider) .npi }
  88       sequen ce(:email)       { |n | "communi ty_provide r#{n}@exam ple.com" }
  89       sequen ce(:first_ name) { |n | "first_n ame#{n}" }
  90       sequen ce(:last_n ame)  { |n | "last_na me#{n}" }
  91       passwo rd "passwo rd"
  92       roles  ["non_vha" ]
  93     end
  94  
  95   end