Browse Source

pre-cran flight check

boB Rudis 1 year ago
parent
commit
19a2ac82c6
No known key found for this signature in database
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 @@
4 4
 ^README-.*\.png$
5 5
 ^\.travis\.yml$
6 6
 ^CONDUCT\.md$
7
-^README\.Rmd$
8 7
 ^cran-comments\.md$
9 8
 ^docs$
10 9
 ^tools$

+ 1
- 0
DESCRIPTION View File

@@ -24,6 +24,7 @@ Suggests:
24 24
     testthat
25 25
 Imports:
26 26
     httr,
27
+    stats,
27 28
     jsonlite,
28 29
     stringi
29 30
 RoxygenNote: 6.0.1.9000

+ 1
- 0
NAMESPACE View File

@@ -14,6 +14,7 @@ export(spf_ptrs)
14 14
 export(split_spf)
15 15
 import(httr)
16 16
 importFrom(jsonlite,fromJSON)
17
+importFrom(stats,terms)
17 18
 importFrom(stringi,stri_detect_fixed)
18 19
 importFrom(stringi,stri_enc_toutf8)
19 20
 importFrom(stringi,stri_replace_all_regex)

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

@@ -25,6 +25,7 @@
25 25
 #'                     stri_replace_all_regex stri_enc_toutf8
26 26
 #'                     stri_detect_fixed
27 27
 #' @importFrom jsonlite fromJSON
28
+#' @importFrom stats terms
28 29
 NULL
29 30
 
30 31
 

+ 17
- 16
README.md View File

@@ -66,7 +66,7 @@ str(query("rud.is"))
66 66
 #>  $ Answer            :'data.frame':  1 obs. of  4 variables:
67 67
 #>   ..$ name: chr "rud.is."
68 68
 #>   ..$ type: int 1
69
-#>   ..$ TTL : int 3536
69
+#>   ..$ TTL : int 1152
70 70
 #>   ..$ data: chr "104.236.112.222"
71 71
 #>  $ Additional        : list()
72 72
 #>  $ edns_client_subnet: chr "0.0.0.0/0"
@@ -85,13 +85,13 @@ str(query("example.com", "255")) # "ANY" query
85 85
 #>  $ Answer            :'data.frame':  20 obs. of  4 variables:
86 86
 #>   ..$ name: chr [1:20] "example.com." "example.com." "example.com." "example.com." ...
87 87
 #>   ..$ type: int [1:20] 6 46 47 46 2 2 46 28 46 1 ...
88
-#>   ..$ TTL : int [1:20] 3566 3566 3566 21566 21566 21566 21566 21566 21566 21566 ...
89
-#>   ..$ 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__ ...
88
+#>   ..$ TTL : int [1:20] 3562 3562 3562 21562 21562 21562 21562 21562 21562 21562 ...
89
+#>   ..$ 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__ ...
90 90
 #>  $ Additional        : list()
91 91
 #>  $ edns_client_subnet: chr "0.0.0.0/0"
92 92
 
93 93
 str(query("microsoft.com", "MX"))
94
-#> List of 10
94
+#> List of 11
95 95
 #>  $ Status            : int 0
96 96
 #>  $ TC                : logi FALSE
97 97
 #>  $ RD                : logi TRUE
@@ -104,10 +104,11 @@ str(query("microsoft.com", "MX"))
104 104
 #>  $ Answer            :'data.frame':  1 obs. of  4 variables:
105 105
 #>   ..$ name: chr "microsoft.com."
106 106
 #>   ..$ type: int 15
107
-#>   ..$ TTL : int 3507
107
+#>   ..$ TTL : int 3599
108 108
 #>   ..$ data: chr "10 microsoft-com.mail.protection.outlook.com."
109 109
 #>  $ Additional        : list()
110 110
 #>  $ edns_client_subnet: chr "0.0.0.0/0"
111
+#>  $ Comment           : chr "Response from 208.76.45.53."
111 112
 
112 113
 str(query("google-public-dns-a.google.com", "TXT"))
113 114
 #> List of 10
@@ -123,7 +124,7 @@ str(query("google-public-dns-a.google.com", "TXT"))
123 124
 #>  $ Answer            :'data.frame':  1 obs. of  4 variables:
124 125
 #>   ..$ name: chr "google-public-dns-a.google.com."
125 126
 #>   ..$ type: int 16
126
-#>   ..$ TTL : int 21537
127
+#>   ..$ TTL : int 21432
127 128
 #>   ..$ data: chr "\"http://xkcd.com/1361/\""
