code 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +2 -2
- data/code.gemspec +4 -4
- data/lib/code/version.rb +1 -1
- metadata +19 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 05fa15a206f463a64d2581741587e6334025bb8d5a098530e44c3903950eae40
|
4
|
+
data.tar.gz: 14837035ebdee079fa31bea0283d8cbe7534e99ab6961f3ac8a28a33cb0ee18b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '05837025b663771b48727ea8843e332e0ee7fca116bdc461bdb8da88ded538d71e4e4b99fbe9c357c6ea03e8e734909a1725f02d7704c5655bb394f5906e531a'
|
7
|
+
data.tar.gz: b14d52243e2bc639153aa9ec6e10952da8e5f0ad0302d16f39a6d1afb72cb88077877da90477ad2e36a21c5188dca0ab4624fe56eabe49fa75b2d148613984eb
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# code [![[version]](https://badge.fury.io/rb/code.svg)](
|
1
|
+
# code [![[version]](https://badge.fury.io/rb/code.svg)](https://badge.fury.io/rb/code)
|
2
2
|
|
3
3
|
Shows a method's code with syntax highlighting. Tries to find a Ruby definition of the method first, then falls back to the C version (if the **core_docs** gem is available).
|
4
4
|
|
@@ -160,4 +160,4 @@ Be as powerful as pry's source browsing: https://github.com/pry/pry/wiki/Source-
|
|
160
160
|
|
161
161
|
## MIT License
|
162
162
|
|
163
|
-
Copyright (C) 2015 Jan Lelis <
|
163
|
+
Copyright (C) 2015, 2017 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
data/code.gemspec
CHANGED
@@ -6,9 +6,9 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = "code"
|
7
7
|
gem.version = Code::VERSION
|
8
8
|
gem.summary = "Displays a method's code."
|
9
|
-
gem.description = "Displays a method's code (from source or docs)."
|
9
|
+
gem.description = "Displays a method's code (from source or docs). Supports native C source when core_docs gem is available"
|
10
10
|
gem.authors = ["Jan Lelis"]
|
11
|
-
gem.email = "
|
11
|
+
gem.email = ["hi@ruby.consulting"]
|
12
12
|
gem.homepage = "https://github.com/janlelis/code"
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
|
-
gem.required_ruby_version = "
|
21
|
-
gem.add_dependency "method_source", "
|
20
|
+
gem.required_ruby_version = ">= 2.0", "< 4.0"
|
21
|
+
gem.add_dependency "method_source", ">= 0.9", "< 2.0"
|
22
22
|
gem.add_dependency "coderay", "~> 1.1"
|
23
23
|
end
|
data/lib/code/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: method_source
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.9'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0.9'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: coderay
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,8 +44,10 @@ dependencies:
|
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: '1.1'
|
41
|
-
description: Displays a method's code (from source or docs).
|
42
|
-
|
47
|
+
description: Displays a method's code (from source or docs). Supports native C source
|
48
|
+
when core_docs gem is available
|
49
|
+
email:
|
50
|
+
- hi@ruby.consulting
|
43
51
|
executables: []
|
44
52
|
extensions: []
|
45
53
|
extra_rdoc_files: []
|
@@ -62,17 +70,19 @@ require_paths:
|
|
62
70
|
- lib
|
63
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
72
|
requirements:
|
65
|
-
- - "
|
73
|
+
- - ">="
|
66
74
|
- !ruby/object:Gem::Version
|
67
75
|
version: '2.0'
|
76
|
+
- - "<"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '4.0'
|
68
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
80
|
requirements:
|
70
81
|
- - ">="
|
71
82
|
- !ruby/object:Gem::Version
|
72
83
|
version: '0'
|
73
84
|
requirements: []
|
74
|
-
|
75
|
-
rubygems_version: 2.6.13
|
85
|
+
rubygems_version: 3.2.3
|
76
86
|
signing_key:
|
77
87
|
specification_version: 4
|
78
88
|
summary: Displays a method's code.
|