ppl 2.3.2 → 2.3.3

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: f78ab4014a9b354035e1db8d30b5d7e5feead607
4
- data.tar.gz: 9cd1d4d4c960f1f71a0110658d45b332b68ba47b
3
+ metadata.gz: 6b8cf7a49d86910e1f9ae9d0715173ddfd90c172
4
+ data.tar.gz: b936dfdaa46dd5f3a494d74e2caaf369c65c7dea
5
5
  SHA512:
6
- metadata.gz: 95b3748e64b1a93d5ddd04de527b1087fb2ceb548774bccded265d4bdaccbf394370a81f0c95d013216fcac7f4f429d9a37a0422c9495301c7deb2168a5f9bf5
7
- data.tar.gz: f53d3186b95fbb1771bd260f27d4f6ece87a99e89b9dce7d72960fd3ff6974572ad1c9cff589b49f947cf98b03eb635b478108ec2e527b2a1a41dd420a731cf6
6
+ metadata.gz: adb3738b5599011b369a186cce6a9133b0d2e2fcfc8e7206989cc3c6d63624e0c96fd99bd596d84106b4695c51d50a23fa18820f32a75ca1ee6a43f5876dedfb
7
+ data.tar.gz: e5999fc187d6e5ce979cd14809f8c7f5e78138ebd963c3011831171a3234c79da6d89b45fa1980b227111e670b591901a9035914de38ace5bba21b1f36fa001f
@@ -0,0 +1,50 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This Code of Conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at [henry@henrysmith.org](mailto:henry@henrysmith.org). All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+
45
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
46
+ version 1.3.0, available at
47
+ [http://contributor-covenant.org/version/1/3/0/][version]
48
+
49
+ [homepage]: http://contributor-covenant.org
50
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/README.md CHANGED
@@ -78,8 +78,7 @@ Contributing
78
78
  Bug reports, fixes, and additional features are encouraged. The project uses
79
79
  [Github issues](https://github.com/hnrysmth/ppl/issues) to track bug reports.
80
80
 
81
- If you'd like to contribute code, please just bear in mind that ppl development
82
- is test-driven.
81
+ Everyone interacting in ppl’s codebases, issue trackers etc is expected to follow the [code of conduct](https://github.com/ppladdressbook/ppl/blob/master/CODE_OF_CONDUCT.md).
83
82
 
84
83
  License
85
84
  -------
data/lib/ppl.rb CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Ppl
3
3
 
4
- Version = "2.3.2"
4
+ Version = "2.3.3"
5
5
 
6
6
  module Adapter
7
7
  end
@@ -24,9 +24,11 @@ class Ppl::Adapter::EmailScraper::Mail
24
24
  unless from.nil?
25
25
  sender = Ppl::Entity::Contact.new
26
26
  sender.name = Ppl::Entity::Name.new
27
- sender.name.full = from.tree.addresses.first.display_name
27
+ display_name = from.tree.addresses.first.display_name
28
+ sender.name.full = Mail::Encodings.value_decode(display_name) unless display_name.nil?
28
29
  sender.email_addresses << Ppl::Entity::EmailAddress.new(from.tree.addresses.first.address)
29
30
  sender.id = generate_contact_id(sender)
31
+ sender.name.full = sender.id if display_name.nil?
30
32
  sender
31
33
  end
32
34
  end
data/ppl.gemspec CHANGED
@@ -1,9 +1,8 @@
1
-
2
1
  Gem::Specification.new do |spec|
3
2
 
4
3
  spec.name = "ppl"
5
- spec.version = "2.3.2"
6
- spec.date = "2015-01-05"
4
+ spec.version = "2.3.3"
5
+ spec.date = "2015-12-05"
7
6
 
8
7
  spec.required_ruby_version = ">= 1.9.3"
9
8
 
@@ -98,6 +98,25 @@ describe Ppl::Adapter::EmailScraper::Mail do
98
98
  contacts.first.id.should eq "test_user_1"
99
99
  end
100
100
 
101
+ it "allows non-ASCII sender names" do
102
+ email = [
103
+ "Date: Fri, 30 Nov 2012 17:09:33 +0000",
104
+ "From: =?UTF-8?B?0JDQu9C10LrRgdCw0L3QtNGA?= <test@example.org>",
105
+ "Message-ID: <qwertyuioasdfghjk@mail.example.org>",
106
+ "Subject: Test Email",
107
+ "To: henry@henrysmith.org",
108
+ "",
109
+ "Hey,",
110
+ "This is a test email.",
111
+ "Bye!",
112
+ ].join("\n")
113
+
114
+ @storage.should_receive(:load_contact).and_return(nil)
115
+ contacts = @adapter.scrape_contacts(email)
116
+
117
+ contacts.first.name.full.should eq "Александр"
118
+ end
119
+
101
120
  end
102
121
 
103
122
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ppl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-05 00:00:00.000000000 Z
11
+ date: 2015-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored
@@ -175,6 +175,7 @@ files:
175
175
  - ".gitignore"
176
176
  - ".rspec"
177
177
  - ".travis.yml"
178
+ - CODE_OF_CONDUCT.md
178
179
  - COPYING
179
180
  - Gemfile
180
181
  - LICENSE
@@ -396,7 +397,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
396
397
  version: '0'
397
398
  requirements: []
398
399
  rubyforge_project:
399
- rubygems_version: 2.4.3
400
+ rubygems_version: 2.4.5.1
400
401
  signing_key:
401
402
  specification_version: 4
402
403
  summary: The command line address book