contextify 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ ### 0.1.6 / 2010-05-23
2
+
3
+ * Moved the Contextify YARD handlers into the
4
+ [yard-contextify](http://github.com/postmodern/yard-contextify) library.
5
+
1
6
  ### 0.1.5 / 2009-02-02
2
7
 
3
8
  * Prevent exceptions from jamming the {Contextify.waiting} queue when
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Contextify
2
2
 
3
- * http://contextify.rubyforge.org/
4
- * http://github.com/postmodern/contextify/
3
+ * [github.com/postmodern/contextify](http://github.com/postmodern/contextify)
4
+ * [github.com/postmodern/contextify/issues](http://github.com/postmodern/contextify/issues)
5
5
  * Postmodern (postmodern.mod3 at gmail.com)
6
6
 
7
7
  ## Description
data/Rakefile CHANGED
@@ -14,9 +14,9 @@ begin
14
14
  gem.homepage = 'http://github.com/postmodern/contextify'
15
15
  gem.authors = ['Postmodern']
16
16
  gem.add_development_dependency 'rspec', '>= 1.3.0'
17
- gem.add_development_dependency 'yard', '>= 0.5.3'
18
17
  gem.has_rdoc = 'yard'
19
18
  end
19
+ Jeweler::GemcutterTasks.new
20
20
  rescue LoadError
21
21
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
22
22
  end
@@ -33,7 +33,6 @@ task :default => :spec
33
33
 
34
34
  begin
35
35
  require 'yard'
36
-
37
36
  YARD::Rake::YardocTask.new
38
37
  rescue LoadError
39
38
  task :yard do
@@ -5,89 +5,81 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{contextify}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Postmodern"]
12
- s.date = %q{2010-04-02}
12
+ s.date = %q{2010-05-23}
13
13
  s.description = %q{Contextify can load Ruby Objects containing methods and procs from Ruby files without having to use YAML or define classes named like the file.}
14
14
  s.email = %q{postmodern.mod3@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "ChangeLog.md",
17
- "LICENSE.txt",
18
- "README.md"
17
+ "LICENSE.txt",
18
+ "README.md"
19
19
  ]
20
20
  s.files = [
21
21
  ".gitignore",
22
- ".specopts",
23
- ".yardopts",
24
- "ChangeLog.md",
25
- "LICENSE.txt",
26
- "README.md",
27
- "Rakefile",
28
- "contextify.gemspec",
29
- "lib/contextify.rb",
30
- "lib/contextify/class_methods.rb",
31
- "lib/contextify/contextify.rb",
32
- "lib/contextify/exceptions.rb",
33
- "lib/contextify/exceptions/context_not_found.rb",
34
- "lib/contextify/exceptions/unknown_context.rb",
35
- "lib/contextify/extensions.rb",
36
- "lib/contextify/extensions/meta.rb",
37
- "lib/contextify/extensions/meta/object.rb",
38
- "lib/contextify/pending_context.rb",
39
- "lib/contextify/version.rb",
40
- "lib/contextify/yard.rb",
41
- "lib/contextify/yard/handlers.rb",
42
- "lib/contextify/yard/handlers/ruby.rb",
43
- "lib/contextify/yard/handlers/ruby/contextify_handler.rb",
44
- "lib/contextify/yard/handlers/ruby/legacy.rb",
45
- "lib/contextify/yard/handlers/ruby/legacy/contextify_handler.rb",
46
- "spec/contextify_spec.rb",
47
- "spec/helpers/book_context.rb",
48
- "spec/helpers/book_review_context.rb",
49
- "spec/helpers/contexts.rb",
50
- "spec/helpers/contexts/load_error.rb",
51
- "spec/helpers/contexts/neuromancer_review.rb",
52
- "spec/helpers/contexts/no_method_error.rb",
53
- "spec/helpers/contexts/snow_crash.rb",
54
- "spec/helpers/contexts/syntax_error.rb",
55
- "spec/spec_helper.rb"
22
+ ".specopts",
23
+ ".yardopts",
24
+ "ChangeLog.md",
25
+ "LICENSE.txt",
26
+ "README.md",
27
+ "Rakefile",
28
+ "contextify.gemspec",
29
+ "lib/contextify.rb",
30
+ "lib/contextify/class_methods.rb",
31
+ "lib/contextify/contextify.rb",
32
+ "lib/contextify/exceptions.rb",
33
+ "lib/contextify/exceptions/context_not_found.rb",
34
+ "lib/contextify/exceptions/unknown_context.rb",
35
+ "lib/contextify/extensions.rb",
36
+ "lib/contextify/extensions/meta.rb",
37
+ "lib/contextify/extensions/meta/object.rb",
38
+ "lib/contextify/pending_context.rb",
39
+ "lib/contextify/version.rb",
40
+ "lib/contextify/yard.rb",
41
+ "spec/contextify_spec.rb",
42
+ "spec/helpers/book_context.rb",
43
+ "spec/helpers/book_review_context.rb",
44
+ "spec/helpers/contexts.rb",
45
+ "spec/helpers/contexts/load_error.rb",
46
+ "spec/helpers/contexts/neuromancer_review.rb",
47
+ "spec/helpers/contexts/no_method_error.rb",
48
+ "spec/helpers/contexts/snow_crash.rb",
49
+ "spec/helpers/contexts/syntax_error.rb",
50
+ "spec/spec_helper.rb"
56
51
  ]
57
52
  s.has_rdoc = %q{yard}
58
53
  s.homepage = %q{http://github.com/postmodern/contextify}
59
54
  s.licenses = ["MIT"]
60
55
  s.rdoc_options = ["--charset=UTF-8"]
61
56
  s.require_paths = ["lib"]
62
- s.rubygems_version = %q{1.3.6}
57
+ s.rubygems_version = %q{1.3.7}
63
58
  s.summary = %q{Loads Ruby Objects containing methods and procs from Ruby files.}
64
59
  s.test_files = [
65
60
  "spec/spec_helper.rb",
66
- "spec/helpers/book_context.rb",
67
- "spec/helpers/book_review_context.rb",
68
- "spec/helpers/contexts/neuromancer_review.rb",
69
- "spec/helpers/contexts/snow_crash.rb",
70
- "spec/helpers/contexts/no_method_error.rb",
71
- "spec/helpers/contexts/syntax_error.rb",
72
- "spec/helpers/contexts/load_error.rb",
73
- "spec/helpers/contexts.rb",
74
- "spec/contextify_spec.rb"
61
+ "spec/helpers/book_review_context.rb",
62
+ "spec/helpers/contexts/no_method_error.rb",
63
+ "spec/helpers/contexts/snow_crash.rb",
64
+ "spec/helpers/contexts/load_error.rb",
65
+ "spec/helpers/contexts/syntax_error.rb",
66
+ "spec/helpers/contexts/neuromancer_review.rb",
67
+ "spec/helpers/book_context.rb",
68
+ "spec/helpers/contexts.rb",
69
+ "spec/contextify_spec.rb"
75
70
  ]
76
71
 
77
72
  if s.respond_to? :specification_version then
78
73
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
79
74
  s.specification_version = 3
80
75
 
81
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
76
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
82
77
  s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
83
- s.add_development_dependency(%q<yard>, [">= 0.5.3"])
84
78
  else
85
79
  s.add_dependency(%q<rspec>, [">= 1.3.0"])
86
- s.add_dependency(%q<yard>, [">= 0.5.3"])
87
80
  end
88
81
  else
89
82
  s.add_dependency(%q<rspec>, [">= 1.3.0"])
90
- s.add_dependency(%q<yard>, [">= 0.5.3"])
91
83
  end
92
84
  end
93
85
 
@@ -1,3 +1,4 @@
1
1
  module Contextify
2
- VERSION = '0.1.5'
2
+ # contextify version
3
+ VERSION = '0.1.6'
3
4
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contextify
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 5
9
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Postmodern
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-02 00:00:00 -07:00
18
+ date: 2010-05-23 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rspec
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 27
27
30
  segments:
28
31
  - 1
29
32
  - 3
@@ -31,20 +34,6 @@ dependencies:
31
34
  version: 1.3.0
32
35
  type: :development
33
36
  version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: yard
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 5
44
- - 3
45
- version: 0.5.3
46
- type: :development
47
- version_requirements: *id002
48
37
  description: Contextify can load Ruby Objects containing methods and procs from Ruby files without having to use YAML or define classes named like the file.
49
38
  email: postmodern.mod3@gmail.com
50
39
  executables: []
@@ -76,11 +65,6 @@ files:
76
65
  - lib/contextify/pending_context.rb
77
66
  - lib/contextify/version.rb
78
67
  - lib/contextify/yard.rb
79
- - lib/contextify/yard/handlers.rb
80
- - lib/contextify/yard/handlers/ruby.rb
81
- - lib/contextify/yard/handlers/ruby/contextify_handler.rb
82
- - lib/contextify/yard/handlers/ruby/legacy.rb
83
- - lib/contextify/yard/handlers/ruby/legacy/contextify_handler.rb
84
68
  - spec/contextify_spec.rb
85
69
  - spec/helpers/book_context.rb
86
70
  - spec/helpers/book_review_context.rb
@@ -101,34 +85,38 @@ rdoc_options:
101
85
  require_paths:
102
86
  - lib
103
87
  required_ruby_version: !ruby/object:Gem::Requirement
88
+ none: false
104
89
  requirements:
105
90
  - - ">="
106
91
  - !ruby/object:Gem::Version
92
+ hash: 3
107
93
  segments:
108
94
  - 0
109
95
  version: "0"
110
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
+ none: false
111
98
  requirements:
112
99
  - - ">="
113
100
  - !ruby/object:Gem::Version
101
+ hash: 3
114
102
  segments:
115
103
  - 0
116
104
  version: "0"
117
105
  requirements: []
118
106
 
119
107
  rubyforge_project:
120
- rubygems_version: 1.3.6
108
+ rubygems_version: 1.3.7
121
109
  signing_key:
122
110
  specification_version: 3
123
111
  summary: Loads Ruby Objects containing methods and procs from Ruby files.
124
112
  test_files:
125
113
  - spec/spec_helper.rb
126
- - spec/helpers/book_context.rb
127
114
  - spec/helpers/book_review_context.rb
128
- - spec/helpers/contexts/neuromancer_review.rb
129
- - spec/helpers/contexts/snow_crash.rb
130
115
  - spec/helpers/contexts/no_method_error.rb
131
- - spec/helpers/contexts/syntax_error.rb
116
+ - spec/helpers/contexts/snow_crash.rb
132
117
  - spec/helpers/contexts/load_error.rb
118
+ - spec/helpers/contexts/syntax_error.rb
119
+ - spec/helpers/contexts/neuromancer_review.rb
120
+ - spec/helpers/book_context.rb
133
121
  - spec/helpers/contexts.rb
134
122
  - spec/contextify_spec.rb
@@ -1 +0,0 @@
1
- require 'contextify/yard/handlers/ruby'
@@ -1,2 +0,0 @@
1
- require 'contextify/yard/handlers/ruby/contextify_handler'
2
- require 'contextify/yard/handlers/ruby/legacy'
@@ -1,33 +0,0 @@
1
- require 'yard'
2
-
3
- module YARD
4
- module Handlers
5
- module Ruby
6
- class ContextifyHandler < Base
7
-
8
- handles method_call(:contextify)
9
-
10
- def process
11
- nobj = ModuleObject.new(:root, 'Kernel')
12
- obj = statement.parameters(false).first
13
-
14
- mscope = scope
15
- name = case obj.type
16
- when :symbol_literal
17
- obj.jump(:ident, :op, :kw, :const).source
18
- when :string_literal
19
- obj.jump(:string_content).source
20
- end
21
-
22
- register MethodObject.new(nobj, name, mscope) do |o|
23
- o.visibility = :public
24
- o.source = statement.source
25
- o.signature = "def #{name}(&block)"
26
- o.parameters = [['&block', nil]]
27
- end
28
- end
29
-
30
- end
31
- end
32
- end
33
- end
@@ -1 +0,0 @@
1
- require 'contextify/yard/handlers/ruby/legacy/contextify_handler'
@@ -1,29 +0,0 @@
1
- require 'yard'
2
-
3
- module YARD
4
- module Handlers
5
- module Ruby
6
- module Legacy
7
- class ContextifyHandler < Base
8
-
9
- handles /\Acontextify\s/
10
-
11
- def process
12
- nobj = ModuleObject.new(:root, 'Kernel')
13
-
14
- mscope = scope
15
- name = statement.tokens[2,1].to_s[1..-1]
16
-
17
- register MethodObject.new(nobj, name, mscope) do |o|
18
- o.visibility = :public
19
- o.source = statement.source
20
- o.signature = "def #{name}(&block)"
21
- o.parameters = [['&block', nil]]
22
- end
23
- end
24
-
25
- end
26
- end
27
- end
28
- end
29
- end