128 129
 #>  $ Additional        : list()
129 130
 #>  $ edns_client_subnet: chr "0.0.0.0/0"
@@ -142,7 +143,7 @@ str(query("apple.com"))
142 143
 #>  $ Answer            :'data.frame':  3 obs. of  4 variables:
143 144
 #>   ..$ name: chr [1:3] "apple.com." "apple.com." "apple.com."
144 145
 #>   ..$ type: int [1:3] 1 1 1
145
-#>   ..$ TTL : int [1:3] 3557 3557 3557
146
+#>   ..$ TTL : int [1:3] 2635 2635 2635
146 147
 #>   ..$ data: chr [1:3] "17.172.224.47" "17.178.96.59" "17.142.160.59"
147 148
 #>  $ Additional        : list()
148 149
 #>  $ edns_client_subnet: chr "0.0.0.0/0"
@@ -161,7 +162,7 @@ str(query("17.142.160.59", "PTR"))
161 162
 #>  $ Answer            :'data.frame':  5 obs. of  4 variables:
162 163
 #>   ..$ 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." ...
163 164
 #>   ..$ type: int [1:5] 12 12 12 12 12
164
-#>   ..$ TTL : int [1:5] 2733 2733 2733 2733 2733
165
+#>   ..$ TTL : int [1:5] 3588 3588 3588 3588 3588
165 166
 #>   ..$ data: chr [1:5] "apple.by." "apple.com." "pv-apple-com.apple.com." "ipad.host." ...
166 167
 #>  $ Additional        : list()
167 168
 #>  $ 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")
170 171
 
171 172
 gdns::bulk_query(hosts)
172 173
 #>             name type  TTL            data        entity
173
-#> 1        rud.is.    1  806 104.236.112.222        rud.is
174
-#> 2        dds.ec.    1  507    185.53.178.9        dds.ec
175
-#> 3 r-project.org.    1 7199   137.208.57.37 r-project.org
176
-#> 4   rstudio.com.    1 3536   104.196.200.5   rstudio.com
177
-#> 5     apple.com.    1 3082   17.172.224.47     apple.com
178
-#> 6     apple.com.    1 3082    17.178.96.59     apple.com
179
-#> 7     apple.com.    1 3082   17.142.160.59     apple.com
174
+#> 1        rud.is.    1 1151 104.236.112.222        rud.is
175
+#> 2        dds.ec.    1  599    185.53.178.9        dds.ec
176
+#> 3 r-project.org.    1 7031   137.208.57.37 r-project.org
177
+#> 4   rstudio.com.    1 3431   104.196.200.5   rstudio.com
178
+#> 5     apple.com.    1 2718    17.178.96.59     apple.com
179
+#> 6     apple.com.    1 2718   17.142.160.59     apple.com
180
+#> 7     apple.com.    1 2718   17.172.224.47     apple.com
180 181
 ```
181 182
 
182 183
 ### Test Results
@@ -186,7 +187,7 @@ library(gdns)
186 187
 library(testthat)
187 188
 
188 189
 date()
189
-#> [1] "Sat Sep 15 14:29:20 2018"
190
+#> [1] "Sun Sep 16 13:23:55 2018"
190 191
 
191 192
 test_dir("tests/")
192 193
 #> ✔ | OK F W S | Context

+ 7
- 9
cran-comments.md View File

@@ -1,17 +1,15 @@
1 1
 ## Test environments
2
-* local OS X install, R 3.4.0
3
-* ubuntu 12.04 (on travis-ci), R 3.4.0 & oldrel
4
-* win-builder (devel and release) https://win-builder.r-project.org/8Ls4z6cqTVpg/00check.log
2
+* local OS X install, R 3.5.1
3
+* ubuntu 12.04 (on travis-ci), R 3.5.1
4
+* win-builder (devel and release)
5 5
 
6 6
 ## R CMD check results
7 7
 
8
-0 errors | 0 warnings | 1 note (maintainer & acronyms)
8
+0 errors | 0 warnings | 1 note
9 9
 
10
-## Reverse dependencies
11
-
12
-None
10
+* This is a maintenance release.
13 11
 
14 12
 ---
15 13
 
16
-* 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.
17
-* Mis-spelled words aren't mis-spelled. Too many necessary acronyms to use "'" pairs.
14
+Thinned out dependencies and modified the code to account
15
+for chances in the DoH API.

Loading…
Cancel
Save