Browse Source

pre-cran flight check

tags/v0.3.1
boB Rudis 2 years ago
parent
commit
19a2ac82c6
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
6 changed files with 27 additions and 26 deletions
  1. +0
    -1
      .Rbuildignore
  2. +1
    -0
      DESCRIPTION
  3. +1
    -0
      NAMESPACE
  4. +1
    -0
      R/gdns-package.r
  5. +17
    -16
      README.md
  6. +7
    -9
      cran-comments.md

+ 0
- 1
.Rbuildignore View File

@@ -4,7 +4,6 @@
^README-.*\.png$
^\.travis\.yml$
^CONDUCT\.md$
^README\.Rmd$
^cran-comments\.md$
^docs$
^tools$

+ 1
- 0
DESCRIPTION View File

@@ -24,6 +24,7 @@ Suggests:
testthat
Imports:
httr,
stats,
jsonlite,
stringi
RoxygenNote: 6.0.1.9000

+ 1
- 0
NAMESPACE View File

@@ -14,6 +14,7 @@ export(spf_ptrs)
export(split_spf)
import(httr)
importFrom(jsonlite,fromJSON)
importFrom(stats,terms)
importFrom(stringi,stri_detect_fixed)
importFrom(stringi,stri_enc_toutf8)
importFrom(stringi,stri_replace_all_regex)


+ 1
- 0
R/gdns-package.r View File

@@ -25,6 +25,7 @@
#' stri_replace_all_regex stri_enc_toutf8
#' stri_detect_fixed
#' @importFrom jsonlite fromJSON
#' @importFrom stats terms
NULL




+ 17
- 16
README.md View File

@@ -66,7 +66,7 @@ str(query("rud.is"))
#> $ Answer :'data.frame': 1 obs. of 4 variables:
#> ..$ name: chr "rud.is."
#> ..$ type: int 1
#> ..$ TTL : int 3536
#> ..$ TTL : int 1152
#> ..$ data: chr "104.236.112.222"
#> $ Additional : list()
#> $ edns_client_subnet: chr "0.0.0.0/0"
@@ -85,13 +85,13 @@ str(query("example.com", "255")) # "ANY" query
#> $ Answer :'data.frame': 20 obs. of 4 variables:
#> ..$ name: chr [1:20] "example.com." "example.com." "example.com." "example.com." ...
#> ..$ type: int [1:20] 6 46 47 46 2 2 46 28 46 1 ...
#> ..$ TTL : int [1:20] 3566 3566 3566 21566 21566 21566 21566 21566 21566 21566 ...
#> ..$ data: chr [1:20] "sns.dns.icann.org. noc.dns.icann.org. 2018080123 7200 3600 1209600 3600" "nsec 8 2 3600 1538855995 1537006806 63855 example.com. pFyGCdsJ2uw2FcRlszW1VuM6FRV1rHbBfeBmp/Jaecdth8njienGYt2k"| __truncated__ "www.example.com. A NS SOA TXT AAAA RRSIG NSEC DNSKEY" "ns 8 2 86400 1538826642 1537014006 63855 example.com. U7KJg6I3XylL5aT10B3tHw9MIV8QoHBlmzO3CwghRh4I00ZzF2IgjakMp"| __truncated__ ...
#> ..$ TTL : int [1:20] 3562 3562 3562 21562 21562 21562 21562 21562 21562 21562 ...
#> ..$ data: chr [1:20] "sns.dns.icann.org. noc.dns.icann.org. 2018080125 7200 3600 1209600 3600" "nsec 8 2 3600 1538855995 1537006806 63855 example.com. pFyGCdsJ2uw2FcRlszW1VuM6FRV1rHbBfeBmp/Jaecdth8njienGYt2k"| __truncated__ "www.example.com. A NS SOA TXT AAAA RRSIG NSEC DNSKEY" "ns 8 2 86400 1538826642 1537014006 63855 example.com. U7KJg6I3XylL5aT10B3tHw9MIV8QoHBlmzO3CwghRh4I00ZzF2IgjakMp"| __truncated__ ...
#> $ Additional : list()
#> $ edns_client_subnet: chr "0.0.0.0/0"

str(query("microsoft.com", "MX"))
#> List of 10
#> List of 11
#> $ Status : int 0
#> $ TC : logi FALSE
#> $ RD : logi TRUE
@@ -104,10 +104,11 @@ str(query("microsoft.com", "MX"))
#> $ Answer :'data.frame': 1 obs. of 4 variables:
#> ..$ name: chr "microsoft.com."
#> ..$ type: int 15
#> ..$ TTL : int 3507
#> ..$ TTL : int 3599
#> ..$ data: chr "10 microsoft-com.mail.protection.outlook.com."
#> $ Additional : list()
#> $ edns_client_subnet: chr "0.0.0.0/0"
#> $ Comment : chr "Response from 208.76.45.53."

