jewel 0.0.5 → 0.0.6
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.
- data/README.markdown +3 -3
- data/lib/jewel/gem.rb +2 -2
- metadata +15 -15
data/README.markdown
CHANGED
@@ -56,8 +56,8 @@ Tools like `gem` and `bundler` assume the `.gemspec` returns a
|
|
56
56
|
# External libraries? In _my_ `.gemspec`?!
|
57
57
|
|
58
58
|
Right. Unlike `.gemspec` generators, Jewel will not duplicate information and it
|
59
|
-
will _certainly_ not make a giant mess in your version control diff.
|
60
|
-
actually some of the reasons why I wrote this gem.
|
59
|
+
will _certainly_ not make a giant mess in your version control system's diff.
|
60
|
+
These are actually some of the reasons why I wrote this gem.
|
61
61
|
|
62
62
|
However, you will probably run into problems if you use tools that parse your
|
63
63
|
`.gemspec` or are unable to `require` your gem. If that's your case, then you'll
|
@@ -78,7 +78,7 @@ specification:
|
|
78
78
|
end
|
79
79
|
|
80
80
|
Hey, is that a `Rails.root`-like method? Exactly! It basically returns a dynamic
|
81
|
-
Pathname allows you join paths by chaining methods and passing arguments to
|
81
|
+
Pathname allows you to join paths by chaining methods and passing arguments to
|
82
82
|
them:
|
83
83
|
|
84
84
|
root = Awesome::Gem.root
|
data/lib/jewel/gem.rb
CHANGED
@@ -47,7 +47,7 @@ class << Jewel::Gem
|
|
47
47
|
unless relative_to.nil?
|
48
48
|
relative_to = relative_to.to_s
|
49
49
|
# caller returns an array of strings that are like “file:line” or “file:line: in `method’”
|
50
|
-
file = caller.first.
|
50
|
+
file = caller.first.sub /:\d+(:in .*)?\z/, ''
|
51
51
|
directory = File.dirname file
|
52
52
|
path = File.expand_path(relative_to, directory)
|
53
53
|
arguments.push Jewel::Gem::Root.new path
|
@@ -134,7 +134,7 @@ class Jewel::Gem
|
|
134
134
|
name! :jewel
|
135
135
|
summary 'Gem metadata at your fingertips'
|
136
136
|
description 'Jewel provides an easy way to access information about a gem at runtime'
|
137
|
-
version '0.0.
|
137
|
+
version '0.0.6'
|
138
138
|
homepage 'https://github.com/matheusmoreira/jewel'
|
139
139
|
license 'Mozilla Public License, version 2.0'
|
140
140
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jewel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 6
|
9
9
|
prerelease:
|
10
|
-
hash:
|
10
|
+
hash: 2601941922375120401
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matheus Afonso Martins Moreira
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
version: '0'
|
27
27
|
segments:
|
28
28
|
- 0
|
29
|
-
hash:
|
29
|
+
hash: -1514220627788198915
|
30
30
|
type: :development
|
31
31
|
prerelease: false
|
32
32
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -37,7 +37,7 @@ dependencies:
|
|
37
37
|
version: '0'
|
38
38
|
segments:
|
39
39
|
- 0
|
40
|
-
hash:
|
40
|
+
hash: -1514220627788198915
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: redcarpet
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -48,7 +48,7 @@ dependencies:
|
|
48
48
|
version: '0'
|
49
49
|
segments:
|
50
50
|
- 0
|
51
|
-
hash:
|
51
|
+
hash: -1514220627788198915
|
52
52
|
type: :development
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
version: '0'
|
60
60
|
segments:
|
61
61
|
- 0
|
62
|
-
hash:
|
62
|
+
hash: -1514220627788198915
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: rookie
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,7 +70,7 @@ dependencies:
|
|
70
70
|
version: '0'
|
71
71
|
segments:
|
72
72
|
- 0
|
73
|
-
hash:
|
73
|
+
hash: -1514220627788198915
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
version: '0'
|
82
82
|
segments:
|
83
83
|
- 0
|
84
|
-
hash:
|
84
|
+
hash: -1514220627788198915
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: rspec
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
version: '0'
|
93
93
|
segments:
|
94
94
|
- 0
|
95
|
-
hash:
|
95
|
+
hash: -1514220627788198915
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -103,7 +103,7 @@ dependencies:
|
|
103
103
|
version: '0'
|
104
104
|
segments:
|
105
105
|
- 0
|
106
|
-
hash:
|
106
|
+
hash: -1514220627788198915
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: yard
|
109
109
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,7 +114,7 @@ dependencies:
|
|
114
114
|
version: '0'
|
115
115
|
segments:
|
116
116
|
- 0
|
117
|
-
hash:
|
117
|
+
hash: -1514220627788198915
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -125,7 +125,7 @@ dependencies:
|
|
125
125
|
version: '0'
|
126
126
|
segments:
|
127
127
|
- 0
|
128
|
-
hash:
|
128
|
+
hash: -1514220627788198915
|
129
129
|
description: Jewel provides an easy way to access information about a gem at runtime
|
130
130
|
email: matheus.a.m.moreira@gmail.com
|
131
131
|
executables: []
|
@@ -159,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
segments:
|
161
161
|
- 0
|
162
|
-
hash:
|
162
|
+
hash: -1514220627788198915
|
163
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
164
|
none: false
|
165
165
|
requirements:
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
segments:
|
170
170
|
- 0
|
171
|
-
hash:
|
171
|
+
hash: -1514220627788198915
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
174
|
rubygems_version: 1.8.24
|