phonelib 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/data/extended_data.dat +0 -0
  3. data/data/libphonenumber/README.md +3 -3
  4. data/data/libphonenumber/codereview.settings +1 -1
  5. data/data/libphonenumber/cpp/CMakeLists.txt +6 -1
  6. data/data/libphonenumber/cpp/README +3 -3
  7. data/data/libphonenumber/cpp/src/phonenumbers/asyoutypeformatter.cc +7 -0
  8. data/data/libphonenumber/cpp/src/phonenumbers/base/logging.h +4 -0
  9. data/data/libphonenumber/cpp/src/phonenumbers/lite_metadata.cc +8830 -8807
  10. data/data/libphonenumber/cpp/src/phonenumbers/metadata.cc +11576 -11552
  11. data/data/libphonenumber/cpp/test/phonenumbers/asyoutypeformatter_test.cc +2 -2
  12. data/data/libphonenumber/cpp/test/phonenumbers/geocoding/area_code_map_test.cc +4 -4
  13. data/data/libphonenumber/cpp/test/phonenumbers/geocoding/geocoding_test_program.cc +1 -0
  14. data/data/libphonenumber/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc +4 -4
  15. data/data/libphonenumber/cpp/test/phonenumbers/phonenumberutil_test.cc +1 -1
  16. data/data/libphonenumber/debian/control +3 -3
  17. data/data/libphonenumber/debian/copyright +1 -1
  18. data/data/libphonenumber/debian/watch +1 -1
  19. data/data/libphonenumber/java/carrier/pom.xml +1 -1
  20. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/225_en +0 -0
  21. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/233_en +0 -0
  22. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/677_en +0 -0
  23. data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/973_en +0 -0
  24. data/data/libphonenumber/java/demo/war/phonenumberparser.jsp +1 -1
  25. data/data/libphonenumber/java/geocoder/pom.xml +1 -1
  26. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1418_en +0 -0
  27. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1438_en +0 -0
  28. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1450_en +0 -0
  29. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1514_en +0 -0
  30. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1819_en +0 -0
  31. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/64_en +0 -0
  32. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/86_en +0 -0
  33. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/86_zh +0 -0
  34. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/config +0 -0
  35. data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/timezones/data/map_data +0 -0
  36. data/data/libphonenumber/java/internal/prefixmapper/pom.xml +1 -1
  37. data/data/libphonenumber/java/libphonenumber/pom.xml +1 -1
  38. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java +5 -0
  39. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AR +0 -0
  40. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BH +0 -0
  41. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BY +0 -0
  42. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CI +0 -0
  43. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CN +0 -0
  44. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GH +0 -0
  45. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KR +0 -0
  46. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KW +0 -0
  47. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LU +0 -0
  48. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ME +0 -0
  49. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NZ +0 -0
  50. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SB +0 -0
  51. data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_WS +0 -0
  52. data/data/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java +2 -2
  53. data/data/libphonenumber/java/release_notes.txt +11 -1
  54. data/data/libphonenumber/javascript/README +5 -3
  55. data/data/libphonenumber/javascript/i18n/phonenumbers/asyoutypeformatter.js +5 -0
  56. data/data/libphonenumber/javascript/i18n/phonenumbers/asyoutypeformatter_test.js +2 -2
  57. data/data/libphonenumber/javascript/i18n/phonenumbers/demo-compiled.js +115 -115
  58. data/data/libphonenumber/javascript/i18n/phonenumbers/demo.html +1 -1
  59. data/data/libphonenumber/javascript/i18n/phonenumbers/metadata.js +38 -32
  60. data/data/libphonenumber/javascript/i18n/phonenumbers/metadatalite.js +37 -31
  61. data/data/libphonenumber/javascript/i18n/phonenumbers/phonemetadata.pb.js +401 -241
  62. data/data/libphonenumber/javascript/i18n/phonenumbers/phonenumber.pb.js +66 -50
  63. data/data/libphonenumber/resources/PhoneNumberMetadata.xml +196 -95
  64. data/data/libphonenumber/resources/carrier/en/225.txt +1 -0
  65. data/data/libphonenumber/resources/carrier/en/233.txt +3 -1
  66. data/data/libphonenumber/resources/carrier/en/27.txt +1 -1
  67. data/data/libphonenumber/resources/carrier/en/677.txt +1 -0
  68. data/data/libphonenumber/resources/carrier/en/679.txt +2 -2
  69. data/data/libphonenumber/resources/carrier/en/973.txt +1 -0
  70. data/data/libphonenumber/resources/geocoding/en/1.txt +5 -5
  71. data/data/libphonenumber/resources/geocoding/en/64.txt +124 -0
  72. data/data/libphonenumber/resources/geocoding/en/86.txt +1 -3
  73. data/data/libphonenumber/resources/geocoding/zh/86.txt +1 -3
  74. data/data/libphonenumber/resources/timezones/map_data.txt +195 -101
  75. data/data/libphonenumber/tools/java/data/webapp/index.html +1 -1
  76. data/data/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/BuildMetadataJsonFromXml.java +8 -0
  77. data/data/phone_data.dat +0 -0
  78. data/lib/phonelib/version.rb +1 -1
  79. metadata +4 -2
@@ -15,7 +15,7 @@
15
15
 
16
16
  <textarea name="geodata" rows="20" cols="80"></textarea>
17
17
  <input type="submit" value="Submit"><br>
18
- <a href="http://code.google.com/p/libphonenumber/">Back to libphonenumber</a>
18
+ <a href="https://github.com/googlei18n/libphonenumber/">Back to libphonenumber</a>
19
19
  </form>
20
20
  </body>
21
21
 
@@ -383,6 +383,14 @@ public class BuildMetadataJsonFromXml extends Command {
383
383
  toJsArray(metadata.getEmergency(), jsArrayBuilder);
384
384
  // optional PhoneNumberDesc voicemail = 28;
385
385
  toJsArray(metadata.getVoicemail(), jsArrayBuilder);
386
+ // Fields 29-31 are omitted due to space increase.
387
+ // optional PhoneNumberDesc short_code = 29;
388
+ // optional PhoneNumberDesc standard_rate = 30;
389
+ // optional PhoneNumberDesc carrier_specific = 31;
390
+ // optional bool mobile_number_portable_region = 32 [default=false];
391
+ // Omit since the JS API doesn't expose this data.
392
+ // Note: Need to add null for each of the above fields when a subsequent
393
+ // field is being populated.
386
394
 
387
395
  jsArrayBuilder.endArray();
388
396
  }
data/data/phone_data.dat CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  # :nodoc:
2
2
  module Phonelib
3
3
  # :nodoc:
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonelib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -875,6 +875,7 @@ files:
875
875
  - data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/599_en
876
876
  - data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/62_en
877
877
  - data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/62_id
878
+ - data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/64_en
878
879
  - data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/66_en
879
880
  - data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/66_th
880
881
  - data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/686_en
@@ -1833,6 +1834,7 @@ files:
1833
1834
  - data/libphonenumber/resources/geocoding/en/58.txt
1834
1835
  - data/libphonenumber/resources/geocoding/en/599.txt
1835
1836
  - data/libphonenumber/resources/geocoding/en/62.txt
1837
+ - data/libphonenumber/resources/geocoding/en/64.txt
1836
1838
  - data/libphonenumber/resources/geocoding/en/66.txt
1837
1839
  - data/libphonenumber/resources/geocoding/en/686.txt
1838
1840
  - data/libphonenumber/resources/geocoding/en/7.txt