str(query("google-public-dns-a.google.com", "TXT"))
#> List of 10
@@ -123,7 +124,7 @@ str(query("google-public-dns-a.google.com", "TXT"))
#> $ Answer :'data.frame': 1 obs. of 4 variables:
#> ..$ name: chr "google-public-dns-a.google.com."
#> ..$ type: int 16
#> ..$ TTL : int 21537
#> ..$ TTL : int 21432
#> ..$ data: chr "\"http://xkcd.com/1361/\""
#> $ Additional : list()
#> $ edns_client_subnet: chr "0.0.0.0/0"
@@ -142,7 +143,7 @@ str(query("apple.com"))
#> $ Answer :'data.frame': 3 obs. of 4 variables:
#> ..$ name: chr [1:3] "apple.com." "apple.com." "apple.com."
#> ..$ type: int [1:3] 1 1 1
#> ..$ TTL : int [1:3] 3557 3557 3557
#> ..$ TTL : int [1:3] 2635 2635 2635
#> ..$ data: chr [1:3] "17.172.224.47" "17.178.96.59" "17.142.160.59"
#> $ Additional : list()
#> $ edns_client_subnet: chr "0.0.0.0/0"
@@ -161,7 +162,7 @@ str(query("17.142.160.59", "PTR"))
#> $ Answer :'data.frame': 5 obs. of 4 variables:
#> ..$ name: chr [1:5] "59.160.142.17.in-addr.arpa." "59.160.142.17.in-addr.arpa." "59.160.142.17.in-addr.arpa." "59.160.142.17.in-addr.arpa." ...
#> ..$ type: int [1:5] 12 12 12 12 12
#> ..$ TTL : int [1:5] 2733 2733 2733 2733 2733
#> ..$ TTL : int [1:5] 3588 3588 3588 3588 3588
#> ..$ data: chr [1:5] "apple.by." "apple.com." "pv-apple-com.apple.com." "ipad.host." ...
#> $ Additional : list()
#> $ edns_client_subnet: chr "0.0.0.0/0"
@@ -170,13 +171,13 @@ hosts <- c("rud.is", "dds.ec", "r-project.org", "rstudio.com", "apple.com")

gdns::bulk_query(hosts)
#> name type TTL data entity
#> 1 rud.is. 1 806 104.236.112.222 rud.is
#> 2 dds.ec. 1 507 185.53.178.9 dds.ec
#> 3 r-project.org. 1 7199 137.208.57.37 r-project.org
#> 4 rstudio.com. 1 3536 104.196.200.5 rstudio.com
#> 5 apple.com. 1 3082 17.172.224.47 apple.com
#> 6 apple.com. 1 3082 17.178.96.59 apple.com
#> 7 apple.com. 1 3082 17.142.160.59 apple.com
#> 1 rud.is. 1 1151 104.236.112.222 rud.is
#> 2 dds.ec. 1 599 185.53.178.9 dds.ec
#> 3 r-project.org. 1 7031 137.208.57.37 r-project.org
#> 4 rstudio.com. 1 3431 104.196.200.5 rstudio.com
#> 5 apple.com. 1 2718 17.178.96.59 apple.com
#> 6 apple.com. 1 2718 17.142.160.59 apple.com
#> 7 apple.com. 1 2718 17.172.224.47 apple.com
```

### Test Results
@@ -186,7 +187,7 @@ library(gdns)
library(testthat)

date()
#> [1] "Sat Sep 15 14:29:20 2018"
#> [1] "Sun Sep 16 13:23:55 2018"

test_dir("tests/")
#> ✔ | OK F W S | Context


+ 7
- 9
cran-comments.md View File

@@ -1,17 +1,15 @@
## Test environments
* local OS X install, R 3.4.0
* ubuntu 12.04 (on travis-ci), R 3.4.0 & oldrel
* win-builder (devel and release) https://win-builder.r-project.org/8Ls4z6cqTVpg/00check.log
* local OS X install, R 3.5.1
* ubuntu 12.04 (on travis-ci), R 3.5.1
* win-builder (devel and release)

## R CMD check results

0 errors | 0 warnings | 1 note (maintainer & acronyms)
0 errors | 0 warnings | 1 note

## Reverse dependencies

None
* This is a maintenance release.

---

* This is an update release to fix CRAN checks due to the crazy way purrr does dplyr ops. This pkg now Imports the necessary dplyr functions.
* Mis-spelled words aren't mis-spelled. Too many necessary acronyms to use "'" pairs.
Thinned out dependencies and modified the code to account
for chances in the DoH API.

Loading…
Cancel
Save