fancy_irb 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f559efa7e0408fea662a4c4f6c830ee55a37384a
4
- data.tar.gz: 694324fa73a9f55ca3a3ab5ef81e50c4332dbfa5
3
+ metadata.gz: cfc069062252e3060169708f1a8333e967cae281
4
+ data.tar.gz: 34cb028cc537539b4a25d031d27bd08385f84241
5
5
  SHA512:
6
- metadata.gz: 3450bb467f66b2fd872448fad46e3245a24865fb0d8e127bc83d9a50c6061f343e15b71178e8c1099b4a01dd458d2fd19abd1d61a621b3c9a8c67da54a1b7367
7
- data.tar.gz: a8b9a0e89cb41c7326b25970b8074b96336c1dbe5d8d8b37c99bfc23a065d63ca1893294e3f88c815bdf1b1db0d945c31a5401add0aaac3b028fd3fc4d094fad
6
+ metadata.gz: ca16fb7ef877af720169a06315537be1390d84fb81c7d010e3ff703959db4aa2ec2ec0aedf253c20743363da0c24f20887aaa1ef77f173b114693608c00f07d8
7
+ data.tar.gz: 85c6efb1aa820f6a09cb56e6ea978f25db74c4c87abeb5753965ee13ce3fa67704c653e8b315f6a4b9e86a900ea93c3ef3ff1234ee139b23ddb64ef1e32399f6
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.1
4
+ * Fix that unicode-display_width was not used properly
5
+
3
6
  ## 1.0.0
4
7
  * More tidying behind the scenes
5
8
  * Remove :result_proc and :output_procs options. Please use `IRB::Inspector.def_inspector` if you need this feature
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at opensource@janlelis.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2012, 2015 Jan Lelis
1
+ Copyright (c) 2010-2012, 2015-2016 Jan Lelis
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.license = 'MIT'
15
15
  s.requirements = ['Windows: ansicon <https://github.com/adoxa/ansicon>']
16
16
  s.add_dependency 'paint', '>= 0.9', '< 2.0'
17
- s.add_dependency 'unicode-display_width', ">= 0.2.0"
17
+ s.add_dependency 'unicode-display_width', "~> 0.3.1"
18
18
  s.add_development_dependency 'rspec', "~> 3.2"
19
19
  s.add_development_dependency 'rake', "~> 10.4"
20
20
  s.files = [
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
  "README.md",
23
23
  "Rakefile",
24
24
  "CHANGELOG.md",
25
+ "CODE_OF_CONDUCT.md",
25
26
  "fancy_irb.gemspec",
26
27
  "lib/fancy_irb.rb",
27
28
  "lib/fancy_irb/irb_ext.rb",
@@ -17,7 +17,7 @@ module FancyIrb
17
17
 
18
18
  # hook into IRB
19
19
  def extend!
20
- require 'unicode/display_size' if @options[:east_asian_width]
20
+ require 'unicode/display_width' if @options[:east_asian_width]
21
21
  require_relative 'irb_ext'
22
22
  require_relative 'core_ext'
23
23
  require_relative 'clean_up'
@@ -5,7 +5,7 @@ module FancyIrb
5
5
  def width_of(data)
6
6
  return 0 unless data
7
7
  data = Paint.unpaint data.to_s
8
- FancyIrb.east_asian_width? ? data.display_size : data.size
8
+ FancyIrb.east_asian_width? ? data.display_width : data.size
9
9
  end
10
10
 
11
11
  def height_of(data, width)
@@ -1,3 +1,3 @@
1
1
  module FancyIrb
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
@@ -28,7 +28,7 @@ describe FancyIrb::SizeDetector do
28
28
 
29
29
  context "east_asian_width? true" do
30
30
  before do
31
- require 'unicode/display_size'
31
+ require 'unicode/display_width'
32
32
  FancyIrb.instance_variable_set(:@options, {east_asian_width: true})
33
33
  end
34
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fancy_irb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-29 00:00:00.000000000 Z
11
+ date: 2016-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paint
@@ -34,16 +34,16 @@ dependencies:
34
34
  name: unicode-display_width
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.2.0
39
+ version: 0.3.1
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ">="
44
+ - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.2.0
46
+ version: 0.3.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +79,7 @@ extensions: []
79
79
  extra_rdoc_files: []
80
80
  files:
81
81
  - CHANGELOG.md
82
+ - CODE_OF_CONDUCT.md
82
83
  - MIT-LICENSE.txt
83
84
  - README.md
84
85
  - Rakefile
@@ -115,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  requirements:
116
117
  - 'Windows: ansicon <https://github.com/adoxa/ansicon>'
117
118
  rubyforge_project:
118
- rubygems_version: 2.4.6
119
+ rubygems_version: 2.5.1
119
120
  signing_key:
120
121
  specification_version: 4
121
122
  summary: FancyIrb makes IRB friendly.