source_position 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,12 @@
1
1
  language: ruby
2
2
  script: 'bundle exec rspec spec'
3
3
  rvm:
4
- - 1.8.7
5
4
  - 1.9.3
6
- - ree
7
5
  - rbx-18mode
8
6
  - rbx-19mode
7
+ matrix:
8
+ include:
9
+ - rvm: 1.8.7
10
+ gemfile: gemfiles/Gemfile.ruby-1.8.7
11
+ - rvm: ree
12
+ gemfile: gemfiles/Gemfile.ree
data/README.md CHANGED
@@ -8,6 +8,8 @@ Editor friendly source location
8
8
 
9
9
  Tested on 1.8.7, 1.9.3, ree, rbx-18mode, rbx-19mode
10
10
 
11
+ If you are using 1.8.7 or ree, you have to install [ruby18_source_location].
12
+
11
13
  ## Installation
12
14
 
13
15
  Add this line to your application's Gemfile:
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'ruby18_source_location'
4
+
5
+ # Specify your gem's dependencies in source_position.gemspec
6
+ gemspec :path => '../'
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'ruby18_source_location'
4
+
5
+ # Specify your gem's dependencies in source_position.gemspec
6
+ gemspec :path => '../'
@@ -1,6 +1,11 @@
1
1
  if RUBY_VERSION < '1.9'
2
2
  unless defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/
3
- require 'ruby18_source_location'
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
 
@@ -1,3 +1,3 @@
1
1
  module SourcePosition
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  if RUBY_VERSION < '1.9'
19
19
  unless defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/
20
- gem.add_dependency 'ruby18_source_location', '~> 0.2'
20
+ gem.requirements << 'ruby18_source_location, v0.2 or greater'
21
21
  end
22
22
  end
23
23
 
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
- version: 0.1.0
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
- date: 2012-07-11 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
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
- files:
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
- require_paths:
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
- version: '0'
62
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- version: '0'
68
- requirements: []
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.23
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