source_position 0.1.0 → 0.2.0
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/.travis.yml +6 -2
- data/README.md +2 -0
- data/gemfiles/Gemfile.ree +6 -0
- data/gemfiles/Gemfile.ruby-1.8.7 +6 -0
- data/lib/source_position.rb +6 -1
- data/lib/source_position/version.rb +1 -1
- data/source_position.gemspec +1 -1
- metadata +53 -35
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/lib/source_position.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
if RUBY_VERSION < '1.9'
|
2
2
|
unless defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/
|
3
|
-
|
3
|
+
begin
|
4
|
+
require 'ruby18_source_location'
|
5
|
+
rescue LoadError
|
6
|
+
raise 'Could not load the ruby18_source_location gem.
|
7
|
+
Install it with `gem install ruby18_source_location`'
|
8
|
+
end
|
4
9
|
end
|
5
10
|
end
|
6
11
|
|
data/source_position.gemspec
CHANGED
metadata
CHANGED
@@ -1,39 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: source_position
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Jun Lin
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-07-11 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rspec
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
22
|
prerelease: false
|
24
|
-
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
32
|
+
type: :development
|
33
|
+
version_requirements: *id001
|
30
34
|
description: Editor friendly source location
|
31
|
-
email:
|
35
|
+
email:
|
32
36
|
- linjunpop@gmail.com
|
33
37
|
executables: []
|
38
|
+
|
34
39
|
extensions: []
|
40
|
+
|
35
41
|
extra_rdoc_files: []
|
36
|
-
|
42
|
+
|
43
|
+
files:
|
37
44
|
- .gitignore
|
38
45
|
- .rspec
|
39
46
|
- .travis.yml
|
@@ -41,6 +48,8 @@ files:
|
|
41
48
|
- LICENSE
|
42
49
|
- README.md
|
43
50
|
- Rakefile
|
51
|
+
- gemfiles/Gemfile.ree
|
52
|
+
- gemfiles/Gemfile.ruby-1.8.7
|
44
53
|
- lib/source_position.rb
|
45
54
|
- lib/source_position/rbx_source_location.rb
|
46
55
|
- lib/source_position/version.rb
|
@@ -49,28 +58,37 @@ files:
|
|
49
58
|
- spec/spec_helper.rb
|
50
59
|
homepage: https://github.com/linjunpop/source_position
|
51
60
|
licenses: []
|
61
|
+
|
52
62
|
post_install_message:
|
53
63
|
rdoc_options: []
|
54
|
-
|
64
|
+
|
65
|
+
require_paths:
|
55
66
|
- lib
|
56
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
68
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
77
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
|
68
|
-
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
hash: 3
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
version: "0"
|
85
|
+
requirements:
|
86
|
+
- ruby18_source_location, v0.2 or greater
|
69
87
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.8.
|
88
|
+
rubygems_version: 1.8.15
|
71
89
|
signing_key:
|
72
90
|
specification_version: 3
|
73
91
|
summary: Editor friendly source location
|
74
|
-
test_files:
|
92
|
+
test_files:
|
75
93
|
- spec/source_position_spec.rb
|
76
94
|
- spec/spec_helper.rb
|