getsource 0.2.1 → 0.2.2

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5a329738f445cd2c58000e6931ad0463c5698e05
4
+ data.tar.gz: 48295dda76b97c613b3359b4f3bd678145d8b789
5
+ SHA512:
6
+ metadata.gz: da460bd78387d79678acfb77919d60a24cfa10480455b9f19e0e07045983303f418d23208962c7b55df97fda0386b71bd1c0cbc2a57f10a6b3b21f023fe18d68
7
+ data.tar.gz: fffeabb7cb2b49d0a77d0038a6e43d4f208a454e0e2863ec0c6409b719ef490e8af37bb67496901ffcc006016f942bb943fd6d549b1d2edf5696e8453d40b587
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.2: Fixed Rakefile for ruby 2.2.0
2
+
3
+ Fixed extconf.rb for ruby 2.2.0
4
+
1
5
  0.2.1: Fixed bug when trying to obtain source information for C methods in ruby 1.9 (reported by der-flo)
2
6
 
3
7
  0.2.0: Implemented getsource methods in pure ruby for ruby 1.9 using source_location
data/Rakefile CHANGED
@@ -1,12 +1,12 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
  require 'rake/testtask'
4
- require 'rake/rdoctask'
5
- require 'rake/gempackagetask'
4
+ require 'rdoc/task'
5
+ require 'rubygems/package_task'
6
6
 
7
7
  spec = Gem::Specification.new do |s|
8
8
  s.name = 'getsource'
9
- s.version = '0.2.1'
9
+ s.version = '0.2.2'
10
10
  s.author = 'Dario Seminara'
11
11
  s.email = 'robertodarioseminara@gmail.com'
12
12
  s.platform = Gem::Platform::RUBY
@@ -37,7 +37,7 @@ Rake::RDocTask.new :rdoc do |rd|
37
37
  end
38
38
 
39
39
  desc 'Build Gem'
40
- Rake::GemPackageTask.new spec do |pkg|
40
+ Gem::PackageTask.new spec do |pkg|
41
41
  pkg.need_tar = true
42
42
  end
43
43
 
@@ -1,17 +1,16 @@
1
1
  require 'mkmf'
2
2
  dir_config('getsource_base')
3
- CONFIG['CC'] = 'gcc'
3
+ MakeMakefile::CONFIG['CC'] = 'gcc'
4
4
 
5
- ruby_version = Config::CONFIG["ruby_version"]
5
+ ruby_version = MakeMakefile::CONFIG["ruby_version"]
6
6
  ruby_version = ruby_version.split(".")[0..1].join(".")
7
7
 
8
8
  if ruby_version == "1.8"
9
9
  $CFLAGS = $CFLAGS + " -DRUBY1_8"
10
10
  elsif ruby_version == "1.9"
11
11
  $CFLAGS = $CFLAGS + " -DRUBY1_9"
12
- else
13
- print "ERROR: unknown ruby version: #{ruby_version}\n"
14
- print "try passing the rubyversion by argument (1.8 or 1.9)\n"
12
+ elsif ruby_version == "2.2"
13
+ $CFLAGS = $CFLAGS + " -DRUBY2_2"
15
14
  end
16
15
 
17
16
  $CFLAGS = $CFLAGS + " -o $@"
metadata CHANGED
@@ -1,78 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: getsource
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Dario Seminara
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-05-19 00:00:00 -03:00
19
- default_executable:
11
+ date: 2015-03-03 00:00:00.000000000 Z
20
12
  dependencies: []
21
-
22
13
  description:
23
14
  email: robertodarioseminara@gmail.com
24
15
  executables: []
25
-
26
- extensions:
16
+ extensions:
27
17
  - ext/getsource_base/extconf.rb
28
- extra_rdoc_files:
18
+ extra_rdoc_files:
29
19
  - README
30
- files:
31
- - examples/test1/source1.rb
32
- - examples/test1/main.rb
33
- - examples/test1/source2.rb
34
- - lib/getsource.rb
35
- - ext/getsource_base/getsource_base.c
36
- - ext/getsource_base/extconf.rb
20
+ files:
37
21
  - AUTHORS
38
22
  - CHANGELOG
39
23
  - README
40
24
  - Rakefile
41
25
  - TODO
42
- has_rdoc: true
26
+ - examples/test1/main.rb
27
+ - examples/test1/source1.rb
28
+ - examples/test1/source2.rb
29
+ - ext/getsource_base/extconf.rb
30
+ - ext/getsource_base/getsource_base.c
31
+ - lib/getsource.rb
43
32
  homepage: http://github.com/tario/getsource
44
33
  licenses: []
45
-
34
+ metadata: {}
46
35
  post_install_message:
47
- rdoc_options:
48
- - --main
36
+ rdoc_options:
37
+ - "--main"
49
38
  - README
50
- require_paths:
39
+ require_paths:
51
40
  - lib
52
- required_ruby_version: !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ requirements:
55
43
  - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
61
- required_rubygems_version: !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
64
48
  - - ">="
65
- - !ruby/object:Gem::Version
66
- hash: 3
67
- segments:
68
- - 0
69
- version: "0"
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
70
51
  requirements: []
71
-
72
52
  rubyforge_project:
73
- rubygems_version: 1.3.7
53
+ rubygems_version: 2.4.6
74
54
  signing_key:
75
- specification_version: 3
55
+ specification_version: 4
76
56
  summary: Get the source file path of the implementation of a given method
77
57
  test_files: []
78
-